From: Daniel M. <dm...@us...> - 2014-11-22 19:53:01
|
Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/pythonmods In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21951 Modified Files: gflags-py.info Log Message: Fix orthogonality of variants (update-alternatives for the main script) (do the TODO) Index: gflags-py.info =================================================================== RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/libs/pythonmods/gflags-py.info,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- gflags-py.info 24 Nov 2013 00:32:18 -0000 1.2 +++ gflags-py.info 22 Nov 2014 19:52:58 -0000 1.3 @@ -2,7 +2,7 @@ Package: gflags-py%type_pkg[python] Version: 2.0 -Revision: 2 +Revision: 3 Type: python (2.7) Source: https://pypi.python.org/packages/source/p/python-gflags/python-gflags-%v.tar.gz @@ -10,13 +10,28 @@ Depends: python%type_pkg[python] BuildDepends: setuptools-tng-py%type_pkg[python] CompileScript: %p/bin/python%type_raw[python] setup.py build -InstallScript: %p/bin/python%type_raw[python] setup.py install --root %d +InstallScript: << + %p/bin/python%type_raw[python] setup.py install --root %d + + # in a -pyXX package, all actual files must have filenames + # reflecting that variant + mv %i/bin/gflags2man.py %i/bin/gflags2man.py%type_pkg[python] +<< License: BSD Maintainer: Kurt Schwehr <go...@us...> Homepage: https://pypi.python.org/pypi/python-gflags Description: Google style commandline flags -# TODO(goatbar): bin/gflags2man.py +# let user (or "highest variant" by default) control which variant's +# file appears as the unvarianted name +PostInstScript: << + update-alternatives --install %p/bin/gflags2man.py gflags2man.py %p/bin/gflags2man.py%type_pkg[python] %type_pkg[python] +<< +PreRmScript: << +if [ $1 != "upgrade" ]; then + update-alternatives --remove gflags2man.py %p/bin/gflags2man.py%type_pkg[python] +fi +<< # Info 2 << \ No newline at end of file |