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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jan 20 23:01:45 2008 UTC (6 years, 9 months ago) by george
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
adjusted DEPEND to use vitrual/ada
(Portage version: 2.1.4)

1 # Copyright 1999-2008 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-20070420.ebuild,v 1.2 2008/01/20 21:53:16 george Exp $
4
5 IUSE="doc"
6
7 inherit gnat
8
9 My_PN="bc"
10 S="${WORKDIR}/${My_PN}-${PV}"
11 DESCRIPTION="Booch Components for Ada"
12 SRC_URI="mirror://sourceforge/booch95/${My_PN}-${PV}.tgz
13 mirror://sourceforge/booch95/${My_PN}-html-${PV}.zip"
14
15 HOMEPAGE="http://booch95.sourceforge.net/"
16
17 LICENSE="GPL-2"
18 KEYWORDS="~x86 ~amd64"
19 SLOT="0"
20
21 RDEPEND="virtual/ada"
22
23 DEPEND="${RDEPEND}
24 app-arch/unzip"
25
26 lib_compile() {
27 cd "${SL}"/GNAT
28 make
29 }
30
31 lib_install() {
32 mkdir -p "${DL}"/Debug
33 mv "${SL}"/GNAT/*-Release/lib/* "${DL}"
34 mv "${SL}"/GNAT/*-Debug/lib/* "${DL}"/Debug
35 chmod 0444 "${DL}"/*.ali "${DL}"/Debug/*.ali
36 }
37
38 src_install () {
39 dodir "${AdalibSpecsDir}/${PN}"
40 insinto "${AdalibSpecsDir}/${PN}"
41 doins *.ad?
42
43 #set up environment
44 echo "LDPATH=%DL%" > ${LibEnv}
45 echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
46 echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv}
47
48 gnat_src_install
49
50 # Install documentation.
51 dodoc README
52 if use doc ; then
53 einfo "installing docs"
54 cd "${WORKDIR}"
55 dohtml *.html *.gif *.jpg
56 cp coldframe-hash.* x.ada "${D}"/usr/share/doc/${PF}/html
57
58 cd "${S}"
59 dodir /usr/share/doc/${PF}/demo
60 insinto /usr/share/doc/${PF}/demo
61 doins demo/*
62
63 dodir /usr/share/doc/${PF}/test
64 insinto /usr/share/doc/${PF}/test
65 doins test/*
66 fi
67 }

  ViewVC Help
Powered by ViewVC 1.1.20