1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 )
7 inherit eutils gnome2-utils python-single-r1
11 DESCRIPTION="Set of scripts to easily install and use Windows games and software"
12 HOMEPAGE="https://playonlinux.com/"
13 SRC_URI="http://www.playonlinux.com/script_files/${MY_PN}/${PV}/${MY_PN}_${PV}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
19 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
22 RDEPEND="${PYTHON_DEPS}
28 $(python_gen_cond_dep '
29 dev-python/wxpython:3.0[${PYTHON_MULTI_USEDEP}]
36 virtual/imagemagick-tools
37 winbind? ( net-fs/samba[winbind] )
43 # Having a real install script
44 # It will let using LANGUAGES easily
45 # How to deal with Microsoft Fonts installation asked every time ?
46 # How to deal with wine version installed ? (have a better mgmt of system one)
47 # Look at debian pkg: https://packages.debian.org/sid/playonlinux
50 "${FILESDIR}/${PN}-4.2.4-pol-bash.patch"
51 "${FILESDIR}/${PN}-4.2.4-binary-plugin.patch"
52 "${FILESDIR}/${PN}-4.2.6-stop-update-warning.patch"
61 rm etc/{playonmac.icns,terminal.applescript} || die
63 # remove desktop integration
64 rm etc/{PlayOnLinux.desktop,PlayOnLinux.directory,playonlinux-Programs.menu} || die
68 # all things without exec permissions
69 insinto "/usr/share/${PN}"
70 doins -r resources lang lib etc plugins
73 exeinto "/usr/share/${PN}/bash"
74 find "${S}/bash" -type f -exec doexe '{}' +
75 exeinto "/usr/share/${PN}/bash/expert"
76 find "${S}/bash/expert" -type f -exec doexe '{}' +
79 python_moduleinto "/usr/share/${PN}"
80 python_domodule python
82 # main executable files
83 exeinto "/usr/share/${PN}"
84 doexe ${PN}{,-pkg,-bash,-shell,-url_handler}
87 doicon -s 128 etc/${PN}.png
88 for size in 16 22 32; do
89 newicon -s $size etc/${PN}$size.png ${PN}.png
92 doman "${FILESDIR}"/playonlinux{,-pkg}.1
95 make_wrapper ${PN} "./${PN}" "/usr/share/${PN}"
96 make_wrapper ${PN}-pkg "./${PN}-pkg" "/usr/share/${PN}"
97 make_desktop_entry ${PN} ${MY_PN} ${PN} Game
105 gnome2_icon_cache_update
109 if [[ -z ${REPLACING_VERSIONS} ]]; then
110 elog "Installed software and games with playonlinux have not been removed."
111 elog "To remove them, you can re-install playonlinux and remove them using it,"
112 elog "or do it manually by removing .PlayOnLinux/ in your home directory."
117 gnome2_icon_cache_update