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

Collapse All | Expand All

(-)/var/portage/tree/app-emulation/playonlinux/playonlinux-4.1.9.ebuild (-20 / +18 lines)
Lines 1-11 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2014 Gentoo Foundation
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/app-emulation/playonlinux/playonlinux-4.1.9.ebuild,v 1.1 2013/02/14 07:11:40 xmw Exp $
3
# $Header: $
4
4
5
EAPI="4"
5
EAPI="5"
6
PYTHON_DEPEND="2"
6
PYTHON_COMPAT=( python2_7 )
7
7
8
inherit eutils python games gnome2-utils
8
inherit gnome2-utils python-single-r1 games
9
9
10
MY_PN="PlayOnLinux"
10
MY_PN="PlayOnLinux"
11
11
Lines 24-30 RDEPEND="app-emulation/wine Link Here
24
	app-arch/p7zip
24
	app-arch/p7zip
25
	app-arch/unzip
25
	app-arch/unzip
26
	app-crypt/gnupg
26
	app-crypt/gnupg
27
	dev-python/wxpython:2.8
27
	dev-python/wxpython:2.8[${PYTHON_USEDEP}]
28
	|| ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )
28
	|| ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] )
29
	net-misc/wget
29
	net-misc/wget
30
	x11-apps/mesa-progs
30
	x11-apps/mesa-progs
Lines 44-57 S=${WORKDIR}/${PN} Link Here
44
# Look at debian pkg: http://packages.debian.org/sid/playonlinux
44
# Look at debian pkg: http://packages.debian.org/sid/playonlinux
45
45
46
pkg_setup() {
46
pkg_setup() {
47
	python_set_active_version 2
47
	python-single-r1_pkg_setup
48
	python_pkg_setup
49
	games_pkg_setup
48
	games_pkg_setup
50
}
49
}
51
50
52
src_prepare() {
51
src_prepare() {
53
	sed -e 's/PYTHON="python"/PYTHON="python2"/' -i playonlinux || die
52
	epatch "${FILESDIR}/Gentoo-fixes-for-etc-pol_bash.patch"
54
	python_convert_shebangs -r 2 .
53
	epatch "${FILESDIR}/remove_binary_plugin.diff"
54
55
	python_fix_shebang .
55
56
56
	# remove playonmac
57
	# remove playonmac
57
	rm etc/{playonmac.icns,terminal.applescript} || die
58
	rm etc/{playonmac.icns,terminal.applescript} || die
Lines 67-82 src_install() { Link Here
67
68
68
	# bash/ install
69
	# bash/ install
69
	exeinto "${GAMES_DATADIR}/${PN}/bash"
70
	exeinto "${GAMES_DATADIR}/${PN}/bash"
70
	doexe bash/*
71
	find "${S}/bash" -type f -exec doexe '{}' +
71
	exeinto "${GAMES_DATADIR}/${PN}/bash/expert"
72
	exeinto "${GAMES_DATADIR}/${PN}/bash/expert"
72
	doexe bash/expert/*
73
	find "${S}/bash/expert" -type f -exec doexe '{}' +
73
74
74
	# python/ install
75
	# python/ install
75
	exeinto "${GAMES_DATADIR}/${PN}/python"
76
	python_moduleinto "${GAMES_DATADIR}/${PN}"
76
	doexe python/*
77
	python_domodule python
77
	# sub dir without exec permissions
78
	insinto "${GAMES_DATADIR}/${PN}/python"
79
	doins -r python/lib
80
78
81
	# main executable files
79
	# main executable files
82
	exeinto "${GAMES_DATADIR}/${PN}"
80
	exeinto "${GAMES_DATADIR}/${PN}"
Lines 88-96 src_install() { Link Here
88
		newicon -s $size etc/${PN}$size.png ${PN}.png
86
		newicon -s $size etc/${PN}$size.png ${PN}.png
89
	done
87
	done
90
88
91
	dodoc CHANGELOG
89
	doman "${FILESDIR}"/playonlinux{,-pkg}.1
90
	dodoc CHANGELOG.md
92
91
93
	games_make_wrapper ${PN} "./${PN}" "${GAMES_DATADIR}/${PN}"
92
	games_make_wrapper ${PN} "./${PN}" "${GAMES_DATADIR}/${PN}"
93
	games_make_wrapper ${PN}-pkg "./${PN}-pkg" "${GAMES_DATADIR}/${PN}"
94
	make_desktop_entry ${PN} ${MY_PN} ${PN} Game
94
	make_desktop_entry ${PN} ${MY_PN} ${PN} Game
95
95
96
	prepgamesdirs
96
	prepgamesdirs
Lines 102-108 pkg_preinst() { Link Here
102
102
103
pkg_postinst() {
103
pkg_postinst() {
104
	games_pkg_postinst
104
	games_pkg_postinst
105
	python_mod_optimize "${GAMES_DATADIR}/${PN}"
106
	gnome2_icon_cache_update
105
	gnome2_icon_cache_update
107
}
106
}
108
107
Lines 115-120 pkg_prerm() { Link Here
115
}
114
}
116
115
117
pkg_postrm() {
116
pkg_postrm() {
118
	python_mod_cleanup "${GAMES_DATADIR}/${PN}"
119
	gnome2_icon_cache_update
117
	gnome2_icon_cache_update
120
}
118
}

Return to bug 473210