summaryrefslogtreecommitdiff
path: root/media-sound/tuxguitar
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/tuxguitar
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/tuxguitar')
-rw-r--r--media-sound/tuxguitar/Manifest5
-rw-r--r--media-sound/tuxguitar/files/tuxguitar-fixed-ant-files.patch237
-rw-r--r--media-sound/tuxguitar/metadata.xml45
-rw-r--r--media-sound/tuxguitar/tuxguitar-1.3.2.ebuild131
4 files changed, 418 insertions, 0 deletions
diff --git a/media-sound/tuxguitar/Manifest b/media-sound/tuxguitar/Manifest
new file mode 100644
index 000000000000..aecf670be1f5
--- /dev/null
+++ b/media-sound/tuxguitar/Manifest
@@ -0,0 +1,5 @@
+AUX tuxguitar-fixed-ant-files.patch 10154 SHA256 1937c6e4d04f0245c6de8258c62ab389586b0c297305e15598cedfd2dfe7d349 SHA512 90b732cddf4684fb99a91e581903e64cd039ef9b9d8ec7bc9629ce8da889a6b2961f8f5dafd6cce21eb0c67e2e5501586580081f28c702de88ddd1d229769013 WHIRLPOOL f298b51f8a69bb8e99dd8de97f982e5105d968f9e31c383b6906d83301e928185547448c6d753bb152e6d5ceca4bddfaf25bd6e82de582967534b728fec98016
+DIST tuxguitar-1.3.2-src.tar.gz 82294553 SHA256 1295cded91a76e4310648036578a6631faaa7231cd5524786891fbfdc3a0b551 SHA512 fb94472df25578d94ad11cd385cfc9347bfefcdd8ebedd2e785f3645d6b2e0d6d87d3fc457af159865b3fae77ad443ac4246b3c6fbe42397f4d15908dd3b7149 WHIRLPOOL 35e538692ca546d045c607347d57a7f4601f7444753a208065458efc40d24060dfc5aca2d5b3a66869136a42e143676366334c5d49ef6913b2ad15583b2a3e3f
+EBUILD tuxguitar-1.3.2.ebuild 3490 SHA256 aa602898052ffd690554f23cf7a383e2b5b47dfd71ee439f6da3dd4172233649 SHA512 0167d7e111e7452cd6a5ad2b05b6d50b23078f4e6bdf11cc4e97ef4eeb7c281567b36eb0eb37e3f22b6592d2d3e8d39493d859cc3270da507c16ca4ed6c9b9f4 WHIRLPOOL 39a4a2707501e74900a3966e6d245b907048be99efd886b0814b3247c8f47cfd4934c7a17e71ad7471687cb045d7ba5a3ccc9a7244321754aabf211187fb5099
+MISC ChangeLog 1197 SHA256 b9d4bac0034003af9f10279ad530780cdc6a0a9934fc502cff1d1bb4a755dce4 SHA512 a7c702afe9c84e12b6dfa630595046e04bc04dd16a11d1aaecc509c5bc3b8896453df43a7cb506625c1a251cb022f2e58008b3d5ac2f256b2496ee971f136af4 WHIRLPOOL 9b003f6145de27465df76a1ee36b405be7db7b6153093014b15a8f4e642db8a72d7ccc42151329f9037a9a52277682d307efb450cf8e491074855f974b9f1d8a
+MISC metadata.xml 1404 SHA256 83deac5809544cdb746be8d07d5b15033f1e8ec7588013ac726f26f68c6b8497 SHA512 da3655093bab58b616e68e772fcac63750cc8e87817f2d62d50bf2c159c3b7c86e585cf3bce0a523ddeaedf87613e675628a5c6e8145e3f2841f9b098157b929 WHIRLPOOL 80d7083529105fa02c2a8974a0f81ef0c31fe00db8b27efc0ece7bbe387bf233fcc57e6deb2b3817aae6fd1120b148dea827a8c9c690604998c2f5e27a12d510
diff --git a/media-sound/tuxguitar/files/tuxguitar-fixed-ant-files.patch b/media-sound/tuxguitar/files/tuxguitar-fixed-ant-files.patch
new file mode 100644
index 000000000000..9e1cbf778e57
--- /dev/null
+++ b/media-sound/tuxguitar/files/tuxguitar-fixed-ant-files.patch
@@ -0,0 +1,237 @@
+diff -purN a/TuxGuitar/build.properties b/TuxGuitar/build.properties
+--- a/TuxGuitar/build.properties 2016-03-16 21:26:23.000000000 +0000
++++ b/TuxGuitar/build.properties 2016-08-23 10:55:06.271917712 +0100
+@@ -5,4 +5,5 @@ ant.build.javac.source=1.5
+ ant.build.javac.target=1.5
+
+ path.tuxguitar-lib=../TuxGuitar-lib/tuxguitar-lib.jar
++path.tuxguitar-editor-utils=../TuxGuitar-editor-utils/tuxguitar-editor-utils.jar
+ path.swt=../TuxGuitar/lib/swt.jar
+diff -purN a/TuxGuitar/build.xml b/TuxGuitar/build.xml
+--- a/TuxGuitar/build.xml 2016-03-16 21:26:23.000000000 +0000
++++ b/TuxGuitar/build.xml 2016-08-23 08:59:03.987797193 +0100
+@@ -12,6 +12,7 @@
+
+ <path id="class.path">
+ <pathelement location="${path.tuxguitar-lib}"/>
++ <pathelement location="${path.tuxguitar-editor-utils}"/>
+ <pathelement location="${path.swt}"/>
+ </path >
+
+diff -purN a/TuxGuitar-awt-graphics/build.properties b/TuxGuitar-awt-graphics/build.properties
+--- a/TuxGuitar-awt-graphics/build.properties 1970-01-01 01:00:00.000000000 +0100
++++ b/TuxGuitar-awt-graphics/build.properties 2016-08-23 09:11:06.737851049 +0100
+@@ -0,0 +1,7 @@
++### ANT Flags
++#
++# build.compiler=gcj
++ant.build.javac.source=1.5
++ant.build.javac.target=1.5
++
++path.tuxguitar-lib=../TuxGuitar-lib/tuxguitar-lib.jar
+diff -purN a/TuxGuitar-awt-graphics/build.xml b/TuxGuitar-awt-graphics/build.xml
+--- a/TuxGuitar-awt-graphics/build.xml 1970-01-01 01:00:00.000000000 +0100
++++ b/TuxGuitar-awt-graphics/build.xml 2016-08-23 12:40:24.005858183 +0100
+@@ -0,0 +1,45 @@
++<?xml version="1.0" encoding="iso-8859-1"?>
++
++<project name="TuxGuitar-awt-graphics" basedir="." default="all">
++ <description>
++ TuxGuitar AWT Graphics
++ </description>
++
++ <property file="build.properties" />
++ <property name="build.src.path" value="src" />
++ <property name="build.path" value="build" />
++ <property name="build.jar" value="tuxguitar-awt-graphics.jar" />
++
++ <path id="class.path">
++ <pathelement location="${path.tuxguitar-lib}"/>
++ </path >
++
++ <target name="init" depends="clean">
++ <mkdir dir="${build.path}" />
++ </target>
++
++ <target name="build" depends="init">
++ <echo>+-------------------------------------------------+</echo>
++ <echo>| B U I L D I N G P L U G I N |</echo>
++ <echo>+-------------------------------------------------+</echo>
++
++ <javac srcdir="${build.src.path}" destdir="${build.path}" debug="false" >
++ <classpath refid="class.path"/>
++ <include name="**/*.java"/>
++ </javac>
++
++ <echo>+-----------------------------------------------+</echo>
++ <echo>| P A C K A G I N G P L U G I N |</echo>
++ <echo>+-----------------------------------------------+</echo>
++
++ <jar destfile="${build.jar}" basedir="${build.path}" />
++ <delete quiet="true" dir="${build.path}" />
++ </target>
++
++ <target name="clean">
++ <delete quiet="true" dir="${build.path}" />
++ <delete quiet="true" file="${build.jar}" />
++ </target>
++
++ <target name="all" depends="build" />
++</project>
+diff -purN a/TuxGuitar-editor-utils/build.properties b/TuxGuitar-editor-utils/build.properties
+--- a/TuxGuitar-editor-utils/build.properties 1970-01-01 01:00:00.000000000 +0100
++++ b/TuxGuitar-editor-utils/build.properties 2016-08-23 08:46:42.164749665 +0100
+@@ -0,0 +1,7 @@
++### ANT Flags
++#
++# build.compiler=gcj
++ant.build.javac.source=1.5
++ant.build.javac.target=1.5
++
++path.tuxguitar-lib=../TuxGuitar-lib/tuxguitar-lib.jar
+diff -purN a/TuxGuitar-editor-utils/build.xml b/TuxGuitar-editor-utils/build.xml
+--- a/TuxGuitar-editor-utils/build.xml 1970-01-01 01:00:00.000000000 +0100
++++ b/TuxGuitar-editor-utils/build.xml 2016-08-23 10:51:44.533478977 +0100
+@@ -0,0 +1,45 @@
++<?xml version="1.0" encoding="iso-8859-1"?>
++
++<project name="TuxGuitar-editor-utils" basedir="." default="all">
++ <description>
++ TuxGuitar Editor Utils
++ </description>
++
++ <property file="build.properties" />
++ <property name="build.src.path" value="src" />
++ <property name="build.path" value="build" />
++ <property name="build.jar" value="tuxguitar-editor-utils.jar" />
++
++ <path id="class.path">
++ <pathelement location="${path.tuxguitar-lib}"/>
++ </path >
++
++ <target name="init" depends="clean">
++ <mkdir dir="${build.path}" />
++ </target>
++
++ <target name="build" depends="init">
++ <echo>+-------------------------------------------------+</echo>
++ <echo>| B U I L D I N G L I B R A R Y |</echo>
++ <echo>+-------------------------------------------------+</echo>
++
++ <javac srcdir="${build.src.path}" destdir="${build.path}" debug="false" >
++ <classpath refid="class.path"/>
++ <include name="**/*.java"/>
++ </javac>
++
++ <echo>+-----------------------------------------------+</echo>
++ <echo>| P A C K A G I N G L I B R A R Y |</echo>
++ <echo>+-----------------------------------------------+</echo>
++
++ <jar destfile="${build.jar}" basedir="${build.path}" />
++ <delete quiet="true" dir="${build.path}" />
++ </target>
++
++ <target name="clean">
++ <delete quiet="true" dir="${build.path}" />
++ <delete quiet="true" file="${build.jar}" />
++ </target>
++
++ <target name="all" depends="build" />
++</project>
+diff -purN a/TuxGuitar-gtp-ui/build.xml b/TuxGuitar-gtp-ui/build.xml
+--- a/TuxGuitar-gtp-ui/build.xml 2016-03-16 21:26:23.000000000 +0000
++++ b/TuxGuitar-gtp-ui/build.xml 2016-08-23 15:21:38.068032721 +0100
+@@ -9,7 +9,7 @@
+ <property name="build.src.path" value="src${file.separator}" />
+ <property name="build.share.path" value="share${file.separator}" />
+ <property name="build.path" value="build${file.separator}" />
+- <property name="build.jar" value="tuxguitar-gtp.jar" />
++ <property name="build.jar" value="tuxguitar-gtp-ui.jar" />
+
+ <path id="class.path">
+ <pathelement location="${path.tuxguitar-lib}"/>
+diff -purN a/TuxGuitar-jsa/build.properties b/TuxGuitar-jsa/build.properties
+--- a/TuxGuitar-jsa/build.properties 2016-03-16 21:26:23.000000000 +0000
++++ b/TuxGuitar-jsa/build.properties 2016-08-23 12:45:00.324325595 +0100
+@@ -7,4 +7,5 @@ ant.build.javac.target=1.5
+ path.tuxguitar=../TuxGuitar/tuxguitar.jar
+ path.tuxguitar-lib=../TuxGuitar-lib/tuxguitar-lib.jar
+ path.tuxguitar-gm-utils=../TuxGuitar-gm-utils/tuxguitar-gm-utils.jar
++path.tuxguitar-editor-utils=../TuxGuitar-editor-utils/tuxguitar-editor-utils.jar
+ path.swt=../TuxGuitar/lib/swt.jar
+diff -purN a/TuxGuitar-jsa/build.xml b/TuxGuitar-jsa/build.xml
+--- a/TuxGuitar-jsa/build.xml 2016-03-16 21:26:23.000000000 +0000
++++ b/TuxGuitar-jsa/build.xml 2016-08-23 12:46:07.932440095 +0100
+@@ -14,6 +14,7 @@
+ <path id="class.path">
+ <pathelement location="${path.tuxguitar-lib}"/>
+ <pathelement location="${path.tuxguitar-gm-utils}"/>
++ <pathelement location="${path.tuxguitar-editor-utils}"/>
+ <pathelement location="${path.tuxguitar}"/>
+ <pathelement location="${path.swt}"/>
+ </path >
+diff -purN a/TuxGuitar-pdf/build.properties b/TuxGuitar-pdf/build.properties
+--- a/TuxGuitar-pdf/build.properties 2016-03-16 21:26:23.000000000 +0000
++++ b/TuxGuitar-pdf/build.properties 2016-08-23 13:37:17.230856507 +0100
+@@ -7,5 +7,7 @@ ant.build.javac.target=1.5
+ path.tuxguitar=../TuxGuitar/tuxguitar.jar
+ path.tuxguitar-lib=../TuxGuitar-lib/tuxguitar-lib.jar
+ path.tuxguitar-gm-utils=../TuxGuitar-gm-utils/tuxguitar-gm-utils.jar
++path.tuxguitar-editor-utils=../TuxGuitar-editor-utils/tuxguitar-editor-utils.jar
++path.tuxguitar-awt-graphics=../TuxGuitar-awt-graphics/tuxguitar-awt-graphics.jar
+ path.itext=../TuxGuitar/lib/itext.jar
+ path.swt=../TuxGuitar/lib/swt.jar
+diff -purN a/TuxGuitar-pdf/build.xml b/TuxGuitar-pdf/build.xml
+--- a/TuxGuitar-pdf/build.xml 2016-03-16 21:26:23.000000000 +0000
++++ b/TuxGuitar-pdf/build.xml 2016-08-23 13:37:40.843895665 +0100
+@@ -17,6 +17,8 @@
+ <pathelement location="${path.tuxguitar}"/>
+ <pathelement location="${path.tuxguitar-lib}"/>
+ <pathelement location="${path.tuxguitar-gm-utils}"/>
++ <pathelement location="${path.tuxguitar-editor-utils}"/>
++ <pathelement location="${path.tuxguitar-awt-graphics}"/>
+ </path >
+
+ <target name="init" depends="clean">
+diff -purN a/TuxGuitar-tray/build.properties b/TuxGuitar-tray/build.properties
+--- a/TuxGuitar-tray/build.properties 2016-03-16 21:26:23.000000000 +0000
++++ b/TuxGuitar-tray/build.properties 2016-08-23 13:41:10.241259782 +0100
+@@ -6,4 +6,6 @@ ant.build.javac.target=1.5
+
+ path.tuxguitar=../TuxGuitar/tuxguitar.jar
+ path.tuxguitar-lib=../TuxGuitar-lib/tuxguitar-lib.jar
++path.tuxguitar-gm-utils=../TuxGuitar-gm-utils/tuxguitar-gm-utils.jar
++path.tuxguitar-editor-utils=../TuxGuitar-editor-utils/tuxguitar-editor-utils.jar
+ path.swt=../TuxGuitar/lib/swt.jar
+diff -purN a/TuxGuitar-tray/build.xml b/TuxGuitar-tray/build.xml
+--- a/TuxGuitar-tray/build.xml 2016-03-16 21:26:23.000000000 +0000
++++ b/TuxGuitar-tray/build.xml 2016-08-23 13:41:41.262315895 +0100
+@@ -15,6 +15,8 @@
+ <property name="service.provider" value="org.herac.tuxguitar.tray.TGTrayPlugin" />
+
+ <path id="class.path">
++ <pathelement location="${path.tuxguitar-editor-utils}"/>
++ <pathelement location="${path.tuxguitar-gm-utils}"/>
+ <pathelement location="${path.tuxguitar-lib}"/>
+ <pathelement location="${path.tuxguitar}"/>
+ <pathelement location="${path.swt}"/>
+diff -purN a/TuxGuitar-tuner/build.properties b/TuxGuitar-tuner/build.properties
+--- a/TuxGuitar-tuner/build.properties 2016-03-16 21:26:14.000000000 +0000
++++ b/TuxGuitar-tuner/build.properties 2016-08-23 13:42:25.501396719 +0100
+@@ -6,4 +6,5 @@ ant.build.javac.target=1.5
+
+ path.tuxguitar=../TuxGuitar/tuxguitar.jar
+ path.tuxguitar-lib=../TuxGuitar-lib/tuxguitar-lib.jar
++path.tuxguitar-gm-utils=../TuxGuitar-gm-utils/tuxguitar-gm-utils.jar
+ path.swt=../TuxGuitar/lib/swt.jar
+diff -purN a/TuxGuitar-tuner/build.xml b/TuxGuitar-tuner/build.xml
+--- a/TuxGuitar-tuner/build.xml 2016-03-16 21:26:14.000000000 +0000
++++ b/TuxGuitar-tuner/build.xml 2016-08-23 13:42:50.180442190 +0100
+@@ -12,6 +12,7 @@
+ <property name="build.jar" value="tuxguitar-tuner.jar" />
+
+ <path id="class.path">
++ <pathelement location="${path.tuxguitar-gm-utils}"/>
+ <pathelement location="${path.tuxguitar-lib}"/>
+ <pathelement location="${path.tuxguitar}"/>
+ <pathelement location="${path.swt}"/>
diff --git a/media-sound/tuxguitar/metadata.xml b/media-sound/tuxguitar/metadata.xml
new file mode 100644
index 000000000000..fcffe09fdb56
--- /dev/null
+++ b/media-sound/tuxguitar/metadata.xml
@@ -0,0 +1,45 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>j.scruggs@gmail.com</email>
+ <name>Jonathan Scruggs</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ A multitrack tablature editor and player that allows you to
+ compose music using the following features:
+ - Tablature editor
+ - Score Viewer
+ - Multitrack display
+ - Autoscroll while playing
+ - Note duration management
+ - Various effects (bend, slide, vibrato, hammer-on/pull-off)
+ - Support for triplets (5,6,7,9,10,11,12)
+ - Repeat open and close
+ - Time signature management
+ - Tempo management
+ - Imports and exports gp3,gp4 and gp5 files
+ </longdescription>
+ <use>
+ <flag name="fluidsynth">
+ Enables Fluidsynth MIDI software synthesis (with external sound fonts).
+ JSA must be disabled in the plug-ins menu to use this.
+ </flag>
+ <flag name="lilypond">
+ Exports the score in a lilypond compatible format.
+ </flag>
+ <flag name="pdf">
+ Exports the score as a PDF file using <pkg>dev-java/itext</pkg>.
+ </flag>
+ <flag name="tray">
+ Adds an icon to the tray that controls midi playback.
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">tuxguitar</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-sound/tuxguitar/tuxguitar-1.3.2.ebuild b/media-sound/tuxguitar/tuxguitar-1.3.2.ebuild
new file mode 100644
index 000000000000..fe46d5c4a8fc
--- /dev/null
+++ b/media-sound/tuxguitar/tuxguitar-1.3.2.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $id$
+
+EAPI="6"
+JAVA_PKG_IUSE="source"
+
+inherit eutils java-pkg-2 java-ant-2 toolchain-funcs flag-o-matic fdo-mime gnome2-utils
+
+MY_P="${P}-src"
+DESCRIPTION="TuxGuitar is a multitrack guitar tablature editor and player written in Java-SWT"
+HOMEPAGE="http://tuxguitar.herac.com.ar/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+
+IUSE="alsa fluidsynth jack lilypond oss pdf timidity tray"
+
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND="dev-java/swt:3.7[cairo]
+ alsa? ( media-libs/alsa-lib )
+ pdf? ( dev-java/itext:5 )
+ fluidsynth? ( media-sound/fluidsynth )
+ lilypond? ( media-sound/lilypond )"
+
+RDEPEND=">=virtual/jre-1.5
+ timidity? ( media-sound/timidity++[alsa?,oss?] )
+ ${CDEPEND}"
+
+DEPEND=">=virtual/jdk-1.5
+ ${CDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}"/${PN}-fixed-ant-files.patch )
+
+LIBRARY_LIST=()
+PLUGIN_LIST=()
+
+src_prepare() {
+ java-pkg-2_src_prepare
+ default_src_prepare
+
+ sed -e "s|../TuxGuitar/lib/swt.jar|$(java-pkg_getjar swt-3.7 swt.jar)|" \
+ -i TuxGuitar*/build.properties || die "sed TuxGuitar*/build.properties failed"
+
+ if use pdf; then
+ sed -e "s|../TuxGuitar/lib/itext.jar|$(java-pkg_getjar itext-5 itext.jar)|" \
+ -i TuxGuitar-pdf/build.properties || die "sed TuxGuitar-pdf/build.properties failed"
+ fi
+
+ LIBRARY_LIST=( TuxGuitar-lib TuxGuitar-awt-graphics TuxGuitar-editor-utils
+ TuxGuitar-gm-utils TuxGuitar
+ )
+
+ PLUGIN_LIST=( $(usev alsa) ascii browser-ftp community compat
+ converter $(usev fluidsynth) gm-settings gpx gtp gtp-ui image
+ $(usev jack) $(usex jack jack-ui "") jsa $(usev lilypond) midi
+ musicxml $(usev oss) $(usev pdf) ptb svg tef $(usev tray) tuner
+ )
+}
+
+src_compile() {
+ local build_order=( ${LIBRARY_LIST[@]} ${PLUGIN_LIST[@]/#/TuxGuitar-} )
+ local directory
+
+ append-flags -fPIC $(java-pkg_get-jni-cflags)
+
+ for directory in ${build_order[@]}; do
+ cd "${S}"/${directory} || die "cd ${directory} failed"
+ eant
+ if [[ -d jni ]]; then
+ CC=$(tc-getCC) emake -C jni
+ fi
+ done
+}
+
+src_install() {
+ local tuxguitar_inst_path="/usr/share/${PN}"
+ local library
+ local plugin
+
+ for library in ${LIBRARY_LIST[@]}; do
+ cd "${S}"/${library} || die "cd ${library} failed"
+ java-pkg_dojar ${library,,}.jar
+ use source && java-pkg_dosrc src/org
+ done
+
+ java-pkg_dolauncher ${PN} \
+ --main org.herac.tuxguitar.app.TGMainSingleton \
+ --java_args "-Xmx512m -Dtuxguitar.share.path=${tuxguitar_inst_path}/share"
+
+ # Images and Files
+ insinto ${tuxguitar_inst_path}
+ doins -r share
+
+ java-pkg_sointo ${tuxguitar_inst_path}/lib
+ insinto ${tuxguitar_inst_path}/share/plugins
+ for plugin in ${PLUGIN_LIST[@]/#/TuxGuitar-}; do
+ cd "${S}"/${plugin} || die "cd ${plugin} failed"
+ doins ${plugin,,}.jar
+
+ #TuxGuitar has its own classloader. No need to register the plugins.
+ if [[ -d jni ]]; then
+ java-pkg_doso jni/lib${plugin,,}-jni.so
+ fi
+ done
+
+ insinto ${tuxguitar_inst_path}/share
+ doins -r "${S}"/TuxGuitar-resources/resources/soundfont
+ doman "${S}/misc/${PN}.1"
+ insinto /usr/share/mime/packages
+ doins "${S}/misc/${PN}.xml"
+ doicon "${S}/misc/${PN}.xpm"
+ domenu "${S}/misc/${PN}.desktop"
+}
+
+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
+}