summaryrefslogtreecommitdiff
path: root/app-emulation/playonlinux
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/playonlinux')
-rw-r--r--app-emulation/playonlinux/Manifest8
-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, 274 insertions, 0 deletions
diff --git a/app-emulation/playonlinux/Manifest b/app-emulation/playonlinux/Manifest
new file mode 100644
index 000000000000..c5559b971fc2
--- /dev/null
+++ b/app-emulation/playonlinux/Manifest
@@ -0,0 +1,8 @@
+AUX playonlinux-4.2.4-binary-plugin.patch 556 BLAKE2B 6938d590f88e45dea88aa7e0fca375382b4bae6bdce4fbe8f0fc67f32d80e9a403114172b4011fd396ab29a9723ec8e625a6cdfe01b24c49d72ef8edd5da4049 SHA512 fbba7ce997f29354498b0e8a2438b0e875f775bd36993dead7dab50db79dd08f9b2dfc6f6948895473f8e3a6a0a19d6976131ae7a2d9f5da8acbbc1512c4c99b
+AUX playonlinux-4.2.4-pol-bash.patch 1089 BLAKE2B 689b79bced4b6d5c53044b725099f6ac9ae4b1b25b9db4aaac7a2d1049cf209108fe16e6e39e654cd49b1b2c96163968a8409a6bb38efe63fb9b08f161069ef7 SHA512 d7ac172a63a42cbcbfbd8a60566b9b55fb1e853759a7b388627d14a2dab61ff36a1c6252d5178426daada6758ad50d102546f085b24c754c9f595d91b7d5e614
+AUX playonlinux-4.2.6-stop-update-warning.patch 766 BLAKE2B 934a8600742d7030d22f4ba8b88e83155437c5676a0937f41a56ee87ead370f5ab5475339e9cabd5e90b99e569e5a3c962e602a52601083aea37a8cd1b18b361 SHA512 0db635067a47b7b3b671562b005dc5281a768207215535558d4790c4b74164356e7cc91f118df48bd1396ca58eeb7e8e85b46265895f753edb1ae921c2484a9f
+AUX playonlinux-pkg.1 643 BLAKE2B 80c5381aad102d81eebaa81d3ed83ed0fb16aa29b7f4a2e2b9dd349fe020112fd34e32ac9edab510852cb66bc402d9ef46ed0a2aed5c3369885161797e47aca8 SHA512 115f87cee7c6d56dbc54da9b120ca468fb29ae4be116101cfa3e8efd1efd9a372e6e8424462087807f6755d496575c44788914f4e45c901359ce52fbe37210a8
+AUX playonlinux.1 886 BLAKE2B 903f21600540798a765ae209832c4f111380340f4c6305ca333b29e6508579e13b3df8c3d44bc56284cdce290b319d40294eaee7476630190c9b7fd24ece2e76 SHA512 44ba1a04a7e8dbf3d85d81bbcf92917b6fe7bd68478bbcfecfe0c30619b834cc6c973fc6dd7d637d7debc7ede2a206248feaca1a017834ba95f076fd16679c2d
+DIST PlayOnLinux_4.2.12.tar.gz 3204230 BLAKE2B 80ef0e5763448da4a37263c64d408e8263771694666a7c704b5900dfe0e52cc18405c34d609d8c49a0d05a383fca2d035e956e3bbe9a9a0c92a4e43b319ed7ba SHA512 f4ededc8fe0117c66fd5672e136e19b9b48a41acdd3e1b1b3dd7fae2c354e77795f0a4f8286b09b7d1813363aee50fa0811c04c3194aaf745963a2e6115b3909
+EBUILD playonlinux-4.2.12.ebuild 2831 BLAKE2B 5726b4c84d423b8d2ea519fccfa29ed8bf26dab8e101ae94f33e83d5b49f57fa5056a9feaae41555d90d064620e0ddef4d268f29164e2332762318e6693e1eaa SHA512 7c851c95913c074a4b5ee35d6bdf7c93f8795ee6e42c25a0b4c6dc49c94977d2b041568789e85f3e7392e4a510fc6b2d13002021ae1b075380b4f9585e55b845
+MISC metadata.xml 433 BLAKE2B 6ba322414d75d581231afedbb791ce71aff799da09be4e08aab6f4e7e2e88d19b6e8701e36599bd1760e7076558c733edfe19f603f7f9541d0197cf4f1d59e4a SHA512 1e1dbfa93723297b63288436eaa1ce87183de71847c0ce61767381f668f6ad0bf69119570f7c7e395866f15e176f7412378c09386f8ddb271f7b2ec39da2d295
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..c9cad5a9d855
--- /dev/null
+++ b/app-emulation/playonlinux/playonlinux-4.2.12.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2018 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
+ 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
+}