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