From c9b157a07d8bba8df695db17dafdd33a524524c2 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 24 Jul 2004 20:15:16 +0000 Subject: [PATCH] Clifford Wolf: Fixed/Added $PYTHONPATH profile script for pygtk and subversion.conf [2004071418125816280] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3600 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/gnome2/pygtk/pygtk.conf | 2 +- package/rene/subversion/subversion.conf | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/package/gnome2/pygtk/pygtk.conf b/package/gnome2/pygtk/pygtk.conf index 23e99c904..694bad700 100644 --- a/package/gnome2/pygtk/pygtk.conf +++ b/package/gnome2/pygtk/pygtk.conf @@ -25,7 +25,7 @@ pygtk_pi() { PYVER="`python -V 2>&1 | sed 's/Python \([0-9]\.[0-9]\).*/\1/'`" cat > $root/etc/profile.d/pygtk <<-EOF -export PYTHONPATH=\$PYTHONPATH\${PYTHONPATH:+:}$root/$prefix/lib/python$PYVER/site-packages:$root/$prefix/lib/python$PYVER/site-packages/gtk-2.0 +export PYTHONPATH=\$PYTHONPATH\${PYTHONPATH:+:}/$prefix/lib/python$PYVER/site-packages:/$prefix/lib/python$PYVER/site-packages/gtk-2.0 EOF } diff --git a/package/rene/subversion/subversion.conf b/package/rene/subversion/subversion.conf index f029ef1a2..022052e6c 100644 --- a/package/rene/subversion/subversion.conf +++ b/package/rene/subversion/subversion.conf @@ -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