Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-roguelike/angband: ChangeLog angband-3.4.1.ebuild
Date: Sun, 02 Dec 2012 20:23:33
Message-Id: 20121202202317.0E00A2171D@flycatcher.gentoo.org
1 tupone 12/12/02 20:23:16
2
3 Modified: ChangeLog
4 Added: angband-3.4.1.ebuild
5 Log:
6 Version bump to 3.4.1 Bug #442430
7
8 (Portage version: 2.1.11.33/cvs/Linux i686, signed Manifest commit with key 0145142D)
9
10 Revision Changes Path
11 1.46 games-roguelike/angband/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/angband/ChangeLog?rev=1.46&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/angband/ChangeLog?rev=1.46&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/angband/ChangeLog?r1=1.45&r2=1.46
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-roguelike/angband/ChangeLog,v
20 retrieving revision 1.45
21 retrieving revision 1.46
22 diff -u -r1.45 -r1.46
23 --- ChangeLog 2 May 2012 21:06:17 -0000 1.45
24 +++ ChangeLog 2 Dec 2012 20:23:16 -0000 1.46
25 @@ -1,6 +1,11 @@
26 # ChangeLog for games-roguelike/angband
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/ChangeLog,v 1.45 2012/05/02 21:06:17 jdhore Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/ChangeLog,v 1.46 2012/12/02 20:23:16 tupone Exp $
30 +
31 +*angband-3.4.1 (02 Dec 2012)
32 +
33 + 02 Dec 2012; Tupone Alfredo <tupone@g.o> +angband-3.4.1.ebuild:
34 + Version bump to 3.4.1 Bug #442430 by Ivan S. Titov
35
36 02 May 2012; Jeff Horelick <jdhore@g.o> angband-3.2.0.ebuild,
37 angband-3.3.2.ebuild:
38
39
40
41 1.1 games-roguelike/angband/angband-3.4.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/angband/angband-3.4.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-roguelike/angband/angband-3.4.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: angband-3.4.1.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/angband/angband-3.4.1.ebuild,v 1.1 2012/12/02 20:23:16 tupone Exp $
51
52 EAPI=4
53 inherit eutils versionator games
54
55 MAJOR_PV=$(get_version_component_range 1-2)
56 MY_P=${PN}-v${PV}
57
58 DESCRIPTION="A roguelike dungeon exploration game based on the books of J.R.R. Tolkien"
59 HOMEPAGE="http://rephial.org/"
60 SRC_URI="http://rephial.org/downloads/${MAJOR_PV}/${MY_P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~x86"
65 IUSE="ncurses sdl +sound X"
66
67 RDEPEND="X? ( x11-libs/libX11 )
68 !ncurses? ( !X? ( !sdl? ( sys-libs/ncurses ) ) )
69 ncurses? ( sys-libs/ncurses )
70 sdl? ( media-libs/libsdl[video,X]
71 media-libs/sdl-ttf
72 media-libs/sdl-image
73 sound? ( media-libs/sdl-mixer
74 media-libs/libsdl[audio] ) )"
75 DEPEND="${RDEPEND}
76 virtual/pkgconfig"
77
78 S=${WORKDIR}/${MY_P}
79
80 DOCS=( changes.txt faq.txt readme.txt thanks.txt )
81
82 src_prepare() {
83 sed -i \
84 -e "/^.SILENT/d" \
85 mk/buildsys.mk.in \
86 || dir "sed failed"
87 }
88
89 src_configure() {
90 local myconf
91
92 if use sdl; then
93 myconf="$(use_enable sound sdl-mixer)"
94 else
95 myconf="--disable-sdl-mixer"
96 fi
97
98 egamesconf \
99 --bindir="${GAMES_BINDIR}" \
100 --with-private-dirs \
101 $(use_enable X x11) \
102 $(use_enable sdl) \
103 $(use_enable ncurses curses) \
104 $(use !sdl && use !ncurses && use !X && \
105 echo --enable-curses) \
106 ${myconf}
107 }
108
109 src_install() {
110 default
111
112 # Edit files are now system config files in Angband, but
113 # users will be hidden from applying updates by default
114 echo "CONFIG_PROTECT_MASK=\"${GAMES_SYSCONFDIR}/${PN}/edit/\"" \
115 > "${T}"/99${PN}
116 doenvd "${T}"/99${PN} || die
117
118 # Create desktop entries if required.
119 ICON_LOC="${GAMES_DATADIR}/${PN}/xtra/icon/att-32.png"
120 if use X; then
121 make_desktop_entry "angband -mx11" "Angband (X11)" "${ICON_LOC}"
122 fi
123
124 if use sdl; then
125 make_desktop_entry "angband -msdl" "Angband (SDL)" "${ICON_LOC}"
126 fi
127
128 use ncurses || rm -rf "${D}${GAMES_DATADIR}/${PN}/xtra/graf"
129 use sound || rm -rf "${D}${GAMES_DATADIR}/${PN}/xtra/sound"
130
131 prepgamesdirs
132 }
133
134 pkg_postinst() {
135 echo
136 elog "Angband now uses private savefiles instead of system-wide ones"
137 elog "This version of Angband is not compatible with the save files"
138 elog "of previous versions"
139 echo
140
141 games_pkg_postinst
142 }