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-chemistry/votca-xtp/
Date: Tue, 27 Sep 2016 18:13:55
Message-Id: 1475000017.551afdbc2b2a72fff0dae392979b7df1c5ed5721.ottxor@gentoo
1 commit: 551afdbc2b2a72fff0dae392979b7df1c5ed5721
2 Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 27 18:13:02 2016 +0000
4 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 27 18:13:37 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=551afdbc
7
8 sci-chemistry/votca-xtp: initial commit
9
10 Package-Manager: portage-2.3.0
11
12 sci-chemistry/votca-xtp/Manifest | 2 +
13 sci-chemistry/votca-xtp/metadata.xml | 15 +++++
14 sci-chemistry/votca-xtp/votca-xtp-1.4_rc1.ebuild | 71 ++++++++++++++++++++++++
15 sci-chemistry/votca-xtp/votca-xtp-9999.ebuild | 71 ++++++++++++++++++++++++
16 4 files changed, 159 insertions(+)
17
18 diff --git a/sci-chemistry/votca-xtp/Manifest b/sci-chemistry/votca-xtp/Manifest
19 new file mode 100644
20 index 00000000..ab1a26b
21 --- /dev/null
22 +++ b/sci-chemistry/votca-xtp/Manifest
23 @@ -0,0 +1,2 @@
24 +DIST votca-xtp-1.4_rc1.tar.gz 15210079 SHA256 b3c839b0cd372399a9de3e06a2d1aedb926ccde4d2df3b9600bc1470ddb0b7df SHA512 ae8d39471d87ba5caee7fd8f5f5c7562f1d5a2cb0952566e0412a7dd614af746e492d77409746ba1cd92cdc8836b902aa4d78a24f66d54904ee32cc371b7d399 WHIRLPOOL 251df4c041dad352cc2e28fc834b9c0fc1c073b4442ba5760b0df19c7addcc6d34d1ac203c4c002630c75ed24b73d8551045c82bbd1b36e55b694166c31cd32f
25 +DIST votca-xtp-manual-1.4_rc1.pdf 1064036 SHA256 641a0ee0f95a31f01cf8efccfecf00fea6b353206ded3b06bfd0147c1216df99 SHA512 c877535d09faab51bc023c0e3851327fa2cd5139df6291b764d7207605da339aedd883eaf356b6152532f76d803b408b0264efcabb3ba03dcf6d074028285c46 WHIRLPOOL a4f8f8e8b48a66e73b9ae48e4db0449232b025f6431522c6089b4e09dcc4d72aeeb9bd7c6625b1a00c6210dbbbb59c5d741b3db2c01bb752015e01f32428d772
26
27 diff --git a/sci-chemistry/votca-xtp/metadata.xml b/sci-chemistry/votca-xtp/metadata.xml
28 new file mode 100644
29 index 00000000..9d258fe
30 --- /dev/null
31 +++ b/sci-chemistry/votca-xtp/metadata.xml
32 @@ -0,0 +1,15 @@
33 +<?xml version="1.0" encoding="UTF-8"?>
34 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="person">
37 + <email>ottxor@g.o</email>
38 + <name>Christoph Junghans</name>
39 + </maintainer>
40 + <maintainer type="project">
41 + <email>sci-chemistry@g.o</email>
42 + <name>Gentoo Chemistry Project</name>
43 + </maintainer>
44 + <upstream>
45 + <remote-id type="github">votca/xtp</remote-id>
46 + </upstream>
47 +</pkgmetadata>
48
49 diff --git a/sci-chemistry/votca-xtp/votca-xtp-1.4_rc1.ebuild b/sci-chemistry/votca-xtp/votca-xtp-1.4_rc1.ebuild
50 new file mode 100644
51 index 00000000..d00cbee
52 --- /dev/null
53 +++ b/sci-chemistry/votca-xtp/votca-xtp-1.4_rc1.ebuild
54 @@ -0,0 +1,71 @@
55 +# Copyright 1999-2016 Gentoo Foundation
56 +# Distributed under the terms of the GNU General Public License v2
57 +# $Id$
58 +
59 +EAPI=6
60 +
61 +CMAKE_MAKEFILE_GENERATOR="ninja"
62 +
63 +inherit bash-completion-r1 cmake-utils multilib
64 +
65 +IUSE="doc"
66 +if [ "${PV}" != "9999" ]; then
67 + SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz
68 + doc? ( https://github.com/${PN/-//}/releases/download/v${PV}/${PN}-manual-${PV}.pdf )"
69 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
70 + S="${WORKDIR}/${P#votca-}"
71 +else
72 + inherit git-r3
73 + EGIT_REPO_URI="git://github.com/${PN/-//}.git https://github.com/${PN/-//}.git"
74 + KEYWORDS=""
75 +fi
76 +
77 +DESCRIPTION="Votca excitation and charge properties module"
78 +HOMEPAGE="http://www.votca.org"
79 +
80 +LICENSE="Apache-2.0"
81 +SLOT="0"
82 +
83 +RDEPEND="
84 + =sci-chemistry/votca-csg-${PV}"
85 +
86 +DEPEND="${RDEPEND}
87 + doc? (
88 + app-doc/doxygen[dot]
89 + dev-texlive/texlive-latexextra
90 + virtual/latex-base
91 + dev-tex/pgf
92 + )
93 + >=app-text/txt2tags-2.5
94 + virtual/pkgconfig"
95 +
96 +DOCS=( README NOTICE CHANGELOG.md )
97 +
98 +src_configure() {
99 + mycmakeargs=(
100 + -DLIB=$(get_libdir)
101 + )
102 + cmake-utils_src_configure
103 +}
104 +
105 +src_install() {
106 + cmake-utils_src_install
107 + if use doc; then
108 + if [[ ${PV} = *9999* ]]; then
109 + cmake-utils_src_make -C "${CMAKE_BUILD_DIR}" manual
110 + newdoc "${S}"/manual/xtp-manual.pdf "${PN}-manual-${PV}.pdf"
111 + else
112 + dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf"
113 + fi
114 + cmake-utils_src_make -C "${CMAKE_BUILD_DIR}" html
115 + dodoc -r "${CMAKE_BUILD_DIR}"/share/doc/html
116 + fi
117 +}
118 +
119 +pkg_postinst() {
120 + einfo
121 + einfo "Please read and cite:"
122 + einfo "VOTCA-CTP, J. Chem. Theo. Comp. 7, 3335-3345 (2011)"
123 + einfo "http://dx.doi.org/10.1021/ct200388s"
124 + einfo
125 +}
126
127 diff --git a/sci-chemistry/votca-xtp/votca-xtp-9999.ebuild b/sci-chemistry/votca-xtp/votca-xtp-9999.ebuild
128 new file mode 100644
129 index 00000000..d00cbee
130 --- /dev/null
131 +++ b/sci-chemistry/votca-xtp/votca-xtp-9999.ebuild
132 @@ -0,0 +1,71 @@
133 +# Copyright 1999-2016 Gentoo Foundation
134 +# Distributed under the terms of the GNU General Public License v2
135 +# $Id$
136 +
137 +EAPI=6
138 +
139 +CMAKE_MAKEFILE_GENERATOR="ninja"
140 +
141 +inherit bash-completion-r1 cmake-utils multilib
142 +
143 +IUSE="doc"
144 +if [ "${PV}" != "9999" ]; then
145 + SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz
146 + doc? ( https://github.com/${PN/-//}/releases/download/v${PV}/${PN}-manual-${PV}.pdf )"
147 + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
148 + S="${WORKDIR}/${P#votca-}"
149 +else
150 + inherit git-r3
151 + EGIT_REPO_URI="git://github.com/${PN/-//}.git https://github.com/${PN/-//}.git"
152 + KEYWORDS=""
153 +fi
154 +
155 +DESCRIPTION="Votca excitation and charge properties module"
156 +HOMEPAGE="http://www.votca.org"
157 +
158 +LICENSE="Apache-2.0"
159 +SLOT="0"
160 +
161 +RDEPEND="
162 + =sci-chemistry/votca-csg-${PV}"
163 +
164 +DEPEND="${RDEPEND}
165 + doc? (
166 + app-doc/doxygen[dot]
167 + dev-texlive/texlive-latexextra
168 + virtual/latex-base
169 + dev-tex/pgf
170 + )
171 + >=app-text/txt2tags-2.5
172 + virtual/pkgconfig"
173 +
174 +DOCS=( README NOTICE CHANGELOG.md )
175 +
176 +src_configure() {
177 + mycmakeargs=(
178 + -DLIB=$(get_libdir)
179 + )
180 + cmake-utils_src_configure
181 +}
182 +
183 +src_install() {
184 + cmake-utils_src_install
185 + if use doc; then
186 + if [[ ${PV} = *9999* ]]; then
187 + cmake-utils_src_make -C "${CMAKE_BUILD_DIR}" manual
188 + newdoc "${S}"/manual/xtp-manual.pdf "${PN}-manual-${PV}.pdf"
189 + else
190 + dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf"
191 + fi
192 + cmake-utils_src_make -C "${CMAKE_BUILD_DIR}" html
193 + dodoc -r "${CMAKE_BUILD_DIR}"/share/doc/html
194 + fi
195 +}
196 +
197 +pkg_postinst() {
198 + einfo
199 + einfo "Please read and cite:"
200 + einfo "VOTCA-CTP, J. Chem. Theo. Comp. 7, 3335-3345 (2011)"
201 + einfo "http://dx.doi.org/10.1021/ct200388s"
202 + einfo
203 +}