[SCM] Packaging for getfem++ branch, master, updated. 15903dbf7e32f3732921529d04a41fe7ea126fcf
Anton Gladky
gladky.anton at gmail.com
Wed Jan 18 18:59:15 UTC 2012
The following commit has been merged in the master branch:
commit 15903dbf7e32f3732921529d04a41fe7ea126fcf
Author: Anton Gladky <gladky.anton at gmail.com>
Date: Wed Jan 18 19:59:07 2012 +0100
Use dh9 for debian/rules.
diff --git a/debian/rules b/debian/rules
index 70b39db..a1d8dae 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +1,8 @@
#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
+%:
+ dh $@ --with python2
+#=====================================================================
# 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)
@@ -46,10 +39,9 @@ major=5
#major=`ls src/.libs/lib*.so.* | \
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- # Add here commands to configure the package.
+#=====================================================================
+
+override_dh_auto_configure:
aclocal -I ./m4
libtoolize -f
autoheader
@@ -58,37 +50,13 @@ configure-stamp:
automake -a --gnu `find . -name Makefile.am | sed -e 's@\./\(.*\)\.am@\1 at g'`
./configure $(configure_flags)
- touch configure-stamp
-
-build: build-stamp
-build-stamp: configure-stamp
- dh_testdir
-
- # Add here commands to compile the package.
- $(MAKE)
- # Workaround for the other archs without scilab getfem++
+override_dh_auto_build:
+ dh_auto_build
mkdir -p $(CURDIR)/debian/tmp/usr/lib/scilab-getfem++/
- touch $@
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
- # Add here commands to clean up after the build process.
- [ ! -f Makefile ] || $(MAKE) clean
-
- 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
+override_dh_auto_install:
+ dh_auto_install --list-missing -- DESTDIR=$(CURDIR)/debian/tmp
# Workaround for the other archs without scilab getfem++
mkdir -p $(CURDIR)/debian/tmp/usr/lib/scilab-getfem++/
mkdir -p $(CURDIR)/debian/scilab-getfem++/usr/share/scilab/contrib/
@@ -96,44 +64,14 @@ install: build
rm -f scilab-getfem++; \
ln -s ../../../lib/scilab-getfem++/ getfem++
+override_dh_installchangelogs:
+ dh_installchangelogs ChangeLog
-# Build architecture-independent files here.
-binary-indep: install
- dh_testdir
- dh_testroot
- dh_installchangelogs -i ChangeLog
- dh_installdocs -i
- dh_installexamples -i #not really needed
- dh_install -i --list-missing --sourcedir=debian/tmp
-# dh_installman -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: install
- dh_testdir
- dh_testroot
- dh_installchangelogs -a ChangeLog
- dh_installdocs -a
- dh_installexamples -a #not really needed
- dh_install -a --list-missing --sourcedir=debian/tmp
-# dh_installman -a
- dh_link -a
+override_dh_strip-arch:
dh_strip -a --dbg-package=libgetfem++-dbg
- dh_compress -a
- dh_fixperms -a
- dh_pysupport --package=python-getfem++
- dh_makeshlibs -a
- dh_installdeb -a
- LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):$(CURDIR)/debian/tmp/usr/lib/ dh_shlibdeps -a -- --ignore-missing-info
- dh_gencontrol -a
- dh_md5sums -a
- dh_builddeb -a
-binary: binary-indep binary-arch
+override_dh_pysupport-arch:
+ dh_pysupport --package=python-getfem++
-.PHONY: build clean binary-indep binary-arch binary install configure
+override_dh_auto_test:
+ dh_auto_test || true
--
Packaging for getfem++
More information about the debian-science-commits
mailing list