diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/ditaa/ditaa-0.10.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/ditaa/ditaa-0.10.ebuild')
-rw-r--r-- | media-gfx/ditaa/ditaa-0.10.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/media-gfx/ditaa/ditaa-0.10.ebuild b/media-gfx/ditaa/ditaa-0.10.ebuild new file mode 100644 index 000000000000..2880c26215bb --- /dev/null +++ b/media-gfx/ditaa/ditaa-0.10.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit java-pkg-2 + +DESCRIPTION="A utility that converts ascii-art diagrams to bitmap diagrams" +HOMEPAGE="https://github.com/stathissideris/ditaa" +SRC_URI="https://github.com/stathissideris/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-java/ant-core:0 + >=virtual/jdk-1.7:*" +RDEPEND=">=virtual/jdk-1.7:*" + +src_prepare() { + default + sed "s:0_9:${PV/./_}:" -i build/release.xml || die + sed "s:version 0.9:version ${PV}:" -i \ + src/org/stathissideris/ascii2image/core/CommandLineConverter.java || die +} + +src_compile() { + mkdir bin || die + ant -buildfile build/release.xml release-jar || die +} + +src_install() { + java-pkg_newjar releases/${PN}${PV/./_}.jar ${PN}.jar + java-pkg_dolauncher ${PN} +} |