diff options
Diffstat (limited to 'dev-java/jgraphx/jgraphx-1.4.1.0.ebuild')
-rw-r--r-- | dev-java/jgraphx/jgraphx-1.4.1.0.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-java/jgraphx/jgraphx-1.4.1.0.ebuild b/dev-java/jgraphx/jgraphx-1.4.1.0.ebuild new file mode 100644 index 000000000..5813fb713 --- /dev/null +++ b/dev-java/jgraphx/jgraphx-1.4.1.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +JAVA_PKG_IUSE="doc source" +EAPI=2 +inherit java-pkg-2 java-ant-2 versionator + +MY_PV=$(replace_all_version_separators '_') + +DESCRIPTION="Open-source graph component for Java" +SRC_URI="http://www.jgraph.com/downloads/jgraphx/archive/${PN}-${MY_PV}.zip\ + -> ${P}.zip" +HOMEPAGE="http://www.jgraph.com" +IUSE="doc examples source" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip" +RDEPEND=">=virtual/jre-1.5" +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}/${PN}" + +src_prepare() { + # don't do javadoc always + sed -i \ + -e 's/depends="doc"/depends="compile"/' \ + build.xml || die "sed failed" + rm -rf doc/api lib/jgraphx.jar || die +} + +EANT_BUILD_TARGET="build" +EANT_DOC_TARGET="doc" + +src_install() { + java-pkg_dojar lib/${PN}.jar + + use doc && java-pkg_dojavadoc docs/api + use source && java-pkg_dosrc src/org + use examples && java-pkg_doexamples examples +} |