1 |
commit: d4f991ffc9ca363f8439f2b10df08caf6faf250e |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Thu Dec 31 15:47:40 2020 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Thu Dec 31 15:54:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d4f991ff |
7 |
|
8 |
sci-physics/genfit: EAPI bump, drop 9999 |
9 |
|
10 |
9999 is 404 |
11 |
cmake-utils --> cmake |
12 |
use docs eclass to compile docs |
13 |
|
14 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
15 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
16 |
Closes: https://github.com/gentoo/sci/pull/1021 |
17 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
18 |
|
19 |
sci-physics/genfit/genfit-02.00.00.ebuild | 48 ++++++++++++-------------- |
20 |
sci-physics/genfit/genfit-9999.ebuild | 57 ------------------------------- |
21 |
2 files changed, 21 insertions(+), 84 deletions(-) |
22 |
|
23 |
diff --git a/sci-physics/genfit/genfit-02.00.00.ebuild b/sci-physics/genfit/genfit-02.00.00.ebuild |
24 |
index 2230d6415..9aa92b2ba 100644 |
25 |
--- a/sci-physics/genfit/genfit-02.00.00.ebuild |
26 |
+++ b/sci-physics/genfit/genfit-02.00.00.ebuild |
27 |
@@ -1,53 +1,47 @@ |
28 |
# Copyright 1999-2020 Gentoo Authors |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
|
31 |
-EAPI=5 |
32 |
- |
33 |
-inherit cmake-utils versionator |
34 |
- |
35 |
-if [[ ${PV} == *9999* ]]; then |
36 |
- inherit subversion |
37 |
- ESVN_REPO_URI="https://svn.code.sf.net/p/${PN}/code/trunk" |
38 |
- ESVN_PROJECT="${PN}.${PV}" |
39 |
- KEYWORDS="" |
40 |
-else |
41 |
- # .zip-snapshot can be recreated by visiting |
42 |
- # http://sourceforge.net/p/${PN}/code/${COMMIT}/tarball?path=/tags/v$(replace_all_version_separators '-') |
43 |
- TAG_VER=${PN}-code-1688-tags-v$(replace_all_version_separators '-') |
44 |
- #SRC_URI="http://sourceforge.net/code-snapshots/svn/g/ge/genfit/code/${TAG_VER}.zip" |
45 |
- SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${TAG_VER}.zip" |
46 |
- KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
47 |
- S=${WORKDIR}/${TAG_VER} |
48 |
-fi |
49 |
+EAPI=7 |
50 |
+ |
51 |
+DOCS_BUILDER="doxygen" |
52 |
+DOCS_DIR="doc" |
53 |
+ |
54 |
+inherit cmake docs |
55 |
+ |
56 |
+TAG_VER=${PN}-code-1688-tags-v${PV//./-} |
57 |
|
58 |
DESCRIPTION="Generic toolkit for track reconstruction in physics experiments" |
59 |
HOMEPAGE="http://genfit.sourceforge.net/Main.html" # no https |
60 |
+SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${TAG_VER}.zip" |
61 |
|
62 |
LICENSE="LGPL-3" |
63 |
+KEYWORDS="~amd64 ~x86" |
64 |
SLOT="0" |
65 |
-IUSE="doc examples" |
66 |
+ |
67 |
+IUSE="examples" |
68 |
|
69 |
RDEPEND=" |
70 |
sci-physics/root:= |
71 |
- dev-libs/boost:=" |
72 |
-DEPEND="${RDEPEND} |
73 |
- doc? ( app-doc/doxygen[dot] )" |
74 |
+ dev-libs/boost:= |
75 |
+" |
76 |
+DEPEND="${RDEPEND}" |
77 |
+ |
78 |
+S=${WORKDIR}/${TAG_VER} |
79 |
|
80 |
src_compile() { |
81 |
- cmake-utils_src_compile |
82 |
- use doc && cmake-utils_src_compile doc |
83 |
- use examples && cmake-utils_src_compile tests |
84 |
+ cmake_src_compile |
85 |
+ docs_compile |
86 |
+ use examples && cmake_src_compile tests |
87 |
} |
88 |
|
89 |
src_install() { |
90 |
- cmake-utils_src_install |
91 |
+ cmake_src_install |
92 |
if use examples; then |
93 |
insinto /usr/share/doc/${PF} |
94 |
doins -r "${BUILD_DIR}/bin" |
95 |
doins test/makeGeom.C |
96 |
doins test/README |
97 |
fi |
98 |
- use doc && dohtml -r doc/html/* |
99 |
echo |
100 |
elog "Note that there is no support in this ebuild for RAVE yet," |
101 |
elog "which is also not in portage." |
102 |
|
103 |
diff --git a/sci-physics/genfit/genfit-9999.ebuild b/sci-physics/genfit/genfit-9999.ebuild |
104 |
deleted file mode 100644 |
105 |
index 2061c4dc1..000000000 |
106 |
--- a/sci-physics/genfit/genfit-9999.ebuild |
107 |
+++ /dev/null |
108 |
@@ -1,57 +0,0 @@ |
109 |
-# Copyright 1999-2020 Gentoo Authors |
110 |
-# Distributed under the terms of the GNU General Public License v2 |
111 |
- |
112 |
-EAPI=5 |
113 |
- |
114 |
-inherit cmake-utils versionator |
115 |
- |
116 |
-if [[ ${PV} == *9999* ]]; then |
117 |
- inherit git-r3 |
118 |
- EGIT_REPO_URI="https://github.com/GenFit/GenFit.git" |
119 |
- KEYWORDS="" |
120 |
-else |
121 |
- # .zip-snapshot can be recreated by visiting |
122 |
- # http://sourceforge.net/p/${PN}/code/${COMMIT}/tarball?path=/tags/v$(replace_all_version_separators '-') |
123 |
- TAG_VER=${PN}-code-1688-tags-v$(replace_all_version_separators '-') |
124 |
- #SRC_URI="http://sourceforge.net/code-snapshots/svn/g/ge/genfit/code/${TAG_VER}.zip" |
125 |
- SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${TAG_VER}.zip" |
126 |
- KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
127 |
- S=${WORKDIR}/${TAG_VER} |
128 |
-fi |
129 |
- |
130 |
-DESCRIPTION="Generic toolkit for track reconstruction in physics experiments" |
131 |
-HOMEPAGE="http://genfit.sourceforge.net/Main.html" # no https |
132 |
- |
133 |
-LICENSE="LGPL-3" |
134 |
-SLOT="0" |
135 |
-IUSE="doc examples" |
136 |
- |
137 |
-RDEPEND=" |
138 |
- sci-physics/root:= |
139 |
- dev-libs/boost:=" |
140 |
-DEPEND="${RDEPEND} |
141 |
- doc? ( app-doc/doxygen[dot] )" |
142 |
- |
143 |
-src_compile() { |
144 |
- cmake-utils_src_compile |
145 |
- use doc && cmake-utils_src_compile doc |
146 |
- use examples && cmake-utils_src_compile tests |
147 |
-} |
148 |
- |
149 |
-src_install() { |
150 |
- cmake-utils_src_install |
151 |
- if use examples; then |
152 |
- insinto /usr/share/doc/${PF} |
153 |
- doins -r "${BUILD_DIR}/bin" |
154 |
- doins test/makeGeom.C |
155 |
- doins test/README |
156 |
- fi |
157 |
- use doc && dohtml -r doc/html/* |
158 |
- echo |
159 |
- elog "Note that there is no support in this ebuild for RAVE yet," |
160 |
- elog "which is also not in portage." |
161 |
- elog "It should be possible to use a local installation of RAVE" |
162 |
- elog "and set:" |
163 |
- elog " export RAVEPATH=<yourRaveDirectory>" |
164 |
- echo |
165 |
-} |