[med-svn] r19440 - trunk/packages/hyphy/trunk/debian
Andreas Tille
tille at moszumanska.debian.org
Mon Jun 29 14:03:27 UTC 2015
Author: tille
Date: 2015-06-29 14:03:26 +0000 (Mon, 29 Jun 2015)
New Revision: 19440
Added:
trunk/packages/hyphy/trunk/debian/clean
Modified:
trunk/packages/hyphy/trunk/debian/rules
Log:
Add test target, lower cased executables
Added: trunk/packages/hyphy/trunk/debian/clean
===================================================================
--- trunk/packages/hyphy/trunk/debian/clean (rev 0)
+++ trunk/packages/hyphy/trunk/debian/clean 2015-06-29 14:03:26 UTC (rev 19440)
@@ -0,0 +1 @@
+gmon.out
Modified: trunk/packages/hyphy/trunk/debian/rules
===================================================================
--- trunk/packages/hyphy/trunk/debian/rules 2015-06-29 12:54:35 UTC (rev 19439)
+++ trunk/packages/hyphy/trunk/debian/rules 2015-06-29 14:03:26 UTC (rev 19440)
@@ -2,20 +2,6 @@
# DH_VERBOSE := 1
-# some helpful variables - uncomment them if needed
-# shamelessly stolen from http://jmtd.net/log/awk/
-#DEBVERS := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
-#VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
-#DEBFLAVOR := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print $$2}')
-#DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
-#DEBIAN_BRANCH := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' debian/gbp.conf)
-#GIT_TAG := $(subst ~,_,$(VERSION))
-
-# alternatively to manually set those variables you can
-# include /usr/share/cdbs/1/rules/buildvars.mk
-# and use what is set there. Any hint whether dh might set variables in
-# a similar manner are welcome.
-
%:
dh $@ --buildsystem=cmake
@@ -23,4 +9,17 @@
dh_auto_configure -- -DINSTALL_PREFIX=/usr
override_dh_auto_build:
- dh_auto_build -- HYPHYGTK MPI
+ dh_auto_build -- HYPHYGTK MPI GTEST
+ # LIB no idea about the purpose of the dynamic library - executables are not simply linked against it
+
+override_dh_auto_test:
+ ./obj-$(DEB_TARGET_GNU_TYPE)/HYPHYGTEST
+
+override_dh_install:
+ dh_install
+ # smallcaps for executables
+ for bindir in `find . -type d -name bin` ; do \
+ for bin in $${bindir}/* ; do \
+ ln -s `basename $${bin}` $${bindir}/`basename $${bin} | tr [A-Z] [a-z]` ; \
+ done ; \
+ done
More information about the debian-med-commit
mailing list