/[gentoo-x86]/games-board/spider/spider-1.2_p4-r1.ebuild
Gentoo

Contents of /games-board/spider/spider-1.2_p4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jan 24 00:01:58 2013 UTC (7 years, 1 month ago) by hasufell
Branch: MAIN
revbump: bump eapi, update icon cache, respect CFLAGS wrt #453150

(Portage version: 2.2.0_alpha159/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-board/spider/spider-1.2_p4.ebuild,v 1.6 2012/12/11 06:34:02 ulm Exp $
4
5 EAPI=5
6 inherit eutils gnome2-utils games
7
8 MY_P="${P%%_*}"
9 MY_P="${MY_P/-/_}"
10 DEB_V="${P##*_p}"
11
12 DESCRIPTION="Spider Solitaire"
13 HOMEPAGE="http://packages.debian.org/stable/games/spider"
14 SRC_URI="mirror://debian/pool/main/s/spider/${MY_P}.orig.tar.gz
15 mirror://debian/pool/main/s/spider/${MY_P}-${DEB_V}.diff.gz"
16
17 LICENSE="HPND"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="athena"
21
22 RDEPEND="x11-libs/libXext
23 athena? ( x11-libs/libXaw )
24 x11-libs/libXmu
25 x11-libs/libXt"
26 DEPEND="${RDEPEND}
27 x11-misc/imake
28 x11-proto/xproto"
29
30 S=${WORKDIR}/${MY_P/_/-}.orig
31
32 src_prepare() {
33 epatch "${WORKDIR}"/${MY_P}-${DEB_V}.diff
34 sed -i \
35 -e '/MKDIRHIER/s:/X11::' \
36 *Imakefile \
37 || die "sed failed"
38 rm Makefile
39 }
40
41 src_configure() {
42 imake \
43 -DUseInstalled \
44 -DSmallCards=NO \
45 -DRoundCards \
46 $(use athena && echo "-DCompileXAW=YES" || echo "-DCompileXlibOnly=YES") \
47 -I/usr/lib/X11/config \
48 || die "imake failed"
49 sed -i \
50 -e '/CC = /d' \
51 -e "s/CDEBUGFLAGS = .*$/CDEBUGFLAGS = ${CFLAGS}/" \
52 -e '/LDOPTIONS = /s/$/$(LDFLAGS)/' \
53 Makefile \
54 || die "sed failed"
55 }
56
57 src_install() {
58 emake -j1 \
59 DESTDIR="${D}" \
60 BINDIR="${GAMES_BINDIR}" \
61 MANSUFFIX="6" \
62 MANDIR="/usr/share/man/man6" \
63 HELPDIR="/usr/share/doc/${PF}" \
64 install install.doc install.man
65
66 dodoc README* ChangeLog
67 newicon icons/Spider.png ${PN}.png
68 newicon -s 32 icons/Spider32x32.png ${PN}.png
69 make_desktop_entry spider Spider
70 prepgamesdirs
71 }
72
73 pkg_preinst() {
74 games_pkg_preinst
75 gnome2_icon_savelist
76 }
77
78 pkg_postinst() {
79 games_pkg_postinst
80 gnome2_icon_cache_update
81 }
82
83 pkg_postrm() {
84 gnome2_icon_cache_update
85 }

  ViewVC Help
Powered by ViewVC 1.1.20