diff options
Diffstat (limited to 'dev-ada/aunit/aunit-2.01.ebuild')
-rw-r--r-- | dev-ada/aunit/aunit-2.01.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-ada/aunit/aunit-2.01.ebuild b/dev-ada/aunit/aunit-2.01.ebuild new file mode 100644 index 000000000000..ecbeacdc65c0 --- /dev/null +++ b/dev-ada/aunit/aunit-2.01.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ada/aunit/aunit-2.01.ebuild,v 1.1 2007/05/28 16:04:15 george Exp $ + +inherit gnat + +IUSE="" + +DESCRIPTION="Aunit, Ada unit testing framework" +SRC_URI="http://dev.gentoo.org/~george/src/${P}.tar.bz2" +HOMEPAGE="https://libre.adacore.com/aunit/" + +LICENSE="GPL-2" +KEYWORDS="~x86 ~amd64" +SLOT="0" + +DEPEND="virtual/gnat" + +lib_compile() { + cd aunit + SUPPORT_EXCEPTION=yes SUPPORT_CALENDAR=yes gnatmake -Paunit_build + SUPPORT_EXCEPTION=yes SUPPORT_CALENDAR=yes gnatmake -Paunit_build_dyn +} + +lib_install() { + mv aunit/lib/* ${DL} + chmod 0444 ${DL}/*.ali +} + +src_install () { + dodir ${AdalibSpecsDir}/${PN} + insinto ${AdalibSpecsDir}/${PN} + doins aunit/*/*.ad? aunit/framework/*/*.ad? + + dodir ${AdalibDataDir}/${PN} + insinto ${AdalibDataDir}/${PN} + doins -r support/aunit.xml template/ + + #set up environment + echo "LDPATH=%DL%" > ${LibEnv} + echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv} + echo "ADA_INCLUDE_PATH=/usr/include/ada/${PN}" >> ${LibEnv} + + gnat_src_install + + dodoc COPYING README docs/aunit.txt + dohtml docs/aunit.{html,css} + doinfo docs/aunit.info + cp -dPr test/ docs/aunit.pdf "${D}/usr/share/doc/${PF}" +} |