Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/plinkseq/
Date: Fri, 31 Mar 2017 21:20:54
Message-Id: 1490995161.ef3daf274a3921856131027f304698bad8b2d141.mmokrejs@gentoo
1 commit: ef3daf274a3921856131027f304698bad8b2d141
2 Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Fri Mar 31 21:19:21 2017 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Fri Mar 31 21:19:21 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ef3daf27
7
8 sci-biology/plinkseq: we cannot zap bundled mongoose so easily
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.1
11
12 sci-biology/plinkseq/plinkseq-9999.ebuild | 13 ++++++++-----
13 1 file changed, 8 insertions(+), 5 deletions(-)
14
15 diff --git a/sci-biology/plinkseq/plinkseq-9999.ebuild b/sci-biology/plinkseq/plinkseq-9999.ebuild
16 index 461e62f84..cffdaff97 100644
17 --- a/sci-biology/plinkseq/plinkseq-9999.ebuild
18 +++ b/sci-biology/plinkseq/plinkseq-9999.ebuild
19 @@ -20,7 +20,6 @@ IUSE=""
20
21 DEPEND="sys-libs/zlib
22 dev-libs/protobuf
23 - www-servers/mongoose
24 !sci-biology/fsl" # file collision on /usr/bin/mm
25 RDEPEND="${DEPEND}"
26
27 @@ -29,7 +28,9 @@ src_prepare(){
28 sed -e "s/= -static/=/g" -i config_defs.Makefile || die
29 rm -rf sources/ext/protobuf-* || die
30 rm sources/ext/protobuf sources/ext/sources/include/google || die
31 - rm -rf sources/mongoose || die
32 + # we cannot zap calls to bundled mongoose because www-servers/mongoose does not build a library at all
33 + # rm -rf sources/mongoose || die
34 + # sed -e "s@$(MONGOOSE_LIB_DIR) @@;s@$(MONGOOSE_INC) @@;s@$(MONGOOSE_LIB_BASE_DIR) @@" - Makefile || die
35 sed -e 's@^all:.*@all: # skipping compilation of bundled dev-libs/protobuf@' -i sources/ext/Makefile || die
36 find . -name \*.proto | while read f; do \
37 d=`dirname $f`; \
38 @@ -44,11 +45,13 @@ src_prepare(){
39 sed -e 's/google::protobuf::internal::kEmptyString/google::protobuf::internal::GetEmptyStringAlreadyInited()/g' -i sources/plinkseq/sources/lib/matrix.pb.cpp || die
40 sed -e 's/google::protobuf::internal::kEmptyString/google::protobuf::internal::GetEmptyStringAlreadyInited()/g' -i sources/plinkseq/sources/lib/variant.pb.cpp || die
41 local myinc=`pkg-config protobuf --variable=includedir`
42 - sed -e "s@\$(PROTOBUF_LIB_BASE_DIR)/\$(INC_DIR)/@$myinc@" -i Makefile || die
43 + sed -e 's@$(PROTOBUF_LIB_BASE_DIR)/$(INC_DIR)/@'"${myinc}@" -i Makefile || die
44 local mylib=`pkg-config protobuf --variable=libdir`
45 - sed -e "s@$(PROTOBUF_LIB_BASE_DIR)/$(BLD_LIB_DIR)/@$mylib@" -i Makefile || die
46 + sed -e 's@$(PROTOBUF_LIB_BASE_DIR)/$(BLD_LIB_DIR)/@'"-L${mylib} @" -i Makefile || die # note the trailing space as it get prepended to PROTOBUF_LIBS
47 + # anyway $(PROTOBUF_LIB_FULL_PATH) is a necessary build target, just drop it
48 + sed -e 's@^PROTOBUF_LIB_FULL_PATH =.*/@PROTOBUF_LIB_FULL_PATH =@' -i Makefile || die
49 local mylibs=`pkg-config protobuf --libs`
50 - sed -e "s@libprotobuf.a@$mylibs@" -i Makefile || die
51 + sed -e "s@libprotobuf.a@ ${mylibs}@ " -i Makefile || die
52 }
53
54 src_install(){