diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-11-30 13:57:05 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-11-30 13:57:05 +0100 |
commit | 94a92df18689f30412feb49e59cb4f4ae6789d69 (patch) | |
tree | dcf3deb9c5bf895c73b02eff7dc832cb656fea97 /dev-java | |
parent | sci-biology/minimap2: install more files, document incompleteness (diff) | |
download | sci-94a92df18689f30412feb49e59cb4f4ae6789d69.tar.gz sci-94a92df18689f30412feb49e59cb4f4ae6789d69.tar.bz2 sci-94a92df18689f30412feb49e59cb4f4ae6789d69.zip |
dev-java/jfreesvg: last-rites from ::gentoo, EAPI bump
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jfreesvg/Manifest | 2 | ||||
-rw-r--r-- | dev-java/jfreesvg/jfreesvg-2.1-r1.ebuild | 43 | ||||
-rw-r--r-- | dev-java/jfreesvg/jfreesvg-3.0.ebuild | 40 | ||||
-rw-r--r-- | dev-java/jfreesvg/metadata.xml | 16 |
4 files changed, 101 insertions, 0 deletions
diff --git a/dev-java/jfreesvg/Manifest b/dev-java/jfreesvg/Manifest new file mode 100644 index 000000000..e35008887 --- /dev/null +++ b/dev-java/jfreesvg/Manifest @@ -0,0 +1,2 @@ +DIST jfreesvg-2.1.zip 2042545 BLAKE2B 702ea55c6e51bca156a41c5e624452fdad8c1a5472c204cbf58f796134ed6027259abd0a48719bbb5f83f6891ab3aec5db58c8726b0275b894065148a07ec179 SHA512 6c1556c640e749778aeb969540db7724895fe2113a7ceea732793730301dd04a1beafef35249b27b75696271bcd67a59236a15c106f7717482561011a1a08bc4 +DIST jfreesvg-3.0.zip 1946062 BLAKE2B 58aa3c95db3a0472de1e2c184f1e8bc9aa72b86f508dd7d41f169f03c8f07380269a36d0a22a71378ab7c2d45427fb479994b907c4e25317794814da69f79d7c SHA512 7d0bdcbf56f0a7110058137d53e291c41e53040cbc19442989a0c6d28f5d6d3ed26ecedbfc947ce845b8a971729e2d784e8ce5a041f6f095ff626a3494a55715 diff --git a/dev-java/jfreesvg/jfreesvg-2.1-r1.ebuild b/dev-java/jfreesvg/jfreesvg-2.1-r1.ebuild new file mode 100644 index 000000000..62b6965cd --- /dev/null +++ b/dev-java/jfreesvg/jfreesvg-2.1-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="JFreeSVG is a fast, light-weight, vector graphics library for the Java platform" +HOMEPAGE="http://www.jfree.org/jfreesvg/" +SRC_URI="mirror://sourceforge/jfreegraphics2d/${P}.zip" + +LICENSE="GPL-3" +SLOT="2.1" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +BDEPEND=" + app-arch/unzip + >=virtual/jdk-1.6" + +RDEPEND=" + >=virtual/jre-1.6" + +src_prepare() { + default + java-pkg_clean +} + +src_compile() { + if ! use debug; then + antflags="-Dbuild.debug=false -Dbuild.optimize=true" + fi + eant -f ant/build.xml compile $(use_doc) $antflags +} + +src_install() { + java-pkg_newjar "./lib/${P}.jar" ${PN}.jar + dodoc README.md + use doc && java-pkg_dojavadoc javadoc + use source && java-pkg_dosrc src/main/java +} diff --git a/dev-java/jfreesvg/jfreesvg-3.0.ebuild b/dev-java/jfreesvg/jfreesvg-3.0.ebuild new file mode 100644 index 000000000..ec6f7ac34 --- /dev/null +++ b/dev-java/jfreesvg/jfreesvg-3.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="JFreeSVG is a fast, light-weight, vector graphics library for the Java platform" +HOMEPAGE="http://www.jfree.org/jfreesvg/" +SRC_URI="mirror://sourceforge/jfreegraphics2d/${P}.zip" + +LICENSE="GPL-3" +SLOT="3.0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +BDEPEND=">=virtual/jdk-1.6 + app-arch/unzip" +RDEPEND=">=virtual/jre-1.6" + +src_prepare() { + default + find "${WORKDIR}" -name '*.jar' -print -delete || die +} + +src_compile() { + if ! use debug; then + antflags="-Dbuild.debug=false -Dbuild.optimize=true" + fi + eant -f ant/build.xml compile $(use_doc) $antflags +} + +src_install() { + java-pkg_newjar "./lib/${P}.jar" ${PN}.jar + dodoc README.md + use doc && java-pkg_dojavadoc javadoc + use source && java-pkg_dosrc src/main/java +} diff --git a/dev-java/jfreesvg/metadata.xml b/dev-java/jfreesvg/metadata.xml new file mode 100644 index 000000000..bcad7a209 --- /dev/null +++ b/dev-java/jfreesvg/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <use> + <flag name="debug"> + Enable debugging during compilation. + </flag> + </use> + <upstream> + <remote-id type="sourceforge">jfreegraphics2d</remote-id> + </upstream> +</pkgmetadata> |