Gentoo Archives: gentoo-commits

From: "Keri Harris (keri)" <keri@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/mercury-extras: mercury-extras-10.04.1.ebuild ChangeLog
Date: Mon, 06 Sep 2010 08:07:11
Message-Id: 20100906080708.0094120051@flycatcher.gentoo.org
1 keri 10/09/06 08:07:07
2
3 Modified: ChangeLog
4 Added: mercury-extras-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.75 dev-lang/mercury-extras/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/ChangeLog?rev=1.75&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/ChangeLog?rev=1.75&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/ChangeLog?r1=1.74&r2=1.75
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v
19 retrieving revision 1.74
20 retrieving revision 1.75
21 diff -u -r1.74 -r1.75
22 --- ChangeLog 22 Aug 2010 06:25:20 -0000 1.74
23 +++ ChangeLog 6 Sep 2010 08:07:07 -0000 1.75
24 @@ -1,6 +1,21 @@
25 # ChangeLog for dev-lang/mercury-extras
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.74 2010/08/22 06:25:20 keri Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mercury-extras/ChangeLog,v 1.75 2010/09/06 08:07:07 keri Exp $
29 +
30 +*mercury-extras-10.04.1 (06 Sep 2010)
31 +
32 + 06 Sep 2010; <keri@g.o> +mercury-extras-10.04.1.ebuild,
33 + +files/mercury-extras-10.04.1-curs.patch,
34 + +files/mercury-extras-10.04.1-dynamic-linking.patch,
35 + +files/mercury-extras-10.04.1-iodbc.patch,
36 + +files/mercury-extras-10.04.1-lex.patch,
37 + +files/mercury-extras-10.04.1-mercury-glut.patch,
38 + +files/mercury-extras-10.04.1-mercury-opengl.patch,
39 + +files/mercury-extras-10.04.1-mercury-tcltk.patch,
40 + +files/mercury-extras-10.04.1-no-java-grade-no-erlang-grade.patch,
41 + +files/mercury-extras-10.04.1-odbc.patch,
42 + +files/mercury-extras-10.04.1-posix.patch:
43 + Version bump
44
45 *mercury-extras-10.04-r1 (22 Aug 2010)
46
47
48
49
50 1.1 dev-lang/mercury-extras/mercury-extras-10.04.1.ebuild
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04.1.ebuild?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/mercury-extras/mercury-extras-10.04.1.ebuild?rev=1.1&content-type=text/plain
54
55 Index: mercury-extras-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-extras/mercury-extras-10.04.1.ebuild,v 1.1 2010/09/06 08:07:07 keri Exp $
60
61 inherit eutils
62
63 DESCRIPTION="Additional libraries and tools that are not part of the Mercury standard library"
64 HOMEPAGE="http://www.cs.mu.oz.au/research/mercury/index.html"
65 SRC_URI="http://www.mercury.cs.mu.oz.au/download/files/${P}.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
70
71 IUSE="X examples glut iodbc ncurses odbc opengl tcl tk xml"
72
73 DEPEND="~dev-lang/mercury-${PV}
74 glut? ( virtual/glut )
75 odbc? ( dev-db/unixODBC )
76 iodbc? ( !odbc? ( dev-db/libiodbc ) )
77 ncurses? ( sys-libs/ncurses )
78 opengl? ( virtual/opengl )
79 tcl? ( tk? (
80 dev-lang/tcl
81 dev-lang/tk
82 x11-libs/libX11
83 x11-libs/libXmu ) )"
84
85 src_unpack() {
86 unpack ${A}
87 cd "${S}"
88 epatch "${FILESDIR}"/${P}-curs.patch
89 epatch "${FILESDIR}"/${P}-dynamic-linking.patch
90 epatch "${FILESDIR}"/${P}-lex.patch
91 epatch "${FILESDIR}"/${P}-mercury-glut.patch
92 epatch "${FILESDIR}"/${P}-mercury-tcltk.patch
93 epatch "${FILESDIR}"/${P}-mercury-opengl.patch
94 epatch "${FILESDIR}"/${P}-posix.patch
95 epatch "${FILESDIR}"/${P}-no-java-grade-no-erlang-grade.patch
96
97 if use odbc; then
98 epatch "${FILESDIR}"/${P}-odbc.patch
99 elif use iodbc; then
100 epatch "${FILESDIR}"/${P}-iodbc.patch
101 fi
102
103 sed -i -e "s:posix:posix quickcheck:" \
104 -e "s:references::" \
105 -e "s:windows_installer_generator ::" Mmakefile
106
107 use glut && sed -i -e "s: lex : graphics/mercury_glut lex :" Mmakefile
108 use tcl && use tk && sed -i -e "s: lex : graphics/mercury_tcltk lex :" Mmakefile
109 use opengl && sed -i -e "s: lex : graphics/mercury_opengl lex :" Mmakefile
110
111 if use odbc || use iodbc; then
112 sed -i -e "s:moose:moose odbc:" Mmakefile
113 fi
114
115 ! use ncurses && sed -i -e "s:curs curses::" Mmakefile
116 ! use xml && sed -i -e "s:xml::" Mmakefile
117
118 sed -i -e "s:@libdir@:$(get_libdir):" \
119 dynamic_linking/Mmakefile posix/Mmakefile
120
121 # disable broken packages
122 sed -i -e "s:lazy_evaluation ::" \
123 -e "s:quickcheck::" Mmakefile
124 }
125
126 src_compile() {
127 # Mercury dependency generation must be run single-threaded
128 mmake \
129 -j1 depend || die "mmake depend failed"
130
131 mmake \
132 MMAKEFLAGS="${MAKEOPTS}" \
133 EXTRA_MLFLAGS=--no-strip \
134 EXTRA_LDFLAGS="${LDFLAGS}" \
135 EXTRA_LD_LIBFLAGS="${LDFLAGS}" \
136 || die "mmake failed"
137 }
138
139 src_install() {
140 mmake \
141 MMAKEFLAGS="${MAKEOPTS}" \
142 EXTRA_LD_LIBFLAGS="${LDFLAGS}" \
143 INSTALL_PREFIX="${D}"/usr \
144 install || die "mmake install failed"
145
146 find "${D}"/usr/$(get_libdir)/mercury -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 if use X; then
162 insinto /usr/share/doc/${PF}/samples/graphics
163 doins graphics/easyx/samples/*.m
164 fi
165
166 if use glut && use opengl; then
167 insinto /usr/share/doc/${PF}/samples/graphics
168 doins graphics/samples/calc/*.m
169 doins graphics/samples/gears/*.m
170 doins graphics/samples/maze/*.m
171 fi
172
173 if use opengl && use tck && use tk; then
174 insinto /usr/share/doc/${PF}/samples/graphics
175 doins graphics/samples/pent/*.m
176 fi
177
178 insinto /usr/share/doc/${PF}/samples/dynamic_linking
179 doins dynamic_linking/hello.m
180
181 insinto /usr/share/doc/${PF}/samples/lex
182 doins lex/samples/*.m
183
184 insinto /usr/share/doc/${PF}/samples/moose
185 doins moose/samples/*.m moose/samples/*.moo
186 fi
187
188 dodoc README
189 }