[SCM] Herb packaging branch, master, updated. 538cde46da99b5dced14f720b4469d76b8f35bae

أحÙد الÙØ­Ùودي (Ahmed El-Mahmoudy) aelmahmoudy at users.sourceforge.net
Fri Jul 10 12:50:50 UTC 2009


The following commit has been merged in the master branch:
commit d8a45c28ec01efa0f4c7a42ed05ae5d2412288a6
Author: أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at users.sourceforge.net>
Date:   Fri Jul 10 11:27:41 2009 +0300

    Simplify rules file
    Install ChangeLog as upstream changelog
    Install NEWS using dh_installdocs

diff --git a/debian/docs b/debian/docs
index 766f888..3945a58 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1,2 +1,3 @@
+NEWS
 HACKING
 README
diff --git a/debian/rules b/debian/rules
index 2d3cf3b..f06f03c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,108 +1,13 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
-CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-else
-CROSS= --build $(DEB_BUILD_GNU_TYPE)
-endif
-
-config.status: configure
-	dh_testdir
-	# Add here commands to configure the package.
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	cp -f /usr/share/misc/config.guess config.guess
-endif
+%@:
+	dh $@
 
+override_dh_auto_configure:
 	# sysconfdir shouldn't be needed in the future:
 	./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc/herb CFLAGS="$(CFLAGS)"
 	#LDFLAGS="-Wl,-z,defs"
 
-
-build: build-stamp
-build-stamp:  config.status 
-	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE)
-
-	touch $@
-
-clean: 
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp 
-
-	# Add here commands to clean up after the build process.
-	[ ! -f Makefile ] || $(MAKE) distclean
-	rm -f config.sub config.guess
-
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-
-	# Add here commands to install the package into debian/tmp
-	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir -i
-	dh_testroot -i
-	dh_installchangelogs -i NEWS
-	dh_installdocs -i
-	dh_installexamples -i
-	dh_install -i
-#	dh_installemacsen -i
-#	dh_installinfo -i
-	dh_lintian -i
-	dh_installman -i
-	dh_link -i
-	dh_strip -i
-	dh_compress -i
-	dh_fixperms -i
-	dh_installdeb -i
-	dh_gencontrol -i
-	dh_md5sums -i
-	dh_builddeb -i
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs NEWS
-	dh_installdocs
-	dh_install --sourcedir=debian/tmp
-#	dh_installmenu
-#	dh_installemacsen
-#	dh_installinfo
-	dh_lintian
-	dh_installman
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_makeshlibs
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 
+override_dh_installchangelogs:
+	dh_installchangelogs ChangeLog

-- 
Herb packaging



More information about the debian-science-commits mailing list