[proaudio] [1530] tuxguitar 1.2 version bump

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 1530
Author:   alchemist
Date:     2009-12-17 12:45:45 +0100 (Thu, 17 Dec 2009)
Log Message:
-----------
tuxguitar 1.2 version bump

Modified Paths:
--------------
    trunk/overlays/proaudio/media-sound/tuxguitar/Manifest

Added Paths:
-----------
    trunk/overlays/proaudio/media-sound/tuxguitar/tuxguitar-1.2.ebuild

Modified: trunk/overlays/proaudio/media-sound/tuxguitar/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/tuxguitar/Manifest	2009-11-24 13:57:34 UTC (rev 1529)
+++ trunk/overlays/proaudio/media-sound/tuxguitar/Manifest	2009-12-17 11:45:45 UTC (rev 1530)
@@ -7,9 +7,11 @@
 DIST tuxguitar-1.0-linux-ppc.tar.gz 5476894 RMD160 333954eecfa90fc4013f216aa369e09c28b8f5b5 SHA1 9823696478633dbfdd47b861cb7ccbe88792e62d SHA256 38e260227d4c2c32b2cd54fd37c47b6420e24213cbc05449cc977f15ee9249d2
 DIST tuxguitar-1.0-linux-x86.tar.gz 5439379 RMD160 caf6b5782c6e7a14de3900aced7725d901b21312 SHA1 5b9629822e0e3b14b90d58e14fd01868bb15bb0d SHA256 4cedd3b975fc1218e365ef65c12adc00e87da3aa41bf06ae6a131a8ea2bab601
 DIST tuxguitar-1.0-linux-x86_64.tar.gz 5530603 RMD160 87e0d1b71f4c841d49ce438afdd67339ec93fb04 SHA1 1e9ce1ec4a08b7389c1cc7c017c59841e105a8de SHA256 5ceda53b469e90054b4bfb4654d0b68196733315ce32028852b0172d7c6bf956
+DIST tuxguitar-src-1.2.tar.gz 2548224 RMD160 a92f79e9517f4d431ff382809a700d1a1e56e4ee SHA1 57d1e56215778b7331eb1dbf8edb2e9b6799fcc7 SHA256 84a4fc6ae4802442fd0cc011e19316c0e4ca5a6d684db4306cdf19d09e703ebc
 EBUILD tuxguitar-0.5.ebuild 1096 RMD160 df9f11c6b3641b9aaa1ceb6552a67a8c6500939b SHA1 f1c923d408e06a5183e2bd2b7b3a873a19fdecf5 SHA256 c10ab09347d749cc73a9c2618fa87a20de177a711f412649b4462f89937b608c
 EBUILD tuxguitar-0.6.ebuild 1193 RMD160 36be759eca7d85efcb33ecd755601eddf475a080 SHA1 2e32523f4ada4b95521ec40f0e35704a3c24de79 SHA256 ef369235af35f5b4a0833eb43c9d12cf97af66d13cdf40ef47ef56097419c75d
 EBUILD tuxguitar-0.8.ebuild 1172 RMD160 9d4153a1d131dbb963ce6084918fd28021462f0d SHA1 a74e2f00e05dcbd5c97b3458078f9dec6b2c27a2 SHA256 388864960587ff58d987421b0864518d5066818ae74d8138d25182d0d0427dee
 EBUILD tuxguitar-1.0.ebuild 1303 RMD160 98ad0d8e01888b66d08e3237e83336f9768cf0b0 SHA1 06def840ddc42e3e206f8e68c88c19774b483548 SHA256 fa0d9edfd36b407319c0c7b86cf87da83fb953ebdd695b60b460ffc4ae35e2fb
+EBUILD tuxguitar-1.2.ebuild 3417 RMD160 8d15a2f2010456dd7b04ce3972f1246fe7891cd1 SHA1 e7f7585cc077a430b2f1ee8876bccf4d6e68919e SHA256 3bd9a0f9060f1a21f321868c0f39cb44aa05942ff6f83aa4da8f58698734d441
 MISC ChangeLog 538 RMD160 941a3b8e6d93fefcc8522343790b86d210cca980 SHA1 5292d63e032f8c8da5b63d926c9ba08933c47553 SHA256 b08655410ea34d8b7b72c61294fb0d7727843c7217e6627d35b4b7605b7a9016
 MISC metadata.xml 268 RMD160 facc07bd885f20615a1f2555069329c642e1a566 SHA1 2456bdb8a218c9d477d2d6ee4bf158de070c7be4 SHA256 96629b266b743f566c29158d4498edeeb1cd6b1f0cd9629e42d4f10b4da82f89

