[med-svn] [ngs-sdk] 02/04: Try d-shlibs options really hard to work around the strange layout of libraries
Andreas Tille
tille at debian.org
Mon Feb 2 22:10:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository ngs-sdk.
commit 0ae468d6072d64343da8448b9debf4bd98eb1510
Author: Andreas Tille <tille at debian.org>
Date: Mon Feb 2 20:39:36 2015 +0100
Try d-shlibs options really hard to work around the strange layout of libraries
---
debian/clean | 1 +
debian/control | 25 ++++++++++++++++++++++++-
debian/rules | 30 ++++++++++++++++++++++--------
3 files changed, 47 insertions(+), 9 deletions(-)
diff --git a/debian/clean b/debian/clean
index bdc997d..ca31edd 100644
--- a/debian/clean
+++ b/debian/clean
@@ -10,3 +10,4 @@ ngs-sdk/Makefile.config.install.linux.x86_64.prl
ngs-sdk/Makefile.config
ngs-sdk/Makefile.config.linux.x86_64
ngs-sdk/reconfigure
+README.html
diff --git a/debian/control b/debian/control
index 6f8691b..d65c1cc 100644
--- a/debian/control
+++ b/debian/control
@@ -4,13 +4,15 @@ Priority: optional
Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
Uploaders: Andreas Tille <tille at debian.org>
Build-Depends: debhelper (>= 9),
+ d-shlibs,
python-markdown
Standards-Version: 3.9.6
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/ngs-sdk.git
Vcs-Git: git://anonscm.debian.org/debian-med/ngs-sdk.git
Homepage: https://github.com/ncbi/ngs
-Package: ngs-sdk
+Package: libngs-sdk1
+Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Next Generation Sequencing language Bindings
@@ -26,3 +28,24 @@ Description: Next Generation Sequencing language Bindings
the code in one language and code in another - especially between C++
and Java.
+Package: libngs-sdk-dev
+Section: libdevel
+Architecture: any
+Depends: ${shlibs:Depends},
+ ${misc:Depends},
+ libngs-sdk1 (= ${binary:Version})
+Description: Next Generation Sequencing language Bindings (development)
+ NGS is a new, domain-specific API for accessing reads, alignments and
+ pileups produced from Next Generation Sequencing. The API itself is
+ independent from any particular back-end implementation, and supports
+ use of multiple back-ends simultaneously. It also provides a library for
+ building new back-end "engines". The engine for accessing SRA data is
+ contained within the sister repository ncbi-vdb.
+ .
+ The API is currently expressed in C++, Java and Python languages. The
+ design makes it possible to maintain a high degree of similarity between
+ the code in one language and code in another - especially between C++
+ and Java.
+ .
+ This is the development package.
+
diff --git a/debian/rules b/debian/rules
index 243e75c..124bc31 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@
#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}')
+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))
@@ -16,24 +16,38 @@
# and use what is set there. Any hint whether dh might set variables in
# a similar manner are welcome.
+OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
+CPU := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
+BUILDTYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+SODIR := $(DEBPKGNAME)/$(BUILDTYPE)/$(DEBPKGNAME)/$(OS)/gcc/$(CPU)
+
%:
dh $@
override_dh_auto_clean:
- if [ -e ngs-sdk/Makefile.config.linux.x86_64] ; then \
- dh_auto_clean --sourcedirectory=ngs-sdk ; \
+ if [ -e ngs-sdk/Makefile.config.$(OS).$(CPU)] ; then \
+ dh_auto_clean --sourcedirectory=$(DEBPKGNAME) ; \
fi
+ rm -rf $(DEBPKGNAME)/$(BUILDTYPE)
override_dh_auto_configure:
# ./configure --prefix=/usr --javadir=/usr/share/java
# dh_auto_configure --sourcedirectory=ngs-sdk
# # that's no standard configure script lacking support of default options \
- ./configure --build=x86_64-linux-gnu --prefix=/usr ; \
+ ./configure --build=$(BUILDTYPE) --prefix=/usr ; \
override_dh_auto_build:
- dh_auto_build --sourcedirectory=ngs-sdk
- # dh_auto_build
+ dh_auto_build --sourcedirectory=$(DEBPKGNAME)
markdown_py -f README.html README.md
-#get-orig-source:
-# . debian/get-orig-source
+override_dh_auto_install:
+ d-shlibmove --commit \
+ --multiarch \
+ --devunversioned \
+ --exclude-a \
+ --exclude-la \
+ --movedev "$(SODIR)/rel/lib/*.a*" usr/lib/$(BUILDTYPE) \
+ --movedev "$(SODIR)/rel/ilib/*.a" usr/lib/$(BUILDTYPE) \
+ $(SODIR)/rel/lib/libngs-sdk.so
+
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/ngs-sdk.git
More information about the debian-med-commit
mailing list