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: ChangeLog ncurses-5.8.ebuild
Date: Tue, 01 Mar 2011 07:53:11
Message-Id: 20110301075257.0D59C20057@flycatcher.gentoo.org
1 vapier 11/03/01 07:52:57
2
3 Modified: ChangeLog
4 Added: ncurses-5.8.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.180 sys-libs/ncurses/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/ChangeLog?rev=1.180&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/ChangeLog?rev=1.180&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/ChangeLog?r1=1.179&r2=1.180
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v
20 retrieving revision 1.179
21 retrieving revision 1.180
22 diff -u -r1.179 -r1.180
23 --- ChangeLog 1 Mar 2011 07:51:17 -0000 1.179
24 +++ ChangeLog 1 Mar 2011 07:52:56 -0000 1.180
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-libs/ncurses
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v 1.179 2011/03/01 07:51:17 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v 1.180 2011/03/01 07:52:56 vapier Exp $
30 +
31 +*ncurses-5.8 (01 Mar 2011)
32 +
33 + 01 Mar 2011; Mike Frysinger <vapier@g.o> +ncurses-5.8.ebuild,
34 + +files/ncurses-5.8-gfbsd.patch, +files/ncurses-5.8-rxvt-unicode.patch:
35 + Version bump.
36
37 *ncurses-5.7-r7 (01 Mar 2011)
38
39
40
41
42 1.1 sys-libs/ncurses/ncurses-5.8.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/ncurses-5.8.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/ncurses-5.8.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ncurses-5.8.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.8.ebuild,v 1.1 2011/03/01 07:52:56 vapier Exp $
52
53 EAPI="1"
54 inherit eutils flag-o-matic toolchain-funcs
55
56 MY_PV=${PV:0:3}
57 PV_SNAP=${PV:4}
58 MY_P=${PN}-${MY_PV}
59 DESCRIPTION="console display library"
60 HOMEPAGE="http://www.gnu.org/software/ncurses/ http://dickey.his.com/ncurses/"
61 SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz"
62
63 LICENSE="MIT"
64 SLOT="5"
65 #KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
66 IUSE="ada +cxx debug doc gpm minimal profile static-libs trace unicode"
67
68 DEPEND="gpm? ( sys-libs/gpm )"
69 # berkdb? ( sys-libs/db )"
70 RDEPEND="!<x11-terms/rxvt-unicode-9.06-r3"
71
72 S=${WORKDIR}/${MY_P}
73
74 src_unpack() {
75 unpack ${A}
76 cd "${S}"
77 [[ -n ${PV_SNAP} ]] && epatch "${WORKDIR}"/${MY_P}-${PV_SNAP}-patch.sh
78 epatch "${FILESDIR}"/${PN}-5.8-gfbsd.patch
79 epatch "${FILESDIR}"/${PN}-5.7-nongnu.patch
80 epatch "${FILESDIR}"/${PN}-5.8-rxvt-unicode.patch #192083
81 }
82
83 src_compile() {
84 unset TERMINFO #115036
85 tc-export BUILD_CC
86 export BUILD_CPPFLAGS+=" -D_GNU_SOURCE" #214642
87
88 # when cross-compiling, we need to build up our own tic
89 # because people often don't keep matching host/target
90 # ncurses versions #249363
91 if tc-is-cross-compiler && ! ROOT=/ has_version ~sys-libs/${P} ; then
92 make_flags="-C progs tic"
93 CHOST=${CBUILD} \
94 CFLAGS=${BUILD_CFLAGS} \
95 CXXFLAGS=${BUILD_CXXFLAGS} \
96 CPPFLAGS=${BUILD_CPPFLAGS} \
97 LDFLAGS="${BUILD_LDFLAGS} -static" \
98 do_compile cross --without-shared --with-normal
99 fi
100
101 make_flags=""
102 do_compile narrowc
103 use unicode && do_compile widec --enable-widec --includedir=/usr/include/ncursesw
104 }
105 do_compile() {
106 ECONF_SOURCE=${S}
107
108 mkdir "${WORKDIR}"/$1
109 cd "${WORKDIR}"/$1
110 shift
111
112 # The chtype/mmask-t settings below are to retain ABI compat
113 # with ncurses-5.4 so dont change em !
114 local conf_abi="
115 --with-chtype=long \
116 --with-mmask-t=long \
117 --disable-ext-colors \
118 --disable-ext-mouse \
119 --without-pthread \
120 --without-reentrant \
121 "
122 # We need the basic terminfo files in /etc, bug #37026. We will
123 # add '--with-terminfo-dirs' and then populate /etc/terminfo in
124 # src_install() ...
125 # $(use_with berkdb hashed-db)
126 econf \
127 --with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \
128 --with-shared \
129 --without-hashed-db \
130 $(use_with ada) \
131 $(use_with cxx) \
132 $(use_with cxx cxx-binding) \
133 $(use_with debug) \
134 $(use_with profile) \
135 $(use_with gpm) \
136 --disable-termcap \
137 --enable-symlinks \
138 --with-rcs-ids \
139 --with-manpage-format=normal \
140 --enable-const \
141 --enable-colorfgbg \
142 --enable-echo \
143 $(use_enable !ada warnings) \
144 $(use_with debug assertions) \
145 $(use_enable debug leaks) \
146 $(use_with debug expanded) \
147 $(use_with !debug macros) \
148 $(use_with trace) \
149 ${conf_abi} \
150 "$@"
151
152 # A little hack to fix parallel builds ... they break when
153 # generating sources so if we generate the sources first (in
154 # non-parallel), we can then build the rest of the package
155 # in parallel. This is not really a perf hit since the source
156 # generation is quite small.
157 emake -j1 sources || die
158 emake ${make_flags} || die
159 }
160
161 src_install() {
162 # use the cross-compiled tic (if need be) #249363
163 export PATH=${WORKDIR}/cross/progs:${PATH}
164
165 # install unicode version second so that the binaries in /usr/bin
166 # support both wide and narrow
167 cd "${WORKDIR}"/narrowc
168 emake DESTDIR="${D}" install || die
169 if use unicode ; then
170 cd "${WORKDIR}"/widec
171 emake DESTDIR="${D}" install || die
172 fi
173
174 # Move libncurses{,w} into /lib
175 gen_usr_ldscript -a ncurses
176 use unicode && gen_usr_ldscript -a ncursesw
177 ln -sf libncurses.so "${D}"/usr/$(get_libdir)/libcurses.so || die
178 use static-libs || rm "${D}"/usr/$(get_libdir)/*.a
179
180 # if ! use berkdb ; then
181 # We need the basic terminfo files in /etc, bug #37026
182 einfo "Installing basic terminfo files in /etc..."
183 for x in ansi console dumb linux rxvt rxvt-unicode screen sun vt{52,100,102,200,220} \
184 xterm xterm-color xterm-xfree86
185 do
186 local termfile=$(find "${D}"/usr/share/terminfo/ -name "${x}" 2>/dev/null)
187 local basedir=$(basename $(dirname "${termfile}"))
188
189 if [[ -n ${termfile} ]] ; then
190 dodir /etc/terminfo/${basedir}
191 mv ${termfile} "${D}"/etc/terminfo/${basedir}/
192 dosym ../../../../etc/terminfo/${basedir}/${x} \
193 /usr/share/terminfo/${basedir}/${x}
194 fi
195 done
196
197 # Build fails to create this ...
198 dosym ../share/terminfo /usr/$(get_libdir)/terminfo
199 # fi
200
201 echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > "${T}"/50ncurses
202 doenvd "${T}"/50ncurses
203
204 use minimal && rm -r "${D}"/usr/share/terminfo*
205 # Because ncurses5-config --terminfo returns the directory we keep it
206 keepdir /usr/share/terminfo #245374
207
208 cd "${S}"
209 dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc
210 use doc && dohtml -r doc/html/
211 }