qtads: Add 2.1.4, install icons and MIME types in live ebuild
[gentoo-interactive-fiction.git] / games-engines / qtads / qtads-9999.ebuild
Commit [+]AuthorDateLineData
a7a6180b
NC
Nikos Chantziaras2010-04-19 00:44:42 +03001# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
91e6fcab Nikos Chantziaras2010-09-28 07:37:36 +03005EAPI="3"
a7a6180b Nikos Chantziaras2010-04-19 00:44:42 +03006
a7a6180b Nikos Chantziaras2010-04-19 00:44:42 +03007EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}/${PN}"
afb56669 Nikos Chantziaras2012-08-06 18:12:46 +03008inherit eutils fdo-mime games qt4-r2 git-2
a7a6180b Nikos Chantziaras2010-04-19 00:44:42 +03009
91e6fcab
NC
Nikos Chantziaras2010-09-28 07:37:36 +030010DESCRIPTION="Multimedia interpreter for TADS text adventures"
11HOMEPAGE="http://qtads.sourceforge.net"
a7a6180b
NC
Nikos Chantziaras2010-04-19 00:44:42 +030012
13LICENSE="GPL-2"
14SLOT="0"
15KEYWORDS=""
16IUSE=""
17
2f95ed40
NC
Nikos Chantziaras2010-10-04 23:22:54 +030018# Note that for sdl-sound, we need the "mp3", not the "mpeg" USE flag. "mpeg"
19# uses the SMPEG lib for decoding, which plays some MP3s at double speed. "mp3"
20# uses SDL_sound's internal MPGLIB, which doesn't have that problem. It's OK
21# if both "mp3" as well as "mpeg" are enabled, because SDL_sound tries MPGLIB
22# first, and only if that fails will it use SMPEG.
a7a6180b
NC
Nikos Chantziaras2010-04-19 00:44:42 +030023DEPEND="x11-libs/qt-gui:4
24 media-libs/libsdl[audio]
2f95ed40
NC
Nikos Chantziaras2010-10-04 23:22:54 +030025 media-libs/sdl-mixer[midi,vorbis]
26 media-libs/sdl-sound[mp3]"
a7a6180b
NC
Nikos Chantziaras2010-04-19 00:44:42 +030027RDEPEND="${DEPEND}"
28
7aecd141 Nikos Chantziaras2010-10-09 07:57:31 +030029DOCS="AUTHORS BUGS NEWS HTML_TADS_LICENSE README"
a7a6180b Nikos Chantziaras2010-04-19 00:44:42 +030030
a7a6180b
NC
Nikos Chantziaras2010-04-19 00:44:42 +030031src_install() {
32 dogamesbin qtads || die
7aecd141 Nikos Chantziaras2010-10-09 07:57:31 +030033 doman qtads.6 || die
91e6fcab Nikos Chantziaras2010-09-28 07:37:36 +030034 dodoc ${DOCS} || die
afb56669
NC
Nikos Chantziaras2012-08-06 18:12:46 +030035 doicon "qtads_256x256.png"
36 insinto /usr/share/icons
37 doins -r "icons/hicolor"
38 insinto /usr/share/mime/packages
39 doins "icons/qtads.xml"
40 make_desktop_entry qtads QTads "qtads_256x256" Game "GenericName=TADS Multimedia Interpreter\nMimeType=application/x-tads;application/x-t3vm-image;"
a7a6180b
NC
Nikos Chantziaras2010-04-19 00:44:42 +030041 prepgamesdirs
42}
afb56669
NC
Nikos Chantziaras2012-08-06 18:12:46 +030043
44pkg_postinst() {
45 fdo-mime_desktop_database_update
46 fdo-mime_mime_database_update
47}