--- ncurses-5.6-r2.ebuild.orig 2007-08-26 03:06:43.000000000 +0930 +++ ncurses-5.6-r2.ebuild 2007-12-23 16:37:01.000000000 +1030 @@ -15,7 +15,7 @@ LICENSE="MIT" SLOT="5" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" -IUSE="bootstrap build debug doc gpm minimal nocxx profile trace unicode" +IUSE="ada bootstrap build debug doc gpm minimal nocxx profile trace unicode" DEPEND="gpm? ( sys-libs/gpm )" @@ -42,7 +42,7 @@ # build in bootstrap.sh. local myconf="" ( use build || use bootstrap || use nocxx ) \ - && myconf="${myconf} --without-cxx --without-cxx-binding --without-ada" + && myconf="${myconf} --without-cxx --without-cxx-binding" # First we build the regular ncurses ... mkdir "${WORKDIR}"/narrowc @@ -55,6 +55,15 @@ cd "${WORKDIR}"/widec do_compile ${myconf} --enable-widec --includedir=/usr/include/ncursesw fi + + if use ada ; then + # install libAdaCurses.a (the narrow version only) + dolib.a "${WORKDIR}"/narrowc/Ada95/src/libAdaCurses.a || die "install error" + + # and the adacurses-config file: + newbin ${FILESDIR}/ncurses-5.5-adacurses-config adacurses-config || die "install error" + fi + } do_compile() { ECONF_SOURCE=${S} @@ -79,6 +88,7 @@ $(use_with gpm) \ --disable-termcap \ --enable-symlinks \ + $(use_with ada) \ --with-rcs-ids \ --with-manpage-format=normal \ --enable-const \ @@ -149,6 +159,14 @@ cd "${S}" dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc use doc && dohtml -r doc/html/ + + if use ada ; then + # install libAdaCurses.a (the narrow version only) + dolib.a "${WORKDIR}"/narrowc/Ada95/src/libAdaCurses.a || die "install error" + + # and the adacurses-config file: + newbin ${FILESDIR}/ncurses-5.5-adacurses-config adacurses-config || die "install error" + fi } pkg_preinst() {