2007-11-16 19:37:23 +01:00
|
|
|
args: with args;
|
2007-03-05 00:37:34 +01:00
|
|
|
# !!! xml2po needs to store the path to libxml2
|
|
|
|
|
2007-03-04 22:28:24 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (input) name src;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pkgconfig perl perlXMLParser python
|
2007-11-16 19:37:23 +01:00
|
|
|
libxml2 libxslt gettext python libxml2Python
|
2007-03-04 22:28:24 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = "--disable-scrollkeeper";
|
2007-11-16 19:37:23 +01:00
|
|
|
|
|
|
|
postInstall = "
|
|
|
|
mv \$out/bin/xml2po \$out/bin/.xml2po.orig
|
|
|
|
pythonPathLibXml2=\"\$(toPythonPath ${libxml2Python})\"
|
|
|
|
echo -e '#! ${stdenv.shell}\nPYTHONPATH=$PYTHONPATH:'\"\$( toPythonPath \$out )"+
|
|
|
|
":\${pythonPathLibXml2//python2.5/python2.4}"+
|
|
|
|
":\$( toPythonPath ${libxml2Python} )\""+
|
|
|
|
"' \$(dirname \$0)/.xml2po.orig \"\$@\"' > \$out/bin/xml2po;
|
|
|
|
chmod a+x \$out/bin/xml2po
|
|
|
|
";
|
2007-03-04 22:28:24 +01:00
|
|
|
}
|