[Pkg-gnutls-commits] r1871 - in /packages/libgcrypt11/trunk/debian: changelog rules

ametzler at users.alioth.debian.org ametzler at users.alioth.debian.org
Mon Aug 19 18:04:13 UTC 2013


Author: ametzler
Date: Mon Aug 19 18:04:12 2013
New Revision: 1871

URL: http://svn.debian.org/wsvn/pkg-gnutls/?sc=1&rev=1871
Log:
Convert to dh and move building of ps and html docs to
override_dh_auto_build-indep.

Modified:
    packages/libgcrypt11/trunk/debian/changelog
    packages/libgcrypt11/trunk/debian/rules

Modified: packages/libgcrypt11/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/libgcrypt11/trunk/debian/changelog?rev=1871&op=diff
==============================================================================
--- packages/libgcrypt11/trunk/debian/changelog	(original)
+++ packages/libgcrypt11/trunk/debian/changelog	Mon Aug 19 18:04:12 2013
@@ -1,6 +1,8 @@
 libgcrypt11 (1.5.3-2) UNRELEASED; urgency=low
 
   * NOT RELEASED YET
+  * Convert to dh and move building of ps and html docs to
+    override_dh_auto_build-indep.
 
  -- Andreas Metzler <ametzler at debian.org>  Thu, 25 Jul 2013 14:35:49 +0200
 

Modified: packages/libgcrypt11/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/libgcrypt11/trunk/debian/rules?rev=1871&op=diff
==============================================================================
--- packages/libgcrypt11/trunk/debian/rules	(original)
+++ packages/libgcrypt11/trunk/debian/rules	Mon Aug 19 18:04:12 2013
@@ -1,32 +1,31 @@
 #! /usr/bin/make -f
 # Build the libgcrypt package for Debian.
 
+override_dh_auto_configure:
+	dh_auto_configure --verbose -- \
+		--enable-noexecstack \
+		--enable-ld-version-script --enable-static \
+		--libdir=/lib/$(DEB_HOST_MULTIARCH)
 
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/autotools.mk
+override_dh_makeshlibs:
+	dh_makeshlibs -V 'libgcrypt11 (>=1.5.0-0)' \
+		--add-udeb=libgcrypt11-udeb -- -c4
 
-DEB_CONFIGURE_EXTRA_FLAGS := --enable-noexecstack \
-	--enable-ld-version-script --enable-static \
-	--libdir=/lib/$(DEB_HOST_MULTIARCH)
-ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
-DEB_MAKE_CHECK_TARGET = check
-endif
+override_dh_auto_build-indep:
+	cd doc && $(MAKE) stamp-vti
+	cd doc && $(MAKE) gcrypt.ps html
 
-DEB_DH_STRIP_ARGS = --dbg-package=libgcrypt11-dbg
-DEB_DH_MAKESHLIBS_ARGS := -V 'libgcrypt11 (>=1.5.0-0)' \
-	--add-udeb=libgcrypt11-udeb -- -c4
+override_dh_auto_install:
+	dh_auto_install --verbose
+	mkdir -p -m755 debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
+	cd debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) \
+		&& ln -v -s /lib/$(DEB_HOST_MULTIARCH)/`readlink ../../../lib/*/*.so` libgcrypt.so
+	rm -v debian/tmp/lib/$(DEB_HOST_MULTIARCH)/*.so
+	mv -v debian/tmp/lib/$(DEB_HOST_MULTIARCH)/*.a \
+		debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
 
-common-configure-impl:: $(DEB_BUILDDIR)/doc/stamp-vti
-$(DEB_BUILDDIR)/doc/stamp-vti:
-	cd $(DEB_SRCDIR)/doc && $(MAKE) stamp-vti
+override_dh_strip:
+	dh_strip --dbg-package=libgcrypt11-dbg
 
-build/libgcrypt11-doc:: $(DEB_BUILDDIR)/config.status
-	cd $(DEB_SRCDIR)/doc && $(MAKE) gcrypt.ps html
-
-install/libgcrypt11-dev::
-	mkdir -p -m755 $(DEB_SRCDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
-	cd $(DEB_SRCDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) \
-		&& ln -v -s /lib/$(DEB_HOST_MULTIARCH)/`readlink ../../../lib/*/*.so` libgcrypt.so
-	rm -v $(DEB_SRCDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/*.so
-	mv -v $(DEB_SRCDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/*.a \
-		$(DEB_SRCDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
+%:
+	dh $@ --with autotools_dev




More information about the Pkg-gnutls-commits mailing list