Gentoo Archives: gentoo-commits

From: Christoph Junghans <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/votca-tools/
Date: Thu, 14 Jul 2016 17:30:39
Message-Id: 1468517422.2fbbafef94953e4a52c7ff37f8a517971ae16072.ottxor@gentoo
1 commit: 2fbbafef94953e4a52c7ff37f8a517971ae16072
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 14 17:27:43 2016 +0000
4 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 14 17:30:22 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fbbafef
7
8 sci-libs/votca-tools: import live ebuild from sci
9
10 Package-Manager: portage-2.2.28
11
12 sci-libs/votca-tools/votca-tools-9999.ebuild | 60 ++++++++++++++++++++++++++++
13 1 file changed, 60 insertions(+)
14
15 diff --git a/sci-libs/votca-tools/votca-tools-9999.ebuild b/sci-libs/votca-tools/votca-tools-9999.ebuild
16 new file mode 100644
17 index 0000000..34b0cd2
18 --- /dev/null
19 +++ b/sci-libs/votca-tools/votca-tools-9999.ebuild
20 @@ -0,0 +1,60 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +
27 +CMAKE_MAKEFILE_GENERATOR="ninja"
28 +
29 +inherit cmake-utils eutils multilib
30 +
31 +if [ "${PV}" != "9999" ]; then
32 + SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
33 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
34 + S="${WORKDIR}/${P#votca-}"
35 +else
36 + inherit git-r3
37 + EGIT_REPO_URI="git://github.com/${PN/-//}.git https://github.com/${PN/-//}.git"
38 + KEYWORDS=""
39 +fi
40 +
41 +DESCRIPTION="Votca tools library"
42 +HOMEPAGE="http://www.votca.org"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +IUSE="doc +fftw +gsl sqlite"
47 +
48 +RDEPEND="
49 + dev-libs/boost:=
50 + dev-libs/expat
51 + fftw? ( sci-libs/fftw:3.0 )
52 + gsl? ( sci-libs/gsl )
53 + sqlite? ( dev-db/sqlite:3 )"
54 +
55 +DEPEND="${RDEPEND}
56 + doc? ( >=app-doc/doxygen-1.7.6.1[dot] )
57 + >=app-text/txt2tags-2.5
58 + virtual/pkgconfig"
59 +
60 +DOCS=( NOTICE )
61 +
62 +src_configure() {
63 + mycmakeargs=(
64 + -DWITH_GSL=$(usex gsl)
65 + -DWITH_FFTW=$(usex fftw)
66 + -DWITH_SQLITE3=$(usex sqlite)
67 + -DWITH_RC_FILES=OFF
68 + -DLIB=$(get_libdir)
69 + )
70 + cmake-utils_src_configure
71 +}
72 +
73 +src_install() {
74 + cmake-utils_src_install
75 + if use doc; then
76 + cd "${CMAKE_BUILD_DIR}"
77 + cmake-utils_src_make html
78 + dodoc -r share/doc/html
79 + fi
80 +}