1 |
commit: e7249adcf0d036b82685cb11898e5ad86f314dc1 |
2 |
Author: Christoph Junghans <junghans <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 31 20:07:28 2019 +0000 |
4 |
Commit: Christoph Junghans <junghans <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 31 20:15:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7249adc |
7 |
|
8 |
sci-chemistry/votca-ctp: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
11 |
Signed-off-by: Christoph Junghans <junghans <AT> gentoo.org> |
12 |
|
13 |
sci-chemistry/votca-ctp/Manifest | 2 ++ |
14 |
...{votca-ctp-9999.ebuild => votca-ctp-1.5.ebuild} | 33 ++++++++++++++++++++-- |
15 |
sci-chemistry/votca-ctp/votca-ctp-9999.ebuild | 33 ++++++++++++++++++++-- |
16 |
3 files changed, 62 insertions(+), 6 deletions(-) |
17 |
|
18 |
diff --git a/sci-chemistry/votca-ctp/Manifest b/sci-chemistry/votca-ctp/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..f527423449b |
21 |
--- /dev/null |
22 |
+++ b/sci-chemistry/votca-ctp/Manifest |
23 |
@@ -0,0 +1,2 @@ |
24 |
+DIST votca-ctp-1.5.tar.gz 1345419 BLAKE2B 148846b9118cabfa541eb4fe0129e366d0c447e2daf969833beb5df91ca7b43f0262c5845303ccf05ed8d3f9e2c2a5e0f876ec97c2601419ed04a28d56640494 SHA512 bc4dbddcefb473015a6513f44f4fddd5995a8598f82505e81b3c50ae771e64e8c979f39a347ab2deb55054e7efffad28b5ff3f73d2c1b8905bcaf6f007ff2959 |
25 |
+DIST votca-ctp-manual-1.5.pdf 970539 BLAKE2B 8646215a4c2cd7be6d4c03820f00b8067e15c27f51fb6678540026cff1af0e28dffa528423ad47a4047a8f84fc1078d503a56a4a235e004735f0276ec1a6a33e SHA512 a315c1b4b37461f4f0d30ead1fec2ca33ff23d81c9d5e4d888ef7d7dd722f68f9596826f828f8a76841d6dde6889f623b73d9fe0f8a6c5a7cec1c16a83cf9030 |
26 |
|
27 |
diff --git a/sci-chemistry/votca-ctp/votca-ctp-9999.ebuild b/sci-chemistry/votca-ctp/votca-ctp-1.5.ebuild |
28 |
similarity index 56% |
29 |
copy from sci-chemistry/votca-ctp/votca-ctp-9999.ebuild |
30 |
copy to sci-chemistry/votca-ctp/votca-ctp-1.5.ebuild |
31 |
index 4e400a2318b..892997f7af3 100644 |
32 |
--- a/sci-chemistry/votca-ctp/votca-ctp-9999.ebuild |
33 |
+++ b/sci-chemistry/votca-ctp/votca-ctp-1.5.ebuild |
34 |
@@ -1,4 +1,4 @@ |
35 |
-# Copyright 1999-2018 Gentoo Foundation |
36 |
+# Copyright 1999-2019 Gentoo Authors |
37 |
# Distributed under the terms of the GNU General Public License v2 |
38 |
|
39 |
EAPI=6 |
40 |
@@ -7,9 +7,10 @@ CMAKE_MAKEFILE_GENERATOR="ninja" |
41 |
|
42 |
inherit cmake-utils multilib |
43 |
|
44 |
-IUSE="" |
45 |
+IUSE="doc" |
46 |
if [ "${PV}" != "9999" ]; then |
47 |
- SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
49 |
+ doc? ( https://github.com/${PN/-//}/releases/download/v${PV}/${PN}-manual-${PV}.pdf )" |
50 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos" |
51 |
S="${WORKDIR}/${P#votca-}" |
52 |
else |
53 |
@@ -33,8 +34,34 @@ RDEPEND=" |
54 |
DEPEND="${RDEPEND} |
55 |
virtual/pkgconfig" |
56 |
|
57 |
+if [ "${PV}" != "9999" ]; then |
58 |
+ DEPEND="${DEPEND} |
59 |
+ doc? ( |
60 |
+ app-doc/doxygen[dot] |
61 |
+ dev-texlive/texlive-latexextra |
62 |
+ virtual/latex-base |
63 |
+ dev-tex/pgf |
64 |
+ )" |
65 |
+fi |
66 |
+ |
67 |
DOCS=( README.md NOTICE CHANGELOG.md ) |
68 |
|
69 |
+src_configure() { |
70 |
+ [[ ${PV} = *9999* ]] && mycmakeargs=( |
71 |
+ -DBUILD_XTP_MANUAL=$(usex doc) |
72 |
+ ) |
73 |
+ cmake-utils_src_configure |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ cmake-utils_src_install |
78 |
+ if use doc; then |
79 |
+ [[ ${PV} != *9999* ]] && dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf" |
80 |
+ cmake-utils_src_make -C "${CMAKE_BUILD_DIR}" html |
81 |
+ dodoc -r "${CMAKE_BUILD_DIR}"/share/doc/html |
82 |
+ fi |
83 |
+} |
84 |
+ |
85 |
pkg_postinst() { |
86 |
einfo |
87 |
einfo "Please read and cite:" |
88 |
|
89 |
diff --git a/sci-chemistry/votca-ctp/votca-ctp-9999.ebuild b/sci-chemistry/votca-ctp/votca-ctp-9999.ebuild |
90 |
index 4e400a2318b..892997f7af3 100644 |
91 |
--- a/sci-chemistry/votca-ctp/votca-ctp-9999.ebuild |
92 |
+++ b/sci-chemistry/votca-ctp/votca-ctp-9999.ebuild |
93 |
@@ -1,4 +1,4 @@ |
94 |
-# Copyright 1999-2018 Gentoo Foundation |
95 |
+# Copyright 1999-2019 Gentoo Authors |
96 |
# Distributed under the terms of the GNU General Public License v2 |
97 |
|
98 |
EAPI=6 |
99 |
@@ -7,9 +7,10 @@ CMAKE_MAKEFILE_GENERATOR="ninja" |
100 |
|
101 |
inherit cmake-utils multilib |
102 |
|
103 |
-IUSE="" |
104 |
+IUSE="doc" |
105 |
if [ "${PV}" != "9999" ]; then |
106 |
- SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
107 |
+ SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
108 |
+ doc? ( https://github.com/${PN/-//}/releases/download/v${PV}/${PN}-manual-${PV}.pdf )" |
109 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos" |
110 |
S="${WORKDIR}/${P#votca-}" |
111 |
else |
112 |
@@ -33,8 +34,34 @@ RDEPEND=" |
113 |
DEPEND="${RDEPEND} |
114 |
virtual/pkgconfig" |
115 |
|
116 |
+if [ "${PV}" != "9999" ]; then |
117 |
+ DEPEND="${DEPEND} |
118 |
+ doc? ( |
119 |
+ app-doc/doxygen[dot] |
120 |
+ dev-texlive/texlive-latexextra |
121 |
+ virtual/latex-base |
122 |
+ dev-tex/pgf |
123 |
+ )" |
124 |
+fi |
125 |
+ |
126 |
DOCS=( README.md NOTICE CHANGELOG.md ) |
127 |
|
128 |
+src_configure() { |
129 |
+ [[ ${PV} = *9999* ]] && mycmakeargs=( |
130 |
+ -DBUILD_XTP_MANUAL=$(usex doc) |
131 |
+ ) |
132 |
+ cmake-utils_src_configure |
133 |
+} |
134 |
+ |
135 |
+src_install() { |
136 |
+ cmake-utils_src_install |
137 |
+ if use doc; then |
138 |
+ [[ ${PV} != *9999* ]] && dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf" |
139 |
+ cmake-utils_src_make -C "${CMAKE_BUILD_DIR}" html |
140 |
+ dodoc -r "${CMAKE_BUILD_DIR}"/share/doc/html |
141 |
+ fi |
142 |
+} |
143 |
+ |
144 |
pkg_postinst() { |
145 |
einfo |
146 |
einfo "Please read and cite:" |