Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/io_lib/
Date: Tue, 22 Jan 2019 12:19:01
Message-Id: 1548159483.bb7161d41c11db40813d5ad231aeaa60b6db3b86.mmokrejs@gentoo
1 commit: bb7161d41c11db40813d5ad231aeaa60b6db3b86
2 Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Tue Jan 22 12:17:12 2019 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Tue Jan 22 12:18:03 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=bb7161d4
7
8 sci-libs/io_lib: version bump
9
10 Add a new version with experimental CRAM support.
11
12 Force dependency on libdeflate although it could/should be maybe
13 protected by USE flag. However, it is recommended by upstream authors.
14
15 https://github.com/jkbonfield/io_lib/issues/11
16 https://github.com/jkbonfield/io_lib/issues/12
17 https://github.com/jkbonfield/io_lib/issues/13
18
19 Package-Manager: Portage-2.3.56, Repoman-2.3.12
20 Signed-off-by: Martin Mokrejs <mmokrejs <AT> fold.natur.cuni.cz>
21
22 sci-libs/io_lib/io_lib-1.14.11.ebuild | 71 +++++++++++++++++++++++++++++++++++
23 sci-libs/io_lib/io_lib-1.14.7.ebuild | 28 --------------
24 2 files changed, 71 insertions(+), 28 deletions(-)
25
26 diff --git a/sci-libs/io_lib/io_lib-1.14.11.ebuild b/sci-libs/io_lib/io_lib-1.14.11.ebuild
27 new file mode 100644
28 index 000000000..73263df65
29 --- /dev/null
30 +++ b/sci-libs/io_lib/io_lib-1.14.11.ebuild
31 @@ -0,0 +1,71 @@
32 +# Copyright 2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=5
36 +
37 +inherit autotools-utils eutils versionator
38 +MY_PV=$(replace_all_version_separators '-')
39 +
40 +DESCRIPTION="General purpose trace and experiment file reading/writing interface"
41 +HOMEPAGE="https://github.com/jkbonfield/io_lib
42 + http://staden.sourceforge.net/"
43 +SRC_URI="https://github.com/jkbonfield/io_lib/archive/${PN}-${MY_PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="+bzip2 curl +lzma static-libs" # maybe introduce libdeflate USE flag?
49 +
50 +S="${WORKDIR}"/"${PN}-${PN}-${MY_PV}"
51 +
52 +# >>> Working in BUILD_DIR: "/scratch/var/tmp/portage/sci-libs/io_lib-1.14.11/work/io_lib-1.14.11_build"
53 +# /scratch/var/tmp/portage/sci-libs/io_lib-1.14.11/temp/environment: line 530: pushd: /scratch/var/tmp/portage/sci-libs/io_lib-1.14.11/work/io_lib-1.14.11_build: No such file or directory
54 +# * ERROR: sci-libs/io_lib-1.14.11::science failed (install phase):
55 +# * (no error message)
56 +# *
57 +# * Call stack:
58 +# * ebuild.sh, line 124: Called src_install
59 +# * environment, line 2506: Called autotools-utils_src_install
60 +# * environment, line 530: Called die
61 +# * The specific snippet of code:
62 +# * pushd "${BUILD_DIR}" > /dev/null || die;
63 +#
64 +BUILD_DIR="${S}"
65 +
66 +# Prototype changes in io_lib-1.9.0 create incompatibilities with BioPerl. (Only
67 +# versions 1.8.11 and 1.8.12 will work with the BioPerl Staden extensions.)
68 +#DEPEND="!sci-biology/bioperl"
69 +DEPEND="
70 + app-arch/libdeflate
71 + lzma? ( app-arch/xz-utils:= app-arch/lzma )
72 + bzip2? ( app-arch/bzip2 )
73 + curl? ( net-misc/curl )
74 + sys-libs/zlib"
75 +RDEPEND="${DEPEND}"
76 +
77 +src_prepare(){
78 + # https://github.com/jkbonfield/io_lib/issues/12
79 + eautoreconf
80 + default
81 +}
82 +
83 +src_configure(){
84 + # https://github.com/jkbonfield/io_lib/issues/11
85 + # https://github.com/jkbonfield/io_lib/issues/13
86 + local myconf=()
87 + ! use static-libs && myconf+=( "--enable-static=no" )
88 + econf ${myconf[@]} $(use_with libdeflate)
89 +}
90 +
91 +src_compile(){
92 + # BUG: "have to" provide my own src_compile() because ${P}_build dir is missing now
93 + # alternatively BUILD_DIR="${S}" would probably help here too
94 + emake
95 +}
96 +
97 +src_install() {
98 + # cd "${S}" || die # this does not help to get around the ${P}_build missing
99 + # what helped was to set BUILD_DIR="${S}" above
100 + autotools-utils_src_install
101 + dodoc docs/{Hash_File_Format,ZTR_format}
102 +}
103
104 diff --git a/sci-libs/io_lib/io_lib-1.14.7.ebuild b/sci-libs/io_lib/io_lib-1.14.7.ebuild
105 deleted file mode 100644
106 index d76cffe92..000000000
107 --- a/sci-libs/io_lib/io_lib-1.14.7.ebuild
108 +++ /dev/null
109 @@ -1,28 +0,0 @@
110 -# Copyright 1999-2016 Gentoo Foundation
111 -# Distributed under the terms of the GNU General Public License v2
112 -
113 -EAPI=5
114 -
115 -inherit autotools-utils
116 -
117 -DESCRIPTION="General purpose trace and experiment file reading/writing interface"
118 -HOMEPAGE="http://staden.sourceforge.net/"
119 -SRC_URI="mirror://sourceforge/staden/${P}.tar.gz"
120 -
121 -LICENSE="BSD"
122 -SLOT="0"
123 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
124 -IUSE="static-libs"
125 -
126 -# Prototype changes in io_lib-1.9.0 create incompatibilities with BioPerl. (Only
127 -# versions 1.8.11 and 1.8.12 will work with the BioPerl Staden extensions.)
128 -#DEPEND="!sci-biology/bioperl"
129 -DEPEND="
130 - net-misc/curl
131 - sys-libs/zlib"
132 -RDEPEND="${DEPEND}"
133 -
134 -src_install() {
135 - autotools-utils_src_install
136 - dodoc docs/{Hash_File_Format,ZTR_format}
137 -}