deluge 0.5.4 needs this patch to debian/rules for things to work
properly since deluge expects to be installed in a different place
than debian puts it. we'll try to keep this unchanging in upstream as
best as we can.
thanks,
marcos
--- rules 2007-08-07 07:50:49.000000000 -0500
+++ rules 2007-08-07 08:01:20.000000000 -0500
@@ -55,11 +55,7 @@
for file in `find $(DESTDIR)/usr/lib/python*/site-packages/deluge/ -name \*.py`; do \
grep -v '#!/usr/bin/env python' $$file > $$file.new || exit 1; \
mv $$file.new $$file || exit 1; \
- sed -i "s/file = os.path.join(INSTALL_PREFIX, 'lib', 'python'/file = os.path.join('\/var', 'lib', 'python-support', 'python'/g" $$file; \
- sed -i "s/file = os.path.join(common.INSTALL_PREFIX, 'lib', 'python'/file = os.path.join('\/var', 'lib', 'python-support', 'python'/g" $$file; \
- sed -i "s/py_version, 'site-packages', 'deluge'/py_version, 'deluge'/g" $$file; \
done
-
# Do not use a versionned python shebang
sed -i 's/^#!\/usr\/bin\/python.*$$/#!\/usr\/bin\/python/' $(DESTDIR)/usr/bin/deluge
find $(DESTDIR)/usr/lib/python?.? -name \*.egg-info | xargs rm -f