|
|
@ -74,11 +74,20 @@ else |
|
|
|
make install-swig-py |
|
|
|
} |
|
|
|
|
|
|
|
# install etc/profile.d/subversion |
|
|
|
svn_inst_profile() { |
|
|
|
cat > $root/etc/profile.d/subversion <<-EOF |
|
|
|
export PYTHONPATH=\$PYTHONPATH\${PYTHONPATH:+:}/$prefix/lib/svn-python |
|
|
|
EOF |
|
|
|
} |
|
|
|
|
|
|
|
hook_add postmake 3 "install_init svnserve $confdir/svnserve.init" |
|
|
|
hook_add postmake 4 "cp -vrf tools $docdir" |
|
|
|
|
|
|
|
# if swig is present build and install the perl and python bindings |
|
|
|
pkginstalled swig && [ -n "$( type -p perl )" ] && hook_add postmake 5 "svn_inst_pl" |
|
|
|
pkginstalled swig && [ -n "$( type -p python )" ] && hook_add postmake 5 "svn_inst_py" |
|
|
|
|
|
|
|
hook_add postmake 5 "svn_inst_profile" |
|
|
|
fi |
|
|
|
|