/[gentoo-x86]/games-puzzle/sgt-puzzles/sgt-puzzles-8605.ebuild
Gentoo

Contents of /games-puzzle/sgt-puzzles/sgt-puzzles-8605.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Apr 2 18:23:21 2010 UTC (9 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.7.17/cvs/Linux i686)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/sgt-puzzles/sgt-puzzles-8605.ebuild,v 1.3 2009/10/13 06:46:52 mr_bones_ Exp $
4
5 EAPI=2
6 inherit eutils toolchain-funcs games
7 if [[ ${PV} == "99999999" ]] ; then
8 ESVN_REPO_URI="svn://svn.tartarus.org/sgt/puzzles/trunk"
9 inherit subversion
10 SRC_URI=""
11 KEYWORDS=""
12 else
13 SRC_URI="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-r${PV}.tar.gz"
14 S=${WORKDIR}/puzzles-r${PV}
15 KEYWORDS="~amd64 ~x86"
16 fi
17
18 DESCRIPTION="Simon Tatham's Portable Puzzle Collection"
19 HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
20
21 LICENSE="MIT"
22 SLOT="0"
23 IUSE="doc"
24
25 RDEPEND="x11-libs/gtk+:2"
26 DEPEND="${RDEPEND}
27 dev-util/pkgconfig
28 doc? ( >=app-doc/halibut-1.0 )"
29
30 src_prepare() {
31 epatch "${FILESDIR}"/${P}-gentoo.patch
32 ./mkfiles.pl
33 sed -i \
34 -e 's:= -O2 -Wall -Werror -ansi -pedantic -g:+= $(CPPFLAGS):' \
35 -e '/LDFLAGS/s:=:=$(LDFLAGS) :' \
36 Makefile || die
37 }
38
39 src_compile() {
40 emake CC="$(tc-getCC)" || die
41 if use doc ; then
42 halibut --text --html --info --pdf --ps puzzles.but
43 fi
44 }
45
46 src_install() {
47 dodir "${GAMES_BINDIR}"
48 emake DESTDIR="${D}" gamesdir="${GAMES_BINDIR}" install || die
49 dodoc README HACKING
50
51 local file name size
52 for file in *.R ; do
53 [[ ${file} == "nullgame.R" ]] && continue
54 name=$(sed -n 's/^[a-z]*\.exe://p' "${file}")
55 file=${file%.R}
56 newicon icons/${file}-48d24.png ${PN}-${file}.png || die
57 make_desktop_entry "${GAMES_BINDIR}/${file}" "${name}" "${PN}-${file}"
58 done
59
60 if use doc ; then
61 dohtml *.html
62 doinfo puzzles.info
63 dodoc puzzles.txt puzzles.pdf puzzles.ps
64 fi
65
66 prepgamesdirs
67 }

  ViewVC Help
Powered by ViewVC 1.1.20