summaryrefslogtreecommitdiff
path: root/games-board/spider
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 /games-board/spider
reinit the tree, so we can have metadata
Diffstat (limited to 'games-board/spider')
-rw-r--r--games-board/spider/Manifest6
-rw-r--r--games-board/spider/metadata.xml11
-rw-r--r--games-board/spider/spider-1.2_p4-r1.ebuild84
3 files changed, 101 insertions, 0 deletions
diff --git a/games-board/spider/Manifest b/games-board/spider/Manifest
new file mode 100644
index 000000000000..686005f84c1e
--- /dev/null
+++ b/games-board/spider/Manifest
@@ -0,0 +1,6 @@
+DIST spider_1.2-4.diff.gz 2882 SHA256 d4135ae12f39a1f8aa4286fda607e61751d4c5898d22b962e62bc2f73bc71bbd SHA512 e1e6eb4d5b14de7c32e1537877a3d26470c032bea567aa679c8a3744d62ab6b12d81bf05120679a273d98b6fd976c32d24ce9c54b720d006c51464f7ff6d5e75 WHIRLPOOL f0932d0f3abbfd93240d05b739addd49b5c0d4e0d9cec7ec65149e088494c29698e0737db4a895347722ca9ac7bb4427a3276e91e5237fdd3aacaeed8590dd25
+DIST spider_1.2.orig.tar.gz 168209 SHA256 0c5a813a967b9f5ca8c799c05b2583481a292fbcca57293055c243566a7f03b3 SHA512 a1d01f15ca37c8abdcc9f7c3dac925b1726f9b58ce51eb4096a9248abe0a55086ccdd5cc5ec358c2ee609ff089978676a3e3c669062a522ed7f1d4ea1ce33ab0 WHIRLPOOL bec06ca75c28416a5359022e24948c6c1e06e7f37e857f657e00b41a2bf69ee76f31061bec5734657e755134c9197d59b2ee78447c142c97cace8b65e74e09af
+EBUILD spider-1.2_p4-r1.ebuild 1698 SHA256 452146aecb5d8b302bc0d74925d370adfc323580660f14cd3c102d8f14777bef SHA512 73184d419d3485f996b0814bdd8395ad623edc96e3f6cdc2a606eece03fe32d88d52176fdc4986c3ab9c1d797e44ee22cc039f0f0539ac1f20f7c44ef7bebea1 WHIRLPOOL 6d200433af3f60f85a0c98d00c1a4dda7a7d1e2b986844e7b00680cfab7373c5238c1926ccd26f9bec65cb8631a8c5c1a630e4cdb3004afd2a09d2c7a0966d23
+MISC ChangeLog 2435 SHA256 4d77fecb36d7bde3c4a6f407d199d0a5ae4161eac86609763e8978fc4e18cad4 SHA512 c7c51a08fc275e59b30d5dca2af289f1bac4fccdccd488f85355610b2a6f9675b0afd24465758e61657bd66a1fd2bc7c802d0e9a447acd4c039d012cb300c6ef WHIRLPOOL 3063925f0cb1a98f4e861790f076271d7f04acf7b2a33fa87ad9ef65f8ff7b0aa25215dc16a7428cf741527c47540d2d0a376043dc7875df900621de1ecfe091
+MISC ChangeLog-2015 1634 SHA256 f4d93fc8a27b9ac16f19dd944a54a58a361b70550944f45ff125a8f17062b178 SHA512 e87d5a1a136e71e82a0a96205640d71232e32c397538e7f8ba0ad2e2f741cef4d0fb690f625eb4d00924236ba8e9cb895b8d3daca1217cbb3bf70c0cd428cdb3 WHIRLPOOL a82d1df4cde50b28efc4ca18325486c25a6bfc616beb858f84de9fe01ad0defebffd3a46a292917c5ae033b90b5865e6861a3f83843b6f5aed8fe192e0844310
+MISC metadata.xml 327 SHA256 aa8d4cd265e37c9c702df353c8dcf95e574a7b61249e7294d6cc2a09ece87a9c SHA512 e55a8b00c37c88331de81c2c28e9a187c1a28d4fd64c5fcafd9e01c8cdfbdbd455ded19f523d1806506a1652a5eecaf09b5f8097a42ac40bb36821b92bd3c4b9 WHIRLPOOL f94ea35b877075650dac2e946cd4a02bd51adf2a875fe95eaff8726ed697343f36af9937ea347fb016212a58257983f0f61b587f99563e5d56a4053506dc5bd7
diff --git a/games-board/spider/metadata.xml b/games-board/spider/metadata.xml
new file mode 100644
index 000000000000..9f9b26e3cb66
--- /dev/null
+++ b/games-board/spider/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <use>
+ <flag name="athena">Enable athena widgets</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-board/spider/spider-1.2_p4-r1.ebuild b/games-board/spider/spider-1.2_p4-r1.ebuild
new file mode 100644
index 000000000000..a72ab1a8b0bd
--- /dev/null
+++ b/games-board/spider/spider-1.2_p4-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils gnome2-utils games
+
+MY_P="${P%%_*}"
+MY_P="${MY_P/-/_}"
+DEB_V="${P##*_p}"
+
+DESCRIPTION="Spider Solitaire"
+HOMEPAGE="http://packages.debian.org/stable/games/spider"
+SRC_URI="mirror://debian/pool/main/s/spider/${MY_P}.orig.tar.gz
+ mirror://debian/pool/main/s/spider/${MY_P}-${DEB_V}.diff.gz"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="athena"
+
+RDEPEND="x11-libs/libXext
+ athena? ( x11-libs/libXaw )
+ x11-libs/libXmu
+ x11-libs/libXt"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ x11-proto/xproto"
+
+S=${WORKDIR}/${MY_P/_/-}.orig
+
+src_prepare() {
+ epatch "${WORKDIR}"/${MY_P}-${DEB_V}.diff
+ sed -i \
+ -e '/MKDIRHIER/s:/X11::' \
+ *Imakefile \
+ || die "sed failed"
+ rm Makefile
+}
+
+src_configure() {
+ imake \
+ -DUseInstalled \
+ -DSmallCards=NO \
+ -DRoundCards \
+ $(use athena && echo "-DCompileXAW=YES" || echo "-DCompileXlibOnly=YES") \
+ -I/usr/lib/X11/config \
+ || die "imake failed"
+ sed -i \
+ -e '/CC = /d' \
+ -e "s/CDEBUGFLAGS = .*$/CDEBUGFLAGS = ${CFLAGS}/" \
+ -e '/LDOPTIONS = /s/$/$(LDFLAGS)/' \
+ Makefile \
+ || die "sed failed"
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ BINDIR="${GAMES_BINDIR}" \
+ MANSUFFIX="6" \
+ MANDIR="/usr/share/man/man6" \
+ HELPDIR="/usr/share/doc/${PF}" \
+ install install.doc install.man
+
+ dodoc README* ChangeLog
+ newicon icons/Spider.png ${PN}.png
+ newicon -s 32 icons/Spider32x32.png ${PN}.png
+ make_desktop_entry spider Spider
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}