Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 20 years ago
parent
commit
c9b157a07d
2 changed files with 10 additions and 1 deletions
  1. +1
    -1
      package/gnome2/pygtk/pygtk.conf
  2. +9
    -0
      package/rene/subversion/subversion.conf

+ 1
- 1
package/gnome2/pygtk/pygtk.conf

@ -25,7 +25,7 @@
pygtk_pi() { pygtk_pi() {
PYVER="`python -V 2>&1 | sed 's/Python \([0-9]\.[0-9]\).*/\1/'`" PYVER="`python -V 2>&1 | sed 's/Python \([0-9]\.[0-9]\).*/\1/'`"
cat > $root/etc/profile.d/pygtk <<-EOF 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 EOF
} }

+ 9
- 0
package/rene/subversion/subversion.conf

@ -74,11 +74,20 @@ else
make install-swig-py 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 3 "install_init svnserve $confdir/svnserve.init"
hook_add postmake 4 "cp -vrf tools $docdir" hook_add postmake 4 "cp -vrf tools $docdir"
# if swig is present build and install the perl and python bindings # 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 perl )" ] && hook_add postmake 5 "svn_inst_pl"
pkginstalled swig && [ -n "$( type -p python )" ] && hook_add postmake 5 "svn_inst_py" pkginstalled swig && [ -n "$( type -p python )" ] && hook_add postmake 5 "svn_inst_py"
hook_add postmake 5 "svn_inst_profile"
fi fi

Loading…
Cancel
Save