1 |
commit: 3f167e33055c87a7509addc1f5170907c9ac3456 |
2 |
Author: Kacper Kowalik (Xarthisius) <xarthisius.kk <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 30 06:18:20 2011 +0000 |
4 |
Commit: Kacper Kowalik <xarthisius <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 30 06:21:57 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3f167e33 |
7 |
|
8 |
[sci-physics/fastjet] general QA |
9 |
|
10 |
--- |
11 |
sci-physics/fastjet/ChangeLog | 9 +++++++ |
12 |
sci-physics/fastjet/fastjet-2.4.4.ebuild | 36 ++++++++++++++++++++--------- |
13 |
2 files changed, 34 insertions(+), 11 deletions(-) |
14 |
|
15 |
diff --git a/sci-physics/fastjet/ChangeLog b/sci-physics/fastjet/ChangeLog |
16 |
new file mode 100644 |
17 |
index 0000000..5950d5b |
18 |
--- /dev/null |
19 |
+++ b/sci-physics/fastjet/ChangeLog |
20 |
@@ -0,0 +1,9 @@ |
21 |
+# ChangeLog for sci-physics/fastjet |
22 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
23 |
+# $Header: $ |
24 |
+ |
25 |
+ 30 Jul 2011; Kacper Kowalik <xarthisius@g.o> fastjet-2.4.4.ebuild: |
26 |
+ Remove unused eutils.eclass, shorten DESC, add missing license, sort |
27 |
+ KEYWORDS, add static-libs, docs IUSE, add dependency on doxygen for [doc], |
28 |
+ build only shared libs by default, install documentation |
29 |
+ |
30 |
|
31 |
diff --git a/sci-physics/fastjet/fastjet-2.4.4.ebuild b/sci-physics/fastjet/fastjet-2.4.4.ebuild |
32 |
index 0a8871e..73991c7 100644 |
33 |
--- a/sci-physics/fastjet/fastjet-2.4.4.ebuild |
34 |
+++ b/sci-physics/fastjet/fastjet-2.4.4.ebuild |
35 |
@@ -3,24 +3,23 @@ |
36 |
# $Header: $ |
37 |
|
38 |
EAPI=4 |
39 |
-inherit eutils |
40 |
|
41 |
-DESCRIPTION="Fast implementation of several longitudinal invariant sequential |
42 |
-recombination jet algorithms" |
43 |
+DESCRIPTION="Fast implementation of several recombination jet algorithms" |
44 |
HOMEPAGE="http://www.lpthe.jussieu.fr/~salam/fastjet/" |
45 |
SRC_URI="http://www.lpthe.jussieu.fr/~salam/fastjet/repo/${PF}.tar.gz" |
46 |
|
47 |
-LICENSE="GPL-2" |
48 |
+LICENSE="GPL-2 QPL" |
49 |
SLOT="0" |
50 |
-KEYWORDS="~x86 ~amd64" |
51 |
-IUSE="+allplugins +allcxxplugins cgal" |
52 |
+KEYWORDS="~amd64 ~x86" |
53 |
+IUSE="+allplugins +allcxxplugins cgal doc static-libs" |
54 |
|
55 |
-DEPEND="cgal? ( sci-mathematics/cgal )" |
56 |
-RDEPEND="${DEPEND}" |
57 |
+RDEPEND="cgal? ( sci-mathematics/cgal )" |
58 |
+DEPEND="${RDEPEND} |
59 |
+ doc? ( app-doc/doxygen )" |
60 |
|
61 |
pkg_setup() { |
62 |
if use allplugins || use allcxxplugins; then |
63 |
- elog |
64 |
+ echo |
65 |
elog "Will build all plugins since you have one of allplugins or allcxxplugins set." |
66 |
elog "The following plugins are available:" |
67 |
elog " - siscone" |
68 |
@@ -33,7 +32,7 @@ pkg_setup() { |
69 |
elog " - cmsiterativecone" |
70 |
elog " - eecambridge" |
71 |
elog " - jade" |
72 |
- elog |
73 |
+ echo |
74 |
fi |
75 |
} |
76 |
|
77 |
@@ -42,6 +41,7 @@ src_configure() { |
78 |
$(use_enable allplugins) \ |
79 |
$(use_enable allcxxplugins) \ |
80 |
$(use_enable cgal) \ |
81 |
+ $(use_enable static-libs static) |
82 |
# --enable-siscone \ |
83 |
# --enable-cdfcones \ |
84 |
# --enable-pxcone \ |
85 |
@@ -54,6 +54,20 @@ src_configure() { |
86 |
# --enable-jade |
87 |
} |
88 |
|
89 |
+src_compile() { |
90 |
+ default_src_compile |
91 |
+ if use doc; then |
92 |
+ $(type -p doxygen) Doxyfile || die |
93 |
+ fi |
94 |
+} |
95 |
+ |
96 |
src_install() { |
97 |
- emake DESTDIR="${D}" install |
98 |
+ default_src_install |
99 |
+ nonfatal dodoc AUTHORS BUGS ChangeLog NEWS README |
100 |
+ if use doc; then |
101 |
+ dohtml html/* |
102 |
+ fi |
103 |
+ if ! use static-libs; then |
104 |
+ find "${D}" -name '*.la' -exec rm -f {} |
105 |
+ fi |
106 |
} |