hugor: Add 1.0
authorNikos Chantziaras <realnc@gmail.com>
Thu, 16 Aug 2012 13:06:15 +0000 (16 16:06 +0300)
committerNikos Chantziaras <realnc@gmail.com>
Thu, 16 Aug 2012 13:06:15 +0000 (16 16:06 +0300)
games-engines/hugor/Manifest
games-engines/hugor/hugor-1.0.ebuild [new file with mode: 0644]

index 5d009e1..072da45 100644 (file)
@@ -5,6 +5,8 @@ AUX hicolor/48x48/mimetypes/application-x-hugo-image.png 5138 SHA256 8c4803ba39a
 AUX hugor.png 72965 SHA256 29115e5cf1ffae82643bd68ef3a62fe2b4b425649565dfc730b23bcb672baafe SHA512 4ecf9e8b2d50eaa43c2b2ae47ddeb8252f10995f51621a2961d8b230113d728d76f3212b320bc1ba9f2f0ef53cb7e876b68919f2193d5a8dddd2558a108f8c53 WHIRLPOOL 94ad35cfd9519e991502b7f6a8c691f7b2f18a6ca635085ed76c22ea1bc3b20a8400a33c0190f2a1a618efb78d2d2ba06ac21df741e294332846a4183b9e1862
 AUX hugor.xml 255 SHA256 a9b58636810f2370acd0e785df4e8e44d8f2f0971d28a0f28ce6cf15e4012887 SHA512 6f73ffa1fc95a682214347130462d5f3db27cf9f5e522f0707b1c98f563af3afdfe733e4a8b5e3cadbf1f1b461abcf80fc8ab43bb2f515c2012bb0919f547bf6 WHIRLPOOL 7335ef5b6a459eb9e4632b696a389bbee138a7868da79c650ecddc0a18e3b4d302bea0f5559db6d8f298af56b46fcd83b94cd5af09d8bcd2d6d40b9711654c64
 DIST hugor-0.9.tar.bz2 330952 SHA256 086bef7c329699ed8d9f96008bebdb43cb060e422ab16462243cfafa49ee818d SHA512 f63a520880305fe099ac7ca7f9ef0f267f17e4306eb899ec11499975b97836b4d130540818d1ae6ba771a7c289da85cfd5e132770c3aa0b91fad0cb5daa40992 WHIRLPOOL f6717680421909ab364d3b84a8bd07757c6f1b0e8e47d9b78bd9275122f33ade1232b7c15994119585157dbbd6bfd7384aa6682de748334d52f8dc12ec584bb5
+DIST hugor-1.0.tar.bz2 343552 SHA256 8106bcdf905d7e548d2964a09af9f684535ba41c917b55cecc271c47a30037e6 SHA512 7796062cd1e56070d51a7b41e9dd433cd7d1864f083f658a70881156cf45af40e0692d2897a1936ef24694a355bef7fecda646c748ca2b52fa2ec5acaa03700f WHIRLPOOL 31c450df9612c98186d784bcce00c80f049499a42b46a2c3808e7354f6f1b56e546860b83e2e3751cc4561922a4b1137edc215837a1f3a54e12da24e3c918a44
 EBUILD hugor-0.9.ebuild 1491 SHA256 be4e5f522673474fd75b7be40f040dd63dbfdffb74f5b1a6f2e0efa962dc1c18 SHA512 bebaf3eceeb3d1c9f0aa3a105910ef7f7e633d51b6d27fbe0e4cc6abdc936b72b8fe33bc65ff7b566b821abb62859371e1c6c7753bc729834b45d9c9ad5a8d86 WHIRLPOOL 60695ea57924bb5f32030e1e540597b10bf4eb711b3b1ae17ca44b92727a1265c8eb19aa8e6713b90d02b877d1ed7b882407ec14c586c5858c904dac8ea6cff9
