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.9-r4.ebuild ChangeLog
Date: Tue, 31 Mar 2015 04:53:13
Message-Id: 20150331045304.6BB7714E51@oystercatcher.gentoo.org
1 vapier 15/03/31 04:53:02
2
3 Modified: ChangeLog
4 Added: ncurses-5.9-r4.ebuild
5 Log:
6 Fix the inverted leak flag #329537#5 by Arthur Taylor. Fix from upstream for building with -I/usr/include/ncursesw #522586 by Joakim Tjernlund.
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.232 sys-libs/ncurses/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/ChangeLog?rev=1.232&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/ChangeLog?rev=1.232&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/ChangeLog?r1=1.231&r2=1.232
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v
20 retrieving revision 1.231
21 retrieving revision 1.232
22 diff -u -r1.231 -r1.232
23 --- ChangeLog 6 Nov 2014 19:30:09 -0000 1.231
24 +++ ChangeLog 31 Mar 2015 04:53:02 -0000 1.232
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-libs/ncurses
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v 1.231 2014/11/06 19:30:09 mrueg Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v 1.232 2015/03/31 04:53:02 vapier Exp $
31 +
32 +*ncurses-5.9-r4 (31 Mar 2015)
33 +
34 + 31 Mar 2015; Mike Frysinger <vapier@g.o>
35 + +files/ncurses-5.9-no-I-usr-include.patch, +ncurses-5.9-r4.ebuild:
36 + Fix the inverted leak flag #329537#5 by Arthur Taylor. Fix from upstream for
37 + building with -I/usr/include/ncursesw #522586 by Joakim Tjernlund.
38
39 06 Nov 2014; Manuel RĂ¼ger <mrueg@g.o> -files/ncurses-5.6-build.patch,
40 -files/ncurses-5.6-gfbsd.patch, -files/ncurses-5.7-emacs.patch,
41
42
43
44 1.1 sys-libs/ncurses/ncurses-5.9-r4.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/ncurses-5.9-r4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/ncurses-5.9-r4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: ncurses-5.9-r4.ebuild
50 ===================================================================
51 # Copyright 1999-2015 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.9-r4.ebuild,v 1.1 2015/03/31 04:53:02 vapier Exp $
54
55 EAPI="4"
56 inherit eutils flag-o-matic toolchain-funcs multilib-minimal
57
58 MY_PV=${PV:0:3}
59 PV_SNAP=${PV:4}
60 MY_P=${PN}-${MY_PV}
61 DESCRIPTION="console display library"
62 HOMEPAGE="http://www.gnu.org/software/ncurses/ http://dickey.his.com/ncurses/"
63 SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz"
64
65 LICENSE="MIT"
66 SLOT="5"
67 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
68 IUSE="ada +cxx debug doc gpm minimal profile static-libs tinfo trace unicode"
69
70 DEPEND="gpm? ( sys-libs/gpm )"
71 # berkdb? ( sys-libs/db )"
72 RDEPEND="${DEPEND}
73 !<x11-terms/rxvt-unicode-9.06-r3
74 abi_x86_32? (
75 !<=app-emulation/emul-linux-x86-baselibs-20130224-r12
76 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
77 )"
78 # Put the MULTILIB_USEDEP on gpm in PDEPEND only to avoid circular deps.
79 # We can move it to DEPEND and drop the --with-gpm=libgpm.so.1 from the econf
80 # line below once we can assume multilib gpm is available everywhere.
81 PDEPEND="gpm? ( sys-libs/gpm[${MULTILIB_USEDEP}] )"
82
83 S=${WORKDIR}/${MY_P}
84 HOSTTIC_DIR=${WORKDIR}/${P}-host
85
86 src_prepare() {
87 [[ -n ${PV_SNAP} ]] && epatch "${WORKDIR}"/${MY_P}-${PV_SNAP}-patch.sh
88 epatch "${FILESDIR}"/${PN}-5.8-gfbsd.patch
89 epatch "${FILESDIR}"/${PN}-5.7-nongnu.patch
90 epatch "${FILESDIR}"/${PN}-5.9-rxvt-unicode-9.15.patch #192083 #383871
91 epatch "${FILESDIR}"/${PN}-5.9-fix-clang-build.patch #417763
92 epatch "${FILESDIR}"/${PN}-5.9-pkg-config.patch
93 epatch "${FILESDIR}"/${P}-no-I-usr-include.patch #522586
94 }
95
96 src_configure() {
97 unset TERMINFO #115036
98 tc-export_build_env BUILD_{CC,CPP}
99 BUILD_CPPFLAGS+=" -D_GNU_SOURCE" #214642
100
101 # when cross-compiling, we need to build up our own tic
102 # because people often don't keep matching host/target
103 # ncurses versions #249363
104 if tc-is-cross-compiler && ! ROOT=/ has_version ~sys-libs/${P} ; then
105 CHOST=${CBUILD} \
106 CFLAGS=${BUILD_CFLAGS} \
107 CXXFLAGS=${BUILD_CXXFLAGS} \
108 CPPFLAGS=${BUILD_CPPFLAGS} \
109 LDFLAGS="${BUILD_LDFLAGS} -static" \
110 BUILD_DIR="${HOSTTIC_DIR}" do_configure cross --without-shared --with-normal
111 fi
112 multilib-minimal_src_configure
113 }
114
115 multilib_src_configure() {
116 do_configure narrowc
117 use unicode && do_configure widec --enable-widec --includedir="${EPREFIX}"/usr/include/ncursesw
118 }
119
120 do_configure() {
121 ECONF_SOURCE=${S}
122
123 mkdir "${BUILD_DIR}"-$1
124 cd "${BUILD_DIR}"-$1 || die
125 shift
126
127 local conf=(
128 # We need the basic terminfo files in /etc, bug #37026. We will
129 # add '--with-terminfo-dirs' and then populate /etc/terminfo in
130 # src_install() ...
131 --with-terminfo-dirs="${EPREFIX}/etc/terminfo:${EPREFIX}/usr/share/terminfo"
132
133 # Disabled until #245417 is sorted out.
134 #$(use_with berkdb hashed-db)
135
136 # ncurses is dumb and doesn't install .pc files unless pkg-config
137 # is also installed. Force the tests to go our way. Note that it
138 # doesn't actually use pkg-config ... it just looks for set vars.
139 --enable-pc-files
140 --with-pkg-config="$(tc-getPKG_CONFIG)"
141 # This path is used to control where the .pc files are installed.
142 PKG_CONFIG_LIBDIR="${EPREFIX}/usr/$(get_libdir)/pkgconfig"
143
144 # Now the rest of the various standard flags.
145 --with-shared
146 --without-hashed-db
147 $(use_with ada)
148 $(use_with cxx)
149 $(use_with cxx cxx-binding)
150 $(use_with debug)
151 $(use_with profile)
152 $(use_with gpm)
153 $(multilib_is_native_abi || use_with gpm gpm libgpm.so.1)
154 --disable-termcap
155 --enable-symlinks
156 --with-rcs-ids
157 --with-manpage-format=normal
158 --enable-const
159 --enable-colorfgbg
160 --enable-echo
161 $(use_enable !ada warnings)
162 $(use_with debug assertions)
163 $(use_enable !debug leaks)
164 $(use_with debug expanded)
165 $(use_with !debug macros)
166 $(use_with trace)
167 $(use_with tinfo termlib)
168
169 # The chtype/mmask-t settings below are to retain ABI compat
170 # with ncurses-5.4 so dont change em !
171 --with-chtype=long
172 --with-mmask-t=long
173 --disable-ext-colors
174 --disable-ext-mouse
175 --without-pthread
176 --without-reentrant
177 )
178
179 econf "${conf[@]}" "$@"
180 }
181
182 src_compile() {
183 # when cross-compiling, we need to build up our own tic
184 # because people often don't keep matching host/target
185 # ncurses versions #249363
186 if tc-is-cross-compiler && ! ROOT=/ has_version ~sys-libs/${P} ; then
187 make_flags="-C progs tic"
188 BUILD_DIR="${HOSTTIC_DIR}" do_compile cross
189 fi
190
191 multilib-minimal_src_compile
192 }
193
194 multilib_src_compile() {
195 make_flags=""
196 multilib_is_native_abi || make_flags="PROGS= "
197 do_compile narrowc
198 use unicode && do_compile widec
199 }
200
201 do_compile() {
202 cd "${BUILD_DIR}"-$1 || die
203
204 # A little hack to fix parallel builds ... they break when
205 # generating sources so if we generate the sources first (in
206 # non-parallel), we can then build the rest of the package
207 # in parallel. This is not really a perf hit since the source
208 # generation is quite small.
209 emake -j1 sources
210 # For some reason, sources depends on pc-files which depends on
211 # compiled libraries which depends on sources which ...
212 # Manually delete the pc-files file so the install step will
213 # create the .pc files we want.
214 rm -f misc/pc-files
215 emake ${make_flags}
216 }
217
218 multilib_src_install() {
219 # use the cross-compiled tic (if need be) #249363
220 export PATH="${HOSTTIC_DIR}-cross/progs:${PATH}"
221
222 # install unicode version second so that the binaries in /usr/bin
223 # support both wide and narrow
224 cd "${BUILD_DIR}"-narrowc || die
225 emake DESTDIR="${D}" install
226 if use unicode ; then
227 cd "${BUILD_DIR}"-widec || die
228 emake DESTDIR="${D}" install
229 fi
230
231 # Move libncurses{,w} into /lib
232 multilib_is_native_abi && gen_usr_ldscript -a \
233 ncurses \
234 $(usex unicode 'ncursesw' '') \
235 $(use tinfo && usex unicode 'tinfow' '') \
236 $(usev tinfo)
237 if ! tc-is-static-only ; then
238 ln -sf libncurses$(get_libname) "${ED}"/usr/$(get_libdir)/libcurses$(get_libname) || die
239 fi
240 use static-libs || find "${ED}"/usr/ -name '*.a' -a '!' -name '*curses++*.a' -delete
241
242 # Build fails to create this ...
243 dosym ../share/terminfo /usr/$(get_libdir)/terminfo
244 }
245
246 multilib_src_install_all() {
247 # if ! use berkdb ; then
248 # We need the basic terminfo files in /etc, bug #37026
249 einfo "Installing basic terminfo files in /etc..."
250 for x in ansi console dumb linux rxvt rxvt-unicode screen sun vt{52,100,102,200,220} \
251 xterm xterm-color xterm-xfree86
252 do
253 local termfile=$(find "${ED}"/usr/share/terminfo/ -name "${x}" 2>/dev/null)
254 local basedir=$(basename $(dirname "${termfile}"))
255
256 if [[ -n ${termfile} ]] ; then
257 dodir /etc/terminfo/${basedir}
258 mv ${termfile} "${ED}"/etc/terminfo/${basedir}/
259 dosym ../../../../etc/terminfo/${basedir}/${x} \
260 /usr/share/terminfo/${basedir}/${x}
261 fi
262 done
263 # fi
264
265 echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > "${T}"/50ncurses
266 doenvd "${T}"/50ncurses
267
268 use minimal && rm -r "${ED}"/usr/share/terminfo*
269 # Because ncurses5-config --terminfo returns the directory we keep it
270 keepdir /usr/share/terminfo #245374
271
272 cd "${S}"
273 dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc
274 use doc && dohtml -r doc/html/
275 }