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/LINKS/
Date: Mon, 29 Nov 2021 11:41:38
Message-Id: 1638186076.5db6563203432be7454b285bba50fc79daaac21d.mmokrejs@gentoo
1 commit: 5db6563203432be7454b285bba50fc79daaac21d
2 Author: Martin Mokrejs <mmokrejs <AT> gmail <DOT> com>
3 AuthorDate: Mon Nov 29 11:41:16 2021 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Mon Nov 29 11:41:16 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=5db65632
7
8 sci-biology/LINKS: remove keywords
9
10 This package is supposed to be executed from within compiled
11 source tree. See comments in the ebuild what needs to be fixed.
12
13 https://github.com/bcgsc/LINKS/pull/59
14 https://github.com/bcgsc/LINKS/issues/31
15
16 Package-Manager: Portage-3.0.28, Repoman-3.0.3
17 Signed-off-by: Martin Mokrejs <mmokrejs <AT> gmail.com>
18
19 sci-biology/LINKS/LINKS-1.8.7.ebuild | 31 ++++++++++++++++++++++++++++---
20 1 file changed, 28 insertions(+), 3 deletions(-)
21
22 diff --git a/sci-biology/LINKS/LINKS-1.8.7.ebuild b/sci-biology/LINKS/LINKS-1.8.7.ebuild
23 index 5009e9922..898898b94 100644
24 --- a/sci-biology/LINKS/LINKS-1.8.7.ebuild
25 +++ b/sci-biology/LINKS/LINKS-1.8.7.ebuild
26 @@ -9,17 +9,42 @@ SRC_URI="https://github.com/bcgsc/LINKS/archive/refs/tags/v${PV}.tar.gz -> ${P}.
27
28 LICENSE="GPL-3"
29 SLOT="0"
30 -KEYWORDS="~amd64 ~x86"
31 +KEYWORDS=""
32
33 RESTRICT="test"
34
35 RDEPEND="
36 >=dev-lang/perl-1.6
37 dev-lang/swig
38 - sci-biology/btl_bloomfilter
39 + dev-util/cppcheck
40 "
41 +# sci-biology/btl_bloomfilter
42 +
43 +src_compile(){
44 + cd btllib | die "Cannot chdir to bundled btllib/"
45 + ./compile-wrappers || die "Failed to compile bundled btllib"
46 + # baah, this also does some kind of install
47 + # SUCCESS: sdsl was installed successfully!
48 + # The sdsl include files are located in $foo'/LINKS/btllib/external/sdsl-lite/installdir/include'.
49 + # The library files are located in $foo'/LINKS/btllib/external/sdsl-lite/installdir/lib'.
50 + #
51 + # Sample programs can be found in the examples-directory.
52 + # A program 'example.cpp' can be compiled with the command:
53 + # g++ -std=c++11 -DNDEBUG -O3 [-msse4.2] \
54 + # -I$foo/LINKS/btllib/external/sdsl-lite/installdir/include -L$foo/LINKS/btllib/external/sdsl-lite/installdir/lib \
55 + # example.cpp -lsdsl -ldivsufsort -ldivsufsort64
56 + #
57 + # Tests in the test-directory
58 + # A cheat sheet in the extras/cheatsheet-directory.
59 + # Have fun!
60 + # [2/3] Installing files.
61 + # Installing extras/python/_btllib.so to $foo/LINKS/btllib/python
62 + # Installing $foo/LINKS/btllib/extras/python/btllib.py to $foo/LINKS/btllib/python
63 +}
64
65 src_install(){
66 - dobin bin/LINKS *.pl releases/links_v1.8.5/tools/*.pl
67 + sed -e 's#$(bin)/../src/##' -i bin/LINKS-make || die
68 + sed -e 's#perl $(bin)/##' -i bin/LINKS-make || die
69 + dobin bin/LINKS bin/LINKS-make src/LINKS_CPP bin/*.pl tools/*.pl
70 dodoc README.md
71 }