Lines 11-20
Link Here
|
11 |
|
11 |
|
12 |
LICENSE="MIT" |
12 |
LICENSE="MIT" |
13 |
SLOT="5" |
13 |
SLOT="5" |
14 |
KEYWORDS="x86 ~ppc ~sparc alpha hppa ~mips amd64 ia64 ppc64 s390" |
14 |
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~mips ~amd64 ~ia64 ~ppc64 ~s390" |
15 |
IUSE="debug" |
15 |
IUSE="debug gpm unicode" |
16 |
|
16 |
|
17 |
DEPEND="virtual/glibc" |
17 |
DEPEND="virtual/glibc |
|
|
18 |
gpm? ( sys-libs/gpm )" |
18 |
|
19 |
|
19 |
src_unpack() { |
20 |
src_unpack() { |
20 |
unpack ${A} |
21 |
unpack ${A} |
Lines 46-51
Link Here
|
46 |
( use build || use bootstrap ) \ |
47 |
( use build || use bootstrap ) \ |
47 |
&& myconf="${myconf} --without-cxx --without-cxx-binding --without-ada" |
48 |
&& myconf="${myconf} --without-cxx --without-cxx-binding --without-ada" |
48 |
|
49 |
|
|
|
50 |
# gpm support (bug 22005) |
51 |
use gpm \ |
52 |
&& myconf="${myconf} --with-gpm" |
53 |
|
54 |
# UTF-8 support |
55 |
use unicode && myconf="${myconf} --enable-widec" |
56 |
|
49 |
# We need the basic terminfo files in /etc, bug #37026. We will |
57 |
# We need the basic terminfo files in /etc, bug #37026. We will |
50 |
# add '--with-terminfo-dirs' and then populate /etc/terminfo in |
58 |
# add '--with-terminfo-dirs' and then populate /etc/terminfo in |
51 |
# src_install() ... |
59 |
# src_install() ... |
Lines 62-67
Link Here
|
62 |
make || die "make failed" |
70 |
make || die "make failed" |
63 |
} |
71 |
} |
64 |
|
72 |
|
|
|
73 |
gen_to_w_ldscript() { |
74 |
WIDEC_BASE="$(basename $1 .so)w.so" |
75 |
echo "/* GNU ld script" > ${D}/$1 |
76 |
echo " Links $(basename $1) to ${WIDEC_BASE} */" >> ${D}/$1 |
77 |
echo "GROUP ( $(dirname $1)/${WIDEC_BASE} )" >> ${D}/$1 |
78 |
} |
79 |
|
65 |
src_install() { |
80 |
src_install() { |
66 |
local x= |
81 |
local x= |
67 |
|
82 |
|
Lines 73-79
Link Here
|
73 |
mv libform* libmenu* libpanel* ${D}/usr/lib |
88 |
mv libform* libmenu* libpanel* ${D}/usr/lib |
74 |
mv *.a ${D}/usr/lib |
89 |
mv *.a ${D}/usr/lib |
75 |
# bug #4411 |
90 |
# bug #4411 |
76 |
gen_usr_ldscript libncurses.so || die "gen_usr_ldscript failed" |
91 |
if [ "`use unicode`" ] ; then |
|
|
92 |
gen_usr_ldscript libncursesw.so || die "gen_usr_ldscript failed" |
93 |
# Remove all of these compatibility links when unneeded, please! |
94 |
# Compatibility link, for -lncurses during linking |
95 |
dosym /usr/lib/libncursesw.so /usr/lib/libncurses.so |
96 |
# Compatibility link, for libncurses.so.5 during execution |
97 |
dosym /lib/libncursesw.so.5 /lib/libncurses.so.5 |
98 |
dosym /lib/libncursesw.so /lib/libncurses.so |
99 |
# Compatibility link, for -lncurses during static linking |
100 |
dosym /usr/lib/libncursesw.a /usr/lib/libncurses.a |
101 |
# Other libs |
102 |
gen_to_w_ldscript /usr/lib/libform.so |
103 |
gen_to_w_ldscript /usr/lib/libmenu.so |
104 |
gen_to_w_ldscript /usr/lib/libpanel.so |
105 |
gen_to_w_ldscript /lib/libcurses.so |
106 |
else |
107 |
gen_usr_ldscript libncurses.so || die "gen_usr_ldscript failed" |
108 |
fi |
77 |
|
109 |
|
78 |
# We need the basic terminfo files in /etc, bug #37026 |
110 |
# We need the basic terminfo files in /etc, bug #37026 |
79 |
einfo "Installing basic terminfo files in /etc..." |
111 |
einfo "Installing basic terminfo files in /etc..." |