+EBUILD hugor-1.0.ebuild 1491 SHA256 be4e5f522673474fd75b7be40f040dd63dbfdffb74f5b1a6f2e0efa962dc1c18 SHA512 bebaf3eceeb3d1c9f0aa3a105910ef7f7e633d51b6d27fbe0e4cc6abdc936b72b8fe33bc65ff7b566b821abb62859371e1c6c7753bc729834b45d9c9ad5a8d86 WHIRLPOOL 60695ea57924bb5f32030e1e540597b10bf4eb711b3b1ae17ca44b92727a1265c8eb19aa8e6713b90d02b877d1ed7b882407ec14c586c5858c904dac8ea6cff9
 EBUILD hugor-9999.ebuild 1491 SHA256 be4e5f522673474fd75b7be40f040dd63dbfdffb74f5b1a6f2e0efa962dc1c18 SHA512 bebaf3eceeb3d1c9f0aa3a105910ef7f7e633d51b6d27fbe0e4cc6abdc936b72b8fe33bc65ff7b566b821abb62859371e1c6c7753bc729834b45d9c9ad5a8d86 WHIRLPOOL 60695ea57924bb5f32030e1e540597b10bf4eb711b3b1ae17ca44b92727a1265c8eb19aa8e6713b90d02b877d1ed7b882407ec14c586c5858c904dac8ea6cff9
 MISC metadata.xml 351 SHA256 d0a1793032865a25cb4b2c5b7d0df03a90beac76be6cc00f37183fedd4a5dfb5 SHA512 ef48ece7dadfa35772a6b5877255417445eae1488e63f0848628cd7a732a177170f72b8a90e66784c5a4cc185fea21071bbf76040c817295da68291a9c447f47 WHIRLPOOL e866b60b0c8ddeeb8aa104d100873247e61b16fc49ffef8038c03cd4a8f892973a7bd88fce774f9791da896492a3388f14dca4c4b6d54ad6f08d2484d0ebc3e3
diff --git a/games-engines/hugor/hugor-1.0.ebuild b/games-engines/hugor/hugor-1.0.ebuild
new file mode 100644 (file)
index 0000000..b66e05e
--- /dev/null
@@ -0,0 +1,71 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+if [ "$PV" != "9999" ]; then
+       SRC_URI="http://foss.aegean.gr/~realnc/hugor/${P}.tar.bz2"
+       KEYWORDS="x86 amd64"
+else
+       SRC_URI=""
+       KEYWORDS=""
+fi
+
+inherit eutils gnome2-utils fdo-mime games qt4-r2 confutils
+
+if [ "$PV" == "9999" ]; then
+       EGIT_REPO_URI="git://git.assembla.com/hugor.git"
+       inherit git-2
+fi
+
+DESCRIPTION="Multimedia interpreter for Hugo text adventures"
+HOMEPAGE="http://ifwiki.org/index.php/Hugor"
+
+LICENSE="Hugo"
+SLOT="0"
+IUSE="fmod +sdl"
+REQUIRED_USE="^^ ( fmod sdl )"
+
+DEPEND="x11-libs/qt-gui:4
+       sdl? ( >=media-libs/sdl-mixer-1.2.12[mad,midi,modplug] )
+       fmod? ( media-libs/fmod )
+       x11-misc/shared-mime-info"
+
+src_configure() {
+       if use sdl; then
+               eqmake4 SOUND=sdl
+       else
+               eqmake4 SOUND=fmod
+       fi
+}
+
+src_install() {
+       dogamesbin "hugor"
+       dodoc README
+       doicon "${FILESDIR}/hugor.png"
+       make_desktop_entry hugor Hugor "hugor" Game "GenericName=Hugo Multimedia Interpreter\nMimeType=application/x-hugo-image;"
+       insinto /usr/share/icons
+       doins -r "${FILESDIR}/hicolor"
+       insinto /usr/share/mime/packages
+       doins "${FILESDIR}/hugor.xml"
+       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
+}