Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 433918
Collapse All | Expand All

(-)/usr/portage/games-engines/qtads/qtads-2.1.4.ebuild (-16 / +8 lines)
Lines 2-9 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/games-engines/qtads/qtads-2.1.4.ebuild,v 1.2 2012/09/03 13:35:13 kensington Exp $
3
# $Header: /var/cvsroot/gentoo-x86/games-engines/qtads/qtads-2.1.4.ebuild,v 1.2 2012/09/03 13:35:13 kensington Exp $
4
4
5
EAPI=2
5
EAPI=4
6
inherit eutils gnome2-utils fdo-mime flag-o-matic qt4-r2 toolchain-funcs games
6
inherit eutils gnome2-utils fdo-mime qt4-r2 games
7
7
8
DESCRIPTION="Multimedia interpreter for TADS text adventures"
8
DESCRIPTION="Multimedia interpreter for TADS text adventures"
9
HOMEPAGE="http://qtads.sourceforge.net"
9
HOMEPAGE="http://qtads.sourceforge.net"
Lines 19-48 Link Here
19
	media-libs/sdl-sound[mp3]
19
	media-libs/sdl-sound[mp3]
20
	x11-libs/qt-core:4
20
	x11-libs/qt-core:4
21
	x11-libs/qt-gui:4"
21
	x11-libs/qt-gui:4"
22
RDEPEND="${DEPEND}"
22
23
23
src_configure() {
24
src_configure() {
24
	# strict-aliasing should not be used
25
	eqmake4 qtads.pro -after CONFIG-=silent
25
	# http://bugdb.tads.org/view.php?id=163
26
	append-cxxflags -fno-strict-aliasing
27
	append-cflags -fno-strict-aliasing
28
	qt4-r2_src_configure
29
}
30
31
src_compile() {
32
	# make build output verbose (yes, weird)
33
	emake CC=$(tc-getCC) CXX=$(tc-getCXX) LINK=$(tc-getCXX)
34
}
26
}
35
27
36
src_install() {
28
src_install() {
37
	dogamesbin qtads || die
29
	dogamesbin qtads
38
	doman qtads.6
30
	doman qtads.6
39
	dodoc AUTHORS BUGS HTML_TADS_LICENSE NEWS README
31
	dodoc AUTHORS BUGS HTML_TADS_LICENSE NEWS README
40
	newicon -s 256 qtads_256x256.png ${PN}.png
32
	newicon -s 256 qtads_256x256.png ${PN}.png
41
	insinto /usr/share/icons
33
	insinto /usr/share/icons
42
	doins -r "icons/hicolor" || die
34
	doins -r "icons/hicolor"
43
	insinto /usr/share/mime/packages
35
	insinto /usr/share/mime/packages
44
	doins "icons/qtads.xml" || die
36
	doins "icons/qtads.xml"
45
	make_desktop_entry qtads QTads qtads Game "MimeType=application/x-tads;application/x-t3vm-image;"
37
	make_desktop_entry qtads QTads qtads Game "GenericName=TADS Multimedia Interpreter\nMimeType=application/x-tads;application/x-t3vm-image;"
46
	prepgamesdirs
38
	prepgamesdirs
47
}
39
}
48
40

Return to bug 433918