summaryrefslogtreecommitdiff
path: root/app-emulation/playonlinux
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-emulation/playonlinux
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emulation/playonlinux')
-rw-r--r--app-emulation/playonlinux/Manifest10
-rw-r--r--app-emulation/playonlinux/files/playonlinux-4.2.4-binary-plugin.patch17
-rw-r--r--app-emulation/playonlinux/files/playonlinux-4.2.4-pol-bash.patch35
-rw-r--r--app-emulation/playonlinux/files/playonlinux-4.2.6-stop-update-warning.patch17
-rw-r--r--app-emulation/playonlinux/files/playonlinux-pkg.133
-rw-r--r--app-emulation/playonlinux/files/playonlinux.133
-rw-r--r--app-emulation/playonlinux/metadata.xml15
-rw-r--r--app-emulation/playonlinux/playonlinux-4.2.12.ebuild116
8 files changed, 276 insertions, 0 deletions
diff --git a/app-emulation/playonlinux/Manifest b/app-emulation/playonlinux/Manifest
new file mode 100644
index 000000000000..2eab120afecc
--- /dev/null
+++ b/app-emulation/playonlinux/Manifest
@@ -0,0 +1,10 @@
+AUX playonlinux-4.2.4-binary-plugin.patch 556 SHA256 dec6a4d47ca1e54a7ce8ca372a3e30aca34910440ee6ee1126c3ec9dd0d50063 SHA512 fbba7ce997f29354498b0e8a2438b0e875f775bd36993dead7dab50db79dd08f9b2dfc6f6948895473f8e3a6a0a19d6976131ae7a2d9f5da8acbbc1512c4c99b WHIRLPOOL bca096b739950ec049714a06daa6364545f264efc61358d6e5991faea838c4e647518997701d2ead014b1af39445a04eede9f1d6b05fcfda4699baaa552f70f4
+AUX playonlinux-4.2.4-pol-bash.patch 1089 SHA256 80e4d5245ba70e207832e662879c6844e7dea4583a3913a032a96b52ddef039c SHA512 d7ac172a63a42cbcbfbd8a60566b9b55fb1e853759a7b388627d14a2dab61ff36a1c6252d5178426daada6758ad50d102546f085b24c754c9f595d91b7d5e614 WHIRLPOOL 47e197effaf091c1a3a1f1649213ef161654afc24f4dd31f5e47a14bdf05e9cddb5356b2ebf6a1fb7ca5f3242937a0ae7cde7bd87cd7bef14067dba86e158d45
+AUX playonlinux-4.2.6-stop-update-warning.patch 766 SHA256 f6a93384f9483cf72bc867e7c00b56dff4c2dcdf0bc2a4af0d365e9b73c90533 SHA512 0db635067a47b7b3b671562b005dc5281a768207215535558d4790c4b74164356e7cc91f118df48bd1396ca58eeb7e8e85b46265895f753edb1ae921c2484a9f WHIRLPOOL 14cc230e628db1647634da618a805627db94d7ae06c1feb5046e88f9f7886938da104e1a7ec5dc9c4c987c84a6f1841db3361a21a5e61eba23ec17a4838867c9
+AUX playonlinux-pkg.1 643 SHA256 436e21b1187f582d59b6aa0a3bcd1f972bb9910ac532107f94cedd659d1283ce SHA512 115f87cee7c6d56dbc54da9b120ca468fb29ae4be116101cfa3e8efd1efd9a372e6e8424462087807f6755d496575c44788914f4e45c901359ce52fbe37210a8 WHIRLPOOL 6b5427b82fd0c95aa94675687971e62ddee979ce9b8711c534d448784ad11cc7beefc86a4cf212a154c4a33873350d313a517feb3b81eb0f0767cd9f879a916b
+AUX playonlinux.1 886 SHA256 76150743dae8b5d28910d754e506ab36774a3bd24442b9ff353325a6a916ab27 SHA512 44ba1a04a7e8dbf3d85d81bbcf92917b6fe7bd68478bbcfecfe0c30619b834cc6c973fc6dd7d637d7debc7ede2a206248feaca1a017834ba95f076fd16679c2d WHIRLPOOL da9edb65bb42b56dc518087c7308c05b3a4bd638d1a539382828e333b524ee29b9a4ef72292a701e9a45d68cc79065ee0e626669466c8241d72bc46e3c89ef56
+DIST PlayOnLinux_4.2.12.tar.gz 3204230 SHA256 38cbdc85cca83b72ed0e54ee3a768f939fefe29d3670fc5d76b0303b5bda680e SHA512 f4ededc8fe0117c66fd5672e136e19b9b48a41acdd3e1b1b3dd7fae2c354e77795f0a4f8286b09b7d1813363aee50fa0811c04c3194aaf745963a2e6115b3909 WHIRLPOOL d66b09c49d530efe7eba37e43fc4789013a0ec8cd532e56c83e558ef304abc00fb427789786de9eaef28046713360f3511c18a5fb746a749bd96b8cc7130b3c5
+EBUILD playonlinux-4.2.12.ebuild 2857 SHA256 8e55fc7a77d7406eb14c6d1c9bcca8a5e3b17406426e67a3acb7a3b3d378bd24 SHA512 c9479e61a5a344e07132d9c670bd2bd269147c35a22950689fb9603ca6c8813101285eca255a52aa59559af4402fab552bb7053696044c8efd212f21054583db WHIRLPOOL e5ac4c56483430b50735a25846db3826c0437ba29e967135754550d2706ccd2eb1ce7aca2e366c868d4fec12de66d5ad1b04735108ffbd53e547a6ab100f4c53
+MISC ChangeLog 3609 SHA256 0ffcb760955a943910ba2325b9aa335c336b3b1a8130c4aec721f6d0268afc16 SHA512 6eee02d5dccb4875f446e4d1032c6287dfd5a9d8db31287d94d9319054f3b7067f2b690dc19eb53bd06b734893a44d977d577dea47bde3ff6d543acf08590daf WHIRLPOOL a22ea171f8269c6c339d7429728ae0614a9c2926bf980fd78a968af27c71c81cf511a6593a20b6d14f707324a4c905b017093e32562de72aea6c58514ee4afb8
+MISC ChangeLog-2015 1348 SHA256 163fba679118cf0efb5e66be8612308086478a79e9079f4c2b18e581c2c3bf08 SHA512 cdb901b5dd3d14b9e7f48e7aacdd23571c3bf376b48649983a9a252822282d1ac60b30059ef3e5b2461ddcb1b53c989dba915397ef905a89a5ed68f19816faba WHIRLPOOL 9c071694bc7c29456aa6b2cbff838b1026575964703770907b9287255e49bd6b8b556387a29402499d47ec18e9bb23f1c6f8e625fc532e353fb18d47d050aeb5
+MISC metadata.xml 433 SHA256 d479d695d58b02ccf0dd030ac73537a1ca70f062281c742476a83c0b8bf9a17b SHA512 1e1dbfa93723297b63288436eaa1ce87183de71847c0ce61767381f668f6ad0bf69119570f7c7e395866f15e176f7412378c09386f8ddb271f7b2ec39da2d295 WHIRLPOOL 301f514f5a092ab1935548e5c8bbd1e66f8505dfbb49885b5945c2ae3c958d3f25b18f7aad3a3fc0f0b3d19f0ce71e217562ebefb0838384cf2042b713d49086
diff --git a/app-emulation/playonlinux/files/playonlinux-4.2.4-binary-plugin.patch b/app-emulation/playonlinux/files/playonlinux-4.2.4-binary-plugin.patch
new file mode 100644
index 000000000000..d5d3727e9fb0
--- /dev/null
+++ b/app-emulation/playonlinux/files/playonlinux-4.2.4-binary-plugin.patch
@@ -0,0 +1,17 @@
+Description: Remove binary code from the package
+ Upstream ships a binary plugin in the archive. This plugin is not necessary to
+ get PlayOnLinux working and it still can be downloaded from upstream.
+Forwarded: not-needed
+Author: Bertrand Marc <beberking@gmail.com>
+--- a/plugins/plugins.lst
++++ b/plugins/plugins.lst
+@@ -21,9 +21,6 @@
+
+ ## in fact empty line is also ignored because it's more easy to read =)
+
+-##Capture
+-capture;Capture_2.4.3.pol;Capture;enable;2.4.3;11;1;0
+-
+ ##Screencap
+ screencap;ScreenCap_0.0.4.pol;ScreenCap;enable;0.0.4;1;1;1
+
diff --git a/app-emulation/playonlinux/files/playonlinux-4.2.4-pol-bash.patch b/app-emulation/playonlinux/files/playonlinux-4.2.4-pol-bash.patch
new file mode 100644
index 000000000000..f9b3e2b81c29
--- /dev/null
+++ b/app-emulation/playonlinux/files/playonlinux-4.2.4-pol-bash.patch
@@ -0,0 +1,35 @@
+diff --git a/etc/pol_bash b/etc/pol_bash
+index 7911f05..bd891e4 100644
+--- a/etc/pol_bash
++++ b/etc/pol_bash
+@@ -29,7 +29,15 @@ export HISTCONTROL=ignoreboth
+ shopt -s checkwinsize
+
+ # make less more friendly for non-text input files, see lesspipe(1)
+-[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
++less_pipe_cmd=$(lesspipe 2> /dev/null)
++if [ "$less_pipe_cmd" == export* ]; then
++ eval "$(lesspipe)"
++else
++ if [ -x /usr/bin/lesspipe ]; then
++ export LESSOPEN='| lesspipe %s'
++ fi
++fi
++unset less_pipe_cmd
+
+ # set variable identifying the chroot you work in (used in the prompt below)
+ if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
+@@ -73,7 +81,9 @@ fi
+ # enable programmable completion features (you don't need to enable
+ # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
+ # sources /etc/bash.bashrc).
+-if [ -f /etc/bash_completion ]; then
+- . /etc/bash_completion
+-fi
+-
++for bashcomp in /etc/{bash_completion,profile.d/bash-completion.sh}; do
++ if [ -r "$bashcomp" ]; then
++ . "$bashcomp"
++ fi
++done
++unset bashcomp
diff --git a/app-emulation/playonlinux/files/playonlinux-4.2.6-stop-update-warning.patch b/app-emulation/playonlinux/files/playonlinux-4.2.6-stop-update-warning.patch
new file mode 100644
index 000000000000..f5cf055f84bc
--- /dev/null
+++ b/app-emulation/playonlinux/files/playonlinux-4.2.6-stop-update-warning.patch
@@ -0,0 +1,17 @@
+# This patch enables the $DEBIAN_PACKAGE variable for playonlinux.
+# The changes are described in the source comments below.
+# The flag is unfortnuately named debian, however the
+# benefits apply to any package management system.
+# Patch written by Adam Mills <adam@armills.info>
+
+--- a/python/lib/Variables.py 2013-08-10 22:19:46.053365072 -0400
++++ b/python/lib/Variables-patched.py 2013-08-10 22:17:58.275881842 -0400
+@@ -26,7 +26,7 @@
+ # Debian packagers should switch this to TRUE
+ # It will disable update alerts, bug reports, statistics
+ # It will set the good locale directory, and it will use the good msttcorefonts
+-os.environ["DEBIAN_PACKAGE"] = "FALSE"
++os.environ["DEBIAN_PACKAGE"] = "TRUE"
+
+ # Variables PlayOnMac
+ if (os.environ["POL_OS"] == "Mac"):
diff --git a/app-emulation/playonlinux/files/playonlinux-pkg.1 b/app-emulation/playonlinux/files/playonlinux-pkg.1
new file mode 100644
index 000000000000..b96a8dc921da
--- /dev/null
+++ b/app-emulation/playonlinux/files/playonlinux-pkg.1
@@ -0,0 +1,33 @@
+.TH PLAYONLINUX-PKG 1 "February 6, 2009"
+
+.SH NAME
+playonlinux-pkg \- tool to manage playonlinux packages
+
+.SH SYNOPSIS
+.B playonlinux-pkg
+.RI [ options ]
+.RI [ package ]
+
+.SH DESCRIPTION
+.B playonlinux-pkg
+is a tool to install or manage the playonlinux packages
+
+.SH OPTIONS
+.TP
+.I "-b, --browse"
+ Choose a file.
+.TP
+.I "-e, --extract"
+ Extract the package.
+.TP
+.I "-i, --install"
+ Install the package.
+.TP
+.I "-h, --help"
+ Show usage.
+
+.SH AUTHOR
+playonlinux was written by Quentin Pâris <qparis@playonlinux.com>.
+.PP
+This manual page was written by Bertrand Marc <beberking@gmail.com>,
+for the Debian project (but may be used by others).
diff --git a/app-emulation/playonlinux/files/playonlinux.1 b/app-emulation/playonlinux/files/playonlinux.1
new file mode 100644
index 000000000000..63c499be7327
--- /dev/null
+++ b/app-emulation/playonlinux/files/playonlinux.1
@@ -0,0 +1,33 @@
+.TH PLAYONLINUX 1 "February 6, 2009"
+
+.SH NAME
+PlayOnLinux \- front-end for Wine
+
+.SH SYNOPSIS
+.B playonlinux
+.RI [ options ]
+
+.SH DESCRIPTION
+.B PlayOnLinux
+is a front-end for Wine. It allows you to easily install and use numerous games and software designed to run with Microsoft®'s Windows®.
+.br
+Few games are compatible with GNU/Linux at the moment and it certainly is a factor preventing the migration to this system.
+.P
+.B PlayOnLinux
+performs installations in
+.I ~/.PlayOnLinux
+and uses separate Wine prefixes to avoid conflicts between applications.
+
+.SH OPTIONS
+.TP
+.I --version
+ Show version number and exit.
+.TP
+.I "--run <prog>"
+ Run directly the specified program.
+
+.SH AUTHOR
+playonlinux was written by Quentin Pâris <qparis@playonlinux.com>.
+.PP
+This manual page was written by Bertrand Marc <beberking@gmail.com>,
+for the Debian project (but may be used by others).
diff --git a/app-emulation/playonlinux/metadata.xml b/app-emulation/playonlinux/metadata.xml
new file mode 100644
index 000000000000..b43e3dddd0c0
--- /dev/null
+++ b/app-emulation/playonlinux/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>NP-Hardass@gentoo.org</email>
+ <name>NP-Hardass</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>wine@gentoo.org</email>
+ <name>Wine</name>
+ </maintainer>
+ <use>
+ <flag name="winbind">Enables support for the winbind auth daemon</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-emulation/playonlinux/playonlinux-4.2.12.ebuild b/app-emulation/playonlinux/playonlinux-4.2.12.ebuild
new file mode 100644
index 000000000000..9d672b2952e2
--- /dev/null
+++ b/app-emulation/playonlinux/playonlinux-4.2.12.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+
+inherit gnome2-utils python-single-r1
+
+MY_PN="PlayOnLinux"
+
+DESCRIPTION="Set of scripts to easily install and use Windows games and software"
+HOMEPAGE="https://playonlinux.com/"
+SRC_URI="http://www.playonlinux.com/script_files/${MY_PN}/${PV}/${MY_PN}_${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="winbind"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND=""
+RDEPEND="${PYTHON_DEPS}
+ app-arch/cabextract
+ app-arch/p7zip
+ app-arch/unzip
+ app-crypt/gnupg
+ || ( app-emulation/wine virtual/wine )
+ dev-python/wxpython:3.0[${PYTHON_USEDEP}]
+ net-misc/wget
+ x11-apps/mesa-progs
+ x11-terms/xterm
+ media-gfx/icoutils
+ || ( net-analyzer/netcat net-analyzer/netcat6 )
+ virtual/imagemagick-tools
+ winbind? ( net-fs/samba[winbind] )
+"
+
+S="${WORKDIR}/${PN}"
+
+# TODO:
+# Having a real install script
+# It will let using LANGUAGES easily
+# How to deal with Microsoft Fonts installation asked every time ?
+# How to deal with wine version installed ? (have a better mgmt of system one)
+# Look at debian pkg: https://packages.debian.org/sid/playonlinux
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.2.4-pol-bash.patch"
+ "${FILESDIR}/${PN}-4.2.4-binary-plugin.patch"
+ "${FILESDIR}/${PN}-4.2.6-stop-update-warning.patch"
+)
+
+src_prepare() {
+ default
+
+ python_fix_shebang .
+
+ # remove playonmac
+ rm etc/{playonmac.icns,terminal.applescript} || die
+
+ # remove desktop integration
+ rm etc/{PlayOnLinux.desktop,PlayOnLinux.directory,playonlinux-Programs.menu} || die
+}
+
+src_install() {
+ # all things without exec permissions
+ insinto "/usr/share/${PN}"
+ doins -r resources lang lib etc plugins
+
+ # bash/ install
+ exeinto "/usr/share/${PN}/bash"
+ find "${S}/bash" -type f -exec doexe '{}' +
+ exeinto "/usr/share/${PN}/bash/expert"
+ find "${S}/bash/expert" -type f -exec doexe '{}' +
+
+ # python/ install
+ python_moduleinto "/usr/share/${PN}"
+ python_domodule python
+
+ # main executable files
+ exeinto "/usr/share/${PN}"
+ doexe ${PN}{,-pkg,-bash,-shell,-url_handler}
+
+ # icons
+ doicon -s 128 etc/${PN}.png
+ for size in 16 22 32; do
+ newicon -s $size etc/${PN}$size.png ${PN}.png
+ done
+
+ doman "${FILESDIR}"/playonlinux{,-pkg}.1
+ dodoc CHANGELOG.md
+
+ make_wrapper ${PN} "./${PN}" "/usr/share/${PN}"
+ make_wrapper ${PN}-pkg "./${PN}-pkg" "/usr/share/${PN}"
+ make_desktop_entry ${PN} ${MY_PN} ${PN} Game
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_prerm() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "Installed software and games with playonlinux have not been removed."
+ elog "To remove them, you can re-install playonlinux and remove them using it,"
+ elog "or do it manually by removing .PlayOnLinux/ in your home directory."
+ fi
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}