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