1 |
commit: 17c2488c366953bf6fe189cde24aa4641935eeec |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 28 12:48:00 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 28 18:08:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17c2488c |
7 |
|
8 |
sci-chemistry/votca-csg: Fix EAPI-7 bump, drop unused multilib |
9 |
|
10 |
CMAKE_MAKEFILE_GENERATOR=ninja is default in EAPI-7/cmake.eclass |
11 |
Use https |
12 |
Use double brackets |
13 |
Sort RDEPEND |
14 |
Use BDEPEND |
15 |
local mycmakeargs |
16 |
|
17 |
Package-Manager: Portage-3.0.16, Repoman-3.0.2 |
18 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
19 |
|
20 |
sci-chemistry/votca-csg/votca-csg-1.6.4.ebuild | 46 +++++++++++++------------- |
21 |
sci-chemistry/votca-csg/votca-csg-9999.ebuild | 42 +++++++++++------------ |
22 |
2 files changed, 44 insertions(+), 44 deletions(-) |
23 |
|
24 |
diff --git a/sci-chemistry/votca-csg/votca-csg-1.6.4.ebuild b/sci-chemistry/votca-csg/votca-csg-1.6.4.ebuild |
25 |
index 758dcc378f9..4a22a2fb766 100644 |
26 |
--- a/sci-chemistry/votca-csg/votca-csg-1.6.4.ebuild |
27 |
+++ b/sci-chemistry/votca-csg/votca-csg-1.6.4.ebuild |
28 |
@@ -3,62 +3,62 @@ |
29 |
|
30 |
EAPI=7 |
31 |
|
32 |
-CMAKE_MAKEFILE_GENERATOR="ninja" |
33 |
+inherit bash-completion-r1 cmake |
34 |
|
35 |
-inherit bash-completion-r1 cmake multilib |
36 |
- |
37 |
-IUSE="doc examples extras +gromacs hdf5" |
38 |
-PDEPEND="extras? ( ~sci-chemistry/${PN}apps-${PV} )" |
39 |
-if [ "${PV}" != "9999" ]; then |
40 |
+if [[ ${PV} == *9999 ]]; then |
41 |
+ inherit git-r3 |
42 |
+ EGIT_REPO_URI="https://github.com/${PN/-//}.git" |
43 |
+ PDEPEND="${PDEPEND} doc? ( ~app-doc/${PN}-manual-${PV} )" |
44 |
+else |
45 |
SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
46 |
doc? ( https://github.com/${PN/-//}-manual/releases/download/v${PV}/${PN}-manual-${PV}.pdf ) |
47 |
examples? ( https://github.com/${PN/-//}-tutorials/archive/v${PV}.tar.gz -> ${PN}-tutorials-${PV}.tar.gz )" |
48 |
KEYWORDS="~amd64 ~x86 ~amd64-linux" |
49 |
S="${WORKDIR}/${P#votca-}" |
50 |
-else |
51 |
- inherit git-r3 |
52 |
- EGIT_REPO_URI="https://github.com/${PN/-//}.git" |
53 |
- PDEPEND="${PDEPEND} doc? ( ~app-doc/${PN}-manual-${PV} )" |
54 |
+ PDEPEND="extras? ( ~sci-chemistry/${PN}apps-${PV} )" |
55 |
fi |
56 |
|
57 |
DESCRIPTION="Votca coarse-graining engine" |
58 |
-HOMEPAGE="http://www.votca.org" |
59 |
+HOMEPAGE="https://www.votca.org/" |
60 |
|
61 |
LICENSE="Apache-2.0" |
62 |
SLOT="0" |
63 |
+IUSE="doc examples extras +gromacs hdf5" |
64 |
|
65 |
RDEPEND=" |
66 |
- ~sci-libs/votca-tools-${PV} |
67 |
+ app-shells/bash:* |
68 |
>=dev-cpp/eigen-3.3 |
69 |
+ dev-lang/perl |
70 |
+ ~sci-libs/votca-tools-${PV} |
71 |
gromacs? ( sci-chemistry/gromacs:= ) |
72 |
hdf5? ( sci-libs/hdf5 ) |
73 |
- dev-lang/perl |
74 |
- app-shells/bash:*" |
75 |
- |
76 |
-DEPEND="${RDEPEND} |
77 |
+" |
78 |
+DEPEND="${RDEPEND}" |
79 |
+BDEPEND=" |
80 |
>=app-text/txt2tags-2.5 |
81 |
- virtual/pkgconfig" |
82 |
+ virtual/pkgconfig |
83 |
+" |
84 |
|
85 |
DOCS=( README.md NOTICE CHANGELOG.md ) |
86 |
|
87 |
src_unpack() { |
88 |
- if [[ ${PV} != *9999 ]]; then |
89 |
- default |
90 |
- else |
91 |
+ if [[ ${PV} == *9999 ]]; then |
92 |
git-r3_src_unpack |
93 |
if use examples; then |
94 |
EGIT_REPO_URI="https://github.com/${PN/-//}-tutorials.git" |
95 |
EGIT_BRANCH="master" |
96 |
- EGIT_CHECKOUT_DIR="${WORKDIR}/${PN#votca-}-tutorials"\ |
97 |
+ EGIT_CHECKOUT_DIR="${WORKDIR}/${PN#votca-}-tutorials" \ |
98 |
git-r3_src_unpack |
99 |
fi |
100 |
+ else |
101 |
+ default |
102 |
fi |
103 |
} |
104 |
|
105 |
src_configure() { |
106 |
- mycmakeargs=( |
107 |
+ local mycmakeargs=( |
108 |
-DWITH_GMX=$(usex gromacs) |
109 |
- -DCMAKE_DISABLE_FIND_PACKAGE_HDF5=$(usex '!hdf5') |
110 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_HDF5=$(usex !hdf5) |
111 |
-DWITH_RC_FILES=OFF |
112 |
) |
113 |
cmake_src_configure |
114 |
|
115 |
diff --git a/sci-chemistry/votca-csg/votca-csg-9999.ebuild b/sci-chemistry/votca-csg/votca-csg-9999.ebuild |
116 |
index dd12065fadb..358ce54951d 100644 |
117 |
--- a/sci-chemistry/votca-csg/votca-csg-9999.ebuild |
118 |
+++ b/sci-chemistry/votca-csg/votca-csg-9999.ebuild |
119 |
@@ -3,59 +3,59 @@ |
120 |
|
121 |
EAPI=7 |
122 |
|
123 |
-CMAKE_MAKEFILE_GENERATOR="ninja" |
124 |
+inherit bash-completion-r1 cmake |
125 |
|
126 |
-inherit bash-completion-r1 cmake multilib |
127 |
- |
128 |
-IUSE="doc examples extras +gromacs hdf5" |
129 |
-if [ "${PV}" != "9999" ]; then |
130 |
+if [[ ${PV} == *9999 ]]; then |
131 |
+ inherit git-r3 |
132 |
+ EGIT_REPO_URI="https://github.com/${PN/-//}.git" |
133 |
+else |
134 |
SRC_URI="https://github.com/${PN/-//}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
135 |
examples? ( https://github.com/${PN/-//}-tutorials/archive/v${PV}.tar.gz -> ${PN}-tutorials-${PV}.tar.gz )" |
136 |
KEYWORDS="~amd64 ~x86 ~amd64-linux" |
137 |
S="${WORKDIR}/${P#votca-}" |
138 |
-else |
139 |
- inherit git-r3 |
140 |
- EGIT_REPO_URI="https://github.com/${PN/-//}.git" |
141 |
fi |
142 |
|
143 |
DESCRIPTION="Votca coarse-graining engine" |
144 |
-HOMEPAGE="http://www.votca.org" |
145 |
+HOMEPAGE="https://www.votca.org/" |
146 |
|
147 |
LICENSE="Apache-2.0" |
148 |
SLOT="0" |
149 |
+IUSE="doc examples extras +gromacs hdf5" |
150 |
|
151 |
RDEPEND=" |
152 |
- ~sci-libs/votca-tools-${PV} |
153 |
+ app-shells/bash:* |
154 |
>=dev-cpp/eigen-3.3 |
155 |
+ dev-lang/perl |
156 |
+ ~sci-libs/votca-tools-${PV} |
157 |
gromacs? ( sci-chemistry/gromacs:= ) |
158 |
hdf5? ( sci-libs/hdf5 ) |
159 |
- dev-lang/perl |
160 |
- app-shells/bash:*" |
161 |
- |
162 |
-DEPEND="${RDEPEND} |
163 |
+" |
164 |
+DEPEND="${RDEPEND}" |
165 |
+BDEPEND=" |
166 |
>=app-text/txt2tags-2.5 |
167 |
- virtual/pkgconfig" |
168 |
+ virtual/pkgconfig |
169 |
+" |
170 |
|
171 |
DOCS=( README.rst NOTICE.rst CHANGELOG.rst ) |
172 |
|
173 |
src_unpack() { |
174 |
- if [[ ${PV} != *9999 ]]; then |
175 |
- default |
176 |
- else |
177 |
+ if [[ ${PV} == *9999 ]]; then |
178 |
git-r3_src_unpack |
179 |
if use examples; then |
180 |
EGIT_REPO_URI="https://github.com/${PN/-//}-tutorials.git" |
181 |
EGIT_BRANCH="master" |
182 |
- EGIT_CHECKOUT_DIR="${WORKDIR}/${PN#votca-}-tutorials"\ |
183 |
+ EGIT_CHECKOUT_DIR="${WORKDIR}/${PN#votca-}-tutorials" \ |
184 |
git-r3_src_unpack |
185 |
fi |
186 |
+ else |
187 |
+ default |
188 |
fi |
189 |
} |
190 |
|
191 |
src_configure() { |
192 |
- mycmakeargs=( |
193 |
+ local mycmakeargs=( |
194 |
-DWITH_GMX=$(usex gromacs) |
195 |
- -DCMAKE_DISABLE_FIND_PACKAGE_HDF5=$(usex '!hdf5') |
196 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_HDF5=$(usex !hdf5) |
197 |
-DWITH_RC_FILES=OFF |
198 |
-DBUILD_CSGAPPS=ON |
199 |
) |