[med-svn] r10553 - trunk/packages/seqan/trunk/debian
Andreas Tille
tille at alioth.debian.org
Mon Apr 23 20:25:07 UTC 2012
Author: tille
Date: 2012-04-23 20:25:07 +0000 (Mon, 23 Apr 2012)
New Revision: 10553
Added:
trunk/packages/seqan/trunk/debian/seqan-apps.dirs
trunk/packages/seqan/trunk/debian/seqan-apps.links
trunk/packages/seqan/trunk/debian/seqan-dev.docs
trunk/packages/seqan/trunk/debian/seqan-dev.install
Modified:
trunk/packages/seqan/trunk/debian/rules
Log:
Rely more on debhelper files to simplify debian/rules; make sure package builds twice in a row; tried to switch from cdbs to dh but failed (left the changes as comments); TODO: Find a way to call cmake with the right options using dh
Modified: trunk/packages/seqan/trunk/debian/rules
===================================================================
--- trunk/packages/seqan/trunk/debian/rules 2012-04-23 20:16:51 UTC (rev 10552)
+++ trunk/packages/seqan/trunk/debian/rules 2012-04-23 20:25:07 UTC (rev 10553)
@@ -8,35 +8,45 @@
DEB_DH_BUILDDEB_ARGS = -- -Zxz
+## dh does not seem to propagate the correct options to cmake configure step
+#%:
+# dh $@ --parallel --buildsystem=cmake
+
+#override_dh_auto_build:
+makebuilddir::
+ # create backups of original *generated_forwards.h files to build twice in a row
+ for header in `find seqan -name "*generated_forwards.h"` ; do \
+ mkdir -p orig/`dirname $$header` ; \
+ cp -a $$header orig/$${header} ; \
+ done
+# dh_auto_build
+
+#override_dh_auto_install:
+# dh_auto_install
install/seqan-apps:: debian/stamp-install-seqan-apps
debian/stamp-install-seqan-apps:
- mkdir -p $(CURDIR)/debian/seqan-apps/usr/bin
- mkdir -p $(CURDIR)/debian/seqan-apps/usr/lib/sequan/bin
- mkdir -p $(CURDIR)/debian/seqan-apps/usr/share/doc/seqan-apps
#install binaries
- for APP in dfi insegt mason micro_razers pair_align param_chooser rabema razers razers2 read_analyzer rep_sep sak seqan_tcoffee seqcons snp_store splazers stellar tree_recon ; do \
- cp -p $(CURDIR)/obj*/apps/$$APP $(CURDIR)/debian/seqan-apps/usr/lib/sequan/bin/ ; done
- # Links for compatibility with seqan 1.2-1
- for APP in dfi micro_razers pair_align razers seqan_tcoffee seqcons tree_recon ; do \
- ln -s /usr/lib/sequan/bin/$$APP $(CURDIR)/debian/seqan-apps/usr/bin/$$APP ; done
+ for APP in `find $(CURDIR)/obj*/apps -mindepth 1 -maxdepth 1 -executable -type f` ; do \
+ cp -a $$APP $(CURDIR)/debian/seqan-apps/usr/lib/sequan/bin/ ; done
#install readmes
- for APP in dfi insegt mason micro_razers razers razers2 sak seqan_tcoffee splazers stellar ; do \
- cp -p $(CURDIR)/apps/$$APP/README $(CURDIR)/debian/seqan-apps/usr/share/doc/seqan-apps/README.$$APP ; done
- touch $@
+ for APP in `find apps -name README` ; do \
+ app=`echo $$APP | sed 's?.*apps/\(.\+\)/README?\1?'` ; \
+ echo $$app ; \
+ cp -a $$APP $(CURDIR)/debian/seqan-apps/usr/share/doc/seqan-apps/README.$$app ; \
+ done
-install/seqan-dev:: debian/stamp-install-seqan-dev
-debian/stamp-install-seqan-dev:
- mkdir -p $(CURDIR)/debian/seqan-dev/usr/include
- mkdir -p $(CURDIR)/debian/seqan-dev/usr/share/doc/seqan-dev
- cp -a $(CURDIR)/seqan $(CURDIR)/debian/seqan-dev/usr/include/
- cp -a $(CURDIR)/demos $(CURDIR)/debian/seqan-dev/usr/share/doc/seqan-dev
- cp -a $(CURDIR)/doc $(CURDIR)/debian/seqan-dev/usr/share/doc/seqan-dev
- touch $@
+#override_dh_auto_clean:
+# dh_auto_clean
+clean::
+ if [ -d orig ] ; then \
+ for header in `find orig -name "*generated_forwards.h"` ; do \
+ mv $${header} `echo $$header | sed 's?orig/??'` ; \
+ done ; \
+ fi
+ rm -rf orig
get-orig-source:
uscan --force-download
@echo successfully retrieved upstream tarball
-clean::
- $(RM) -r debian/stamp-*
Added: trunk/packages/seqan/trunk/debian/seqan-apps.dirs
===================================================================
--- trunk/packages/seqan/trunk/debian/seqan-apps.dirs (rev 0)
+++ trunk/packages/seqan/trunk/debian/seqan-apps.dirs 2012-04-23 20:25:07 UTC (rev 10553)
@@ -0,0 +1,2 @@
+usr/share/doc/seqan-apps
+usr/lib/sequan/bin
Added: trunk/packages/seqan/trunk/debian/seqan-apps.links
===================================================================
--- trunk/packages/seqan/trunk/debian/seqan-apps.links (rev 0)
+++ trunk/packages/seqan/trunk/debian/seqan-apps.links 2012-04-23 20:25:07 UTC (rev 10553)
@@ -0,0 +1,7 @@
+usr/lib/sequan/bin/dfi usr/bin/dfi
+usr/lib/sequan/bin/micro_razers usr/bin/micro_razers
+usr/lib/sequan/bin/pair_align usr/bin/pair_align
+usr/lib/sequan/bin/razers usr/bin/razers
+usr/lib/sequan/bin/seqan_tcoffee usr/bin/seqan_tcoffee
+usr/lib/sequan/bin/seqcons usr/bin/seqcons
+usr/lib/sequan/bin/tree_recon usr/bin/tree_recon
Added: trunk/packages/seqan/trunk/debian/seqan-dev.docs
===================================================================
--- trunk/packages/seqan/trunk/debian/seqan-dev.docs (rev 0)
+++ trunk/packages/seqan/trunk/debian/seqan-dev.docs 2012-04-23 20:25:07 UTC (rev 10553)
@@ -0,0 +1 @@
+demos
Added: trunk/packages/seqan/trunk/debian/seqan-dev.install
===================================================================
--- trunk/packages/seqan/trunk/debian/seqan-dev.install (rev 0)
+++ trunk/packages/seqan/trunk/debian/seqan-dev.install 2012-04-23 20:25:07 UTC (rev 10553)
@@ -0,0 +1,2 @@
+docs/* usr/share/doc/seqan-dev/html
+seqan usr/include
More information about the debian-med-commit
mailing list