qtads: Update FDO db in postrm and also update Gtk icon cache
authorNikos Chantziaras <realnc@gmail.com>
Mon, 6 Aug 2012 17:56:02 +0000 (6 20:56 +0300)
committerNikos Chantziaras <realnc@gmail.com>
Mon, 6 Aug 2012 17:56:02 +0000 (6 20:56 +0300)
games-engines/qtads/Manifest
games-engines/qtads/qtads-2.1.4.ebuild
games-engines/qtads/qtads-9999.ebuild

dissimilarity index 66%
index d8d42cc..67625f6 100644 (file)
@@ -1,3 +1,3 @@
-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
+DIST qtads-2.1.4.tar.bz2 2546599 SHA256 4bd694abe03ddbd9139b17593c1b78564a9c10decc62b72e87e764af0073c927 SHA512 11452e948ad986c155d79ef8e6a43e6a759e4d9e28e38f2d022f6ac1647fb3f71e6beb45a5830203b84f93a87e31d2d4102418881038d8d7d6ca02102f1463b3 WHIRLPOOL e541697e5f9eea6e56d3718da03aa9a8cd49bd958b98ed3014d6404b36c0e0f086cb9a4e130dfca3f8ac66828c31a797fd46c6a415c63ab263fd80a853dd9c79
+EBUILD qtads-2.1.4.ebuild 1223 SHA256 e19bb4e0d1ee6ea48f7eaa2aa726f8fbd1928d883747ed1b94844ea75f164905 SHA512 508fe45c345dfe5d6f5e0f973942b691a1b1e36eb0b3a3e127f1d3632b637d7e36643f321bec290771eeebfdc2e2facff5b0e950ed9c0821957546dc969c05be WHIRLPOOL f3bad4d5b77909ea901d094ec5e4a5a3f2a5ecc942da65d98ee0abdd22578e812668dbc00ce79d5982574fbce35ef7d7f289fa99642ce450aebf3bb445636508
+EBUILD qtads-9999.ebuild 1653 SHA256 54e6d0123c70456c279c799d6fe6387756375b6cb0bfb47aafea495620e4677c SHA512 b5e40d5dcd813cfc5cebdeb569b9c6acad4e8fe2bad9ee4d500cd2be291a9554034d9d749f0ddcd444c73e4497fc7af795b70817489c65009c786f879d766c29 WHIRLPOOL 6c83d1efbe56f83214b3969823e63773bf315ba129cb50d9caa1652e93d0e70715a972da5869a24325921f1fca45a539b9fb48a7ca826f2f00e7a208847c3c82
index 07c20ee..0c93ebd 100644 (file)
@@ -2,8 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI="3"
-inherit eutils fdo-mime games qt4-r2
+EAPI="4"
+inherit eutils gnome2-utils fdo-mime games qt4-r2
 
 DESCRIPTION="Multimedia interpreter for TADS text adventures"
 HOMEPAGE="http://qtads.sourceforge.net"
@@ -23,16 +23,29 @@ src_install() {
        dogamesbin qtads || die
        doman qtads.6
        dodoc AUTHORS BUGS HTML_TADS_LICENSE NEWS README
-       doicon "qtads_256x256.png"
+       newicon -s 256 qtads_256x256.png ${PN}.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;"
+       make_desktop_entry qtads QTads qtads Game "GenericName=TADS Multimedia Interpreter\nMimeType=application/x-tads;application/x-t3vm-image;"
        prepgamesdirs
 }
 
+pkg_preinst() {
+       games_pkg_preinst
+       gnome2_icon_savelist
+}
+
 pkg_postinst() {
+       games_pkg_postinst
+       fdo-mime_desktop_database_update
+       fdo-mime_mime_database_update
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
        fdo-mime_desktop_database_update
        fdo-mime_mime_database_update
+       gnome2_icon_cache_update
 }
index c3cf78f..077f0de 100644 (file)
@@ -2,10 +2,10 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI="3"
+EAPI="4"
 
 EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}/${PN}"
-inherit eutils fdo-mime games qt4-r2 git-2
+inherit eutils gnome2-utils fdo-mime games qt4-r2 git-2
 
 DESCRIPTION="Multimedia interpreter for TADS text adventures"
 HOMEPAGE="http://qtads.sourceforge.net"
@@ -32,16 +32,29 @@ src_install() {
        dogamesbin qtads || die
        doman qtads.6 || die
        dodoc ${DOCS} || die
-       doicon "qtads_256x256.png"
+       newicon -s 256 qtads_256x256.png ${PN}.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;"
+       make_desktop_entry qtads QTads ${PN} Game "GenericName=TADS Multimedia Interpreter\nMimeType=application/x-tads;application/x-t3vm-image;"
        prepgamesdirs
 }
 
+pkg_preinst() {
+       games_pkg_preinst
+       gnome2_icon_savelist
+}
+
 pkg_postinst() {
+       games_pkg_postinst
+       fdo-mime_desktop_database_update
+       fdo-mime_mime_database_update
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
        fdo-mime_desktop_database_update
        fdo-mime_mime_database_update
+       gnome2_icon_cache_update
 }