Lines 17-23
Link Here
|
17 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
17 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
18 |
IUSE="ada +cxx debug doc gpm minimal profile trace unicode" |
18 |
IUSE="ada +cxx debug doc gpm minimal profile trace unicode" |
19 |
|
19 |
|
20 |
DEPEND="gpm? ( sys-libs/gpm )" |
20 |
DEPEND="gpm? ( sys-libs/gpm ) |
|
|
21 |
ada? ( virtual/ada )" |
21 |
# berkdb? ( sys-libs/db )" |
22 |
# berkdb? ( sys-libs/db )" |
22 |
RDEPEND="!<x11-terms/rxvt-unicode-9.06-r3" |
23 |
RDEPEND="!<x11-terms/rxvt-unicode-9.06-r3" |
23 |
|
24 |
|
Lines 57-62
Link Here
|
57 |
do_compile narrowc |
58 |
do_compile narrowc |
58 |
use unicode && do_compile widec --enable-widec --includedir=/usr/include/ncursesw |
59 |
use unicode && do_compile widec --enable-widec --includedir=/usr/include/ncursesw |
59 |
} |
60 |
} |
|
|
61 |
|
60 |
do_compile() { |
62 |
do_compile() { |
61 |
ECONF_SOURCE=${S} |
63 |
ECONF_SOURCE=${S} |
62 |
|
64 |
|
Lines 78-89
Link Here
|
78 |
# add '--with-terminfo-dirs' and then populate /etc/terminfo in |
80 |
# add '--with-terminfo-dirs' and then populate /etc/terminfo in |
79 |
# src_install() ... |
81 |
# src_install() ... |
80 |
# $(use_with berkdb hashed-db) |
82 |
# $(use_with berkdb hashed-db) |
|
|
83 |
|
84 |
# need to configure Ada explicitly (bug #184700) |
85 |
local ada_conf="" |
86 |
if use ada ; then |
87 |
ada_inc="--with-ada-include=/usr/$(get_libdir)/ada/adainclude" |
88 |
ada_lib="--with-ada-objects=/usr/$(get_libdir)/ada/adalib" |
89 |
ada_conf="${ada_inc} ${ada_lib} --disable-warnings" |
90 |
else |
91 |
ada_conf="--enable-warnings" |
92 |
fi |
93 |
|
81 |
econf \ |
94 |
econf \ |
82 |
--libdir="/$(get_libdir)" \ |
95 |
--libdir="/$(get_libdir)" \ |
83 |
--with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \ |
96 |
--with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \ |
84 |
--with-shared \ |
97 |
--with-shared \ |
85 |
--without-hashed-db \ |
98 |
--without-hashed-db \ |
86 |
$(use_with ada) \ |
99 |
$(use_with ada) \ |
|
|
100 |
${ada_conf} \ |
87 |
$(use_with cxx) \ |
101 |
$(use_with cxx) \ |
88 |
$(use_with cxx cxx-binding) \ |
102 |
$(use_with cxx cxx-binding) \ |
89 |
$(use_with debug) \ |
103 |
$(use_with debug) \ |
Lines 96-102
Link Here
|
96 |
--enable-const \ |
110 |
--enable-const \ |
97 |
--enable-colorfgbg \ |
111 |
--enable-colorfgbg \ |
98 |
--enable-echo \ |
112 |
--enable-echo \ |
99 |
$(use_enable !ada warnings) \ |
|
|
100 |
$(use_with debug assertions) \ |
113 |
$(use_with debug assertions) \ |
101 |
$(use_with !debug leaks) \ |
114 |
$(use_with !debug leaks) \ |
102 |
$(use_with debug expanded) \ |
115 |
$(use_with debug expanded) \ |
Lines 166-171
Link Here
|
166 |
# Because ncurses5-config --terminfo returns the directory we keep it |
179 |
# Because ncurses5-config --terminfo returns the directory we keep it |
167 |
keepdir /usr/share/terminfo #245374 |
180 |
keepdir /usr/share/terminfo #245374 |
168 |
|
181 |
|
|
|
182 |
if use ada ; then |
183 |
# install libAdaCurses.a (the narrow version only) |
184 |
dolib.a "${WORKDIR}"/narrowc/Ada95/src/libAdaCurses.a \ |
185 |
|| die "lib install error" |
186 |
# and the wide version: |
187 |
use unicode && newlib.a \ |
188 |
"${WORKDIR}"/widec/Ada95/src/libAdaCurses.a \ |
189 |
libAdaCursesw.a || die "config install error" |
190 |
fi |
191 |
|
169 |
cd "${S}" |
192 |
cd "${S}" |
170 |
dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc |
193 |
dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc |
171 |
use doc && dohtml -r doc/html/ |
194 |
use doc && dohtml -r doc/html/ |