summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerkan Kaba <serkan@gentoo.org>2008-05-28 21:07:36 +0000
committerSerkan Kaba <serkan@gentoo.org>2008-05-28 21:07:36 +0000
commit9fd914779fa4ef90d9557228d27061a27d8e0f0b (patch)
tree2a043b341d8253a41cbb6cfc82c720be246049e8 /media-sound/jtagger
parentRemove old version. (diff)
downloadgentoo-2-9fd914779fa4ef90d9557228d27061a27d8e0f0b.tar.gz
gentoo-2-9fd914779fa4ef90d9557228d27061a27d8e0f0b.tar.bz2
gentoo-2-9fd914779fa4ef90d9557228d27061a27d8e0f0b.zip
Version bump. Fixes bug #220189.
(Portage version: 2.1.4.4)
Diffstat (limited to 'media-sound/jtagger')
-rw-r--r--media-sound/jtagger/ChangeLog7
-rw-r--r--media-sound/jtagger/jtagger-2008.04.28.ebuild81
2 files changed, 87 insertions, 1 deletions
diff --git a/media-sound/jtagger/ChangeLog b/media-sound/jtagger/ChangeLog
index ff672a59d983..1617643bc16c 100644
--- a/media-sound/jtagger/ChangeLog
+++ b/media-sound/jtagger/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-sound/jtagger
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/jtagger/ChangeLog,v 1.4 2008/05/09 21:00:59 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/jtagger/ChangeLog,v 1.5 2008/05/28 21:07:36 serkan Exp $
+
+*jtagger-2008.04.28 (28 May 2008)
+
+ 28 May 2008; Serkan Kaba <serkan@gentoo.org> +jtagger-2008.04.28.ebuild:
+ Version bump. Fixes bug #220189.
09 May 2008; Christian Faulhammer <opfer@gentoo.org>
jtagger-2008.01.ebuild:
diff --git a/media-sound/jtagger/jtagger-2008.04.28.ebuild b/media-sound/jtagger/jtagger-2008.04.28.ebuild
new file mode 100644
index 000000000000..b300e6e54d4b
--- /dev/null
+++ b/media-sound/jtagger/jtagger-2008.04.28.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/jtagger/jtagger-2008.04.28.ebuild,v 1.1 2008/05/28 21:07:36 serkan Exp $
+
+EAPI="1"
+
+JAVA_PKG_IUSE="source test"
+
+inherit eutils java-pkg-2
+
+DESCRIPTION="Powerful MP3 tag and filename editor"
+HOMEPAGE="http://dronten.googlepages.com/jtagger"
+SRC_URI="http://dronten.googlepages.com/${P}.zip"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+SLOT="0"
+
+COMMON_DEP="
+ dev-java/jlayer
+ >=dev-java/jid3-0.46-r1"
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEP}"
+
+DEPEND="${COMMON_DEP}
+ >=virtual/jdk-1.5
+ app-arch/unzip
+ test? ( dev-java/junit:0 )"
+
+src_unpack() {
+ mkdir -p "${S}/src" || die
+ cd "${S}/src" || die
+
+ unpack ${A}
+ unzip -q ${PN}.jar || die
+
+ rm -vr ${PN}.jar javazoom org META-INF || die
+ find . -name '*.class' -delete || die
+
+ # Move the tests away
+ mkdir -p ../test/com/googlepages/dronten/jtagger || die
+ mv com/googlepages/dronten/jtagger/test \
+ ../test/com/googlepages/dronten/jtagger/test || die
+}
+
+src_compile() {
+ local classpath="$(java-pkg_getjars jid3,jlayer)"
+
+ cd "${S}/src"
+ find . -name '*.java' > sources.list
+ ejavac -encoding latin1 -cp "${classpath}" @sources.list
+
+ find . -name '*.class' -o -name '*.png' > classes.list
+ touch myManifest
+ jar cmf myManifest ${PN}.jar @classes.list || die "jar failed"
+}
+
+src_test() {
+ cd "${S}/test"
+
+ local cp=".:${S}/src/${PN}.jar:$(java-pkg_getjars jid3,jlayer)"
+ cp="${cp}:$(java-pkg_getjars --build-only junit)"
+
+ find . -name '*.java' > sources.list
+ ejavac -cp "${cp}" @sources.list
+ ejunit -cp "${cp}" \
+ com.googlepages.dronten.jtagger.test.TestRenameAlbum \
+ com.googlepages.dronten.jtagger.test.TestRenameFile \
+ com.googlepages.dronten.jtagger.test.TestRenameTitle
+}
+
+src_install() {
+ java-pkg_dojar src/${PN}.jar
+ java-pkg_dolauncher jtagger --main com.googlepages.dronten.jtagger.JTagger
+
+ use source && java-pkg_dosrc src/com
+
+ newicon src/com/googlepages/dronten/jtagger/resource/jTagger.icon.png ${PN}.png
+ make_desktop_entry jtagger "jTagger MP3 tag editor"
+}