1 |
george 08/07/07 13:23:33 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: asis-gpl-4.1.3.2008.ebuild |
5 |
Log: |
6 |
new version |
7 |
(Portage version: 2.2_rc1/cvs/Linux 2.6.25-gentoo-r4 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.9 dev-ada/asis-gpl/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/asis-gpl/ChangeLog?rev=1.9&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/asis-gpl/ChangeLog?rev=1.9&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/asis-gpl/ChangeLog?r1=1.8&r2=1.9 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/ChangeLog,v |
19 |
retrieving revision 1.8 |
20 |
retrieving revision 1.9 |
21 |
diff -u -r1.8 -r1.9 |
22 |
--- ChangeLog 17 May 2008 19:19:06 -0000 1.8 |
23 |
+++ ChangeLog 7 Jul 2008 13:23:32 -0000 1.9 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-ada/asis-gpl |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/ChangeLog,v 1.8 2008/05/17 19:19:06 george Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/ChangeLog,v 1.9 2008/07/07 13:23:32 george Exp $ |
29 |
+ |
30 |
+*asis-gpl-4.1.3.2008 (07 Jul 2008) |
31 |
+ |
32 |
+ 07 Jul 2008; George Shapovalov <george@g.o> |
33 |
+ +asis-gpl-4.1.3.2008.ebuild: |
34 |
+ new version |
35 |
|
36 |
17 May 2008; George Shapovalov <george@g.o> |
37 |
asis-gpl-3.4.6.2006.ebuild, asis-gpl-4.1.3.2007-r1.ebuild, |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-ada/asis-gpl/asis-gpl-4.1.3.2008.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/asis-gpl/asis-gpl-4.1.3.2008.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ada/asis-gpl/asis-gpl-4.1.3.2008.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: asis-gpl-4.1.3.2008.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/asis-gpl/asis-gpl-4.1.3.2008.ebuild,v 1.1 2008/07/07 13:23:32 george Exp $ |
51 |
|
52 |
inherit eutils flag-o-matic gnatbuild |
53 |
|
54 |
ACT_Ver=$(get_version_component_range 4) |
55 |
Gnat_Name="gnat-gpl" |
56 |
|
57 |
DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)" |
58 |
SRC_URI="http://dev.gentoo.org/~george/src/${PN}-${ACT_Ver}-src.tgz" |
59 |
HOMEPAGE="https://libre.adacore.com/" |
60 |
LICENSE="GPL-2" |
61 |
|
62 |
KEYWORDS="~amd64 ~x86" |
63 |
|
64 |
IUSE="doc" |
65 |
RDEPEND="=dev-lang/gnat-gpl-${PV}*" |
66 |
DEPEND="${RDEPEND} |
67 |
doc? ( virtual/latex-base |
68 |
app-text/texi2html )" |
69 |
|
70 |
S="${WORKDIR}/asis-${ACT_Ver}-src" |
71 |
|
72 |
# it may be even better to force plain -O2 -pipe -ftracer here |
73 |
replace-flags -O3 -O2 |
74 |
|
75 |
# we need to adjust some vars defined in gnatbuild.eclass so that they use |
76 |
# gnat-gpl instead of asis |
77 |
LIBPATH=${LIBPATH/${PN}/${Gnat_Name}} |
78 |
BINPATH=${BINPATH/${PN}/${Gnat_Name}} |
79 |
DATAPATH=${DATAPATH/${PN}/${Gnat_Name}} |
80 |
|
81 |
QA_EXECSTACK="${BINPATH:1}/* |
82 |
${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so" |
83 |
|
84 |
pkg_setup() { |
85 |
currGnat=$(eselect --no-color gnat show | grep "gnat-" | awk '{ print $1 }') |
86 |
if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then |
87 |
echo |
88 |
eerror "The active gnat profile does not correspond to the selected" |
89 |
eerror "version of asis! Please install the appropriate gnat (if you" |
90 |
eerror "did not so yet) and run:" |
91 |
eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}" |
92 |
eerror "env-update && source /etc/profile" |
93 |
eerror "and then emerge =dev-ada/${P} again.." |
94 |
echo |
95 |
die |
96 |
fi |
97 |
} |
98 |
|
99 |
# we need to override the eclass defined src_unpack |
100 |
# and change gcc to gnatgcc where appropriate |
101 |
src_unpack() { |
102 |
unpack ${A} |
103 |
cd "${S}" |
104 |
for fn in asis/a4g-gnat_int.adb gnat/snames.adb \ |
105 |
tools/tool_utils/asis_ul-common.adb \ |
106 |
tools/gnatmetric/metrics-compute.adb; do |
107 |
sed -i -e "s:\"gcc:\"gnatgcc:" ${fn} |
108 |
done |
109 |
} |
110 |
|
111 |
src_compile() { |
112 |
# Build the shared library first, we need -fPIC here |
113 |
gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \ |
114 |
|| die "building libasis.a failed" |
115 |
gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \ |
116 |
-o obj/libasis-${ACT_Ver}.so obj/*.o -lc \ |
117 |
|| die "building libasis.so failed" |
118 |
|
119 |
# build tools |
120 |
for fn in tools/*; do |
121 |
pushd ${fn} |
122 |
gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed" |
123 |
popd |
124 |
done |
125 |
|
126 |
# common stuff is just docs in this case |
127 |
if use doc; then |
128 |
emake -C documentation all || die "Failed while compiling documentation" |
129 |
fi |
130 |
} |
131 |
|
132 |
src_install () { |
133 |
# install the lib |
134 |
mkdir -p "${D}${LIBPATH}"/adalib |
135 |
chmod 0755 obj/libasis-${ACT_Ver}.so |
136 |
cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib |
137 |
insinto ${LIBPATH}/adalib |
138 |
doins obj/*.ali lib/libasis.a |
139 |
# make appropriate symlinks |
140 |
pushd "${D}${LIBPATH}"/adalib |
141 |
ln -s libasis-${ACT_Ver}.so libasis.so |
142 |
popd |
143 |
# sources |
144 |
insinto ${LIBPATH}/adainclude |
145 |
doins gnat/*.ad[sb] |
146 |
doins asis/*.ad[sb] |
147 |
|
148 |
# tools |
149 |
mkdir -p "${D}${BINPATH}" |
150 |
for fn in tools/{asistant,gnat*}; do |
151 |
cp ${fn}/${fn:6} "${D}${BINPATH}" |
152 |
done |
153 |
|
154 |
# docs and examples |
155 |
dodoc documentation/*.txt |
156 |
dohtml documentation/*.html |
157 |
# info's should go into gnat-gpl dirs |
158 |
insinto ${DATAPATH}/info/ |
159 |
doins documentation/*.info |
160 |
|
161 |
insinto /usr/share/doc/${PF} |
162 |
doins -r documentation/*.pdf tutorial/ templates/ |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
echo |
167 |
elog "The ASIS is installed for the active gnat compiler at gnat's location." |
168 |
elog "No further configuration is necessary. Enjoy." |
169 |
echo |
170 |
} |
171 |
|
172 |
|
173 |
|
174 |
-- |
175 |
gentoo-commits@l.g.o mailing list |