/[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 - (hide annotations) (download)
Sun Jan 20 23:01:45 2008 UTC (11 years, 2 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 george 1.2 # Copyright 1999-2008 Gentoo Foundation
2 george 1.1 # Distributed under the terms of the GNU General Public License v2
3 george 1.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 george 1.1
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 george 1.3 RDEPEND="virtual/ada"
22 george 1.1
23     DEPEND="${RDEPEND}
24 george 1.2 app-arch/unzip"
25 george 1.1
26     lib_compile() {
27 george 1.2 cd "${SL}"/GNAT
28 george 1.1 make
29     }
30    
31     lib_install() {
32 george 1.2 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 george 1.1 }
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 george 1.2 dodoc README
52 george 1.1 if use doc ; then
53     einfo "installing docs"
54 george 1.2 cd "${WORKDIR}"
55 george 1.1 dohtml *.html *.gif *.jpg
56 george 1.2 cp coldframe-hash.* x.ada "${D}"/usr/share/doc/${PF}/html
57 george 1.1
58 george 1.2 cd "${S}"
59 george 1.1 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