1 |
commit: 3fdfdae1a6c0035e0c7fb31c4c43caf447f613bf |
2 |
Author: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Oct 25 12:59:27 2013 +0000 |
4 |
Commit: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Oct 28 04:17:27 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3fdfdae1 |
7 |
|
8 |
dev-java/jgraphx version bump |
9 |
|
10 |
--- |
11 |
dev-java/jgraphx/jgraphx-2.1.0.8.ebuild | 42 +++++++++++++++++++++++++++++++++ |
12 |
1 file changed, 42 insertions(+) |
13 |
|
14 |
diff --git a/dev-java/jgraphx/jgraphx-2.1.0.8.ebuild b/dev-java/jgraphx/jgraphx-2.1.0.8.ebuild |
15 |
new file mode 100644 |
16 |
index 0000000..899c3a9 |
17 |
--- /dev/null |
18 |
+++ b/dev-java/jgraphx/jgraphx-2.1.0.8.ebuild |
19 |
@@ -0,0 +1,42 @@ |
20 |
+# Copyright 1999-2013 Gentoo Foundation |
21 |
+# Distributed under the terms of the GNU General Public License v2 |
22 |
+# $Header: $ |
23 |
+ |
24 |
+EAPI=5 |
25 |
+JAVA_PKG_IUSE="doc source" |
26 |
+inherit java-pkg-2 java-ant-2 versionator |
27 |
+ |
28 |
+MY_PV=$(replace_all_version_separators '_') |
29 |
+ |
30 |
+DESCRIPTION="Open-source graph component for Java" |
31 |
+SRC_URI="http://www.jgraph.com/downloads/jgraphx/archive/${PN}-${MY_PV}.zip\ |
32 |
+ -> ${P}.zip" |
33 |
+HOMEPAGE="http://www.jgraph.com" |
34 |
+IUSE="doc examples source" |
35 |
+DEPEND=">=virtual/jdk-1.5 |
36 |
+ app-arch/unzip" |
37 |
+RDEPEND=">=virtual/jre-1.5" |
38 |
+LICENSE="as-is" |
39 |
+SLOT="2.1" |
40 |
+KEYWORDS="~amd64 ~x86" |
41 |
+ |
42 |
+S="${WORKDIR}/${PN}" |
43 |
+ |
44 |
+src_prepare() { |
45 |
+ # don't do javadoc always |
46 |
+ sed -i \ |
47 |
+ -e 's/depends="doc"/depends="compile"/' \ |
48 |
+ build.xml || die "sed failed" |
49 |
+ rm -rf doc/api lib/jgraphx.jar || die |
50 |
+} |
51 |
+ |
52 |
+EANT_BUILD_TARGET="build" |
53 |
+EANT_DOC_TARGET="doc" |
54 |
+ |
55 |
+src_install() { |
56 |
+ java-pkg_dojar lib/${PN}.jar |
57 |
+ |
58 |
+ use doc && java-pkg_dojavadoc docs/api |
59 |
+ use source && java-pkg_dosrc src/org |
60 |
+ use examples && java-pkg_doexamples examples |
61 |
+} |