1 |
keri 10/10/10 05:01:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mercury-10.04.2.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.119 dev-lang/mercury/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury/ChangeLog?rev=1.119&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury/ChangeLog?rev=1.119&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury/ChangeLog?r1=1.118&r2=1.119 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/mercury/ChangeLog,v |
19 |
retrieving revision 1.118 |
20 |
retrieving revision 1.119 |
21 |
diff -u -r1.118 -r1.119 |
22 |
--- ChangeLog 10 Oct 2010 04:54:08 -0000 1.118 |
23 |
+++ ChangeLog 10 Oct 2010 05:01:38 -0000 1.119 |
24 |
@@ -1,6 +1,23 @@ |
25 |
# ChangeLog for dev-lang/mercury |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury/ChangeLog,v 1.118 2010/10/10 04:54:08 keri Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury/ChangeLog,v 1.119 2010/10/10 05:01:38 keri Exp $ |
29 |
+ |
30 |
+*mercury-10.04.2 (10 Oct 2010) |
31 |
+ |
32 |
+ 10 Oct 2010; <keri@g.o> +mercury-10.04.2.ebuild, |
33 |
+ +files/mercury-10.04.2-boehm_gc.patch, |
34 |
+ +files/mercury-10.04.2-bootstrap-depend.patch, |
35 |
+ +files/mercury-10.04.2-char-det-from-int.patch, |
36 |
+ +files/mercury-10.04.2-default-grade.patch, |
37 |
+ +files/mercury-10.04.2-docs.patch, |
38 |
+ +files/mercury-10.04.2-linker-flags.patch, |
39 |
+ +files/mercury-10.04.2-multilib.patch, |
40 |
+ +files/mercury-10.04.2-no-reconf.patch, |
41 |
+ +files/mercury-10.04.2-sparc-llds-base-grade.patch, |
42 |
+ +files/mercury-10.04.2-tests-sandbox.patch, |
43 |
+ +files/mercury-10.04.2-tests-static-link.patch, |
44 |
+ +files/mercury-10.04.2-tests-workspace.patch: |
45 |
+ Version bump |
46 |
|
47 |
10 Oct 2010; <keri@g.o> files/mercury-10.04.1-linker-flags.patch: |
48 |
Fix multilib support for mercury runtime |
49 |
|
50 |
|
51 |
|
52 |
1.1 dev-lang/mercury/mercury-10.04.2.ebuild |
53 |
|
54 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury/mercury-10.04.2.ebuild?rev=1.1&view=markup |
55 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury/mercury-10.04.2.ebuild?rev=1.1&content-type=text/plain |
56 |
|
57 |
Index: mercury-10.04.2.ebuild |
58 |
=================================================================== |
59 |
# Copyright 1999-2010 Gentoo Foundation |
60 |
# Distributed under the terms of the GNU General Public License v2 |
61 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury/mercury-10.04.2.ebuild,v 1.1 2010/10/10 05:01:38 keri Exp $ |
62 |
|
63 |
inherit autotools elisp-common eutils flag-o-matic java-pkg-opt-2 multilib |
64 |
|
65 |
MY_P=${PN}-compiler-${PV} |
66 |
|
67 |
DESCRIPTION="Mercury is a modern general-purpose logic/functional programming language" |
68 |
HOMEPAGE="http://www.cs.mu.oz.au/research/mercury/index.html" |
69 |
SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${MY_P}.tar.gz |
70 |
test? ( http://www.mercury.cs.mu.oz.au/download/files/mercury-tests-${PV}.tar.gz )" |
71 |
|
72 |
LICENSE="GPL-2" |
73 |
SLOT="0" |
74 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
75 |
|
76 |
IUSE="debug emacs erlang java minimal readline test threads" |
77 |
|
78 |
DEPEND="!dev-libs/mpatrol |
79 |
!dev-util/mono-debugger |
80 |
readline? ( sys-libs/readline ) |
81 |
erlang? ( dev-lang/erlang ) |
82 |
java? ( >=virtual/jdk-1.5 )" |
83 |
|
84 |
RDEPEND="${DEPEND} |
85 |
emacs? ( virtual/emacs )" |
86 |
|
87 |
S="${WORKDIR}"/${MY_P} |
88 |
TESTDIR="${WORKDIR}"/${PN}-tests-${PV} |
89 |
|
90 |
SITEFILE=50${PN}-gentoo.el |
91 |
|
92 |
src_unpack() { |
93 |
unpack ${A} |
94 |
|
95 |
epatch "${FILESDIR}"/${P}-multilib.patch |
96 |
epatch "${FILESDIR}"/${P}-linker-flags.patch |
97 |
epatch "${FILESDIR}"/${P}-bootstrap-depend.patch |
98 |
epatch "${FILESDIR}"/${P}-default-grade.patch |
99 |
epatch "${FILESDIR}"/${P}-boehm_gc.patch |
100 |
epatch "${FILESDIR}"/${P}-sparc-llds-base-grade.patch |
101 |
epatch "${FILESDIR}"/${P}-char-det-from-int.patch |
102 |
epatch "${FILESDIR}"/${P}-docs.patch |
103 |
epatch "${FILESDIR}"/${P}-no-reconf.patch |
104 |
|
105 |
sed -i -e "s/@libdir@/$(get_libdir)/" \ |
106 |
"${S}"/compiler/file_util.m \ |
107 |
"${S}"/compiler/libs.file_util.c \ |
108 |
"${S}"/compiler/make.program_target.m \ |
109 |
"${S}"/compiler/make.program_target.c \ |
110 |
"${S}"/scripts/Mmake.vars.in |
111 |
|
112 |
touch "${S}"/compiler/*.date |
113 |
touch "${S}"/compiler/*.date0 |
114 |
touch "${S}"/compiler/*.date3 |
115 |
touch "${S}"/compiler/*.int |
116 |
touch "${S}"/compiler/*.int0 |
117 |
touch "${S}"/compiler/*.int2 |
118 |
touch "${S}"/compiler/*.int3 |
119 |
touch "${S}"/compiler/*.c_date |
120 |
touch "${S}"/compiler/*.c |
121 |
|
122 |
if use test; then |
123 |
epatch "${FILESDIR}"/${P}-tests-workspace.patch |
124 |
epatch "${FILESDIR}"/${P}-tests-sandbox.patch |
125 |
epatch "${FILESDIR}"/${P}-tests-static-link.patch |
126 |
fi |
127 |
|
128 |
cd "${S}" |
129 |
eautoreconf |
130 |
} |
131 |
|
132 |
src_compile() { |
133 |
strip-flags |
134 |
|
135 |
local myconf |
136 |
myconf="--libdir=/usr/$(get_libdir) \ |
137 |
--disable-gcc-back-end \ |
138 |
--disable-deep-profiler \ |
139 |
--disable-dotnet-grades \ |
140 |
$(use_enable erlang erlang-grade) \ |
141 |
$(use_enable java java-grade) \ |
142 |
$(use_enable debug debug-grades) \ |
143 |
$(use_enable threads par-grades) \ |
144 |
$(use_enable !minimal most-grades) \ |
145 |
$(use_with readline)" |
146 |
|
147 |
econf \ |
148 |
${myconf} \ |
149 |
|| die "econf failed" |
150 |
|
151 |
emake \ |
152 |
PARALLEL=${MAKEOPTS} \ |
153 |
bootstrap_depend || die "emake depend failed" |
154 |
|
155 |
emake \ |
156 |
PARALLEL=${MAKEOPTS} \ |
157 |
EXTRA_MLFLAGS=--no-strip \ |
158 |
EXTRA_LDFLAGS="${LDFLAGS}" \ |
159 |
EXTRA_LD_LIBFLAGS="${LDFLAGS}" \ |
160 |
|| die "emake failed" |
161 |
|
162 |
emake \ |
163 |
PARALLEL=${MAKEOPTS} \ |
164 |
EXTRA_MLFLAGS=--no-strip \ |
165 |
EXTRA_LDFLAGS="${LDFLAGS}" \ |
166 |
EXTRA_LD_LIBFLAGS="${LDFLAGS}" \ |
167 |
MERCURY_COMPILER="${S}"/compiler/mercury_compile \ |
168 |
default_grade || die "emake default_grade failed" |
169 |
} |
170 |
|
171 |
src_test() { |
172 |
TEST_GRADE=`scripts/ml --print-grade` |
173 |
if [ -d "${S}"/install_grade_dir.${TEST_GRADE} ] ; then |
174 |
TWS="${S}"/install_grade_dir.${TEST_GRADE} |
175 |
cp browser/mer_browser.init "${TWS}"/browser/ |
176 |
cp mdbcomp/mer_mdbcomp.init "${TWS}"/mdbcomp/ |
177 |
cp runtime/mer_rt.init "${TWS}"/runtime/ |
178 |
cp ssdb/mer_ssdb.init "${TWS}"/ssdb/ |
179 |
else |
180 |
TWS="${S}" |
181 |
fi |
182 |
|
183 |
cd "${TESTDIR}" |
184 |
sed -i -e "s:@WORKSPACE@:${TWS}:" WS_FLAGS.ws |
185 |
|
186 |
PATH="${TWS}"/scripts:"${TWS}"/util:"${TWS}"/slice:"${PATH}" \ |
187 |
TERM="" \ |
188 |
WORKSPACE="${TWS}" \ |
189 |
MERCURY_COMPILER="${TWS}"/compiler/mercury_compile \ |
190 |
MERCURY_CONFIG_DIR="${TWS}" \ |
191 |
MMAKE_DIR="${TWS}"/scripts \ |
192 |
MERCURY_SUPPRESS_STACK_TRACE=yes \ |
193 |
GRADE=${TEST_GRADE} \ |
194 |
MERCURY_ALL_LOCAL_C_INCL_DIRS=" -I${TWS}/boehm_gc \ |
195 |
-I${TWS}/boehm_gc/include \ |
196 |
-I${TWS}/runtime \ |
197 |
-I${TWS}/library \ |
198 |
-I${TWS}/mdbcomp \ |
199 |
-I${TWS}/browser \ |
200 |
-I${TWS}/trace" \ |
201 |
mmake || die "mmake test failed" |
202 |
} |
203 |
|
204 |
src_install() { |
205 |
emake \ |
206 |
PARALLEL=${MAKEOPTS} \ |
207 |
EXTRA_LDFLAGS="${LDFLAGS}" \ |
208 |
EXTRA_LD_LIBFLAGS="${LDFLAGS}" \ |
209 |
MERCURY_COMPILER="${S}"/compiler/mercury_compile \ |
210 |
INSTALL_PREFIX="${D}"/usr \ |
211 |
INSTALL_MAN_DIR="${D}"/usr/share/man \ |
212 |
INSTALL_INFO_DIR="${D}"/usr/share/info \ |
213 |
INSTALL_HTML_DIR="${D}"/usr/share/doc/${PF}/html \ |
214 |
INSTALL_ELISP_DIR="${D}/${SITELISP}"/${PN} \ |
215 |
install || die "make install failed" |
216 |
|
217 |
if use emacs; then |
218 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ |
219 |
|| die "elisp-site-file-install failed" |
220 |
fi |
221 |
|
222 |
dodoc \ |
223 |
BUGS HISTORY LIMITATIONS NEWS README README.Linux \ |
224 |
README.Linux-Alpha README.Linux-m68k README.Linux-PPC \ |
225 |
RELEASE_NOTES TODO VERSION WORK_IN_PROGRESS |
226 |
|
227 |
if use erlang; then |
228 |
dodoc README.Erlang |
229 |
fi |
230 |
|
231 |
if use java; then |
232 |
dodoc README.Java |
233 |
fi |
234 |
} |
235 |
|
236 |
pkg_postinst() { |
237 |
use emacs && elisp-site-regen |
238 |
} |
239 |
|
240 |
pkg_postrm() { |
241 |
use emacs && elisp-site-regen |
242 |
} |