Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/playonlinux/
Date: Mon, 05 Jun 2017 10:05:46
Message-Id: 1496657036.b257603c6fb675115ee006cbe980779245b68cc3.pacho@gentoo
1 commit: b257603c6fb675115ee006cbe980779245b68cc3
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 5 10:03:56 2017 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 5 10:03:56 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b257603c
7
8 app-emulation/playonlinux: Version bump, use wxpython-3.0 (#601092) and allow virtual/wine usage (#619500 by adebeus).
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 app-emulation/playonlinux/Manifest | 1 +
13 .../playonlinux/playonlinux-4.2.11.ebuild | 116 +++++++++++++++++++++
14 2 files changed, 117 insertions(+)
15
16 diff --git a/app-emulation/playonlinux/Manifest b/app-emulation/playonlinux/Manifest
17 index 8d829b2ecfb..e2ffbca4cf0 100644
18 --- a/app-emulation/playonlinux/Manifest
19 +++ b/app-emulation/playonlinux/Manifest
20 @@ -1,4 +1,5 @@
21 DIST PlayOnLinux_4.2.10.tar.gz 3202085 SHA256 f524905912ae2b17c8544968a8554d635f8fc4cd3b220c0ae15c49d51f244973 SHA512 8d5477b8478e05e1a1974d17466a6ac0d79617b2056a1e6bf0f8dad067a1475a99008bbca52d565686e46b003cc14300306fc11d043e20773f93d1ab7b34ae58 WHIRLPOOL c75f00974a2ef6043405911f4c5313294d4f8f6ab4f64a77ed2b9e148770b5d43bf1c4a934b0e27663b159841d26a908159cb3445d13b0e0b810c98fd5e68d59
22 +DIST PlayOnLinux_4.2.11.tar.gz 3204225 SHA256 a55e2f07240baa8f152032997c6aad203e1cfbf8ba086fd0744f1ee1868408d2 SHA512 9ee2df6a4eb9e18097cea63995888b0bc46e596db639da0c6ac393c92dc135cb9c62c45f25998e5384157d12b6fc2b2fc6b78925d20cf0980527776ec6f20dd1 WHIRLPOOL aec82fdaa545089a03d2f6a4089ba83e7c1a926272d28ecf3a445d9be884ea885439a1de0dc517ac845c7a5cf13bf3338a3e5dc80783676a7ce6741d557818ab
23 DIST PlayOnLinux_4.2.4.tar.gz 4638249 SHA256 cc6f9c41c9f91278d995d14b7be6bd86c765cf41351c80e885df29da40b57554 SHA512 1f200e43da4e43b6687cc05243cb9375d312c5382d4d82f06f574cc4a1a4322568ed429abc463d830cfcc1a818d0cc93147fbc60858a6b19872b55a479c8c58c WHIRLPOOL d09c5439a618d99af0ae380cb39a8e92acd47869190f984981e9cdc91272da48c6731457d0a23383c47219371bdf9d6018fe89a7acaaba32fc96221b58406d99
24 DIST PlayOnLinux_4.2.6.tar.gz 3202517 SHA256 34fc06ce55f889673529a405d17ffc045a68cc998a679377056ed63988dd64e2 SHA512 41c4af5335874020f6405f460a0b9787f7dcfb77790661ff254d2af7ff107a94020b75a8b4f1856f1e4b866e63dee49d5823edf4867d64cd20c41b17387f5490 WHIRLPOOL 4278cc00c76abfeecb87d125046a977c69d5e62b751481ffa5ed4ca4a911507bc6b650bd8648cc7b4cd794e7f0c9e91197adc3854c963770bd87a535d83ab562
25 DIST PlayOnLinux_4.2.8.tar.gz 3168086 SHA256 2ae8d5132706f3c697d0a53573c5835938dd042b620eb76790181b285797985c SHA512 8b9c934bf3591030dc9922757eadb09db34fee7c5a5ee8b800c831ee1b99e55959c0b66f645a89d3dc5d7287438da3a26c6877076175272e199221231accba12 WHIRLPOOL cbaafa8f0f90c89931135c0fbcd91df00676fde4e0e9305a3d8f52234a51b96682e5a4aca14138f1f3f54ac43f69d38b7186667fcab97c72fa8043c3ffbd68d6
26
27 diff --git a/app-emulation/playonlinux/playonlinux-4.2.11.ebuild b/app-emulation/playonlinux/playonlinux-4.2.11.ebuild
28 new file mode 100644
29 index 00000000000..22de8c4535b
30 --- /dev/null
31 +++ b/app-emulation/playonlinux/playonlinux-4.2.11.ebuild
32 @@ -0,0 +1,116 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI="6"
37 +PYTHON_COMPAT=( python2_7 )
38 +
39 +inherit gnome2-utils python-single-r1
40 +
41 +MY_PN="PlayOnLinux"
42 +
43 +DESCRIPTION="Set of scripts to easily install and use Windows games and software"
44 +HOMEPAGE="http://playonlinux.com/"
45 +SRC_URI="http://www.playonlinux.com/script_files/${MY_PN}/${PV}/${MY_PN}_${PV}.tar.gz"
46 +
47 +LICENSE="GPL-3"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="winbind"
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +
53 +DEPEND=""
54 +RDEPEND="${PYTHON_DEPS}
55 + app-arch/cabextract
56 + app-arch/p7zip
57 + app-arch/unzip
58 + app-crypt/gnupg
59 + || ( app-emulation/wine virtual/wine )
60 + dev-python/wxpython:3.0[${PYTHON_USEDEP}]
61 + net-misc/wget
62 + x11-apps/mesa-progs
63 + x11-terms/xterm
64 + media-gfx/icoutils
65 + || ( net-analyzer/netcat net-analyzer/netcat6 )
66 + virtual/imagemagick-tools
67 + winbind? ( net-fs/samba[winbind] )
68 +"
69 +
70 +S="${WORKDIR}/${PN}"
71 +
72 +# TODO:
73 +# Having a real install script
74 +# It will let using LANGUAGES easily
75 +# How to deal with Microsoft Fonts installation asked every time ?
76 +# How to deal with wine version installed ? (have a better mgmt of system one)
77 +# Look at debian pkg: http://packages.debian.org/sid/playonlinux
78 +
79 +PATCHES=(
80 + "${FILESDIR}/${PN}-4.2.4-pol-bash.patch"
81 + "${FILESDIR}/${PN}-4.2.4-binary-plugin.patch"
82 + "${FILESDIR}/${PN}-4.2.6-stop-update-warning.patch"
83 +)
84 +
85 +src_prepare() {
86 + default
87 +
88 + python_fix_shebang .
89 +
90 + # remove playonmac
91 + rm etc/{playonmac.icns,terminal.applescript} || die
92 +
93 + # remove desktop integration
94 + rm etc/{PlayOnLinux.desktop,PlayOnLinux.directory,playonlinux-Programs.menu} || die
95 +}
96 +
97 +src_install() {
98 + # all things without exec permissions
99 + insinto "/usr/share/${PN}"
100 + doins -r resources lang lib etc plugins
101 +
102 + # bash/ install
103 + exeinto "/usr/share/${PN}/bash"
104 + find "${S}/bash" -type f -exec doexe '{}' +
105 + exeinto "/usr/share/${PN}/bash/expert"
106 + find "${S}/bash/expert" -type f -exec doexe '{}' +
107 +
108 + # python/ install
109 + python_moduleinto "/usr/share/${PN}"
110 + python_domodule python
111 +
112 + # main executable files
113 + exeinto "/usr/share/${PN}"
114 + doexe ${PN}{,-pkg,-bash,-shell,-url_handler}
115 +
116 + # icons
117 + doicon -s 128 etc/${PN}.png
118 + for size in 16 22 32; do
119 + newicon -s $size etc/${PN}$size.png ${PN}.png
120 + done
121 +
122 + doman "${FILESDIR}"/playonlinux{,-pkg}.1
123 + dodoc CHANGELOG.md
124 +
125 + make_wrapper ${PN} "./${PN}" "/usr/share/${PN}"
126 + make_wrapper ${PN}-pkg "./${PN}-pkg" "/usr/share/${PN}"
127 + make_desktop_entry ${PN} ${MY_PN} ${PN} Game
128 +}
129 +
130 +pkg_preinst() {
131 + gnome2_icon_savelist
132 +}
133 +
134 +pkg_postinst() {
135 + gnome2_icon_cache_update
136 +}
137 +
138 +pkg_prerm() {
139 + if [[ -z ${REPLACING_VERSIONS} ]]; then
140 + elog "Installed software and games with playonlinux have not been removed."
141 + elog "To remove them, you can re-install playonlinux and remove them using it,"
142 + elog "or do it manually by removing .PlayOnLinux/ in your home directory."
143 + fi
144 +}
145 +
146 +pkg_postrm() {
147 + gnome2_icon_cache_update
148 +}