summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-05-08 18:45:22 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-05-08 18:45:22 +0000
commitc3060305df86f4e973583d142cbc142b51cf97a2 (patch)
treec483dfaca739271c901dbfc59db79d229a88762a /dev-java/jlayer/jlayer-1.0.ebuild
parentDropped ppc-macos keyword, see you in prefix (diff)
downloadgentoo-2-c3060305df86f4e973583d142cbc142b51cf97a2.tar.gz
gentoo-2-c3060305df86f4e973583d142cbc142b51cf97a2.tar.bz2
gentoo-2-c3060305df86f4e973583d142cbc142b51cf97a2.zip
Initial addition. Ebuild written by me.
(Portage version: 2.1.2.7)
Diffstat (limited to 'dev-java/jlayer/jlayer-1.0.ebuild')
-rw-r--r--dev-java/jlayer/jlayer-1.0.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-java/jlayer/jlayer-1.0.ebuild b/dev-java/jlayer/jlayer-1.0.ebuild
new file mode 100644
index 000000000000..5b623fdd29a9
--- /dev/null
+++ b/dev-java/jlayer/jlayer-1.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jlayer/jlayer-1.0.ebuild,v 1.1 2007/05/08 18:45:22 betelgeuse Exp $
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="MP3 decoder/player/converter library for Java"
+HOMEPAGE="http://www.javazoom.net/javalayer/javalayer.html"
+
+SRC_URI="mirror://sourceforge/javalayer/${PN}${PV}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.4"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${RDEPEND}"
+
+S=${WORKDIR}/JLayer${PV}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -v *.jar || die
+ # build expects classes to exist
+ rm -vr classes/* || die
+}
+
+src_compile() {
+ eant dist
+}
+
+# Needs a test mp3 c:/data/test.mp3
+RESTRICT="test"
+src_test() {
+ cd srctest
+ local jar="../jl${PV}.jar"
+ ejavac -cp $(java-pkg_getjars junit):${jar} $(find . -name "*.java")
+ ejunit -cp ${jar}:. AllTests
+}
+
+src_install(){
+ java-pkg_newjar jl${PV}.jar
+ dodoc README.txt CHANGES.txt || die
+ dohtml playerapplet.html || die
+ use doc && java-pkg_dojavadoc doc
+ use source && java-pkg_dosrc src/*
+
+ # the MP3TOWAV converte
+ java-pkg_dolauncher jl-converter \
+ --main javazoom.jl.converter.jlc
+
+ # the simple MP3 player
+ java-pkg_dolauncher jl-player \
+ --main javazoom.jl.player.jlp
+
+ # the advanced (threaded) MP3 player
+ java-pkg_dolauncher jl-advanced-player \
+ --main javazoom.jl.player.advanced.jlap
+}