Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ocaml/, dev-lang/ocaml/files/
Date: Wed, 25 Jan 2017 16:56:45
Message-Id: 1485363367.4530442dc257bbc66a5b67b1846d16c7d2f0093f.aballier@gentoo
1 commit: 4530442dc257bbc66a5b67b1846d16c7d2f0093f
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 25 16:56:07 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 25 16:56:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4530442d
7
8 dev-lang/ocaml: remove old
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-lang/ocaml/Manifest | 1 -
13 .../files/ocaml-4.01.0-pkg-config-ncurses.patch | 15 ---
14 dev-lang/ocaml/ocaml-4.02.3-r1.ebuild | 116 -------------------
15 dev-lang/ocaml/ocaml-4.03.0-r1.ebuild | 125 ---------------------
16 4 files changed, 257 deletions(-)
17
18 diff --git a/dev-lang/ocaml/Manifest b/dev-lang/ocaml/Manifest
19 index c5f58f1..321529f 100644
20 --- a/dev-lang/ocaml/Manifest
21 +++ b/dev-lang/ocaml/Manifest
22 @@ -1,5 +1,4 @@
23 DIST ocaml-4.02.3.tar.xz 2058552 SHA256 83c6697e135b599a196fd7936eaf8a53dd6b8f3155a796d18407b56f91df9ce3 SHA512 a815421f6a320b18e7f351bd66884024ad4a33525ba161a198ea356892ce331be6c1ddf4cd07d120ebe9a902bcf815ce1b17e45f405e4e0b2d55ce1b6d2adada WHIRLPOOL 1104cdcf23b773ebf0c0ef8d8ee36b2b4b58b1fab10a41ff7f2d522c34ae6161bc6cba28b279eea03ac183a111fc332557084b017d0c2ad6f9c969204e309597
24 -DIST ocaml-4.03.0.tar.xz 2289296 SHA256 695caf381105183f9d37bcfb63f863f782352b070e5d7ff3ca269712398fe326 SHA512 9a7f4b17d459373334fb04f8a0d42732243245bf16bc35c935fb2119c7990d0c85549b2e11adea68a98a0a0171a461ccfbb2e249b59eedf90349f087a18ce243 WHIRLPOOL 9c822f7c66494a6e7fc30e565e7c8d120808a15b42cd64ccad0946f8413da44b50ec84dfd658e8f394dce4effe7eda380a0a203db14df9dfc24c7b54f7681cea
25 DIST ocaml-4.04.0.tar.gz 4057711 SHA256 03e49d09d5a509216ca0cc8fccd10df3ad9dd441d7633e89974a74e149be3c51 SHA512 288c514e7ccfe29fe9a65239d04f000b3b05df71f15bc05b3e5af50cb233544b4fec22baad69f60de587e8f0f8f65ee023a5b709896a1a68f9fd6fe30b81344d WHIRLPOOL 91fea4195ed84fb97f2ae68e30f47ce60a2404bc47ca809f6e0d182dd755833ea16a2e033ee0a02fab008f5905a2a9b6fa8dc2194c75b8d9daa353eb6b1d70e9
26 DIST ocaml-patches-7.tar.bz2 2194 SHA256 71e9496af89ded9852d8e1f32be18a5f0d7e11270958fb4bc8c588420b1e9156 SHA512 63bca96f009e2de24ff6f7a4b37b97c5b7655d5ad6196f06cc2b18ca213e87878a310d169378c341c00aaac698530e458e301620bcc21284bc8b9ea143f642dd WHIRLPOOL 02d17436f901c70b2fa8a104d8b7a6526c65ab9b40408b549c4f4dfe7a1eeae8213620d151fb181833782504e4d7cb6fa3ff7ddebe77efcb88d32fe057cbd8cc
27 DIST ocaml-patches-8.tar.bz2 1803 SHA256 bce7ea483842f6e201cdf3de266928b39b5b45322315010291ed28f811720525 SHA512 fc477fbb5bdec60a3c4d3dfa110119bb579560ac0e0e57e30e076da72643bda6359c06fd3745fd3436c5d611dbbd888ec2921e9d1920f4929df633c35a797411 WHIRLPOOL ae73b5377744add3afce012b5745fafd70c0f92f75cd6cf91560e0f2ba359a91f7276afed13db145c307be9fdf79c339c2c69be6946565354c68d701fa61a4be
28
29 diff --git a/dev-lang/ocaml/files/ocaml-4.01.0-pkg-config-ncurses.patch b/dev-lang/ocaml/files/ocaml-4.01.0-pkg-config-ncurses.patch
30 deleted file mode 100644
31 index b9fa750..00000000
32 --- a/dev-lang/ocaml/files/ocaml-4.01.0-pkg-config-ncurses.patch
33 +++ /dev/null
34 @@ -1,15 +0,0 @@
35 ---- ocaml-4.01.0-orig/configure 2013-08-23 16:22:36.000000000 +1000
36 -+++ ocaml-4.01.0/configure 2014-01-18 20:06:50.669644267 +1100
37 -@@ -892,7 +892,11 @@
38 - # For the terminfo module
39 -
40 - if test "$withcurses" = "yes"; then
41 -- for libs in "" "-lcurses" "-ltermcap" "-lcurses -ltermcap" "-lncurses"; do
42 -+ ncurseslibs=""
43 -+ if pkg-config --exists ncurses 2>/dev/null; then
44 -+ ncurseslibs=`pkg-config --libs ncurses`
45 -+ fi
46 -+ for libs in "${ncurseslibs}" "-lcurses" "-ltermcap" "-lcurses -ltermcap" "-lncurses"; do
47 - if sh ./hasgot $libs tgetent tgetstr tgetnum tputs; then
48 - echo "termcap functions found (with libraries '$libs')"
49 - echo "#define HAS_TERMCAP" >> s.h
50
51 diff --git a/dev-lang/ocaml/ocaml-4.02.3-r1.ebuild b/dev-lang/ocaml/ocaml-4.02.3-r1.ebuild
52 deleted file mode 100644
53 index 39bf504..00000000
54 --- a/dev-lang/ocaml/ocaml-4.02.3-r1.ebuild
55 +++ /dev/null
56 @@ -1,116 +0,0 @@
57 -# Copyright 1999-2015 Gentoo Foundation
58 -# Distributed under the terms of the GNU General Public License v2
59 -# $Id$
60 -
61 -EAPI="5"
62 -
63 -inherit flag-o-matic eutils multilib versionator toolchain-funcs
64 -
65 -PATCHLEVEL="7"
66 -MY_P="${P/_/+}"
67 -DESCRIPTION="Fast modern type-inferring functional programming language descended from the ML family"
68 -HOMEPAGE="http://www.ocaml.org/"
69 -SRC_URI="http://caml.inria.fr/pub/distrib/ocaml-$(get_version_component_range 1-2)/${MY_P}.tar.xz
70 - mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
71 -
72 -LICENSE="QPL-1.0 LGPL-2"
73 -# Everytime ocaml is updated to a new version, everything ocaml must be rebuilt,
74 -# so here we go with the subslot.
75 -SLOT="0/${PV}"
76 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
77 -IUSE="emacs latex ncurses +ocamlopt X xemacs"
78 -
79 -RDEPEND="
80 - ncurses? ( sys-libs/ncurses:0= )
81 - X? ( x11-libs/libX11 x11-proto/xproto )"
82 -DEPEND="${RDEPEND}
83 - virtual/pkgconfig"
84 -
85 -PDEPEND="emacs? ( app-emacs/ocaml-mode )
86 - xemacs? ( app-xemacs/ocaml )"
87 -
88 -S="${WORKDIR}/${MY_P}"
89 -pkg_setup() {
90 - # dev-lang/ocaml creates its own objects but calls gcc for linking, which will
91 - # results in relocations if gcc wants to create a PIE executable
92 - if gcc-specs-pie ; then
93 - append-ldflags -nopie
94 - ewarn "Ocaml generates its own native asm, you're using a PIE compiler"
95 - ewarn "We have appended -nopie to ocaml build options"
96 - ewarn "because linking an executable with pie while the objects are not pic will not work"
97 - fi
98 -}
99 -
100 -src_prepare() {
101 - EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
102 -}
103 -
104 -src_configure() {
105 - export LC_ALL=C
106 - local myconf=""
107 -
108 - # Causes build failures because it builds some programs with -pg,
109 - # bug #270920
110 - filter-flags -fomit-frame-pointer
111 - # Bug #285993
112 - filter-mfpmath sse
113 -
114 - # It doesn't compile on alpha without this LDFLAGS
115 - use alpha && append-ldflags "-Wl,--no-relax"
116 -
117 - use ncurses || myconf="${myconf} -no-curses"
118 - use X || myconf="${myconf} -no-graph"
119 -
120 - # ocaml uses a home-brewn configure script, preventing it to use econf.
121 - RAW_LDFLAGS="$(raw-ldflags)" ./configure \
122 - --prefix "${EPREFIX}"/usr \
123 - --bindir "${EPREFIX}"/usr/bin \
124 - --target-bindir "${EPREFIX}"/usr/bin \
125 - --libdir "${EPREFIX}"/usr/$(get_libdir)/ocaml \
126 - --mandir "${EPREFIX}"/usr/share/man \
127 - --no-ocamlbuild \
128 - -target "${CHOST}" \
129 - -host "${CBUILD}" \
130 - -cc "$(tc-getCC)" \
131 - -as "$(tc-getAS)" \
132 - -aspp "$(tc-getCC) -c" \
133 - -partialld "$(tc-getLD) -r" \
134 - --with-pthread ${myconf} || die "configure failed!"
135 -
136 - # http://caml.inria.fr/mantis/view.php?id=4698
137 - export CCLINKFLAGS="${LDFLAGS}"
138 -}
139 -
140 -src_compile() {
141 - emake world
142 -
143 - # Native code generation can be disabled now
144 - if use ocamlopt ; then
145 - # bug #279968
146 - emake opt
147 - emake opt.opt
148 - fi
149 -}
150 -
151 -src_install() {
152 - emake BINDIR="${ED}"/usr/bin \
153 - LIBDIR="${ED}"/usr/$(get_libdir)/ocaml \
154 - MANDIR="${ED}"/usr/share/man \
155 - install
156 -
157 - # Symlink the headers to the right place
158 - dodir /usr/include
159 - dosym /usr/$(get_libdir)/ocaml/caml /usr/include/caml
160 -
161 - dodoc Changes INSTALL README
162 -
163 - # Create and envd entry for latex input files
164 - if use latex ; then
165 - echo "TEXINPUTS=${EPREFIX}/usr/$(get_libdir)/ocaml/ocamldoc:" > "${T}"/99ocamldoc
166 - doenvd "${T}"/99ocamldoc
167 - fi
168 -
169 - # Install ocaml-rebuild portage set
170 - insinto /usr/share/portage/config/sets
171 - doins "${FILESDIR}/ocaml.conf"
172 -}
173
174 diff --git a/dev-lang/ocaml/ocaml-4.03.0-r1.ebuild b/dev-lang/ocaml/ocaml-4.03.0-r1.ebuild
175 deleted file mode 100644
176 index d2df32d..00000000
177 --- a/dev-lang/ocaml/ocaml-4.03.0-r1.ebuild
178 +++ /dev/null
179 @@ -1,125 +0,0 @@
180 -# Copyright 1999-2016 Gentoo Foundation
181 -# Distributed under the terms of the GNU General Public License v2
182 -# $Id$
183 -
184 -EAPI="5"
185 -
186 -inherit flag-o-matic eutils multilib versionator toolchain-funcs
187 -
188 -PATCHLEVEL="8"
189 -MY_P="${P/_/+}"
190 -DESCRIPTION="Fast modern type-inferring functional programming language descended from the ML family"
191 -HOMEPAGE="http://www.ocaml.org/"
192 -SRC_URI="http://caml.inria.fr/pub/distrib/ocaml-$(get_version_component_range 1-2)/${MY_P}.tar.xz
193 - mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
194 -
195 -LICENSE="QPL-1.0 LGPL-2"
196 -# Everytime ocaml is updated to a new version, everything ocaml must be rebuilt,
197 -# so here we go with the subslot.
198 -SLOT="0/${PV}"
199 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
200 -IUSE="emacs flambda latex ncurses +ocamlopt X xemacs"
201 -
202 -RDEPEND="
203 - sys-libs/binutils-libs:=
204 - ncurses? ( sys-libs/ncurses:0= )
205 - X? ( x11-libs/libX11 x11-proto/xproto )"
206 -DEPEND="${RDEPEND}
207 - virtual/pkgconfig"
208 -
209 -PDEPEND="emacs? ( app-emacs/ocaml-mode )
210 - xemacs? ( app-xemacs/ocaml )"
211 -
212 -S="${WORKDIR}/${MY_P}"
213 -pkg_setup() {
214 - # dev-lang/ocaml creates its own objects but calls gcc for linking, which will
215 - # results in relocations if gcc wants to create a PIE executable
216 - if gcc-specs-pie ; then
217 - append-ldflags -nopie
218 - ewarn "Ocaml generates its own native asm, you're using a PIE compiler"
219 - ewarn "We have appended -nopie to ocaml build options"
220 - ewarn "because linking an executable with pie while the objects are not pic will not work"
221 - fi
222 -}
223 -
224 -src_prepare() {
225 - EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
226 -}
227 -
228 -src_configure() {
229 - export LC_ALL=C
230 - local myconf=""
231 -
232 - # Causes build failures because it builds some programs with -pg,
233 - # bug #270920
234 - filter-flags -fomit-frame-pointer
235 - # Bug #285993
236 - filter-mfpmath sse
237 -
238 - # It doesn't compile on alpha without this LDFLAGS
239 - use alpha && append-ldflags "-Wl,--no-relax"
240 -
241 - use ncurses || myconf="${myconf} -no-curses"
242 - use X || myconf="${myconf} -no-graph"
243 - use flambda && myconf="${myconf} -flambda"
244 -
245 - # ocaml uses a home-brewn configure script, preventing it to use econf.
246 - RAW_LDFLAGS="$(raw-ldflags)" ./configure \
247 - --prefix "${EPREFIX}"/usr \
248 - --bindir "${EPREFIX}"/usr/bin \
249 - --target-bindir "${EPREFIX}"/usr/bin \
250 - --libdir "${EPREFIX}"/usr/$(get_libdir)/ocaml \
251 - --mandir "${EPREFIX}"/usr/share/man \
252 - -target "${CHOST}" \
253 - -host "${CBUILD}" \
254 - -cc "$(tc-getCC)" \
255 - -as "$(tc-getAS)" \
256 - -aspp "$(tc-getCC) -c" \
257 - -partialld "$(tc-getLD) -r" \
258 - --with-pthread ${myconf} || die "configure failed!"
259 -
260 - # http://caml.inria.fr/mantis/view.php?id=4698
261 - export CCLINKFLAGS="${LDFLAGS}"
262 -}
263 -
264 -src_compile() {
265 - emake world
266 -
267 - # Native code generation can be disabled now
268 - if use ocamlopt ; then
269 - # bug #279968
270 - emake opt
271 - emake opt.opt
272 - fi
273 -}
274 -
275 -src_test() {
276 - if use ocamlopt ; then
277 - emake -j1 tests
278 - else
279 - ewarn "${PN} testsuite requires ocamlopt useflag"
280 - fi
281 -}
282 -
283 -src_install() {
284 - emake BINDIR="${ED}"/usr/bin \
285 - LIBDIR="${ED}"/usr/$(get_libdir)/ocaml \
286 - MANDIR="${ED}"/usr/share/man \
287 - install
288 -
289 - # Symlink the headers to the right place
290 - dodir /usr/include
291 - dosym /usr/$(get_libdir)/ocaml/caml /usr/include/caml
292 -
293 - dodoc Changes README.adoc
294 -
295 - # Create and envd entry for latex input files
296 - if use latex ; then
297 - echo "TEXINPUTS=${EPREFIX}/usr/$(get_libdir)/ocaml/ocamldoc:" > "${T}"/99ocamldoc
298 - doenvd "${T}"/99ocamldoc
299 - fi
300 -
301 - # Install ocaml-rebuild portage set
302 - insinto /usr/share/portage/config/sets
303 - doins "${FILESDIR}/ocaml.conf"
304 -}