You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/jid3/jid3-0.46-r2.ebuild

61 lines
1.2 KiB

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
JAVA_PKG_IUSE="doc source test"
# To make sure the javadoc patch doesn't break things
WANT_SPLIT_WANT="true"
inherit eutils java-pkg-2 java-ant-2
MY_P="${P/-/_}"
DESCRIPTION="ID3 Class Library Implementation"
HOMEPAGE="http://jid3.blinkenlights.org/"
SRC_URI="http://jid3.blinkenlights.org/release/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86"
S="${WORKDIR}/${MY_P}"
# Feel free to submit a patch that doesn't bundle the classes
# into the result jar
DEPEND=">=virtual/jdk-1.4
test? ( =dev-java/junit-3.8* )"
RDEPEND=">=virtual/jre-1.4"
java_prepare() {
epatch "${FILESDIR}"/${PV}-javadoc.patch
epatch "${FILESDIR}"/${PV}-tests-and-unicode.patch
rm -v "${S}"/dist/*.jar || die
if use !test; then
rm -rv "${S}/src/org/blinkenlights/jid3/test" || die
fi
}
src_compile() {
local junit="-Dlibs.junit.classpath"
eant jar $(use_doc) \
$(use test && echo ${junit}=$(java-pkg_getjars --build-only junit))
}
src_test() {
ejunit -cp dist/JID3.jar org.blinkenlights.jid3.test.AllTests
}
src_install() {
java-pkg_dojar dist/JID3.jar
use doc && java-pkg_dojavadoc dist/javadoc
use source && java-pkg_dosrc src/
}