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