| IUSE="acl doc emacs nls nocxx openmp" |
IUSE="acl doc emacs nls nocxx openmp" |
| |
|
| DEPEND="virtual/libiconv |
DEPEND="virtual/libiconv |
| dev-libs/libcroco |
|
| dev-libs/libxml2 |
dev-libs/libxml2 |
| sys-libs/ncurses |
sys-libs/ncurses |
| dev-libs/expat |
dev-libs/expat |
| -e '2iexit 77' \ |
-e '2iexit 77' \ |
| autoconf-lib-link/tests/rpath-3*[ef] || die "sed tests" |
autoconf-lib-link/tests/rpath-3*[ef] || die "sed tests" |
| |
|
| use acl || sed -i 's:use_acl=1:use_acl=0:' gettext-tools/configure |
# until upstream pulls a new gnulib/acl, we have to hack around it |
| |
if ! use acl ; then |
| |
eval export ac_cv_func_acl{,delete_def_file,extended_file,free,from_{mode,text},{g,s}et_{fd,file}}=no |
| |
export ac_cv_header_acl_libacl_h=no |
| |
export ac_cv_header_sys_acl_h=no |
| |
export ac_cv_search_acl_get_file=no |
| |
export gl_cv_func_working_acl_get_file=no |
| |
sed -i -e 's:use_acl=1:use_acl=0:' gettext-tools/configure |
| |
fi |
| } |
} |
| |
|
| src_compile() { |
src_compile() { |
| fi |
fi |
| use nocxx && export CXX=$(tc-getCC) |
use nocxx && export CXX=$(tc-getCC) |
| |
|
| # Emacs support is now in a separate package, so configure --without-emacs |
# --without-emacs: Emacs support is now in a separate package |
| |
# --with-included-glib: glib depends on us so avoid circular deps |
| |
# --with-included-libcroco: libcroco depends on glib which ... ^^^ |
| econf \ |
econf \ |
| --docdir="/usr/share/doc/${PF}" \ |
--docdir="/usr/share/doc/${PF}" \ |
| --without-emacs \ |
--without-emacs \ |
| --disable-java \ |
--disable-java \ |
| --with-included-glib \ |
--with-included-glib \ |
| |
--with-included-libcroco \ |
| $(use_enable openmp) \ |
$(use_enable openmp) \ |
| ${myconf} \ |
${myconf} \ |
| || die |
|| die |