commit:     27fe4b6568a7d820178adf8f7b963bfeb79f966e
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Mon Jul 18 11:03:20 2016 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Mon Jul 18 11:03:20 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=27fe4b65

sci-biology/plinkseq: zap bundled dev-libs/protobuf; needs more fixes

Package-Manager: portage-2.2.28

 sci-biology/plinkseq/plinkseq-0.10.ebuild | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/sci-biology/plinkseq/plinkseq-0.10.ebuild 
b/sci-biology/plinkseq/plinkseq-0.10.ebuild
index 1c94b80..e8665ce 100644
--- a/sci-biology/plinkseq/plinkseq-0.10.ebuild
+++ b/sci-biology/plinkseq/plinkseq-0.10.ebuild
@@ -4,7 +4,9 @@
 
 EAPI=5
 
-inherit toolchain-funcs
+AUTOTOOLS_AUTORECONF=yes
+
+inherit toolchain-funcs autotools-utils
 
 DESCRIPTION="C/C++ library for working with human genetic variation data"
 HOMEPAGE="http://atgu.mgh.harvard.edu/plinkseq";
@@ -14,15 +16,20 @@ 
SRC_URI="http://psychgen.u.hpc.mssm.edu/plinkseq_downloads/plinkseq-src-latest.t
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS=""
 IUSE=""
 
-DEPEND="sys-libs/zlib"
+DEPEND="sys-libs/zlib
+       dev-libs/protobuf"
 RDEPEND="${DEPEND}"
 
 src_prepare(){
        sed -e "s/gcc/$(tc-getCC)/g;s/g++/$(tc-getCXX)/g;s/-O3/${CFLAGS}/g" -i 
config_defs.Makefile || die
        sed -e "s/= -static/=/g" -i config_defs.Makefile || die
+       rm -rf sources/ext/protobuf-* || die
+       sed -e 's#^all:.*#all: echo "skipping compilation of bundled 
dev-libs/protobuf"#' -i sources/ext/Makefile || die
+       find . -name \*.proto | while read f; do d=`dirname $f`; pushd $d; 
protoc --cpp_out=. *.proto || exit 255; popd; done || die
+       autotools-utils_src_prepare
 }
 
 src_install(){

Reply via email to