Annotation of /smage/trunk/core/ncurses/ncurses-5.7-r3.smage2
Parent Directory | Revision Log
Revision 71 -
(hide annotations)
(download)
Mon Jan 4 18:17:45 2010 UTC (14 years, 5 months ago) by niro
File size: 4234 byte(s)
Mon Jan 4 18:17:45 2010 UTC (14 years, 5 months ago) by niro
File size: 4234 byte(s)
auto added: ver bump to 5.7-r3
1 | niro | 71 | # $Id$ |
2 | |||
3 | PNAME="ncurses" | ||
4 | PVER="5.7" | ||
5 | PBUILD="r3" | ||
6 | |||
7 | PCATEGORIE="sys-libs" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Linux console display library." | ||
11 | HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html" | ||
12 | |||
13 | DEPEND=">= virtual/glibc" | ||
14 | |||
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
17 | |||
18 | MCORE_ONLY_KEEP="$(mlibdir)/*.so | ||
19 | $(mlibdir)/*.so.* | ||
20 | usr/$(mlibdir)/*.so | ||
21 | usr/$(mlibdir)/*.so.* | ||
22 | usr/share/tabset | ||
23 | usr/share/terminfo/l/linux | ||
24 | usr/share/terminfo/r/rxvt | ||
25 | usr/share/terminfo/v/vt100 | ||
26 | usr/share/terminfo/x/xterm | ||
27 | usr/share/terminfo/x/xterm-color" | ||
28 | |||
29 | sminclude mtools multilib mcore-split | ||
30 | |||
31 | SRC_URI=( | ||
32 | gnu://${PNAME}/${SRCFILE} | ||
33 | mirror://${PNAME}/${SRCFILE} | ||
34 | mirror://${PNAME}/${PNAME}-${PVER}-branch-update-20081213.patch | ||
35 | ) | ||
36 | |||
37 | UP2DATE="updatecmd_gnu ${PNAME} gz" | ||
38 | |||
39 | src_prepare() | ||
40 | { | ||
41 | munpack ${SRCFILE} || die | ||
42 | mpatch ${PNAME}-${PVER}-branch-update-20081213.patch || die | ||
43 | } | ||
44 | |||
45 | src_compile() | ||
46 | { | ||
47 | # fixes build issues on multilib; do not export any ABI_LDFLAGS | ||
48 | EXPORT_ABI_LDFLAGS=false | ||
49 | |||
50 | # -hashed-db needs Berkeley DB | ||
51 | mconfigure --with-shared --without-debug --without-hashed-db --enable-widec || die | ||
52 | # fix parallel make builds | ||
53 | mmake -j1 sources || die | ||
54 | mmake || die | ||
55 | } | ||
56 | |||
57 | mcore_generic_src_install() | ||
58 | { | ||
59 | # needed directories | ||
60 | minstalldir /$(mlibdir) || die | ||
61 | |||
62 | minstall_destdir || die | ||
63 | |||
64 | mchmod 755 /usr/$(mlibdir)/\*.${PVER} || die | ||
65 | mchmod 644 /usr/$(mlibdir)/libncurses++w.a || die | ||
66 | mv ${BINDIR}/usr/$(mlibdir)/libncursesw.so.5* ${BINDIR}/$(mlibdir) || die | ||
67 | mlink ../../$(mlibdir)/libncursesw.so.5 /usr/$(mlibdir)/libncursesw.so || die | ||
68 | mlink libncursesw.so /usr/$(mlibdir)/libcursesw.so || die | ||
69 | |||
70 | # non-widec compat | ||
71 | for lib in curses ncurses form panel menu | ||
72 | do | ||
73 | echo "INPUT(-l${lib}w)" > ${BINDIR}/usr/$(mlibdir)/lib${lib}.so || die | ||
74 | mlink lib${lib}w.a /usr/$(mlibdir)/lib${lib}.a || die | ||
75 | done | ||
76 | mlink libcurses.so /usr/$(mlibdir)/libcursesw.so || die | ||
77 | mlink libncurses.so /usr/$(mlibdir)/libcurses.so || die | ||
78 | mlink libncursesw.a /usr/$(mlibdir)/libcursesw.a || die | ||
79 | mlink libncurses.a /usr/$(mlibdir)/libcurses.a || die | ||
80 | mlink libncurses++w.a /usr/$(mlibdir)/libncurses++.a || die | ||
81 | # curses-config too | ||
82 | mlink ncursesw5-config /usr/bin/ncurses5-config || die | ||
83 | |||
84 | # move the -m32 libs also to the right place (multilib) | ||
85 | if [[ ${ARCH} = x86_64 ]] | ||
86 | then | ||
87 | minstalldir /lib || die | ||
88 | mchmod 755 /usr/lib/\*.${PVER} || die | ||
89 | mchmod 644 /usr/lib/libncurses++w.a || die | ||
90 | mv ${BINDIR}/usr/lib/libncursesw.so.5* ${BINDIR}/lib || die | ||
91 | mlink ../../lib/libncursesw.so.5 /usr/lib/libncursesw.so || die | ||
92 | mlink libncursesw.so /usr/lib/libcursesw.so || die | ||
93 | |||
94 | # non-widec compat | ||
95 | for lib in curses ncurses form panel menu | ||
96 | do | ||
97 | echo "INPUT(-l${lib}w)" > ${BINDIR}/usr/lib/lib${lib}.so || die | ||
98 | mlink lib${lib}w.a /usr/lib/lib${lib}.a || die | ||
99 | done | ||
100 | mlink libcurses.so /usr/lib/libcursesw.so || die | ||
101 | mlink libncurses.so /usr/lib/libcurses.so || die | ||
102 | mlink libncursesw.a /usr/lib/libcursesw.a || die | ||
103 | mlink libncurses.a /usr/lib/libcurses.a || die | ||
104 | mlink libncurses++w.a /usr/lib/libncurses++.a || die | ||
105 | fi | ||
106 | |||
107 | # fixes a small man issue | ||
108 | if [ -e ${BINDIR}/usr/share/man/tack.1 ] | ||
109 | then | ||
110 | mv ${BINDIR}/usr/share/man/tack.1 \ | ||
111 | ${BINDIR}/usr/share/man/man1 || die | ||
112 | fi | ||
113 | |||
114 | # fix to enable colors in the default xterm | ||
115 | mv ${BINDIR}/usr/share/terminfo/x/xterm \ | ||
116 | ${BINDIR}/usr/share/terminfo/x/xterm.orig || die | ||
117 | mlink xterm-color /usr/share/terminfo/x/xterm || die | ||
118 | |||
119 | minstalldocs ANNOUNCE MANIFEST NEWS README* TO-DO || die | ||
120 | } | ||
121 | |||
122 | |||
123 | |||
124 | preinstall() | ||
125 | { | ||
126 | if [ -L ${MROOT}/usr/$(mlibdir)/libncurses.so ] | ||
127 | then | ||
128 | rm ${MROOT}/usr/$(mlibdir)/libncurses.so || die | ||
129 | fi | ||
130 | |||
131 | if [ -L ${MROOT}/usr/$(mlibdir)/libncurses.so.5 ] | ||
132 | then | ||
133 | rm ${MROOT}/usr/$(mlibdir)/libncurses.so.5 || die | ||
134 | fi | ||
135 | |||
136 | if [ -L ${MROOT}/usr/$(mlibdir)/libcurses.so.5 ] | ||
137 | then | ||
138 | rm ${MROOT}/usr/$(mlibdir)/libcurses.so.5 || die | ||
139 | fi | ||
140 | |||
141 | if [[ $(mlibdir) != lib ]] | ||
142 | then | ||
143 | if [ -L ${MROOT}/usr/lib/libncurses.so ] | ||
144 | then | ||
145 | rm ${MROOT}/usr/lib/libncurses.so || die | ||
146 | fi | ||
147 | |||
148 | if [ -L ${MROOT}/usr/lib/libncurses.so.5 ] | ||
149 | then | ||
150 | rm ${MROOT}/usr/lib/libncurses.so.5 || die | ||
151 | fi | ||
152 | |||
153 | if [ -L ${MROOT}/usr/lib/libcurses.so.5 ] | ||
154 | then | ||
155 | rm ${MROOT}/usr/lib/libcurses.so.5 || die | ||
156 | fi | ||
157 | fi | ||
158 | } | ||
159 | |||
160 | postinstall() | ||
161 | { | ||
162 | # force ldconfig here | ||
163 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] | ||
164 | then | ||
165 | /sbin/ldconfig | ||
166 | fi | ||
167 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |