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

Contents of /dev-ada/booch_components/booch_components-20051222-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Jan 20 23:01:45 2008 UTC (6 years, 11 months ago) by george
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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-20051222-r1.ebuild,v 1.6 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 >=app-admin/eselect-gnat-0.7"
23
24 DEPEND="${RDEPEND}
25 app-arch/unzip"
26
27 lib_compile() {
28 cd ${SL}/GNAT
29 make
30 }
31
32 lib_install() {
33 # new style booch components install Debug and Release versions, we only
34 # need the lib subdir of either
35 mkdir -p "${DL}"/Debug
36 # both $SL and $DL are under ${WORKDIR}, so no dodir, doins...
37 # (as lib_install is called from src_compile it is not safe to have $DL
38 # under $D)
39 mv "${SL}"/GNAT/*-Release/lib/* "${DL}"
40 mv "${SL}"/GNAT/*-Debug/lib/* "${DL}"/Debug
41 }
42
43 src_install () {
44 dodir "${AdalibSpecsDir}/${PN}"
45 cd "${S}"
46 insinto "${AdalibSpecsDir}/${PN}"
47 doins *.ad?
48
49 #set up environment
50 echo "LDPATH=%DL%" > ${LibEnv}
51 echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
52 echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv}
53
54 gnat_src_install
55
56 # Install documentation.
57 dodoc README
58 if use doc ; then
59 einfo "installing docs"
60 cd "${WORKDIR}"
61 dohtml *.html *.gif *.jpg
62 cp coldframe-hash.* x.ada "${D}"/usr/share/doc/${PF}/html
63
64 cd "${S}"
65 dodir /usr/share/doc/${PF}/demo
66 insinto /usr/share/doc/${PF}/demo
67 doins demo/*
68
69 dodir /usr/share/doc/${PF}/test
70 insinto /usr/share/doc/${PF}/test
71 doins test/*
72 fi
73 }
74
75 pkg_postinst(){
76 einfo "Updating gnat configuration to pick up ${PN} library..."
77 eselect gnat update
78 elog "The environment has been set up to make gnat automatically find files in"
79 elog "Booch components. In order to immediately activate these settings please do"
80 elog "env-update"
81 elog "source /etc/profile"
82 elog "Otherwise the settings will become active next time you login"
83 }

  ViewVC Help
Powered by ViewVC 1.1.20