Added: trunk/overlays/proaudio/media-sound/tuxguitar/tuxguitar-1.2.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/tuxguitar/tuxguitar-1.2.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-sound/tuxguitar/tuxguitar-1.2.ebuild	2009-12-17 11:45:45 UTC (rev 1530)
@@ -0,0 +1,117 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /home/robert/ebuilds/tuxguitar-1.2-r1.ebuild,v 1.2 2009/11/13 16:12:45 robert Exp $
+
+EAPI="2"
+JAVA_PKG_IUSE="source"
+
+inherit eutils java-pkg-2 java-ant-2 toolchain-funcs flag-o-matic fdo-mime gnome2-utils
+
+MY_P="${PN}-src-${PV}"
+DESCRIPTION="TuxGuitar is a multitrack guitar tablature editor and player written in Java-SWT"
+HOMEPAGE="http://www.tuxguitar.com.ar/";
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="alsa fluidsynth oss pdf"
+
+# Test notes
+# Couldn't get JSA plugin working out of the box with IcedTea.
+
+KEYWORDS="~amd64 ~x86"
+CDEPEND="dev-java/swt:3.4[cairo]
+	alsa? ( media-libs/alsa-lib )
+	fluidsynth? ( media-sound/fluidsynth )
+	pdf? ( dev-java/itext:0 )"
+RDEPEND=">=virtual/jre-1.5
+	alsa? ( media-sound/timidity++[alsa] )
+	oss? ( media-sound/timidity++[oss] )
+	${CDEPEND}"
+
+DEPEND=">=virtual/jdk-1.5
+	${CDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+	java-pkg_jar-from --into TuxGuitar/lib swt-3.4
+	java-pkg-2_src_prepare
+}
+
+src_compile() {
+	if use pdf; then
+		echo "" >> TuxGuitar-pdf/build.properties || die
+		echo "path.itext=$(java-pkg_getjar itext iText.jar)" >> TuxGuitar-pdf/build.properties || die "Error adding itext path"
+		echo "path.swt=$(java-pkg_getjar swt-3.4 swt.jar)" >> TuxGuitar-pdf/build.properties || die "Error adding swt path"
+	fi
+	cd TuxGuitar || die "cd failed"
+	eant all
+	for plugin in $(list_plugins); do
+		plugin_compile $plugin
+	done
+}
+
+src_install() {
+	cd TuxGuitar || die "cd failed"
+	java-pkg_dojar tuxguitar.jar
+	use source && java-pkg_dosrc src/org
+	# TODO: Decide if plugin sources should be installed
+	java-pkg_dolauncher ${PN} \
+		--main org.herac.tuxguitar.gui.TGMain \
+		--java_args "-Xms128m -Xmx128m  -Dtuxguitar.share.path=/usr/share/${PN}/lib/share"
+	# Images and Files
+	insinto /usr/share/${PN}/lib
+	doins -r share || die "doins failed"
+	java-pkg_sointo /usr/share/${PN}/lib/lib
+	for plugin in $(list_plugins); do
+		plugin_install $plugin
+	done
+	doman "${S}/misc/${PN}.1" || die "doman failed"
+	insinto /usr/share/mime/packages
+	doins "${S}/misc/${PN}.xml"
+	doicon "${S}/misc/${PN}.xpm" || die "doicon failed"
+	domenu "${S}/misc/${PN}.desktop" || die "domenu failed"
+}
+
+plugin_compile() {
+	cd "${S}"/TuxGuitar-${1} || die
+	eant all
+	if [[ -d jni ]]; then
+		append-flags $(java-pkg_get-jni-cflags)
+		cd jni || die "\"cd jni\" failed"
+		CC=$(tc-getCC) emake || die "emake failed"
+	fi
+}
+
+plugin_install() {
+	cd "${S}"/TuxGuitar-${1} || die
+	local TUXGUITAR_INST_PATH=/usr/share/${PN}/lib
+	local BINARY_NAME=tuxguitar-${1}
+	insinto ${TUXGUITAR_INST_PATH}/share/plugins
+	doins ${BINARY_NAME}.jar || die "doins ${BINARY_NAME}.jar failed"
+	#TuxGuitar has its own classloader. No need to register the plugins.
+	if [[ -d jni ]]; then
+		java-pkg_doso jni/lib${BINARY_NAME}-jni.so
+	fi
+}
+
+#Return list of plugins to compile/install
+list_plugins() {
+	echo \
+		$(usev alsa) ascii browser-ftp compat converter $(usev fluidsynth) gtp \
+		jsa lilypond midi musicxml $(usev oss) $(usev pdf) ptb tef tray tuner
+}
+
+pkg_postinst() {
+	fdo-mime_desktop_database_update
+	gnome2_icon_cache_update
+	if use fluidsynth; then
+		ewarn "Fluidsynth plugin blocks behavior of JSA plugin."
+		ewarn "Enable only one of them in \"Tools > Plugins\""
+	fi
+}
+
+pkg_postrm() {
+	fdo-mime_desktop_database_update
+	gnome2_icon_cache_update
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/