[med-svn] r5788 - trunk/packages/pdb2pqr/trunk/debian
Manuel Prinz
manuel at alioth.debian.org
Sat Jan 29 22:38:42 UTC 2011
Author: manuel
Date: 2011-01-29 22:38:42 +0000 (Sat, 29 Jan 2011)
New Revision: 5788
Modified:
trunk/packages/pdb2pqr/trunk/debian/rules
Log:
Disabled tests, added get-orig-source, minor fixes in debian/rules
Modified: trunk/packages/pdb2pqr/trunk/debian/rules
===================================================================
--- trunk/packages/pdb2pqr/trunk/debian/rules 2011-01-29 22:37:42 UTC (rev 5787)
+++ trunk/packages/pdb2pqr/trunk/debian/rules 2011-01-29 22:38:42 UTC (rev 5788)
@@ -1,9 +1,16 @@
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
+PACKAGE := $(firstword $(shell dh_listpackages))
+VERSION := $(shell dpkg-parsechangelog | awk '/^Version:/ { print $$2 }')
+UPSTREAM := $(shell echo "$(VERSION)" | sed 's/-.\+$$//')
+
%:
dh $@
+# Disable tests, as they need an internet connection to download files
+override_dh_auto_test:
+
override_dh_auto_install:
# Fix !#/bin/env shebang: substitute with #!/usr/bin/python
sed -i -e '1c#!/usr/bin/python' pdb2pka/inputgen_pKa.py
@@ -21,7 +28,20 @@
dh_auto_install
override_dh_fixperms:
+ dh_fixperms
chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/pdb2pka/ligandclean/__init__.py
+ chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/pdb2pka/pka_routines.py
chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/pdb2pka/pKaIO_compat.py
chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/pdb2pka/pKa_utility_functions_compat.py
- dh_fixperms
+
+.PHONY: get-orig-source
+get-orig-source:
+ rm -rf get-orig-source
+ mkdir -p get-orig-source
+ uscan --no-conf --no-symlink --force-download --download-current-version --destdir=get-orig-source
+ tar xzf get-orig-source/$(PACKAGE)-$(UPSTREAM).tar.gz -C get-orig-source \
+ --exclude="contrib" \
+ --exclude="jmol"
+ mv get-orig-source/$(PACKAGE)-$(UPSTREAM) get-orig-source/$(PACKAGE)-$(UPSTREAM).repack
+ GZIP='--best --no-name' tar czf ../$(PACKAGE)_$(UPSTREAM).orig.tar.gz -C get-orig-source $(PACKAGE)-$(UPSTREAM).repack
+ rm -rf get-orig-source
More information about the debian-med-commit
mailing list