Gentoo Archives: gentoo-commits

From: Keri Harris <keri@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/mercury-extras/
Date: Tue, 26 Sep 2017 17:30:36
Message-Id: 1506447004.dd3f322614ac0b842ec82287afb4e0ab3d98f403.keri@gentoo
1 commit: dd3f322614ac0b842ec82287afb4e0ab3d98f403
2 Author: Keri Harris <keri <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 26 17:30:04 2017 +0000
4 Commit: Keri Harris <keri <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 26 17:30:04 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd3f3226
7
8 dev-lang/mercury-extras: version bump
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.1
11
12 dev-lang/mercury-extras/Manifest | 2 +
13 .../mercury-extras/mercury-extras-14.01.ebuild | 193 +++++++++++++++++++++
14 2 files changed, 195 insertions(+)
15
16 diff --git a/dev-lang/mercury-extras/Manifest b/dev-lang/mercury-extras/Manifest
17 index db3f6b5f51e..b4530c6965e 100644
18 --- a/dev-lang/mercury-extras/Manifest
19 +++ b/dev-lang/mercury-extras/Manifest
20 @@ -1,2 +1,4 @@
21 DIST mercury-extras-13.05.2-gentoo-patchset-0.tar.gz 3434 SHA256 4c9d7bd5cd098a9e21981053d854307e8b27efcfd4ea86e4bc44532a1707a2c6 SHA512 7212bce048ac6cda4678bcf5f5046efab101c040324078ab01d5dea1436a495d19574c4d07810447795aec49d79b69a557f60a558e9b6837fe55ccaff80d3077 WHIRLPOOL 239461342b164209fd876f5925b7b03ff9082210cc1242c7fa897bad9029caa6dd6f457feb51e963bd2ce2839cba33146ee7c4daa45c204e6ef2a4f59fe3f7c2
22 +DIST mercury-extras-14.01-gentoo-patchset-0.tar.gz 2682 SHA256 87d7f4b7ffd8443628d3e3d519de396d6f13f6bfd54e76f1ee796adfb3c0bd19 SHA512 64d1efc45a0fea63c56f619063ff5d60f8db4d9b858eedc444c5dacf4b131bb0594fb1604d59840d4cdd7dc26b2c019a543d6ea49ece59abeb8cd3c248821cf6 WHIRLPOOL 2b199487e175c5d19e44c8875ef624b68644e6bd99e3ffc5e2c3963bc7e07c48870f29157fa15e0e05aa3c495dd92f6cd6e50bbad56fc2a74fdece1ac08cf63d
23 DIST mercury-srcdist-13.05.2.tar.gz 53847394 SHA256 8491cf419b996a315bf8664154dd91aed940274ded98e3aded733dbe1939f95f SHA512 2298804d3a04bca6be4bd3046643c7c0d0b22c447423017869cd9bf3a4fb6ec9fd29b5d8e1a386d5d52d07be5cad73608f1fcacf46732a7add93a01dcd199c08 WHIRLPOOL 2a81bebfd4b97b9bb1b0e174025e6050149c8e5f812cd97cbdc41818faa18c15f9494925f1f320682087cc45264bc00db07bef6862afef12317f77cc169a7f86
24 +DIST mercury-srcdist-14.01.tar.gz 52683989 SHA256 4446b7b4eafd35540495ef90ce93b71cb88efa2d744628aee80f76a694aefcc1 SHA512 77f61df64fc150e08f191860f285b97d11a71a52eabc95f660b3c90d88f8ee71d1227f7ab4b8be78be9d4aa3d62a260a874020023e4795da4cfd2e6fefa9965f WHIRLPOOL a7123063590e39ae15222eb59a2c3681ae37bea211967c857eb8725090d342f0aba7a55446529f8608afb9895746581943527b1b3c313c5cbb96f638a3377404
25
26 diff --git a/dev-lang/mercury-extras/mercury-extras-14.01.ebuild b/dev-lang/mercury-extras/mercury-extras-14.01.ebuild
27 new file mode 100644
28 index 00000000000..3b4938613ef
29 --- /dev/null
30 +++ b/dev-lang/mercury-extras/mercury-extras-14.01.ebuild
31 @@ -0,0 +1,193 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=5
36 +
37 +inherit eutils multilib
38 +
39 +PATCHSET_VER="0"
40 +MY_P=mercury-srcdist-${PV}
41 +
42 +DESCRIPTION="Additional libraries and tools that are not part of the Mercury standard library"
43 +HOMEPAGE="http://www.mercurylang.org/index.html"
44 +SRC_URI="http://dl.mercurylang.org/release/${MY_P}.tar.gz
45 + mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
46 +
47 +LICENSE="GPL-2 LGPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +IUSE="X cairo examples glut iodbc ncurses odbc opengl ssl tcl tk xml"
52 +
53 +RDEPEND="~dev-lang/mercury-${PV}
54 + cairo? ( >=x11-libs/cairo-1.10.0 )
55 + glut? ( media-libs/freeglut )
56 + odbc? ( dev-db/unixODBC )
57 + iodbc? ( !odbc? ( dev-db/libiodbc ) )
58 + ncurses? ( sys-libs/ncurses:= )
59 + opengl? ( virtual/opengl )
60 + tcl? ( tk? (
61 + dev-lang/tcl:0
62 + dev-lang/tk:0
63 + x11-libs/libX11
64 + x11-libs/libXmu ) )"
65 +
66 +DEPEND="${RDEPEND}"
67 +
68 +S="${WORKDIR}"/${MY_P}/extras
69 +
70 +mercury_pkgs()
71 +{
72 + echo "base64
73 + cgi
74 + complex_numbers
75 + dynamic_linking
76 + error
77 + fixed
78 + lex
79 + moose
80 + posix
81 + solver_types/library
82 + $(use ncurses && echo curs curses)
83 + $(use glut && echo graphics/mercury_glut)
84 + $(use opengl && echo graphics/mercury_opengl)
85 + $(use tcl && use tk && echo graphics/mercury_tcltk)
86 + $(use odbc && echo odbc || use iodbc && echo odbc)
87 + $(has_version dev-lang/mercury[-minimal] && echo references)
88 + $(usev xml)"
89 +}
90 +
91 +src_prepare() {
92 + cd "${WORKDIR}"
93 +
94 + EPATCH_FORCE=yes
95 + EPATCH_SUFFIX=patch
96 + if [[ -d "${WORKDIR}"/${PV} ]] ; then
97 + epatch "${WORKDIR}"/${PV}
98 + fi
99 +
100 + cd "${S}"
101 + if use odbc; then
102 + cp odbc/Mmakefile.odbc odbc/Mmakefile
103 + elif use iodbc; then
104 + cp odbc/Mmakefile.iodbc odbc/Mmakefile
105 + fi
106 +}
107 +
108 +src_compile() {
109 + local MERCURY_PKGS="$(mercury_pkgs)"
110 +
111 + # Mercury dependency generation must be run single-threaded
112 + mmake -j1 \
113 + SUBDIRS="${MERCURY_PKGS}" \
114 + depend || die "mmake depend failed"
115 +
116 + # Compiling Mercury submodules is not thread-safe
117 + mmake -j1 \
118 + SUBDIRS="${MERCURY_PKGS}" \
119 + EXTRA_MLFLAGS=--no-strip \
120 + EXTRA_CFLAGS="${CFLAGS}" \
121 + EXTRA_LDFLAGS="${LDFLAGS}" \
122 + EXTRA_LD_LIBFLAGS="${LDFLAGS}" \
123 + || die "mmake failed"
124 +
125 + if use cairo; then
126 + cd "${S}"/graphics/mercury_cairo
127 + mmc --make libmercury_cairo \
128 + || die "mmc --make libmercury_cairo failed"
129 + fi
130 +}
131 +
132 +src_install() {
133 + local MERCURY_PKGS="$(mercury_pkgs)"
134 +
135 + # Compiling Mercury submodules is not thread-safe
136 + mmake -j1 \
137 + SUBDIRS="${MERCURY_PKGS}" \
138 + EXTRA_MLFLAGS=--no-strip \
139 + EXTRA_CFLAGS="${CFLAGS}" \
140 + EXTRA_LDFLAGS="${LDFLAGS}" \
141 + EXTRA_LD_LIBFLAGS="${LDFLAGS}" \
142 + INSTALL_PREFIX="${D}"/usr \
143 + install || die "mmake install failed"
144 +
145 + if use cairo; then
146 + cd "${S}"/graphics/mercury_cairo
147 + INSTALL_PREFIX="${D}"/usr \
148 + mmc --make libmercury_cairo.install \
149 + || die "mmc --make libmercury_cairo.install failed"
150 + fi
151 +
152 + find "${D}"/usr/$(get_libdir)/mercury -type l | xargs rm
153 +
154 + cd "${S}"
155 + if use examples; then
156 + insinto /usr/share/doc/${PF}/samples/base64
157 + doins base64/*.m || die
158 +
159 + insinto /usr/share/doc/${PF}/samples/complex_numbers
160 + doins complex_numbers/samples/* || die
161 +
162 + insinto /usr/share/doc/${PF}/samples/dynamic_linking
163 + doins dynamic_linking/hello.m || die
164 +
165 + insinto /usr/share/doc/${PF}/samples/error
166 + doins error/* || die
167 +
168 + insinto /usr/share/doc/${PF}/samples/fixed
169 + doins fixed/*.m || die
170 +
171 + insinto /usr/share/doc/${PF}/samples/gator
172 + doins -r gator/* || die
173 +
174 + insinto /usr/share/doc/${PF}/samples/lex
175 + doins lex/samples/* || die
176 +
177 + insinto /usr/share/doc/${PF}/samples/log4m
178 + doins log4m/*.m || die
179 +
180 + insinto /usr/share/doc/${PF}/samples/monte
181 + doins monte/*.m || die
182 +
183 + insinto /usr/share/doc/${PF}/samples/moose
184 + doins moose/samples/* || die
185 +
186 + insinto /usr/share/doc/${PF}/samples/net
187 + doins net/*.m || die
188 +
189 + if use ncurses; then
190 + insinto /usr/share/doc/${PF}/samples/curs
191 + doins curs/samples/* || die
192 +
193 + insinto /usr/share/doc/${PF}/samples/curses
194 + doins curses/sample/* || die
195 + fi
196 +
197 + if use X; then
198 + insinto /usr/share/doc/${PF}/samples/graphics
199 + doins graphics/easyx/samples/*.m || die
200 + fi
201 +
202 + if use glut && use opengl; then
203 + insinto /usr/share/doc/${PF}/samples/graphics
204 + doins graphics/samples/calc/* || die
205 + doins graphics/samples/gears/* || die
206 + doins graphics/samples/maze/* || die
207 + doins graphics/samples/pent/* || die
208 + fi
209 +
210 + if use opengl && use tcl && use tk; then
211 + insinto /usr/share/doc/${PF}/samples/graphics
212 + doins graphics/samples/pent/*.m || die
213 + fi
214 +
215 + if use ssl; then
216 + insinto /usr/share/doc/${PF}/samples/mopenssl
217 + doins mopenssl/*.m || die
218 + fi
219 +
220 + ecvs_clean
221 + fi
222 +
223 + dodoc README || die
224 +}