Gentoo Archives: gentoo-commits

From: "George Shapovalov (george)" <george@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ada/qtada: ChangeLog qtada-1.0.4.ebuild
Date: Sat, 23 Aug 2008 20:13:43
Message-Id: E1KWzUS-0007i6-SZ@stork.gentoo.org
1 george 08/08/23 20:13:40
2
3 Modified: ChangeLog
4 Added: qtada-1.0.4.ebuild
5 Log:
6 added new version, only builds with gnat-gpl-2007, as 1.0.3
7 (Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r4 x86_64)
8
9 Revision Changes Path
10 1.2 dev-ada/qtada/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/qtada/ChangeLog?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/qtada/ChangeLog?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/qtada/ChangeLog?r1=1.1&r2=1.2
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ada/qtada/ChangeLog,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- ChangeLog 20 May 2008 09:32:07 -0000 1.1
23 +++ ChangeLog 23 Aug 2008 20:13:40 -0000 1.2
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-ada/qtada
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-ada/qtada/ChangeLog,v 1.1 2008/05/20 09:32:07 george Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-ada/qtada/ChangeLog,v 1.2 2008/08/23 20:13:40 george Exp $
29 +
30 +*qtada-1.0.4 (23 Aug 2008)
31 +
32 + 23 Aug 2008; George Shapovalov <george@g.o> +qtada-1.0.4.ebuild:
33 + added new version, only builds with gnat-gpl-2007, as 1.0.3 (might be Ok
34 + with -2008 on x86 only)
35
36 *qtada-1.0.3 (20 May 2008)
37
38
39
40
41 1.1 dev-ada/qtada/qtada-1.0.4.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/qtada/qtada-1.0.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/qtada/qtada-1.0.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: qtada-1.0.4.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ada/qtada/qtada-1.0.4.ebuild,v 1.1 2008/08/23 20:13:40 george Exp $
51
52 # We only need gnat.eclass for a few vars and helper functions.
53 # We will not use src_* functions though.
54 inherit eutils multilib gnat
55
56 IUSE=""
57
58 DESCRIPTION="Ada bindings for Qt library"
59 HOMEPAGE="http://www.qtada.com/"
60 SRC_URI="http://download.qtada.com/${PN}-gpl-${PV}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~x86 ~amd64"
65
66 # qtada is quite picky atm. For example this version will only compile with
67 # the specified gnat, not even gnat-gcc-4.3.0 for example.
68 RDEPEND="=dev-lang/gnat-gpl-4.1.3.2007*
69 dev-ada/asis-gpl
70 >=x11-libs/qt-core-4.4.1
71 >=x11-libs/qt-gui-4.4.1"
72
73 DEPEND="${RDEPEND}"
74
75 S="${WORKDIR}/${PN}-gpl-${PV}"
76
77 #LIBDIR=/usr/lib/ada/i686-pc-linux-gnu-gnat-gpl-4.1/qtada
78
79 pkg_setup() {
80 local ActiveGnat=$(get_active_profile)
81 if [[ ! ${ActiveGnat:((-12))} == "gnat-gpl-4.1" ]]; then
82 ewarn "This version of qtada can only be compiled with gnat-gpl-4.1"
83 die "Please switch to gnat-gpl-4.1 and try again"
84 fi
85 # if ! built_with_use ">=x11-libs/qt-4.0" accessibility ; then
86 # die "Rebuild qt-4 with USE=accessibility"
87 # fi
88 }
89
90 # As this version of qtada only compiles with gnat-gpl-4.1 and we already
91 # verified that it is active, we do not switch profiles or do any majic here.
92 # We simplt run build once, just need to set some path appropriately.
93 src_compile() {
94 econf --datadir=${AdalibDataDir}/${PN} \
95 --includedir=${AdalibSpecsDir}/${PN} \
96 --libdir=${AdalibLibTop}/$(get_active_profile)/${PN} || die "econf failed"
97 emake || die "make failed"
98 }
99
100 src_install() {
101 # set common part of the path
102 local InstTop=${AdalibLibTop}/$(get_active_profile)
103
104 # run upstream setup
105 einstall \
106 libdir=${D}/${InstTop}/${PN} \
107 bindir=${D}/${InstTop}/bin \
108 includedir=${D}/${AdalibSpecsDir} || die "install failed"
109
110 # move .ali file together with .so's
111 mv "${D}"/${InstTop}/${PN}/${PN}/*.ali "${D}"/${InstTop}/${PN}/
112 rmdir "${D}"/${InstTop}/${PN}/${PN}/
113
114 # arrange and fix gpr files
115 mv "${D}"/${InstTop}/${PN}/gnat "${D}"/${InstTop}/gpr
116 sed -i -e "s:/usr/include:${AdalibSpecsDir}:" \
117 -e "s:/usr/lib:${InstTop}/${PN}:" \
118 -e "s:${PN}/${PN}:${PN}" "${D}"/${InstTop}/gpr/*.gpr
119
120 # Create an environment file
121 local SpecFile="${D}/usr/share/gnat/eselect/${PN}/$(get_active_profile)"
122 dodir /usr/share/gnat/eselect/${PN}/
123 echo "PATH=${InstTop}/bin" > "${SpecFile}"
124 echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}/core" >> "${SpecFile}"
125 echo "ADA_OBJECTS_PATH=${InstTop}/${PN}" >> "${SpecFile}"
126 echo "ADA_PROJECT_PATH=${InstTop}/gpr" >> "${SpecFile}"
127
128 # install docs
129 dodoc AUTHORS NEWS README
130 mv "${D}"/usr/examples/${PN} "${D}"/usr/share/doc/${PF}/examples
131 rmdir "${D}"/usr/examples/
132 }