[med-svn] [Git][med-team/gindex][master] Provide rudimentary autoconf patch

Andreas Tille (@tille) gitlab at salsa.debian.org
Wed Dec 8 17:06:46 GMT 2021



Andreas Tille pushed to branch master at Debian Med / gindex


Commits:
416a3a10 by Andreas Tille at 2021-12-08T18:06:20+01:00
Provide rudimentary autoconf patch

- - - - -


4 changed files:

- debian/control
- debian/copyright
- + debian/patches/autoconf.patch
- debian/patches/series


Changes:

=====================================
debian/control
=====================================
@@ -4,8 +4,9 @@ Priority: optional
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders: Antoni Villalonga <antoni at friki.cat>
 Build-Depends: debhelper-compat (= 13),
-               zlib1g-dev,
-               libisovic-seqlib-dev
+               libisovic-seqlib-dev,
+               libgtest-dev,
+               libsparsehash-dev
 Standards-Version: 4.6.0
 Homepage: https://github.com/isovic/gindex
 Vcs-Browser: https://salsa.debian.org/med-team/gindex


=====================================
debian/copyright
=====================================
@@ -3,6 +3,7 @@ Upstream-Name: gindex
 Upstream-Contact: https://github.com/isovic
 Source: https://github.com/isovic/gindex
 Files-Excluded: */googletest
+                src/sparsehash
 
 Files: *
 Copyright: 2017 Ivan Sovic


=====================================
debian/patches/autoconf.patch
=====================================
@@ -0,0 +1,114 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Mon, 22 Nov 2021 13:48:37 +0100
+Description: Create a proper library from the code to enable
+ linking in other projects.  Originally the code was supposed
+ to be copied into the code base of other projects
+
+--- /dev/null
++++ b/Makefile.am
+@@ -0,0 +1,4 @@
++SUBDIRS = src test-data test_src
++
++EXTRA_DIST = README.md LICENSE
++
+--- /dev/null
++++ b/configure.ac
+@@ -0,0 +1,63 @@
++#                                               -*- Autoconf -*-
++# Process this file with autoconf to produce a configure script.
++
++AC_INIT(gindex, 0.0, Ivan Sovic)
++AC_CONFIG_HEADERS([config.h])
++
++AC_PREREQ(2.57)
++
++#       Directory that contains install-sh and other auxiliary files
++AC_CONFIG_AUX_DIR([config])
++
++################################################################################
++#       According to (http://www.mail-archive.com/autoconf@gnu.org/msg14232.html)
++#               this macro should be after AC_INIT but before AM_INIT_AUTOMAKE
++################################################################################
++AC_CONFIG_MACRO_DIR(config)
++
++AM_INIT_AUTOMAKE([1.6 foreign dist-zip tar-ustar filename-length-max=299])
++
++LIB_VERSION=0:0
++
++AC_SUBST([VERSION])
++AC_SUBST([LIB_VERSION])
++
++AC_SUBST([VERSION])
++
++# Checks for programs.
++AC_PROG_LN_S
++AC_PROG_INSTALL
++AC_PROG_LIBTOOL
++
++################################################################################
++# calling AC_PROG_CXX resets CXXFLAGS, we use our own flags set in the
++#       the AX_CXXFLAGS macro below.
++# So we cache the argument to configure
++#       here in ARG_CXX_FLAGS (so that our macro does not override them)
++################################################################################
++ARG_CXX_FLAGS="$CXXFLAGS"
++AC_PROG_CXX
++
++#Ranlib handled by check for libtool
++CXXFLAGS="$ARG_CXX_FLAGS"
++AX_CXXFLAGS
++
++AC_SUBST(CXXFLAGS)
++
++CPPFLAGS="-I\$(top_srcdir) $CPPFLAGS"
++# Checks for libraries.
++
++# Checks for header files.
++AC_HEADER_STDC
++AC_CHECK_HEADERS([stdlib.h])
++
++AC_PROG_MAKE_SET
++
++AC_CONFIG_FILES([
++        Makefile
++        src/Makefile
++        test-data/Makefile
++        test_src/Makefile
++        ])
++AC_OUTPUT
++
+--- /dev/null
++++ b/src/Makefile.am
+@@ -0,0 +1,19 @@
++lib_LTLIBRARIES  = libgindex.la
++
++libgindexdir=$(includedir)/gindex
++libgindex_HEADERS=minimizer_index/compiled_shape.h minimizer_index/index_pos.h minimizer_index/minimizer_generator.h \
++                  minimizer_index/minimizer_index_consts.h minimizer_index/minimizer_index.h minimizer_index/seed.h \
++libgindex_la_SOURCES = main.cc \
++                       minimizer_index/compiled_shape.cc minimizer_index/experimental.cc minimizer_index/index_pos.cc \
++                       minimizer_index/minimizer_generator.cc minimizer_index/minimizer_index.cc minimizer_index/seed.cc
++libgindex_la_LDFLAGS = -version-info @LIB_VERSION@
++
++libgindex_la_CPPFLAGS = $(INCLUDES)
++
++#bin_PROGRAMS = test
++#gindex_SOURCES = test.cc
++#gindex_LDADD = libgindex.la -ldivsufsort -lseqan2
++
++#pkgconfigdir=$(libdir)/pkgconfig
++#pkgconfig_DATA = libgindex.pc
++
+--- /dev/null
++++ b/test-data/Makefile.am
+@@ -0,0 +1,2 @@
++EXTRA_DIST = lambda/layout-miniasm.gfa  lambda/NC_001416.fa  lambda/reads.fastq \
++             simple/test1.fa simple/test2.fa
+--- /dev/null
++++ b/test_src/Makefile.am
+@@ -0,0 +1,5 @@
++EXTRA_DIST = main_test.cc test1.h
++#noinst_PROGRAMS = main_test
++#main_test_SOURCES = main_test.cc
++#LDADD           = $(top_builddir)/src/libgindex.la -lgtest -lpthread
++


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
+autoconf.patch
 use_isovic-seqlib.patch



View it on GitLab: https://salsa.debian.org/med-team/gindex/-/commit/416a3a107cec69fad5cbf52e54a873e7dba3c901

-- 
View it on GitLab: https://salsa.debian.org/med-team/gindex/-/commit/416a3a107cec69fad5cbf52e54a873e7dba3c901
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20211208/83630785/attachment-0001.htm>


More information about the debian-med-commit mailing list