--- ncurses-5.5-r3.ebuild 2007-03-03 11:26:27.000000000 +0100 +++ ncurses-5.5-r4.ebuild 2007-03-03 11:29:17.000000000 +0100 @@ -13,10 +13,11 @@ 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 trace unicode" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="ada bootstrap build debug doc gpm minimal nocxx trace unicode" -DEPEND="gpm? ( sys-libs/gpm )" +DEPEND="gpm? ( sys-libs/gpm ) + ada? ( virtual/gnat )" RDEPEND="${DEPEND}" S=${WORKDIR}/${MY_P} @@ -28,6 +29,11 @@ epatch "${FILESDIR}"/${P}-gfbsd.patch epatch "${FILESDIR}"/${P}-terminfo-gnome.patch + + # no point in patching unless we need it... + if use ada ; then + epatch "${FILESDIR}"/${P}-ada-install.patch + fi } src_compile() { @@ -42,7 +48,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 @@ -73,7 +79,7 @@ --disable-termcap \ --with-shared \ --with-rcs-ids \ - --without-ada \ + $(use_with ada) \ --enable-symlinks \ --enable-const \ --with-chtype='long' \ @@ -154,6 +160,15 @@ dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc use doc && dohtml -r doc/html/ 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 + } pkg_preinst() {