[proaudio] [1426] fixed tuxguitar

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


Revision: 1426
Author:   evermind
Date:     2009-03-03 02:21:02 +0100 (Tue, 03 Mar 2009)

Log Message:
-----------
fixed tuxguitar

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


Modified: trunk/overlays/proaudio/media-sound/tuxguitar/Manifest
===================================================================
--- trunk/overlays/proaudio/media-sound/tuxguitar/Manifest	2009-03-02 17:46:31 UTC (rev 1425)
+++ trunk/overlays/proaudio/media-sound/tuxguitar/Manifest	2009-03-03 01:21:02 UTC (rev 1426)
@@ -10,6 +10,6 @@
 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 1087 RMD160 90412d125bf063f7c0427ec9b3e0a9d694ad1c79 SHA1 f75e1513836197874e021415405d73d8136dcc4e SHA256 81d6c6dd7ee22be7a73566145a2003dcac227d4ab7e307fe9b9b8fa48102371c
+EBUILD tuxguitar-1.0.ebuild 1303 RMD160 98ad0d8e01888b66d08e3237e83336f9768cf0b0 SHA1 06def840ddc42e3e206f8e68c88c19774b483548 SHA256 fa0d9edfd36b407319c0c7b86cf87da83fb953ebdd695b60b460ffc4ae35e2fb
 MISC ChangeLog 538 RMD160 941a3b8e6d93fefcc8522343790b86d210cca980 SHA1 5292d63e032f8c8da5b63d926c9ba08933c47553 SHA256 b08655410ea34d8b7b72c61294fb0d7727843c7217e6627d35b4b7605b7a9016
 MISC metadata.xml 268 RMD160 facc07bd885f20615a1f2555069329c642e1a566 SHA1 2456bdb8a218c9d477d2d6ee4bf158de070c7be4 SHA256 96629b266b743f566c29158d4498edeeb1cd6b1f0cd9629e42d4f10b4da82f89

Modified: trunk/overlays/proaudio/media-sound/tuxguitar/tuxguitar-1.0.ebuild
===================================================================
--- trunk/overlays/proaudio/media-sound/tuxguitar/tuxguitar-1.0.ebuild	2009-03-02 17:46:31 UTC (rev 1425)
+++ trunk/overlays/proaudio/media-sound/tuxguitar/tuxguitar-1.0.ebuild	2009-03-03 01:21:02 UTC (rev 1426)
@@ -19,14 +19,26 @@
 
 DEPEND=">=virtual/jre-1.5"
 
-S="${WORKDIR}/${A/.tar.gz/}"
+conv_arch() {
+	local ret=""
+	use x86 && ret="x86"
+	use ppc && ret="ppc"
+	use amd64 && ret="x86_64"
+	echo $ret
+}
+
+S="${WORKDIR}/${MY_P}-$(conv_arch)"
 src_install() {
 	dodir "/opt/${MY_P}"
 	insinto "/opt/${MY_P}"
 	doins tuxguitar  tuxguitar.jar
 	fperms 0755 /opt/${MY_P}/lib/*.so "/opt/${MY_P}/tuxguitar"
 	mv files doc lib share "${D}/opt/${MY_P}"
-	newbin ${FILESDIR}/${P} tuxguitar
+	cat >>"${WORKDIR}/wrapper" <<EOF
+#!/bin/bash
+PATH="/opt/${MY_P}:\$PATH" tuxguitar \$@
+EOF
+	newbin "${WORKDIR}/wrapper" tuxguitar
 }
 
 pkg_postinst(){
@@ -34,3 +46,4 @@
 	 einfo "type tuxguitar to start the application"
 #	 einfo "some example files are in /opt/${MY_P}/examples"
 }
+


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