1 |
keri 08/08/22 07:51:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mercury-extras-0.13.1-r1.ebuild |
5 |
Log: |
6 |
Support hlc.gc libgrade |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.65 dev-lang/mercury-extras/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mercury-extras/ChangeLog?rev=1.65&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mercury-extras/ChangeLog?rev=1.65&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mercury-extras/ChangeLog?r1=1.64&r2=1.65 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v |
19 |
retrieving revision 1.64 |
20 |
retrieving revision 1.65 |
21 |
diff -u -r1.64 -r1.65 |
22 |
--- ChangeLog 12 Mar 2008 06:30:58 -0000 1.64 |
23 |
+++ ChangeLog 22 Aug 2008 07:51:09 -0000 1.65 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-lang/mercury-extras |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.64 2008/03/12 06:30:58 keri Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.65 2008/08/22 07:51:09 keri Exp $ |
29 |
+ |
30 |
+*mercury-extras-0.13.1-r1 (22 Aug 2008) |
31 |
+ |
32 |
+ 22 Aug 2008; <keri@g.o> +files/mercury-extras-0.13.1-iodbc.patch, |
33 |
+ files/mercury-extras-0.13.1-odbc.patch, +mercury-extras-0.13.1-r1.ebuild: |
34 |
+ Support hlc.gc libgrade. |
35 |
|
36 |
12 Mar 2008; keri <keri@g.o> mercury-extras-0.12.2-r2.ebuild, |
37 |
mercury-extras-0.13.1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-lang/mercury-extras/mercury-extras-0.13.1-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mercury-extras/mercury-extras-0.13.1-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/mercury-extras/mercury-extras-0.13.1-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mercury-extras-0.13.1-r1.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-lang/mercury-extras/mercury-extras-0.13.1-r1.ebuild,v 1.1 2008/08/22 07:51:09 keri Exp $ |
51 |
|
52 |
inherit eutils |
53 |
|
54 |
DESCRIPTION="Additional libraries and tools that are not part of the Mercury standard library" |
55 |
HOMEPAGE="http://www.cs.mu.oz.au/research/mercury/index.html" |
56 |
SRC_URI="ftp://ftp.mercury.cs.mu.oz.au/pub/mercury/mercury-extras-0.13.1.tar.gz" |
57 |
|
58 |
LICENSE="GPL-2" |
59 |
SLOT="0" |
60 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
61 |
|
62 |
IUSE="examples glut iodbc ncurses odbc opengl tcl tk xml" |
63 |
|
64 |
DEPEND="~dev-lang/mercury-${PV} |
65 |
glut? ( virtual/glut ) |
66 |
odbc? ( dev-db/unixODBC ) |
67 |
iodbc? ( !odbc? ( dev-db/libiodbc ) ) |
68 |
ncurses? ( sys-libs/ncurses ) |
69 |
opengl? ( virtual/opengl ) |
70 |
tcl? ( tk? ( |
71 |
dev-lang/tcl |
72 |
dev-lang/tk |
73 |
x11-libs/libX11 |
74 |
x11-libs/libXmu ) )" |
75 |
|
76 |
src_unpack() { |
77 |
unpack ${A} |
78 |
cd "${S}" |
79 |
epatch "${FILESDIR}"/${P}-curs.patch |
80 |
epatch "${FILESDIR}"/${P}-dynamic_linking.patch |
81 |
epatch "${FILESDIR}"/${P}-lex.patch |
82 |
epatch "${FILESDIR}"/${P}-mercury_glut.patch |
83 |
epatch "${FILESDIR}"/${P}-mercury_tcltk.patch |
84 |
epatch "${FILESDIR}"/${P}-mercury_opengl.patch |
85 |
epatch "${FILESDIR}"/${P}-posix.patch |
86 |
|
87 |
if use odbc; then |
88 |
epatch "${FILESDIR}"/${P}-odbc.patch |
89 |
elif use iodbc; then |
90 |
epatch "${FILESDIR}"/${P}-iodbc.patch |
91 |
fi |
92 |
|
93 |
sed -i -e "s:posix:posix quickcheck:" \ |
94 |
-e "s:references::" \ |
95 |
-e "s:windows_installer_generator ::" Mmakefile |
96 |
|
97 |
use glut && sed -i -e "s: lex : graphics/mercury_glut lex :" Mmakefile |
98 |
use tcl && use tk && sed -i -e "s: lex : graphics/mercury_tcltk lex :" Mmakefile |
99 |
use opengl && sed -i -e "s: lex : graphics/mercury_opengl lex :" Mmakefile |
100 |
|
101 |
if use odbc || use iodbc; then |
102 |
sed -i -e "s:moose:moose odbc:" Mmakefile |
103 |
fi |
104 |
|
105 |
! use ncurses && sed -i -e "s:curs curses::" Mmakefile |
106 |
! use xml && sed -i -e "s:xml::" Mmakefile |
107 |
} |
108 |
|
109 |
src_compile() { |
110 |
mmake \ |
111 |
-j1 depend || die "mmake depend failed" |
112 |
mmake \ |
113 |
MMAKEFLAGS="${MAKEOPTS}" \ |
114 |
EXTRA_MLFLAGS=--no-strip \ |
115 |
|| die "mmake failed" |
116 |
|
117 |
if use opengl && use tcl && use tk; then |
118 |
cd "${S}"/graphics/mercury_opengl |
119 |
cp ../mercury_tcltk/mtcltk.m ./ |
120 |
mmake \ |
121 |
-f Mmakefile.mtogl \ |
122 |
-j1 depend || die "mmake depend mtogl failed" |
123 |
mmake \ |
124 |
MMAKEFLAGS="${MAKEOPTS}" \ |
125 |
-f Mmakefile.mtogl \ |
126 |
|| die "mmake mtogl failed" |
127 |
fi |
128 |
} |
129 |
|
130 |
src_install() { |
131 |
mmake \ |
132 |
MMAKEFLAGS="${MAKEOPTS}" \ |
133 |
INSTALL_PREFIX="${D}" \ |
134 |
install || die "mmake install failed" |
135 |
|
136 |
if use opengl && use tcl && use tk; then |
137 |
cd "${S}"/graphics/mercury_opengl |
138 |
mv Mmakefile Mmakefile.opengl |
139 |
mv Mmakefile.mtogl Mmakefile |
140 |
mmake \ |
141 |
MMAKEFLAGS="${MAKEOPTS}" \ |
142 |
INSTALL_PREFIX="${D}" \ |
143 |
install || die "mmake install mtogl failed" |
144 |
fi |
145 |
|
146 |
find "${D}"/usr/lib/mercury-${PV} -type l | xargs rm |
147 |
|
148 |
cd "${S}" |
149 |
if use examples; then |
150 |
insinto /usr/share/doc/${PF}/samples/complex_numbers |
151 |
doins complex_numbers/samples/*.m |
152 |
|
153 |
if use ncurses; then |
154 |
insinto /usr/share/doc/${PF}/samples/curs |
155 |
doins curs/samples/*.m |
156 |
|
157 |
insinto /usr/share/doc/${PF}/samples/curses |
158 |
doins curses/sample/*.m |
159 |
fi |
160 |
|
161 |
insinto /usr/share/doc/${PF}/samples/dynamic_linking |
162 |
doins dynamic_linking/hello.m |
163 |
|
164 |
insinto /usr/share/doc/${PF}/samples/lex |
165 |
doins lex/samples/*.m |
166 |
|
167 |
insinto /usr/share/doc/${PF}/samples/moose |
168 |
doins moose/samples/*.m moose/samples/*.moo |
169 |
fi |
170 |
|
171 |
dodoc README |
172 |
} |