1 |
commit: 20fec395aeec140cb11e0cde9c7c486434e36f5a |
2 |
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> |
3 |
AuthorDate: Sun Jul 6 20:31:52 2014 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 6 20:31:52 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=20fec395 |
7 |
|
8 |
New live ebuild for VGM, adapting to fixes for cmake install paths in upstream (no need to manually install in ebuild anymore). |
9 |
Released VGM-4.00 does not have these fixes yet, I am discussing with upstream whether they can also provide some tarballs of released versions (as sourceforge svn-snapshotting is unusable for us) and delay packaging of VGM-4.00 until then. |
10 |
|
11 |
--- |
12 |
sci-physics/vgm/ChangeLog | 6 ++++ |
13 |
sci-physics/vgm/vgm-9999.ebuild | 68 +++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 74 insertions(+) |
15 |
|
16 |
diff --git a/sci-physics/vgm/ChangeLog b/sci-physics/vgm/ChangeLog |
17 |
index 78f7e21..a316389 100644 |
18 |
--- a/sci-physics/vgm/ChangeLog |
19 |
+++ b/sci-physics/vgm/ChangeLog |
20 |
@@ -2,6 +2,12 @@ |
21 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
22 |
# $Header: $ |
23 |
|
24 |
+*vgm-9999 (06 Jul 2014) |
25 |
+ |
26 |
+ 06 Jul 2014; Oliver Freyermuth <o.freyermuth@××××××××××.com> +vgm-9999.ebuild: |
27 |
+ New live ebuild for VGM, adapting to fixes for cmake install paths in upstream |
28 |
+ (no need to manually install in ebuild anymore). |
29 |
+ |
30 |
03 Apr 2014; Oliver Freyermuth <o.freyermuth@××××××××××.com> vgm-3.06.ebuild: |
31 |
Use zip-snapshot mirrored by jlec, sourceforge cannot automatically recreate |
32 |
them and changes CRC each time |
33 |
|
34 |
diff --git a/sci-physics/vgm/vgm-9999.ebuild b/sci-physics/vgm/vgm-9999.ebuild |
35 |
new file mode 100644 |
36 |
index 0000000..ddadd99 |
37 |
--- /dev/null |
38 |
+++ b/sci-physics/vgm/vgm-9999.ebuild |
39 |
@@ -0,0 +1,68 @@ |
40 |
+# Copyright 1999-2014 Gentoo Foundation |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+# $Header: $ |
43 |
+ |
44 |
+EAPI=5 |
45 |
+ |
46 |
+inherit cmake-utils versionator subversion |
47 |
+ |
48 |
+if [[ ${PV} == *9999* ]]; then |
49 |
+ ESVN_REPO_URI="svn://svn.code.sf.net/p/vgm/code/trunk/vgm" |
50 |
+ KEYWORDS="" |
51 |
+else |
52 |
+ # .zip-snapshot can be recreated by visiting |
53 |
+ # http://sourceforge.net/p/${PN}/code/${COMMIT}/tarball?path=/tags/v$(replace_all_version_separators '-') |
54 |
+ TAG_VER="${PN}-code-731-tags-v$(replace_all_version_separators '-')" |
55 |
+ SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${TAG_VER}.zip" |
56 |
+ S=${WORKDIR}/${TAG_VER}/${PN} |
57 |
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
58 |
+fi |
59 |
+ |
60 |
+DESCRIPTION="Virtual Geometry Model for High Energy Physics Experiments" |
61 |
+HOMEPAGE="http://ivana.home.cern.ch/ivana/VGM.html" |
62 |
+ |
63 |
+LICENSE="GPL-2" |
64 |
+SLOT="0" |
65 |
+IUSE="doc examples +geant4 +root test xml" |
66 |
+ |
67 |
+RDEPEND=" |
68 |
+ sci-physics/clhep:= |
69 |
+ root? ( sci-physics/root:= ) |
70 |
+ geant4? ( >=sci-physics/geant-4.9.6 ) |
71 |
+ xml? ( dev-libs/xerces-c )" |
72 |
+DEPEND="${RDEPEND} |
73 |
+ doc? ( app-doc/doxygen[dot] ) |
74 |
+ test? ( geant4? ( xml? ( >=sci-physics/geant-4.9.6[gdml] ) ) )" |
75 |
+ |
76 |
+src_configure() { |
77 |
+ local mycmakeargs=( |
78 |
+ -DCLHEP_DIR="${EROOT}usr" |
79 |
+ $(cmake-utils_use_with examples) |
80 |
+ $(cmake-utils_use examples VGM_INSTALL_EXAMPLES) |
81 |
+ $(cmake-utils_use_with geant4) |
82 |
+ $(cmake-utils_use_with root) |
83 |
+ $(cmake-utils_use_with test) |
84 |
+ $(cmake-utils_use_with xml xercesc) |
85 |
+ ) |
86 |
+ cmake-utils_src_configure |
87 |
+} |
88 |
+ |
89 |
+src_compile() { |
90 |
+ cmake-utils_src_compile |
91 |
+ if use doc; then |
92 |
+ cd packages |
93 |
+ doxygen || die |
94 |
+ fi |
95 |
+} |
96 |
+ |
97 |
+src_test() { |
98 |
+ cd "${BUILD_DIR}"/test |
99 |
+ ./test_suite.sh || die |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ cmake-utils_src_install |
104 |
+ cd doc || die |
105 |
+ dodoc README todo.txt VGMhistory.txt VGM.html VGMversions.html |
106 |
+ use doc && dohtml -r html/* |
107 |
+} |