--- ncurses-5.6-r2.ebuild 2008-04-20 19:07:30.000000000 +0200 +++ /tmp/ncurses-5.6-r2.ebuild 2008-12-31 15:27:29.894683615 +0100 @@ -16,5 +16,5 @@ SLOT="5" KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd" -IUSE="debug doc gpm minimal nocxx profile trace unicode" +IUSE="ada debug doc gpm minimal nocxx profile trace unicode" DEPEND="gpm? ( sys-libs/gpm )" @@ -52,4 +52,13 @@ 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() { @@ -76,4 +85,5 @@ --disable-termcap \ --enable-symlinks \ + $(use_with ada) \ --with-rcs-ids \ --with-manpage-format=normal \ @@ -146,4 +156,12 @@ 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 }