Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/genfit/
Date: Sun, 03 Jan 2021 06:18:42
Message-Id: 1609654619.5487949bc6e7b36df548068bb8e6de769a09dff7.chymera@gentoo
1 commit: 5487949bc6e7b36df548068bb8e6de769a09dff7
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Sat Jan 2 20:51:43 2021 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Sun Jan 3 06:16:59 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=5487949b
7
8 sci-physics/genfit: Add functional live ebuild.
9
10 This also fixes documentation generation
11 and installation, and adds myself as maintainer.
12
13 Package-Manager: Portage-3.0.12, Repoman-3.0.2
14 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
15 Signed-off-by: Horea Christian <chr <AT> chymera.eu>
16
17 sci-physics/genfit/genfit-02.00.00.ebuild | 34 ++++++++++++---------
18 .../{genfit-02.00.00.ebuild => genfit-9999.ebuild} | 35 +++++++++++++---------
19 sci-physics/genfit/metadata.xml | 6 +++-
20 3 files changed, 46 insertions(+), 29 deletions(-)
21
22 diff --git a/sci-physics/genfit/genfit-02.00.00.ebuild b/sci-physics/genfit/genfit-02.00.00.ebuild
23 index 9aa92b2ba..c2e29cc03 100644
24 --- a/sci-physics/genfit/genfit-02.00.00.ebuild
25 +++ b/sci-physics/genfit/genfit-02.00.00.ebuild
26 @@ -1,24 +1,28 @@
27 -# Copyright 1999-2020 Gentoo Authors
28 +# Copyright 1999-2021 Gentoo Authors
29 # Distributed under the terms of the GNU General Public License v2
30
31 EAPI=7
32
33 -DOCS_BUILDER="doxygen"
34 -DOCS_DIR="doc"
35 +inherit cmake
36
37 -inherit cmake docs
38 -
39 -TAG_VER=${PN}-code-1688-tags-v${PV//./-}
40 +if [[ ${PV} == *9999* ]]; then
41 + inherit git-r3
42 + EGIT_REPO_URI="https://github.com/GenFit/GenFit.git"
43 + KEYWORDS=""
44 +else
45 + TAG_VER=${PN}-code-1688-tags-v${PV//./-}
46 + SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${TAG_VER}.zip"
47 + KEYWORDS="~amd64 ~x86"
48 + S=${WORKDIR}/${TAG_VER}
49 +fi
50
51 DESCRIPTION="Generic toolkit for track reconstruction in physics experiments"
52 -HOMEPAGE="http://genfit.sourceforge.net/Main.html" # no https
53 -SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${TAG_VER}.zip"
54 +HOMEPAGE="https://github.com/GenFit/GenFit"
55
56 LICENSE="LGPL-3"
57 -KEYWORDS="~amd64 ~x86"
58 SLOT="0"
59
60 -IUSE="examples"
61 +IUSE="doc examples"
62
63 RDEPEND="
64 sci-physics/root:=
65 @@ -26,18 +30,20 @@ RDEPEND="
66 "
67 DEPEND="${RDEPEND}"
68
69 -S=${WORKDIR}/${TAG_VER}
70 -
71 src_compile() {
72 cmake_src_compile
73 - docs_compile
74 + use doc && cmake_src_compile doc
75 use examples && cmake_src_compile tests
76 }
77
78 src_install() {
79 cmake_src_install
80 + if use doc; then
81 + docinto html
82 + dodoc -r doc/html/.
83 + fi
84 if use examples; then
85 - insinto /usr/share/doc/${PF}
86 + insinto /usr/share/doc/${PF}/examples
87 doins -r "${BUILD_DIR}/bin"
88 doins test/makeGeom.C
89 doins test/README
90
91 diff --git a/sci-physics/genfit/genfit-02.00.00.ebuild b/sci-physics/genfit/genfit-9999.ebuild
92 similarity index 59%
93 copy from sci-physics/genfit/genfit-02.00.00.ebuild
94 copy to sci-physics/genfit/genfit-9999.ebuild
95 index 9aa92b2ba..1e4e75ae7 100644
96 --- a/sci-physics/genfit/genfit-02.00.00.ebuild
97 +++ b/sci-physics/genfit/genfit-9999.ebuild
98 @@ -3,22 +3,27 @@
99
100 EAPI=7
101
102 -DOCS_BUILDER="doxygen"
103 -DOCS_DIR="doc"
104 -
105 -inherit cmake docs
106 -
107 -TAG_VER=${PN}-code-1688-tags-v${PV//./-}
108 +inherit cmake
109 +
110 +if [[ ${PV} == *9999* ]]; then
111 + inherit git-r3
112 + EGIT_REPO_URI="https://github.com/GenFit/GenFit.git"
113 + KEYWORDS=""
114 +else
115 + EGIT_COMMIT=""
116 + MY_PN="GenFit"
117 + SRC_URI="https://github.com/GenFit/GenFit/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
118 + KEYWORDS="~amd64 ~x86"
119 + S="${WORKDIR}/${MY_PN}-${EGIT_COMMIT}"
120 +fi
121
122 DESCRIPTION="Generic toolkit for track reconstruction in physics experiments"
123 -HOMEPAGE="http://genfit.sourceforge.net/Main.html" # no https
124 -SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${TAG_VER}.zip"
125 +HOMEPAGE="https://github.com/GenFit/GenFit"
126
127 LICENSE="LGPL-3"
128 -KEYWORDS="~amd64 ~x86"
129 SLOT="0"
130
131 -IUSE="examples"
132 +IUSE="doc examples"
133
134 RDEPEND="
135 sci-physics/root:=
136 @@ -26,18 +31,20 @@ RDEPEND="
137 "
138 DEPEND="${RDEPEND}"
139
140 -S=${WORKDIR}/${TAG_VER}
141 -
142 src_compile() {
143 cmake_src_compile
144 - docs_compile
145 + use doc && cmake_src_compile doc
146 use examples && cmake_src_compile tests
147 }
148
149 src_install() {
150 cmake_src_install
151 + if use doc; then
152 + docinto html
153 + dodoc -r doc/html/.
154 + fi
155 if use examples; then
156 - insinto /usr/share/doc/${PF}
157 + insinto /usr/share/doc/${PF}/examples
158 doins -r "${BUILD_DIR}/bin"
159 doins test/makeGeom.C
160 doins test/README
161
162 diff --git a/sci-physics/genfit/metadata.xml b/sci-physics/genfit/metadata.xml
163 index 90b22390e..2796af0dc 100644
164 --- a/sci-physics/genfit/metadata.xml
165 +++ b/sci-physics/genfit/metadata.xml
166 @@ -1,6 +1,10 @@
167 <?xml version="1.0" encoding="UTF-8"?>
168 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
169 <pkgmetadata>
170 + <maintainer type="person">
171 + <email>o.freyermuth@××××××××××.com</email>
172 + <name>Oliver Freyermuth</name>
173 + </maintainer>
174 <maintainer type="project">
175 <email>sci-physics@g.o</email>
176 <name>Gentoo Physics Project</name>
177 @@ -32,6 +36,6 @@ FAIR, Darmstadt, Germany.
178 It is also used in the Belle-2, Fopi, and GEM-TPC experiments.
179 </longdescription>
180 <upstream>
181 - <remote-id type="sourceforge">genfit</remote-id>
182 + <remote-id type="github">GenFit/GenFit</remote-id>
183 </upstream>
184 </pkgmetadata>