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-8972.ebuild
Date: Thu, 29 Jul 2010 20:50:30
Message-Id: 20100729205025.C07582CF37@corvid.gentoo.org
1 mr_bones_ 10/07/29 20:50:25
2
3 Modified: ChangeLog
4 Added: sgt-puzzles-8972.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.8.3/cvs/Linux i686)
8
9 Revision Changes Path
10 1.5 games-puzzle/sgt-puzzles/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog?rev=1.5&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog?rev=1.5&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog?r1=1.4&r2=1.5
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog,v
19 retrieving revision 1.4
20 retrieving revision 1.5
21 diff -u -r1.4 -r1.5
22 --- ChangeLog 29 Jun 2010 17:09:46 -0000 1.4
23 +++ ChangeLog 29 Jul 2010 20:50:25 -0000 1.5
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-puzzle/sgt-puzzles
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog,v 1.4 2010/06/29 17:09:46 mr_bones_ Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/sgt-puzzles/ChangeLog,v 1.5 2010/07/29 20:50:25 mr_bones_ Exp $
29 +
30 +*sgt-puzzles-8972 (29 Jul 2010)
31 +
32 + 29 Jul 2010; Michael Sterrett <mr_bones_@g.o>
33 + +sgt-puzzles-8972.ebuild, +files/sgt-puzzles-8972-gentoo.patch:
34 + version bump
35
36 29 Jun 2010; Michael Sterrett <mr_bones_@g.o>
37 sgt-puzzles-8906.ebuild, sgt-puzzles-99999999.ebuild:
38
39
40
41 1.1 games-puzzle/sgt-puzzles/sgt-puzzles-8972.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/sgt-puzzles/sgt-puzzles-8972.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/sgt-puzzles/sgt-puzzles-8972.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sgt-puzzles-8972.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/sgt-puzzles/sgt-puzzles-8972.ebuild,v 1.1 2010/07/29 20:50:25 mr_bones_ Exp $
51
52 EAPI=2
53 inherit eutils toolchain-funcs games
54 if [[ ${PV} == "99999999" ]] ; then
55 ESVN_REPO_URI="svn://svn.tartarus.org/sgt/puzzles"
56 inherit subversion
57 SRC_URI=""
58 KEYWORDS=""
59 else
60 SRC_URI="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-r${PV}.tar.gz"
61 S=${WORKDIR}/puzzles-r${PV}
62 KEYWORDS="~amd64 ~x86"
63 fi
64
65 DESCRIPTION="Simon Tatham's Portable Puzzle Collection"
66 HOMEPAGE="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
67
68 LICENSE="MIT"
69 SLOT="0"
70 IUSE="doc"
71
72 RDEPEND="x11-libs/gtk+:2"
73 DEPEND="${RDEPEND}
74 dev-lang/perl
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 CC="$(tc-getCC)" || 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 if [[ ${PV} -lt 99999999 ]] ; then
105 newicon icons/${file}-48d24.png ${PN}-${file}.png || die
106 make_desktop_entry "${GAMES_BINDIR}/${file}" "${name}" "${PN}-${file}"
107 else
108 # No icons with the live version
109 make_desktop_entry "${GAMES_BINDIR}/${file}" "${name}"
110 fi
111 done
112
113 dodoc puzzles.txt puzzles.chm
114 if use doc ; then
115 dohtml *.html
116 doinfo puzzles.info
117 dodoc puzzles.pdf puzzles.ps
118 fi
119
120 prepgamesdirs
121 }