# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ada/garlic/garlic-3.15p-r1.ebuild,v 1.8 2005/06/10 09:50:26 dholm Exp $ inherit gnat S="${WORKDIR}/glade-${PV}-src" DESCRIPTION="The GNAT implementation of the ARM Annex for Distributed Systems." SRC_URI="http://gd.tuwien.ac.at/languages/ada/gnat/3.15p/glade/glade-${PV}-src.tgz" HOMEPAGE="http://www.gnat.com/" LICENSE="GMGPL" DEPEND="<dev-lang/gnat-3.40" RDEPEND="" SLOT="0" IUSE="" KEYWORDS="x86 ppc" src_compile() { local CFLAGS="${ADACFLAGS} -fPIC" local ADACFLAGS="${ADACFLAGS} -fPIC" # ./configure \ # --host=${CHOST} \ # --prefix=/usr \ # --infodir=/usr/share/info \ # --mandir=/usr/share/man || die "./configure failed" econf || die "./configure failed" emake || die ${ADAC} -shared -Wl,-soname,libgarlic-${PV}.so.1 \ -o Garlic/libgarlic-${PV}.so.1 Garlic/*.o -lc } src_install () { make prefix=${D}/usr \ GARLIC=${D}/usr/lib/ada/adainclude/garlic install || die dodoc COPYING INSTALL NEWS README insinto /usr/lib/ada/adalib/garlic chmod 0755 Garlic/libgarlic-${PV}.so.1 doins Garlic/libgarlic-${PV}.so.1 cd ${D}/usr/lib/ada/adalib/garlic/ ln -s libgarlic-${PV}.so.1 libgarlic-${PV}.so ln -s libgarlic-${PV}.so libgarlic.so dosym /usr/lib/ada/adalib/garlic/libgarlic-${PV}.so.1 /usr/lib dosym /usr/lib/ada/adalib/garlic/libgarlic-${PV}.so /usr/lib dosym /usr/lib/ada/adalib/garlic/libgarlic.so /usr/lib cd ${S} # And of course, as usualy make install does not conform to GNAE mv ${D}/usr/lib/ada/adainclude/garlic/*.ali \ ${D}/usr/lib/ada/adalib/garlic/ mv ${D}/usr/lib/ada/adainclude/garlic/lib*.a \ ${D}/usr/lib/ada/adalib/garlic/ #install examples cp -r Examples ${D}/usr/share/doc/${PF}/ #set up environment dodir /etc/env.d echo "ADA_OBJECTS_PATH=/usr/lib/ada/adalib/${PN}" \ > ${D}/etc/env.d/55garlic echo "ADA_INCLUDE_PATH=/usr/lib/ada/adainclude/${PN}" \ >> ${D}/etc/env.d/55garlic } pkg_postinst() { einfo "The envaironment has been set up to make gnat automatically find files for" einfo "Garlic. In order to immediately activate these settings please do:" einfo "env-update" einfo "source /etc/profile" einfo "Otherwise the settings will become active next time you login" }