/[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.3 - (hide annotations) (download)
Sun Feb 24 12:14:14 2013 UTC (7 years, 1 month ago) by ago
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #458832

(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key 7194459F)

1 hasufell 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ago 1.3 # $Header: /var/cvsroot/gentoo-x86/games-board/spider/spider-1.2_p4-r1.ebuild,v 1.2 2013/02/24 12:09:44 ago Exp $
4 hasufell 1.1
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 ago 1.3 KEYWORDS="amd64 x86"
20 hasufell 1.1 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