[med-svn] [kmer-tools] 01/01: Make changes to build a shared library for libmeryl
Afif Elghraoui
afif-guest at moszumanska.debian.org
Wed May 27 04:16:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
afif-guest pushed a commit to branch sharedlibs
in repository kmer-tools.
commit 5cb2610ae7cc1eab82e6099a8d9f1eca4d572ea1
Author: Afif Elghraoui <afif at ghraoui.name>
Date: Tue May 26 21:08:20 2015 -0700
Make changes to build a shared library for libmeryl
This patch breaks the package build since d-shlibmove
expects to find a symlink to the library<soname>. I don't
have sonames for any of this packages' libraries.
---
debian/control | 21 ++++++++++++++++++++-
debian/patches/meryl-sharedlib.patch | 17 +++++++++++++++++
debian/patches/series | 1 +
debian/rules | 6 ++++++
4 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 2efd89c..8ad4ed9 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Priority: optional
Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
Uploaders: Afif Elghraoui <afif at ghraoui.name>
Build-Depends: debhelper (>= 9),
+ d-shlibs,
libbz2-dev
Standards-Version: 3.9.6
Homepage: http://kmer.sourceforge.net
@@ -52,10 +53,28 @@ Description: in- and out-of-core kmer counting and utilities
counts, or can perform mathematical and set operations
on the processed data files.
+Package: libmeryl
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Description: in- and out-of-core kmer counting and utilities (shared library)
+ meryl computes the kmer content of genomic sequences. Kmer
+ content is represented as a list of kmers and the number of
+ times each occurs in the input sequences. The kmer can be
+ restricted to only the forward kmer, only the reverse kmer,
+ or the canonical kmer (lexicographically smaller of the
+ forward and reverse kmer at each location). Meryl can
+ report the histogram of counts, the list of kmers and their
+ counts, or can perform mathematical and set operations
+ on the processed data files.
+ .
+ This package contains the meryl shared library
+
Package: libmeryl-dev
Architecture: any
Section: libdevel
-Depends: ${shlibs:Depends},
+Depends: libmeryl,
${misc:Depends}
Description: in- and out-of-core kmer counting and utilities (development lib)
meryl computes the kmer content of genomic sequences. Kmer
diff --git a/debian/patches/meryl-sharedlib.patch b/debian/patches/meryl-sharedlib.patch
new file mode 100644
index 0000000..36303dd
--- /dev/null
+++ b/debian/patches/meryl-sharedlib.patch
@@ -0,0 +1,17 @@
+Description: Build shared library for libmeryl
+Author: Afif Elghraoui <afif at ghraoui.name>
+Last-Update: 2015-05-26
+--- kmer-tools.orig/libmeryl/Make.include
++++ kmer-tools/libmeryl/Make.include
+@@ -7,9 +7,11 @@
+ $/.CXX_SRCS := $/libmeryl.C
+ $/.CXX_INCS := $/libmeryl.H
+ $/.CXX_LIBS := $/libmeryl.a
++$/.CXX_SHLIBS := $/libmeryl.so
+ $/.CLEAN := $/*.o
+
+ $/libmeryl.a : $/libmeryl.o
++$/libmeryl.so : $/libmeryl.o
+
+ $(eval $/%.d $/%.o: CXXFLAGS+=-I${LIBBIO/} -I${LIBSEQ/} -I${LIBUTL/})
+
diff --git a/debian/patches/series b/debian/patches/series
index 4fad957..89a8ad1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+meryl-sharedlib.patch
kazlib.patch
remove-kazlib.patch
diff --git a/debian/rules b/debian/rules
index 6e1315e..ceadf9b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,6 +24,12 @@ override_dh_auto_build:
WITHOUT="$(filter-out $(meryl), $(subdirectories))" install
ln -sf $(shell uname)-* installdir
+override_dh_install:
+ d-shlibmove --commit \
+ --multiarch \
+ --exclude-a \
+ installdir/lib/libmeryl.so
+
override_dh_auto_clean:
$(MAKE) real-clean
rm -rf $(shell uname)-* installdir
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/kmer-tools.git
More information about the debian-med-commit
mailing list