[med-svn] [seqan2] 01/01: add pkg-config file

Sascha Steinbiss satta at debian.org
Sat Sep 24 21:46:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

satta pushed a commit to branch master
in repository seqan2.

commit 2e193f541a73fd37c23c47912569dd4b9b6bdbbe
Author: Sascha Steinbiss <satta at debian.org>
Date:   Sat Sep 24 21:45:58 2016 +0000

    add pkg-config file
---
 debian/changelog             | 5 +++--
 debian/libseqan2-dev.install | 1 +
 debian/rules                 | 7 ++++++-
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 012e75c..cfe83ab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,11 @@
-seqan2 (2.2.0+dfsg-2) UNRELEASED; urgency=medium
+seqan2 (2.2.0+dfsg-2) unstable; urgency=medium
 
   * Team upload.
   * Declare Conflicts: with seqan-dev (API incompatible)
     See https://github.com/seqan/seqan/issues/1820 for upstream discussion.
-    Addresses #838340.
+    Closes: #838340.
   * Add CMake modules needed to build projects based on SeqAn.
+  * Add pkg-config file.
 
  -- Sascha Steinbiss <satta at debian.org>  Thu, 22 Sep 2016 20:10:12 +0000
 
diff --git a/debian/libseqan2-dev.install b/debian/libseqan2-dev.install
index 1c3b0f1..ddea065 100644
--- a/debian/libseqan2-dev.install
+++ b/debian/libseqan2-dev.install
@@ -1,2 +1,3 @@
 include/seqan	usr/include
 util/cmake	usr/share/seqan
+seqan-2.pc	usr/lib/pkgconfig
diff --git a/debian/rules b/debian/rules
index bcf9ad4..a345e19 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@
 export DH_VERBOSE=1
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+UPSTREAM_VERSION = $(shell dpkg-parsechangelog -SVersion | egrep -o '^[0-9.]+')
 
 # import hardening, adding CPPFLAGS to CFLAGS, in case dh doesn't
 # See https://wiki.debian.org/Hardening#Notes_for_packages_using_CMake
@@ -40,6 +41,10 @@ override_dh_auto_build:
 	# Could not import extension sphinxcontrib.bibtex (exception: No module named sphinxcontrib.bibtex)
 	# Seems there is no sphinx module bibtex - thus deactivating creation of html manual
 	# cd manual && make html
+	sed -e "s#@CMAKE_INSTALL_PREFIX@#/usr#g" \
+	    -e "s/@SEQAN_VERSION_STRING@/$(UPSTREAM_VERSION)/g" \
+	    -e "s/@CMAKE_PROJECT_NAME@/seqan/g" \
+	    util/pkgconfig/seqan.pc.in > seqan-2.pc
 
 override_dh_install:
 	dh_install
@@ -58,7 +63,7 @@ override_dh_auto_clean:
 	    mv $${header} `echo $$header | sed 's?orig/??'` ; \
 	  done ; \
 	fi
-	rm -rf orig
+	rm -rf orig seqan-2.pc
 
 override_dh_installman:
 	for bin in `ls $(CURDIR)/debian/$(pkgapps)/usr/lib/seqan/bin` ; do \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/seqan2.git



More information about the debian-med-commit mailing list