From: "Martin Mokrejs" <mmokrejs@fold.natur.cuni.cz>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/stringtie/, sci-biology/stringtie/files/
Date: Mon, 25 Jun 2018 21:33:47 +0000 (UTC) [thread overview]
Message-ID: <1529962413.ea5a2c0348666f4e6ff00c25a5597d4e5c0fd084.mmokrejs@gentoo> (raw)
commit: ea5a2c0348666f4e6ff00c25a5597d4e5c0fd084
Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Mon Jun 25 21:33:33 2018 +0000
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Mon Jun 25 21:33:33 2018 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ea5a2c03
sci-biology/stringtie: drop bundled samtools-0.18.1, fix Makefile
Also use properly named CXX and CXXFLAGS variables, respect their initial
values.
Package-Manager: Portage-2.3.40, Repoman-2.3.9
sci-biology/stringtie/files/Makefile.patch | 122 +++++++++++++++++++++++++++
sci-biology/stringtie/stringtie-1.2.2.ebuild | 9 +-
2 files changed, 130 insertions(+), 1 deletion(-)
diff --git a/sci-biology/stringtie/files/Makefile.patch b/sci-biology/stringtie/files/Makefile.patch
new file mode 100644
index 000000000..8f5379b6b
--- /dev/null
+++ b/sci-biology/stringtie/files/Makefile.patch
@@ -0,0 +1,122 @@
+--- stringtie-1.2.2/Makefile 2018-06-25 23:28:55.558150677 +0200
++++ stringtie-1.2.2/Makefile 2018-06-25 23:29:55.819798846 +0200
+@@ -1,13 +1,15 @@
+-BAM := ./samtools-0.1.18
++BAM_INC = $(EPREFIX)/usr/include/bam-0.1-legacy
++BAM_LIB = # or -L/some/path
++BAM_LIBS = -lbam-0.1-legacy
+ #path to the directory where the samtools package was built (in place)
+ #so libbam.a and *.h files MUST be in here
+
+ GDIR :=./gclib
+
+-INCDIRS := -I. -I${GDIR} -I${BAM}
++INCDIRS := -I. -I${GDIR} -I${BAM_INC}
+
+-#CC := clang++
+-CC := g++
++#CXX := clang++
++CXX ?= g++
+
+
+ ifneq (,$(findstring nothreads,$(MAKECMDGOALS)))
+@@ -15,12 +17,12 @@
+ endif
+
+ #detect MinGW (Windows environment)
+-ifneq (,$(findstring mingw,$(shell ${CC} -dumpmachine)))
++ifneq (,$(findstring mingw,$(shell ${CXX} -dumpmachine)))
+ WINDOWS=1
+ endif
+
+ LFLAGS =
+-# MinGW32 GCC 4.5 link problem fix
++# MinGW32 GCXX 4.5 link problem fix
+ #ifdef WINDOWS
+ ifneq (,$(findstring 4.5.,$(shell g++ -dumpversion)))
+ LFLAGS += -static-libstdc++ -static-libgcc
+@@ -50,7 +52,7 @@
+ #LINKER := clang++
+ LINKER := g++
+
+-LIBS := -lbam -lz
++LIBS := ${BAM_LIBS} -lz
+
+ # Non-windows systems need pthread
+ ifndef WINDOWS
+@@ -68,27 +70,27 @@
+ #ifneq (,$(findstring release,$(MAKECMDGOALS)))
+ ifneq (,$(filter %release %static, $(MAKECMDGOALS)))
+ # -- release build
+- CFLAGS := -O3 -DNDEBUG -g $(BASEFLAGS)
+- LDFLAGS := -g -L${BAM} ${LFLAGS}
++ CXXFLAGS += -DNDEBUG -g $(BASEFLAGS)
++ LDFLAGS += ${BAM_LIB} ${LFLAGS}
+ ifneq (,$(findstring static,$(MAKECMDGOALS)))
+ LDFLAGS += -static-libstdc++ -static-libgcc
+ endif
+ else
+ ifneq (,$(filter %memcheck %memdebug, $(MAKECMDGOALS)))
+ #make memcheck : use the statically linked address sanitizer in gcc 4.9.x
+- GCCVER49 := $(shell expr `g++ -dumpversion | cut -f1,2 -d.` \>= 4.9)
+- ifeq "$(GCCVER49)" "0"
++ GCXXVER49 := $(shell expr `g++ -dumpversion | cut -f1,2 -d.` \>= 4.9)
++ ifeq "$(GCXXVER49)" "0"
+ $(error gcc version 4.9 or greater is required for this build target)
+ endif
+- CFLAGS := -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=address $(BASEFLAGS)
+- GCCVER5 := $(shell expr `g++ -dumpversion | cut -f1 -d.` \>= 5)
+- ifeq "$(GCCVER5)" "1"
+- CFLAGS += -fsanitize=bounds -fsanitize=float-divide-by-zero -fsanitize=vptr
+- CFLAGS += -fsanitize=float-cast-overflow -fsanitize=object-size
+- #CFLAGS += -fcheck-pointer-bounds -mmpx
++ CXXFLAGS := -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=address $(BASEFLAGS)
++ GCXXVER5 := $(shell expr `g++ -dumpversion | cut -f1 -d.` \>= 5)
++ ifeq "$(GCXXVER5)" "1"
++ CXXFLAGS += -fsanitize=bounds -fsanitize=float-divide-by-zero -fsanitize=vptr
++ CXXFLAGS += -fsanitize=float-cast-overflow -fsanitize=object-size
++ #CXXFLAGS += -fcheck-pointer-bounds -mmpx
+ endif
+- CFLAGS := -g -DDEBUG -D_DEBUG -DGDEBUG -fno-common -fstack-protector $(CFLAGS)
+- LDFLAGS := -g -L${BAM}
++ CXXFLAGS += -DDEBUG -D_DEBUG -DGDEBUG -fno-common -fstack-protector $(CXXFLAGS)
++ LDFLAGS += ${BAM_LIB}
+ #LIBS := -Wl,-Bstatic -lasan -lubsan -Wl,-Bdynamic -ldl $(LIBS)
+ LIBS := -lasan -lubsan -ldl $(LIBS)
+ else
+@@ -97,13 +99,13 @@
+ GMEMTRACE=1
+ endif
+ #just plain debug build
+- CFLAGS := -g -DDEBUG -D_DEBUG -DGDEBUG $(BASEFLAGS)
+- LDFLAGS := -g -L${BAM}
++ CXXFLAGS += -DDEBUG -D_DEBUG -DGDEBUG $(BASEFLAGS)
++ LDFLAGS += ${BAM_LIB}
+ endif
+ endif
+
+ %.o : %.cpp
+- ${CC} ${CFLAGS} -c $< -o $@
++ ${CXX} ${CXXFLAGS} -c $< -o $@
+
+ OBJS := ${GDIR}/GBase.o ${GDIR}/GArgs.o ${GDIR}/GStr.o ${GDIR}/GBam.o \
+ ${GDIR}/gdna.o ${GDIR}/codons.o ${GDIR}/GFaSeqGet.o ${GDIR}/gff.o
+@@ -130,9 +132,7 @@
+ rlink.o : rlink.h tablemaker.h $(GDIR)/GBam.h $(GDIR)/GBitVec.h
+ tmerge.o : rlink.h tmerge.h
+ tablemaker.o : tablemaker.h rlink.h
+-${BAM}/libbam.a:
+- cd ${BAM} && make lib
+-stringtie: ${BAM}/libbam.a $(OBJS) stringtie.o
++stringtie: $(OBJS) stringtie.o
+ ${LINKER} ${LDFLAGS} -o $@ ${filter-out %.a %.so, $^} ${LIBS}
+
+ .PHONY : clean cleanall cleanAll allclean
+@@ -143,7 +143,6 @@
+ @${RM} stringtie stringtie.o* stringtie.exe $(OBJS)
+ @${RM} core.*
+ allclean cleanAll cleanall:
+- cd ${BAM} && make clean
+ @${RM} stringtie stringtie.o* stringtie.exe $(OBJS)
+ @${RM} core.*
+
diff --git a/sci-biology/stringtie/stringtie-1.2.2.ebuild b/sci-biology/stringtie/stringtie-1.2.2.ebuild
index 4bcc049de..1f38bf7cd 100644
--- a/sci-biology/stringtie/stringtie-1.2.2.ebuild
+++ b/sci-biology/stringtie/stringtie-1.2.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -17,6 +17,13 @@ IUSE=""
DEPEND="sci-biology/samtools:0.1-legacy" # bundled samtools-0.1.18
RDEPEND="${DEPEND}"
+PATCHES=( "${FILESDIR}"/Makefile.patch )
+
+src_prepare(){
+ default
+ rm -r samtools-0.1.18 || die
+}
+
src_compile(){
emake release
}
next reply other threads:[~2018-06-25 21:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-25 21:33 Martin Mokrejs [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-06-26 8:15 [gentoo-commits] proj/sci:master commit in: sci-biology/stringtie/, sci-biology/stringtie/files/ Martin Mokrejs
2018-06-27 12:37 Martin Mokrejs
2021-03-06 14:55 Andrew Ammerlaan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1529962413.ea5a2c0348666f4e6ff00c25a5597d4e5c0fd084.mmokrejs@gentoo \
--to=mmokrejs@fold.natur.cuni.cz \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox