summaryrefslogtreecommitdiff
path: root/games-util/etswitch
diff options
context:
space:
mode:
Diffstat (limited to 'games-util/etswitch')
-rw-r--r--games-util/etswitch/Manifest5
-rw-r--r--games-util/etswitch/etswitch-0.1.14-r1.ebuild30
-rw-r--r--games-util/etswitch/files/etswitch-0.1.14-desktop-entry.patch20
-rw-r--r--games-util/etswitch/files/etswitch-0.1.14-glibc.patch12
-rw-r--r--games-util/etswitch/metadata.xml8
5 files changed, 75 insertions, 0 deletions
diff --git a/games-util/etswitch/Manifest b/games-util/etswitch/Manifest
new file mode 100644
index 000000000000..57fb6c90efd9
--- /dev/null
+++ b/games-util/etswitch/Manifest
@@ -0,0 +1,5 @@
+AUX etswitch-0.1.14-desktop-entry.patch 464 BLAKE2B 5058044958c26fdb6c062f3ea6d2a9d2d8a42421de016ab7c4d7263b638fb323d02771cd789bd57d35897b4a08a9e03031e0b6602edf241068d0574be72f2aa3 SHA512 aa21d15ce672f51903e8cd86df3d8794231037d8eb8cb97a8313dc6f3c7212b7bb89d8f78ecc249a589ad03b38ef41f5d346f41dc9f929d130eb83794b19b9ec
+AUX etswitch-0.1.14-glibc.patch 628 BLAKE2B e6a7228a90417cda917cd4218496643e6bb2fa6b41886b48cdbb17758591d6a5742f6f427ccb6dd75d78403d1d394bb5324fd63848260e35808ba5d232a4e2b9 SHA512 27249584033beb4cf81b37e387a814a7b213d4108f530bc21494196916fe395c15767e384c62257dd3abb1d04eb104c0863b7e2d80cfae4927912a836b181019
+DIST etswitch-0.1.14.tar.gz 165811 BLAKE2B 3d52b9dbddec9ddba914cf8e3ecb5013b2b7eac0b9a655d1be60c01cb77639d8ca2906140fc3ecd097005aaef5b11bf4ddd2ac88a5d2e0ba26aac9f2f1593248 SHA512 15447e728b8c6783e663bb76dd64a03b57ecfea6845991f4deca73ee5c5b8c2f87e92d842a46948e48468898eb036f17cbaf365887ea30c1b724db9133f9620c
+EBUILD etswitch-0.1.14-r1.ebuild 597 BLAKE2B ee3a7e7c2a51053cfd6abe75882253fa70ace235137ed9a2f756c6103cfc5e102451034fb5a6dcdd58c3d2084598b2be2fe49e1c8e5b01464968ca122c3a4210 SHA512 cd53988bc5ec85ff2882f458f6a349bad34712c6adf2be2a9cbe14c010270f889eacc22dca19f6adf82880092742334e2660ce7deecea829d108e7748035db52
+MISC metadata.xml 253 BLAKE2B 443ca9c8d4f6801169382e87a0ecd1385c56e65229209e7200f9d313ef380e92ae8d7dc3c38e5989a4166289f22607a20b1e13bb960fff6b3d9f78629d8ab020 SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254
diff --git a/games-util/etswitch/etswitch-0.1.14-r1.ebuild b/games-util/etswitch/etswitch-0.1.14-r1.ebuild
new file mode 100644
index 000000000000..da46e7ba4978
--- /dev/null
+++ b/games-util/etswitch/etswitch-0.1.14-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="*nix minimizer for a few games"
+HOMEPAGE="http://hem.bredband.net/b400150/"
+SRC_URI="http://hem.bredband.net/b400150/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXxf86vm
+ x11-libs/libXmu
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}
+ x11-libs/libXt
+ x11-base/xorg-proto"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-desktop-entry.patch
+ "${FILESDIR}"/${P}-glibc.patch
+)
+
+src_configure() {
+ econf --datadir=/usr/share
+}
diff --git a/games-util/etswitch/files/etswitch-0.1.14-desktop-entry.patch b/games-util/etswitch/files/etswitch-0.1.14-desktop-entry.patch
new file mode 100644
index 000000000000..f3e6b5dcd805
--- /dev/null
+++ b/games-util/etswitch/files/etswitch-0.1.14-desktop-entry.patch
@@ -0,0 +1,20 @@
+--- a/etswitch.desktop.in 2008-02-02 10:54:51.000000000 -0500
++++ b/etswitch.desktop.in 2008-02-02 11:17:40.000000000 -0500
+@@ -1,5 +1,4 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+ Version=1.0
+
+ Name=ETSwitch
+@@ -15,9 +14,9 @@
+ Comment[fi_FI]=ETSwitch versio @VERSION@
+
+ Exec=etswitch --no-delay
+-Icon=etswitch.png
++Icon=etswitch
+ Terminal=false
+ Type=Application
+-Categories=Application;Game;Tool
++Categories=Game;Utility;
+ StartupNotify=true
+ StartupWMClass=ETSwitch
diff --git a/games-util/etswitch/files/etswitch-0.1.14-glibc.patch b/games-util/etswitch/files/etswitch-0.1.14-glibc.patch
new file mode 100644
index 000000000000..a51862d6722d
--- /dev/null
+++ b/games-util/etswitch/files/etswitch-0.1.14-glibc.patch
@@ -0,0 +1,12 @@
+diff -dupr etswitch-old/src/etswitch.c etswitch-0.1.14/src/etswitch.c
+--- etswitch-old/src/etswitch.c 2009-02-24 11:20:29.594339029 +0100
++++ etswitch-0.1.14/src/etswitch.c 2009-02-24 11:28:12.100463404 +0100
+@@ -461,7 +461,7 @@ int main(int argc, char *argv[]){
+ /* setup lock, fixme */
+ /* use temp var */
+ lock_file = "/tmp/.etswitch.pid"; /* now this isnt failsafe but at least something */
+- lock_fd = open(lock_file, O_CREAT | O_RDWR);
++ lock_fd = open(lock_file, O_CREAT | O_RDWR, 0600);
+ if (lock_fd < 0) {
+ #ifdef DEBUG
+ fprintf(stdout, "'%s' allready exits, will try to open.\n",lock_file);
diff --git a/games-util/etswitch/metadata.xml b/games-util/etswitch/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-util/etswitch/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>