[med-svn] r4738 - trunk/packages/pdb2pqr/trunk/debian

Manuel Prinz manuel at alioth.debian.org
Wed Apr 21 11:16:53 UTC 2010


Author: manuel
Date: 2010-04-21 11:16:50 +0000 (Wed, 21 Apr 2010)
New Revision: 4738

Modified:
   trunk/packages/pdb2pqr/trunk/debian/rules
Log:
Rewrote debian/rules to use dh(1) instead of cdbs


Modified: trunk/packages/pdb2pqr/trunk/debian/rules
===================================================================
--- trunk/packages/pdb2pqr/trunk/debian/rules	2010-04-21 11:08:09 UTC (rev 4737)
+++ trunk/packages/pdb2pqr/trunk/debian/rules	2010-04-21 11:16:50 UTC (rev 4738)
@@ -1,48 +1,27 @@
 #!/usr/bin/make -f
 # -*- mode: makefile; coding: utf-8 -*-
 
-include /usr/share/cdbs/1/class/autotools.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
+%:
+	dh $@
 
-# Checks are disabled because they need internet access to fetch
-# entries 1HPX and 1AFS from the PDB. Those sum up to 640k which
-# would just blow the diff, so disabling checks seems to be the
-# best solution until upstream fixes this.
-# DEB_MAKE_CHECK_TARGET = test adv-test
-
-# Do not execute "install" target. We'll take care of that since
-# upstream's build system installs *everything* to $prefix (if set)
-DEB_MAKE_INSTALL_TARGET = 
-
-# Updating all config.{guess,sub} files because upstream ships old versions.
-# If that is resolved, we can drop the Depends: on autotools-dev again.
-# (Reported upstream, fixed in SVN, will be in the next release (>1.3.0))
-DEB_AC_AUX_DIR += $(DEB_SRCDIR)/propka
-
-post-patches::
-	autoreconf
-
-install/pdb2pqr::
-### BEGIN FIXES
+override_dh_auto_install:
 # Fix !#/bin/env shebang: substitute with #!/usr/bin/python
-	sed -i -e '1c#!/usr/bin/python' $(CURDIR)/pdb2pka/inputgen_pKa.py
-# Fix minor permission problem (should not be executable)
-	chmod 0644 $(CURDIR)/pdb2pka/ligandclean/__init__.py
-	chmod 0644 $(CURDIR)/pdb2pka/pKaIO_compat.py
-	chmod 0644 $(CURDIR)/pdb2pka/pKa_utility_functions_compat.py
-### END FIXES
-# Install script wrappers
+	sed -i -e '1c#!/usr/bin/python' pdb2pka/inputgen_pKa.py
+# Install Debian-provided stuff
+#   Install wrappers
 	for app in /usr/share/pdb2pqr/pdb2pqr.py /usr/share/pdb2pqr/src/psize.py; do \
 		sed -e "s, at SCRIPT@,$${app}," debian/wrapper.sh \
-			>$(CURDIR)/debian/pdb2pqr/usr/bin/$$(basename $${app} .py) && \
-		chmod 0755 $(CURDIR)/debian/pdb2pqr/usr/bin/$$(basename $${app} .py); \
+			>debian/pdb2pqr/usr/bin/$$(basename $${app} .py) && \
+		chmod 0755 debian/pdb2pqr/usr/bin/$$(basename $${app} .py); \
 	done
-# Generate and install manpages
-	xmlto -o $(CURDIR)/debian/pdb2pqr/usr/share/man/man1/ man debian/pdb2pqr.1.xml
-	xmlto -o $(CURDIR)/debian/pdb2pqr/usr/share/man/man1/ man debian/psize.1.xml
+#   Install man pages
+	xmlto -o debian/pdb2pqr/usr/share/man/man1/ man debian/pdb2pqr.1.xml
+	xmlto -o debian/pdb2pqr/usr/share/man/man1/ man debian/psize.1.xml
+	xmlto -o debian/propka/usr/share/man/man1/  man debian/propka.1.xml
+	dh_auto_install
 
-binary-fixup/pdb2pqr::
-	DH_PYCENTRAL=nomove dh_pycentral -ppdb2pqr
-
-install/propka::
-	xmlto -o $(CURDIR)/debian/propka/usr/share/man/man1/ man debian/propka.1.xml
+override_dh_fixperms:
+	chmod 0644 debian/pdb2pqr/usr/share/pdb2pqr/pdb2pka/ligandclean/__init__.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




More information about the debian-med-commit mailing list