Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/ncurses: ncurses-5.7-r1.ebuild ChangeLog ncurses-5.6-r2.ebuild
Date: Sat, 20 Jun 2009 13:22:46
Message-Id: E1MI0Wp-0003Hm-I1@stork.gentoo.org
1 vapier 09/06/20 13:22:43
2
3 Modified: ChangeLog ncurses-5.6-r2.ebuild
4 Added: ncurses-5.7-r1.ebuild
5 Log:
6 Refactor compile step, include terminfo update from upstream #270527 by Ulrich Müller, and always add _GNU_SOURCE to BUILD_CPPFLAGS #214642 by Ryan Tandy.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.162 sys-libs/ncurses/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/ncurses/ChangeLog?rev=1.162&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/ncurses/ChangeLog?rev=1.162&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/ncurses/ChangeLog?r1=1.161&r2=1.162
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v
19 retrieving revision 1.161
20 retrieving revision 1.162
21 diff -u -r1.161 -r1.162
22 --- ChangeLog 29 Apr 2009 22:17:49 -0000 1.161
23 +++ ChangeLog 20 Jun 2009 13:22:43 -0000 1.162
24 @@ -1,6 +1,14 @@
25 # ChangeLog for sys-libs/ncurses
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v 1.161 2009/04/29 22:17:49 ssuominen Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v 1.162 2009/06/20 13:22:43 vapier Exp $
29 +
30 +*ncurses-5.7-r1 (20 Jun 2009)
31 +
32 + 20 Jun 2009; Mike Frysinger <vapier@g.o> ncurses-5.6-r2.ebuild,
33 + +ncurses-5.7-r1.ebuild, +files/ncurses-5.7-emacs.patch:
34 + Refactor compile step, include terminfo update from upstream #270527 by
35 + Ulrich Müller, and always add _GNU_SOURCE to BUILD_CPPFLAGS #214642 by
36 + Ryan Tandy.
37
38 30 Apr 2009; Samuli Suominen <ssuominen@g.o> ncurses-5.6-r2.ebuild,
39 ncurses-5.7.ebuild:
40
41
42
43 1.13 sys-libs/ncurses/ncurses-5.6-r2.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/ncurses/ncurses-5.6-r2.ebuild?rev=1.13&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/ncurses/ncurses-5.6-r2.ebuild?rev=1.13&content-type=text/plain
47 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/ncurses/ncurses-5.6-r2.ebuild?r1=1.12&r2=1.13
48
49 Index: ncurses-5.6-r2.ebuild
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.6-r2.ebuild,v
52 retrieving revision 1.12
53 retrieving revision 1.13
54 diff -u -r1.12 -r1.13
55 --- ncurses-5.6-r2.ebuild 29 Apr 2009 22:17:49 -0000 1.12
56 +++ ncurses-5.6-r2.ebuild 20 Jun 2009 13:22:43 -0000 1.13
57 @@ -1,6 +1,6 @@
58 # Copyright 1999-2009 Gentoo Foundation
59 # Distributed under the terms of the GNU General Public License v2
60 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.6-r2.ebuild,v 1.12 2009/04/29 22:17:49 ssuominen Exp $
61 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.6-r2.ebuild,v 1.13 2009/06/20 13:22:43 vapier Exp $
62
63 inherit eutils flag-o-matic toolchain-funcs
64
65 @@ -38,7 +38,6 @@
66
67 local myconf=""
68 use nocxx && myconf="${myconf} --without-cxx --without-cxx-binding"
69 - use ada || myconf="${myconf} --without-ada"
70
71 # First we build the regular ncurses ...
72 mkdir "${WORKDIR}"/narrowc
73 @@ -80,7 +79,8 @@
74 --enable-const \
75 --enable-colorfgbg \
76 --enable-echo \
77 - $(use_enable !ada warnings) \
78 + --without-ada \
79 + --enable-warnings \
80 $(use_with debug assertions) \
81 $(use_with !debug leaks) \
82 $(use_with debug expanded) \
83
84
85
86 1.1 sys-libs/ncurses/ncurses-5.7-r1.ebuild
87
88 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/ncurses/ncurses-5.7-r1.ebuild?rev=1.1&view=markup
89 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/ncurses/ncurses-5.7-r1.ebuild?rev=1.1&content-type=text/plain
90
91 Index: ncurses-5.7-r1.ebuild
92 ===================================================================
93 # Copyright 1999-2009 Gentoo Foundation
94 # Distributed under the terms of the GNU General Public License v2
95 # $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.7-r1.ebuild,v 1.1 2009/06/20 13:22:43 vapier Exp $
96
97 inherit eutils flag-o-matic toolchain-funcs
98
99 MY_PV=${PV:0:3}
100 PV_SNAP=${PV:4}
101 MY_P=${PN}-${MY_PV}
102 DESCRIPTION="console display library"
103 HOMEPAGE="http://www.gnu.org/software/ncurses/ http://dickey.his.com/ncurses/"
104 SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz"
105
106 LICENSE="MIT"
107 SLOT="5"
108 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
109 IUSE="ada cxx debug doc gpm minimal profile trace unicode"
110
111 DEPEND="gpm? ( sys-libs/gpm )"
112 # berkdb? ( sys-libs/db )"
113
114 S=${WORKDIR}/${MY_P}
115
116 src_unpack() {
117 unpack ${A}
118 cd "${S}"
119 [[ -n ${PV_SNAP} ]] && epatch "${WORKDIR}"/${MY_P}-${PV_SNAP}-patch.sh
120 epatch "${FILESDIR}"/${PN}-5.6-gfbsd.patch
121 epatch "${FILESDIR}"/${PN}-5.7-emacs.patch #270527
122 }
123
124 src_compile() {
125 unset TERMINFO #115036
126 tc-export BUILD_CC
127 export BUILD_CPPFLAGS+=" -D_GNU_SOURCE" #214642
128
129 do_compile narrowc
130 use unicode && do_compile widec --enable-widec --includedir=/usr/include/ncursesw
131 }
132 do_compile() {
133 ECONF_SOURCE=${S}
134
135 mkdir "${WORKDIR}"/$1
136 cd "${WORKDIR}"/$1
137 shift
138
139 # The chtype/mmask-t settings below are to retain ABI compat
140 # with ncurses-5.4 so dont change em !
141 local conf_abi="
142 --with-chtype=long \
143 --with-mmask-t=long \
144 --disable-ext-colors \
145 --disable-ext-mouse \
146 --without-pthread \
147 --without-reentrant \
148 "
149 # We need the basic terminfo files in /etc, bug #37026. We will
150 # add '--with-terminfo-dirs' and then populate /etc/terminfo in
151 # src_install() ...
152 # $(use_with berkdb hashed-db)
153 econf \
154 --libdir="/$(get_libdir)" \
155 --with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \
156 --with-shared \
157 --without-hashed-db \
158 $(use_with ada) \
159 $(use_with cxx) \
160 $(use_with cxx cxx-binding) \
161 $(use_with debug) \
162 $(use_with profile) \
163 $(use_with gpm) \
164 --disable-termcap \
165 --enable-symlinks \
166 --with-rcs-ids \
167 --with-manpage-format=normal \
168 --enable-const \
169 --enable-colorfgbg \
170 --enable-echo \
171 $(use_enable !ada warnings) \
172 $(use_with debug assertions) \
173 $(use_with !debug leaks) \
174 $(use_with debug expanded) \
175 $(use_with !debug macros) \
176 $(use_with trace) \
177 ${conf_abi} \
178 "$@" \
179 || die "configure failed"
180
181 # A little hack to fix parallel builds ... they break when
182 # generating sources so if we generate the sources first (in
183 # non-parallel), we can then build the rest of the package
184 # in parallel. This is not really a perf hit since the source
185 # generation is quite small. -vapier
186 emake -j1 sources || die "make sources failed"
187 emake || die "make failed"
188 }
189
190 src_install() {
191 # install unicode version second so that the binaries in /usr/bin
192 # support both wide and narrow
193 cd "${WORKDIR}"/narrowc
194 emake DESTDIR="${D}" install || die "make narrowc install failed"
195 if use unicode ; then
196 cd "${WORKDIR}"/widec
197 emake DESTDIR="${D}" install || die "make widec install failed"
198 fi
199
200 # Move static and extraneous ncurses libraries out of /lib
201 dodir /usr/$(get_libdir)
202 cd "${D}"/$(get_libdir)
203 mv lib{form,menu,panel}.so* *.a "${D}"/usr/$(get_libdir)/
204 gen_usr_ldscript lib{,n}curses.so
205 if use unicode ; then
206 mv lib{form,menu,panel}w.so* "${D}"/usr/$(get_libdir)/
207 gen_usr_ldscript libncursesw.so
208 fi
209
210 # if ! use berkdb ; then
211 # We need the basic terminfo files in /etc, bug #37026
212 einfo "Installing basic terminfo files in /etc..."
213 for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} \
214 xterm xterm-color xterm-xfree86
215 do
216 local termfile=$(find "${D}"/usr/share/terminfo/ -name "${x}" 2>/dev/null)
217 local basedir=$(basename $(dirname "${termfile}"))
218
219 if [[ -n ${termfile} ]] ; then
220 dodir /etc/terminfo/${basedir}
221 mv ${termfile} "${D}"/etc/terminfo/${basedir}/
222 dosym ../../../../etc/terminfo/${basedir}/${x} \
223 /usr/share/terminfo/${basedir}/${x}
224 fi
225 done
226
227 # Build fails to create this ...
228 dosym ../share/terminfo /usr/$(get_libdir)/terminfo
229 # fi
230
231 echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > "${T}"/50ncurses
232 doenvd "${T}"/50ncurses
233
234 use minimal && rm -r "${D}"/usr/share/terminfo*
235 # Because ncurses5-config --terminfo returns the directory we keep it
236 keepdir /usr/share/terminfo #245374
237
238 cd "${S}"
239 dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc
240 use doc && dohtml -r doc/html/
241 }