diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-board/spider | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-board/spider')
-rw-r--r-- | games-board/spider/Manifest | 4 | ||||
-rw-r--r-- | games-board/spider/metadata.xml | 11 | ||||
-rw-r--r-- | games-board/spider/spider-1.2_p4-r2.ebuild | 83 |
3 files changed, 98 insertions, 0 deletions
diff --git a/games-board/spider/Manifest b/games-board/spider/Manifest new file mode 100644 index 000000000000..f6622132a4d8 --- /dev/null +++ b/games-board/spider/Manifest @@ -0,0 +1,4 @@ +DIST spider_1.2-4.diff.gz 2882 BLAKE2B 3016e4d6a7f4aa6e4f47e7abb78b12d70d5cee400a4e61b514e8fbbfdb7ad8484f84c1c1006447f3c6ab8a5897dfc4d4af5304eeaea716203c5c5440f9084b3b SHA512 e1e6eb4d5b14de7c32e1537877a3d26470c032bea567aa679c8a3744d62ab6b12d81bf05120679a273d98b6fd976c32d24ce9c54b720d006c51464f7ff6d5e75 +DIST spider_1.2.orig.tar.gz 168209 BLAKE2B 3a1163099ba9ce4faa9bc7c3424a2a2105c6fe001487822898dba7598dc5dc8d43cab2a3d7685fb71b1d19ff1b667397a41a3ba03fca4abf5d700308b19dc202 SHA512 a1d01f15ca37c8abdcc9f7c3dac925b1726f9b58ce51eb4096a9248abe0a55086ccdd5cc5ec358c2ee609ff089978676a3e3c669062a522ed7f1d4ea1ce33ab0 +EBUILD spider-1.2_p4-r2.ebuild 1604 BLAKE2B 2c1e8f6c6da9778ad9d6e50b8f2106270f673c3bb54e3a0f8bd8e9105430f09fe7ab45dc28598a0f53733f642c639f83eb7f19ba8df0553ec41b5f49414c5112 SHA512 eed7419df57dc9cb833f87c33dddcd8b99aa8da45a93c0a2ad30a224df0fcf1be68283ad4bc4241c88e3feeb7c1d22e7e06477ebca267ea95a5229476f9adab2 +MISC metadata.xml 327 BLAKE2B 60eff6a4428512cda35daa5d6d02f55f946b5e7840a9ff866a1f76014a837c25fa5c4e142187270a5b25b1c38c96a61cf3e7a229f39caf70d830731565b9222e SHA512 e55a8b00c37c88331de81c2c28e9a187c1a28d4fd64c5fcafd9e01c8cdfbdbd455ded19f523d1806506a1652a5eecaf09b5f8097a42ac40bb36821b92bd3c4b9 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-r2.ebuild b/games-board/spider/spider-1.2_p4-r2.ebuild new file mode 100644 index 000000000000..e6d741852790 --- /dev/null +++ b/games-board/spider/spider-1.2_p4-r2.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop epatch gnome2-utils + +MY_P="${P%%_*}" +MY_P="${MY_P/-/_}" +DEB_V="${P##*_p}" + +DESCRIPTION="Spider Solitaire" +HOMEPAGE="https://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-base/xorg-proto + x11-misc/imake +" + +S="${WORKDIR}/${MY_P/_/-}.orig" + +src_prepare() { + default + epatch "${WORKDIR}"/${MY_P}-${DEB_V}.diff + sed -i \ + -e '/MKDIRHIER/s:/X11::' \ + *Imakefile \ + || die "sed failed" + rm Makefile +} + +src_configure() { + xmkmf \ + -DSmallCards=NO \ + -DRoundCards \ + $(use athena && echo "-DCompileXAW=YES" || echo "-DCompileXlibOnly=YES") \ + || 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="/usr/bin" \ + MANSUFFIX="6" \ + MANDIR="/usr/share/man/man6" \ + HELPDIR="/usr/share/doc/${PF}" \ + install install.doc install.man + + einstalldocs + newicon icons/Spider.png ${PN}.png + newicon -s 32 icons/Spider32x32.png ${PN}.png + make_desktop_entry spider Spider +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |