Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 504956 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-12 / +50 lines)
Line  Link Here
0
-- games-engines/love/love-0.8.0.ebuild
0
++ games-engines/love/love-0.9.0.ebuild
Lines 2-10 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/love/love-0.8.0.ebuild,v 1.9 2013/07/30 14:26:40 pinkbyte Exp $
3
# $Header: /var/cvsroot/gentoo-x86/games-engines/love/love-0.8.0.ebuild,v 1.9 2013/07/30 14:26:40 pinkbyte Exp $
4
4
5
EAPI=3
5
EAPI=5
6
6
7
inherit base games
7
inherit eutils fdo-mime gnome2-utils games
8
8
9
if [[ ${PV} == 9999* ]]; then
9
if [[ ${PV} == 9999* ]]; then
10
	inherit autotools mercurial
10
	inherit autotools mercurial
Lines 21-41 Link Here
21
21
22
LICENSE="ZLIB"
22
LICENSE="ZLIB"
23
SLOT="0"
23
SLOT="0"
24
IUSE=""
24
IUSE="luajit"
25
25
26
RDEPEND="dev-games/physfs
26
RDEPEND="dev-games/physfs
27
	dev-lang/lua[deprecated]
28
	media-libs/devil[mng,png,tiff]
27
	media-libs/devil[mng,png,tiff]
29
	media-libs/freetype
28
	media-libs/freetype
30
	media-libs/libmodplug
29
	media-libs/libmodplug
31
	media-libs/libsdl[joystick,opengl]
30
	media-libs/libsdl2[joystick,opengl]
32
	media-libs/libvorbis
31
	media-libs/libvorbis
33
	media-libs/openal
32
	media-libs/openal
34
	media-sound/mpg123
33
	media-sound/mpg123
35
	virtual/opengl"
34
	virtual/opengl
35
	luajit? ( dev-lang/luajit )
36
	!luajit? ( dev-lang/lua[deprecated] )"
36
DEPEND="${RDEPEND}
37
DEPEND="${RDEPEND}
37
	media-libs/libmng
38
	virtual/pkg-config"
38
	media-libs/tiff"
39
39
40
DOCS=( "readme.md" "changes.txt" )
40
DOCS=( "readme.md" "changes.txt" )
41
41
Lines 47-56 Link Here
47
	fi
47
	fi
48
}
48
}
49
49
50
src_configure() {
51
	local my_conf
52
53
	if [[ "${SLOT}" != "0" ]]; then
54
		my_conf="--enable-static --disable-shared"
55
	fi
56
57
	egamesconf \
58
		--with-lua=$(usex luajit "luajit" "lua") \
59
		${my_conf}
60
}
61
50
src_install() {
62
src_install() {
51
	base_src_install
52
	if [[ "${SLOT}" != "0" ]]; then
63
	if [[ "${SLOT}" != "0" ]]; then
53
		mv "${ED}${GAMES_BINDIR}"/${PN} \
64
		newgamesbin src/${PN} ${PN}-${SLOT}
54
			"${ED}${GAMES_BINDIR}"/${PN}-${SLOT} || die
65
		dodoc ${DOCS[@]}
66
	else
67
		default
68
		prune_libtool_files
55
	fi
69
	fi
56
}
70
}
71
72
pkg_preinst() {
73
	games_pkg_preinst
74
	if [[ "${SLOT}" != "0" ]]; then
75
		gnome2_icon_savelist
76
	fi
77
}
78
79
pkg_postinst() {
80
	games_pkg_postinst
81
	if [[ "${SLOT}" != "0" ]]; then
82
		fdo-mime_desktop_database_update
83
		fdo-mime_mime_database_update
84
		gnome2_icon_cache_update
85
	fi
86
}
87
88
pkg_postrm() {
89
	if [[ "${SLOT}" != "0" ]]; then
90
		fdo-mime_desktop_database_update
91
		fdo-mime_mime_database_update
92
		gnome2_icon_cache_update
93
	fi
94
}

Return to bug 504956