diff --git a/dev-util/catalyst/catalyst-2.9999.ebuild b/dev-util/catalyst/catalyst-2.9999.ebuild index 6ef2034994d92..3a76b3694757e 100644 --- a/dev-util/catalyst/catalyst-2.9999.ebuild +++ b/dev-util/catalyst/catalyst-2.9999.ebuild @@ -33,6 +33,7 @@ IUSE="ccache doc kernel_linux" DEPEND=" app-text/asciidoc >=dev-python/snakeoil-0.5.2 + _install + #!/bin/sh + for n in {1..5}; do + install "\$@" && exit + echo "retrying ..." + done + EOF + chmod a+rx _install + sed -i \ + -e "s:@INSTALL@:${S}/_install:" \ + */Makefile.in + + # https://sourceforge.net/p/x3270/bugs/13/ + sed -i \ + -e '/pr3287.man/s:$(INSTALL):@INSTALL_DATA@:' \ + pr3287/Makefile.in || die + + # https://sourceforge.net/p/x3270/bugs/12/ + if has_version '>=sys-libs/glibc-2.20' ; then + sed -i \ + -e "s:-D_BSD_SOURCE:-D_DEFAULT_SOURCE:" \ + */configure || die + fi +} + +src_configure() { + econf \ + --cache-file="${S}"/config.cache \ + --enable-s3270 \ + --enable-pr3287 \ + $(use_enable ncurses c3270) \ + $(use_enable tcl tcl3270) \ + $(use_enable X x3270) \ + $(use_with X x) \ + $(use_with X fontdir "${FONTDIR}") +} + +src_install() { + use X && dodir "${FONTDIR}" + emake DESTDIR="${D}" install{,.man} + + local p + for p in $(suite3270_makelist) ; do + cd "${S}/${p}" + docinto ${p} + dodoc README* + use doc && dohtml html/* + done + + use X && font_src_install +} + +pkg_postinst() { use X && font_pkg_postinst ; } +pkg_postrm() { use X && font_pkg_postrm ; } diff --git a/sys-libs/ncurses/ncurses-5.9-r101.ebuild b/sys-libs/ncurses/ncurses-5.9-r101.ebuild index 00166f61aca91..a90cf859b8d1c 100644 --- a/sys-libs/ncurses/ncurses-5.9-r101.ebuild +++ b/sys-libs/ncurses/ncurses-5.9-r101.ebuild @@ -146,8 +146,8 @@ do_configure() { fi # See comments in src_configure. if [[ ${target} != "cross" ]] ; then - local tic_path="${WORKDIR}/cross/progs/tic" - [[ -d ${tic_path} ]] && export TIC_PATH=${tic_path} + local cross_path="${WORKDIR}/cross" + [[ -d ${cross_path} ]] && export TIC_PATH="${cross_path}/progs/tic" else conf+=( --with-progs ) fi diff --git a/sys-libs/ncurses/ncurses-6.0-r1.ebuild b/sys-libs/ncurses/ncurses-6.0-r1.ebuild index a8b1c1e686404..977da6d833488 100644 --- a/sys-libs/ncurses/ncurses-6.0-r1.ebuild +++ b/sys-libs/ncurses/ncurses-6.0-r1.ebuild @@ -159,8 +159,8 @@ do_configure() { fi # See comments in src_configure. if [[ ${target} != "cross" ]] ; then - local tic_path="${WORKDIR}/cross/progs/tic" - [[ -d ${tic_path} ]] && export TIC_PATH=${tic_path} + local cross_path="${WORKDIR}/cross" + [[ -d ${cross_path} ]] && export TIC_PATH="${cross_path}/progs/tic" fi # Force bash until upstream rebuilds the configure script with a newer