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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jan 20 22:16:16 2008 UTC (10 years, 6 months ago) by george
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
removed stale version
(Portage version: 2.1.4)

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-20051222.ebuild,v 1.4 2007/06/26 01:44:52 mr_bones_ 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/gnat
22 >=app-admin/eselect-gnat-0.7"
23
24 DEPEND="${RDEPEND}
25 doc? ( 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 "ADA_OBJECTS_PATH=%DL%" > ${LibEnv}
51 echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv}
52
53 gnat_src_install
54
55 # Install documentation.
56 dodoc COPYING README
57 if use doc ; then
58 einfo "installing docs"
59 cd ${WORKDIR}
60 dohtml *.html *.gif *.jpg
61 cp coldframe-hash.* x.ada ${D}/usr/share/doc/${PF}/html
62
63 cd ${S}
64 dodir /usr/share/doc/${PF}/demo
65 insinto /usr/share/doc/${PF}/demo
66 doins demo/*
67
68 dodir /usr/share/doc/${PF}/test
69 insinto /usr/share/doc/${PF}/test
70 doins test/*
71 fi
72 }
73
74 pkg_postinst(){
75 einfo "Updating gnat configuration to pick up ${PN} library..."
76 eselect gnat update
77 elog "The environment has been set up to make gnat automatically find files in"
78 elog "Booch components. In order to immediately activate these settings please do"
79 elog "env-update"
80 elog "source /etc/profile"
81 elog "Otherwise the settings will become active next time you login"
82 }

  ViewVC Help
Powered by ViewVC 1.1.20