forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qtads-2.1.6.ebuild
57 lines (48 loc) · 1.26 KB
/
qtads-2.1.6.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils gnome2-utils fdo-mime qt4-r2 games
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="media-libs/libsdl[sound]
media-libs/sdl-mixer[midi,vorbis]
media-libs/sdl-sound[mp3]
dev-qt/qtcore:4
dev-qt/qtgui:4"
RDEPEND="${DEPEND}"
src_configure() {
eqmake4 qtads.pro -after CONFIG-=silent
}
src_install() {
dogamesbin qtads
doman qtads.6
dodoc AUTHORS HTML_TADS_LICENSE NEWS README
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 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
}