/[gentoo-x86]/dev-ada/booch_components/booch_components-20030815.ebuild
Gentoo

Contents of /dev-ada/booch_components/booch_components-20030815.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Sun Apr 22 08:57:12 2007 UTC (11 years, 5 months ago) by george
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
removed old style version
(Portage version: 2.1.2.3)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ada/booch_components/booch_components-20030815.ebuild,v 1.9 2007/01/25 23:46:13 genone Exp $
4
5 IUSE=""
6
7 Name="bc"
8 S="${WORKDIR}/${Name}-${PV}"
9 DESCRIPTION="Booch Components for ada"
10 SRC_URI="http://www.pogner.demon.co.uk/components/${Name}/download/${Name}-${PV}.tgz
11 http://www.pogner.demon.co.uk/components/${Name}/download/${Name}-html-${PV}.zip"
12
13 HOMEPAGE="http://www.pogner.demon.co.uk/components/bc/"
14
15 LICENSE="GPL-2"
16 KEYWORDS="~x86"
17 SLOT="0"
18
19 RDEPEND=">=dev-lang/gnat-3.14p"
20
21 DEPEND="${RDEPEND}
22 app-arch/unzip"
23
24 src_compile() {
25 make clean && make all
26 #need to force at least some basic compilation
27 cd test
28 emake || die
29 }
30
31 src_install () {
32 #makefile does not do much, so we need to install stuff manually
33 dodir /usr/lib/ada/adalib/${PN} /usr/lib/ada/adainclude/${PN}
34 cd ${S}/test
35 cp -pPR *.{o,ali} ${D}/usr/lib/ada/adalib/${PN}
36 cd ${S}
37 cp *.ad? ${D}/usr/lib/ada/adainclude/${PN}
38
39 # Install documentation.
40 dodoc COPYING README
41 cd ${WORKDIR}
42 dohtml *
43 cp coldframe-hash.* x.ada ${D}/usr/share/doc/${PF}/html
44
45 cd ${S}
46 cp -r demo ${D}/usr/share/doc/${PF}/
47
48 dodir /usr/share/doc/${PF}/test
49 cd test
50 cp *.ad? *.dat makefile ${D}/usr/share/doc/${PF}/test
51
52 #set up environment
53 dodir /etc/env.d
54 echo "ADA_OBJECTS_PATH=/usr/lib/ada/adalib/${PN}" > ${D}/etc/env.d/55booch_components
55 echo "ADA_INCLUDE_PATH=/usr/lib/ada/adainclude/${PN}" >> ${D}/etc/env.d/55booch_components
56 }
57
58 pkg_postinst(){
59 elog "The environment has been set up to make gnat automatically find files in"
60 elog "Booch components. In order to immediately activate these settings please do"
61 elog "env-update"
62 elog "source /etc/profile"
63 elog "Otherwise the settings will become active next time you login"
64 }

  ViewVC Help
Powered by ViewVC 1.1.20