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