Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/seqan/
Date: Sun, 11 Feb 2018 12:21:36
Message-Id: 1518351651.a1b3056e6cae31c803fd4cd3a77adbd5a9cd4937.soap@gentoo
1 commit: a1b3056e6cae31c803fd4cd3a77adbd5a9cd4937
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 11 12:20:51 2018 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 11 12:20:51 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1b3056e
7
8 sci-biology/seqan: Add live ebuild
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 sci-biology/seqan/seqan-9999.ebuild | 90 +++++++++++++++++++++++++++++++++++++
13 1 file changed, 90 insertions(+)
14
15 diff --git a/sci-biology/seqan/seqan-9999.ebuild b/sci-biology/seqan/seqan-9999.ebuild
16 new file mode 100644
17 index 00000000000..0005819ff4d
18 --- /dev/null
19 +++ b/sci-biology/seqan/seqan-9999.ebuild
20 @@ -0,0 +1,90 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
27 +PYTHON_COMPAT=( python2_7 )
28 +
29 +inherit cmake-utils multibuild python-any-r1 toolchain-funcs
30 +
31 +DESCRIPTION="C++ Sequence Analysis Library"
32 +HOMEPAGE="http://www.seqan.de/"
33 +
34 +if [[ ${PV} == *9999 ]]; then
35 + inherit git-r3
36 + EGIT_REPO_URI="https://github.com/seqan/seqan.git"
37 + EGIT_BRANCH="develop"
38 +else
39 + SRC_URI="https://github.com/seqan/seqan/archive/seqan-v${PV}.tar.gz"
40 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
41 +
42 + S=${WORKDIR}/seqan-seqan-v${PV}
43 +fi
44 +
45 +LICENSE="BSD GPL-3"
46 +SLOT="0"
47 +IUSE="cpu_flags_x86_sse4_1 doc tools"
48 +REQUIRED_USE="cpu_flags_x86_sse4_1"
49 +
50 +RDEPEND="
51 + app-arch/bzip2:=
52 + sys-libs/zlib:=
53 + !!sci-biology/seqan:2.0
54 + !!sci-biology/seqan:2.1
55 + !!sci-biology/seqan:2.2"
56 +DEPEND="
57 + ${RDEPEND}
58 + doc? (
59 + $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]')
60 + ${PYTHON_DEPS}
61 + )"
62 +
63 +python_check_deps() {
64 + use doc && has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
65 +}
66 +
67 +pkg_setup() {
68 + if [[ ${MERGE_TYPE} != binary ]]; then
69 + use doc && python-any-r1_pkg_setup
70 + use tools && tc-check-openmp
71 +
72 + MULTIBUILD_VARIANTS=(
73 + $(usev tools)
74 + library
75 + )
76 + fi
77 +}
78 +
79 +src_configure() {
80 + my_configure() {
81 + local mycmakeargs=( -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}" )
82 + case "${MULTIBUILD_ID}" in
83 + tools)
84 + mycmakeargs+=(
85 + -DSEQAN_BUILD_SYSTEM=SEQAN_RELEASE_APPS
86 + -DSEQAN_NO_DOX=ON
87 + )
88 + ;;
89 + library)
90 + mycmakeargs+=(
91 + -DSEQAN_BUILD_SYSTEM=SEQAN_RELEASE_LIBRARY
92 + -DSEQAN_NO_DOX=$(usex !doc)
93 + )
94 + ;;
95 + *)
96 + die "${MULTIBUILD_ID} is not recognized"
97 + ;;
98 + esac
99 + cmake-utils_src_configure
100 + }
101 + multibuild_foreach_variant my_configure
102 +}
103 +
104 +src_compile() {
105 + multibuild_foreach_variant cmake-utils_src_compile
106 +}
107 +
108 +src_install() {
109 + multibuild_foreach_variant cmake-utils_src_install
110 +}