qtads: Add 2.1.4, install icons and MIME types in live ebuild
authorNikos Chantziaras <realnc@gmail.com>
Mon, 6 Aug 2012 15:12:46 +0000 (6 18:12 +0300)
committerNikos Chantziaras <realnc@gmail.com>
Mon, 6 Aug 2012 15:12:46 +0000 (6 18:12 +0300)
games-engines/qtads/Manifest
games-engines/qtads/qtads-2.1.4.ebuild [new file with mode: 0644]
games-engines/qtads/qtads-9999.ebuild

dissimilarity index 100%
index a15d1cd..d8d42cc 100644 (file)
@@ -1 +1,3 @@
-EBUILD qtads-9999.ebuild 1061 RMD160 2b40b64fe510962dbf6d443dc178ae76b77afa0f SHA1 57f46123e4496e80dcd348c966a38db8ac0b2a84 SHA256 6b67a82dceb2a2108085d6f9d3641f37e20743f3e32e55857e721c0156009bf9
+DIST qtads-2.1.4.tar.bz2 2546599 SHA256 4bd694abe03ddbd9139b17593c1b78564a9c10decc62b72e87e764af0073c927 SHA512 11452e948ad986c155d79ef8e6a43e6a759e4d9e28e38f2d022f6ac1647fb3f71e6beb45a5830203b84f93a87e31d2d4102418881038d8d7d6ca02102f1463b3 WHIRLPOOL e541697e5f9eea6e56d3718da03aa9a8cd49bd958b98ed3014d6404b36c0e0f086cb9a4e130dfca3f8ac66828c31a797fd46c6a415c63ab263fd80a853dd9c79
+EBUILD qtads-2.1.4.ebuild 989 SHA256 586ab7359f77366a88eb618b2d9bf7ca049130f4b7a846e7f7a620b4210dea75 SHA512 8c189fd5f9bd06c03679f4d288fe185e551e3a6d161c2b1e697a6f2a6b2f983c02285ca8228309b6b7a0a2c8d18da509a6e1a88fa3fe230771c3b05da46b4384 WHIRLPOOL 2852024a169b0f9b13bb987f0e17bd1d42edd7b17c76ae0d3381d84644ba2e93cc48a18bee557877ee5673cc020301790ef5e89c6ed164eb3d3a116a959649bd
+EBUILD qtads-9999.ebuild 1419 SHA256 dc24af2cb683771694b588724eee2bf53db14978f5bac0b6b712f0aa11ea9096 SHA512 4739317c934c505448de890a6456142c259573c475d48e88b393e704eadf430ce61078d0f80ba75c6bde678918d2fee8b75f0d97a769b7a2e1dba08b810d3885 WHIRLPOOL 9026a2cdf5df347c5ab6e1df59f23554cdee52606c93e5db6108c37841ec3c38ec784a4a78a226d05e41fada92f22a82f08d0d041340b1a21df87d2c298259e9
diff --git a/games-engines/qtads/qtads-2.1.4.ebuild b/games-engines/qtads/qtads-2.1.4.ebuild
new file mode 100644 (file)
index 0000000..07c20ee
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+inherit eutils fdo-mime games qt4-r2
+
+DESCRIPTION="Multimedia interpreter for TADS text adventures"
+HOMEPAGE="http://qtads.sourceforge.net"
+SRC_URI="mirror://sourceforge/qtads/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="x11-libs/qt-gui:4
+       media-libs/libsdl[audio]
+       media-libs/sdl-mixer[midi,vorbis]
+       media-libs/sdl-sound[mp3]"
+
+src_install() {
+       dogamesbin qtads || die
+       doman qtads.6
+       dodoc AUTHORS BUGS HTML_TADS_LICENSE NEWS README
+       doicon "qtads_256x256.png"
+       insinto /usr/share/icons
+       doins -r "icons/hicolor"
+       insinto /usr/share/mime/packages
+       doins "icons/qtads.xml"
+       make_desktop_entry qtads QTads "qtads_256x256" Game "GenericName=TADS Multimedia Interpreter\nMimeType=application/x-tads;application/x-t3vm-image;"
+       prepgamesdirs
+}
+
+pkg_postinst() {
+       fdo-mime_desktop_database_update
+       fdo-mime_mime_database_update
+}
index a8fbf04..c3cf78f 100644 (file)
@@ -5,7 +5,7 @@
 EAPI="3"
 
 EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}/${PN}"
-inherit games qt4-r2 git-2
+inherit eutils fdo-mime games qt4-r2 git-2
 
 DESCRIPTION="Multimedia interpreter for TADS text adventures"
 HOMEPAGE="http://qtads.sourceforge.net"
@@ -32,6 +32,16 @@ src_install() {
        dogamesbin qtads || die
        doman qtads.6 || die
        dodoc ${DOCS} || die
-       make_desktop_entry qtads QTads
+       doicon "qtads_256x256.png"
+       insinto /usr/share/icons
+       doins -r "icons/hicolor"
+       insinto /usr/share/mime/packages
+       doins "icons/qtads.xml"
+       make_desktop_entry qtads QTads "qtads_256x256" Game "GenericName=TADS Multimedia Interpreter\nMimeType=application/x-tads;application/x-t3vm-image;"
        prepgamesdirs
 }
+
+pkg_postinst() {
+       fdo-mime_desktop_database_update
+       fdo-mime_mime_database_update
+}