Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-puzzle/sgt-puzzles: ChangeLog sgt-puzzles-9306.ebuild
Date: Thu, 22 Dec 2011 01:29:32
Message-Id: 20111222012922.290C82004C@flycatcher.gentoo.org
1 mr_bones_ 11/12/22 01:29:22
2
3 Modified: ChangeLog
4 Added: sgt-puzzles-9306.ebuild
5 Log:
6 version bump with patch reroll from Michael (kensington) (bug #395577)
7
8 (Portage version: 2.1.10.41/cvs/Linux i686)
9
10 Revision Changes Path
11 1.11 games-puzzle/sgt-puzzles/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog?r1=1.10&r2=1.11
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- ChangeLog 4 Jan 2011 22:53:18 -0000 1.10
24 +++ ChangeLog 22 Dec 2011 01:29:21 -0000 1.11
25 @@ -1,6 +1,13 @@
26 # ChangeLog for games-puzzle/sgt-puzzles
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog,v 1.10 2011/01/04 22:53:18 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog,v 1.11 2011/12/22 01:29:21 mr_bones_ Exp $
30 +
31 +*sgt-puzzles-9306 (22 Dec 2011)
32 +
33 + 22 Dec 2011; Michael Sterrett <mr_bones_@g.o>
34 + files/sgt-puzzles-9023-gentoo.patch, +sgt-puzzles-9306.ebuild,
35 + +files/sgt-puzzles-9306-gentoo.patch:
36 + version bump with patch reroll from Michael (kensington) (bug #395577)
37
38 04 Jan 2011; Markos Chandras <hwoarang@g.o> sgt-puzzles-9023.ebuild:
39 Stable on amd64 wrt bug #350438
40
41
42
43 1.1 games-puzzle/sgt-puzzles/sgt-puzzles-9306.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/sgt-puzzles/sgt-puzzles-9306.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/sgt-puzzles/sgt-puzzles-9306.ebuild?rev=1.1&content-type=text/plain
47
48 Index: sgt-puzzles-9306.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/sgt-puzzles/sgt-puzzles-9306.ebuild,v 1.1 2011/12/22 01:29:22 mr_bones_ Exp $
53
54 EAPI=2
55 inherit eutils toolchain-funcs games
56 if [[ ${PV} == "99999999" ]] ; then
57 ESVN_REPO_URI="svn://svn.tartarus.org/sgt/puzzles"
58 inherit subversion
59 SRC_URI=""
60 KEYWORDS=""
61 else
62 SRC_URI="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-r${PV}.tar.gz"
63 S=${WORKDIR}/puzzles-r${PV}
64 KEYWORDS="~amd64 ~x86"
65 fi
66
67 DESCRIPTION="Simon Tatham's Portable Puzzle Collection"
68 HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
69
70 LICENSE="MIT"
71 SLOT="0"
72 IUSE="doc"
73
74 RDEPEND="x11-libs/gtk+:2"
75 DEPEND="${RDEPEND}
76 dev-lang/perl
77 dev-util/pkgconfig
78 doc? ( >=app-doc/halibut-1.0 )"
79
80 src_prepare() {
81 epatch "${FILESDIR}"/${P}-gentoo.patch
82 ./mkfiles.pl
83 sed -i \
84 -e 's:= -O2 -Wall -Werror -ansi -pedantic -g:= $(CPPFLAGS):' \
85 -e '/LDFLAGS/s:=:=$(LDFLAGS) :' \
86 Makefile || die
87 }
88
89 src_compile() {
90 emake CC="$(tc-getCC)" || die
91 if use doc ; then
92 halibut --text --html --info --pdf --ps puzzles.but
93 fi
94 }
95
96 src_install() {
97 dodir "${GAMES_BINDIR}"
98 emake DESTDIR="${D}" gamesdir="${GAMES_BINDIR}" install || die
99 dodoc README HACKING
100
101 local file name
102 for file in *.R ; do
103 [[ ${file} == "nullgame.R" ]] && continue
104 name=$(sed -n 's/^[a-z]*\.exe://p' "${file}")
105 file=${file%.R}
106 if [[ ${PV} -lt 99999999 ]] ; then
107 newicon icons/${file}-48d24.png ${PN}-${file}.png || die
108 make_desktop_entry "${GAMES_BINDIR}/${file}" "${name}" "${PN}-${file}"
109 else
110 # No icons with the live version
111 make_desktop_entry "${GAMES_BINDIR}/${file}" "${name}"
112 fi
113 done
114
115 dodoc puzzles.txt puzzles.chm
116 if use doc ; then
117 dohtml *.html
118 doinfo puzzles.info
119 dodoc puzzles.pdf puzzles.ps
120 fi
121
122 prepgamesdirs
123 }