From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- games-board/spider/spider-1.2_p4-r2.ebuild | 83 ++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 games-board/spider/spider-1.2_p4-r2.ebuild (limited to 'games-board/spider/spider-1.2_p4-r2.ebuild') 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 +} -- cgit v1.2.3