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 /app-office/borg/borg-1.7.4-r3.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-office/borg/borg-1.7.4-r3.ebuild')
-rw-r--r-- | app-office/borg/borg-1.7.4-r3.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/app-office/borg/borg-1.7.4-r3.ebuild b/app-office/borg/borg-1.7.4-r3.ebuild new file mode 100644 index 000000000000..71dd8218d122 --- /dev/null +++ b/app-office/borg/borg-1.7.4-r3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit versionator java-pkg-2 java-ant-2 + +MY_PN="${PN}_src" +MY_PV="$(replace_all_version_separators _ )" + +DESCRIPTION="Calendar and task tracker, written in Java" +HOMEPAGE="http://borg-calendar.sourceforge.net/" +SRC_URI="mirror://sourceforge/borg-calendar/borg%201.7/BORG%20${PV}/${MY_PN}_${MY_PV}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +CDEPEND=" + dev-java/javahelp:0 + dev-java/oracle-javamail:0" +RDEPEND="${CDEPEND} + >=virtual/jre-1.6 + dev-db/hsqldb:0 + dev-java/jgoodies-looks:2.0" +DEPEND="${CDEPEND} + >=virtual/jdk-1.6 + app-arch/unzip" + +S="${WORKDIR}/${MY_PN}/BORGCalendar" + +java_prepare() { + # Upstream is dead and we already have dev-java/jcalendar + # but it's not the same thing. + find -name '*.jar' -! -name 'jcalendar.jar' \ + -exec rm -v {} + || die +} + +JAVA_ANT_REWRITE_CLASSPATH="yes" +JAVA_ANT_CLASSPATH_TAGS+=" javadoc" + +EANT_BUILD_XML="ant/build.xml" +EANT_BUILD_TARGET="borg-jar help-jar" +EANT_GENTOO_CLASSPATH="javahelp oracle-javamail" + +src_install() { + java-pkg_dojar dist/${PN}.jar + java-pkg_dojar build/lib/${PN}help.jar + java-pkg_dojar lib/jcalendar.jar + java-pkg_register-dependency hsqldb,jgoodies-looks-2.0 + + java-pkg_dolauncher ${PN} --main net.sf.borg.control.Borg + + use doc && java-pkg_dojavadoc docs + use doc && java-pkg_dosrc src/* +} |