1 |
aballier 15/07/31 08:44:59 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ocaml-4.02.3.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 160F534A) |
9 |
|
10 |
Revision Changes Path |
11 |
1.226 dev-lang/ocaml/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ocaml/ChangeLog?rev=1.226&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ocaml/ChangeLog?rev=1.226&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ocaml/ChangeLog?r1=1.225&r2=1.226 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ChangeLog,v |
20 |
retrieving revision 1.225 |
21 |
retrieving revision 1.226 |
22 |
diff -u -r1.225 -r1.226 |
23 |
--- ChangeLog 18 Jun 2015 09:14:37 -0000 1.225 |
24 |
+++ ChangeLog 31 Jul 2015 08:44:59 -0000 1.226 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-lang/ocaml |
27 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ChangeLog,v 1.225 2015/06/18 09:14:37 aballier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ChangeLog,v 1.226 2015/07/31 08:44:59 aballier Exp $ |
30 |
+ |
31 |
+*ocaml-4.02.3 (31 Jul 2015) |
32 |
+ |
33 |
+ 31 Jul 2015; Alexis Ballier <aballier@g.o> +ocaml-4.02.3.ebuild: |
34 |
+ version bump |
35 |
|
36 |
*ocaml-4.02.2 (18 Jun 2015) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-lang/ocaml/ocaml-4.02.3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ocaml/ocaml-4.02.3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/ocaml/ocaml-4.02.3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: ocaml-4.02.3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2015 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ocaml-4.02.3.ebuild,v 1.1 2015/07/31 08:44:59 aballier Exp $ |
51 |
|
52 |
EAPI="5" |
53 |
|
54 |
inherit flag-o-matic eutils multilib versionator toolchain-funcs |
55 |
|
56 |
PATCHLEVEL="7" |
57 |
MY_P="${P/_/+}" |
58 |
DESCRIPTION="Fast modern type-inferring functional programming language descended from the ML family" |
59 |
HOMEPAGE="http://www.ocaml.org/" |
60 |
SRC_URI="http://caml.inria.fr/pub/distrib/ocaml-$(get_version_component_range 1-2)/${MY_P}.tar.xz |
61 |
mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2" |
62 |
|
63 |
LICENSE="QPL-1.0 LGPL-2" |
64 |
# Everytime ocaml is updated to a new version, everything ocaml must be rebuilt, |
65 |
# so here we go with the subslot. |
66 |
SLOT="0/${PV}" |
67 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-fbsd ~x86-linux" |
68 |
IUSE="emacs latex ncurses +ocamlopt X xemacs" |
69 |
|
70 |
RDEPEND=" |
71 |
ncurses? ( sys-libs/ncurses ) |
72 |
X? ( x11-libs/libX11 x11-proto/xproto )" |
73 |
DEPEND="${RDEPEND} |
74 |
virtual/pkgconfig" |
75 |
|
76 |
PDEPEND="emacs? ( app-emacs/ocaml-mode ) |
77 |
xemacs? ( app-xemacs/ocaml )" |
78 |
|
79 |
S="${WORKDIR}/${MY_P}" |
80 |
pkg_setup() { |
81 |
# dev-lang/ocaml creates its own objects but calls gcc for linking, which will |
82 |
# results in relocations if gcc wants to create a PIE executable |
83 |
if gcc-specs-pie ; then |
84 |
append-ldflags -nopie |
85 |
ewarn "Ocaml generates its own native asm, you're using a PIE compiler" |
86 |
ewarn "We have appended -nopie to ocaml build options" |
87 |
ewarn "because linking an executable with pie while the objects are not pic will not work" |
88 |
fi |
89 |
} |
90 |
|
91 |
src_prepare() { |
92 |
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
93 |
} |
94 |
|
95 |
src_configure() { |
96 |
export LC_ALL=C |
97 |
local myconf="" |
98 |
|
99 |
# Causes build failures because it builds some programs with -pg, |
100 |
# bug #270920 |
101 |
filter-flags -fomit-frame-pointer |
102 |
# Bug #285993 |
103 |
filter-mfpmath sse |
104 |
|
105 |
# It doesn't compile on alpha without this LDFLAGS |
106 |
use alpha && append-ldflags "-Wl,--no-relax" |
107 |
|
108 |
use ncurses || myconf="${myconf} -no-curses" |
109 |
use X || myconf="${myconf} -no-graph" |
110 |
|
111 |
# ocaml uses a home-brewn configure script, preventing it to use econf. |
112 |
RAW_LDFLAGS="$(raw-ldflags)" ./configure \ |
113 |
--prefix "${EPREFIX}"/usr \ |
114 |
--bindir "${EPREFIX}"/usr/bin \ |
115 |
--target-bindir "${EPREFIX}"/usr/bin \ |
116 |
--libdir "${EPREFIX}"/usr/$(get_libdir)/ocaml \ |
117 |
--mandir "${EPREFIX}"/usr/share/man \ |
118 |
-target "${CHOST}" \ |
119 |
-host "${CBUILD}" \ |
120 |
-cc "$(tc-getCC)" \ |
121 |
-as "$(tc-getAS)" \ |
122 |
-aspp "$(tc-getCC) -c" \ |
123 |
-partialld "$(tc-getLD) -r" \ |
124 |
--with-pthread ${myconf} || die "configure failed!" |
125 |
|
126 |
# http://caml.inria.fr/mantis/view.php?id=4698 |
127 |
export CCLINKFLAGS="${LDFLAGS}" |
128 |
} |
129 |
|
130 |
src_compile() { |
131 |
emake world |
132 |
|
133 |
# Native code generation can be disabled now |
134 |
if use ocamlopt ; then |
135 |
# bug #279968 |
136 |
emake opt |
137 |
emake opt.opt |
138 |
fi |
139 |
} |
140 |
|
141 |
src_install() { |
142 |
emake BINDIR="${ED}"/usr/bin \ |
143 |
LIBDIR="${ED}"/usr/$(get_libdir)/ocaml \ |
144 |
MANDIR="${ED}"/usr/share/man \ |
145 |
install |
146 |
|
147 |
# Symlink the headers to the right place |
148 |
dodir /usr/include |
149 |
dosym /usr/$(get_libdir)/ocaml/caml /usr/include/caml |
150 |
|
151 |
dodoc Changes INSTALL README |
152 |
|
153 |
# Create and envd entry for latex input files |
154 |
if use latex ; then |
155 |
echo "TEXINPUTS=${EPREFIX}/usr/$(get_libdir)/ocaml/ocamldoc:" > "${T}"/99ocamldoc |
156 |
doenvd "${T}"/99ocamldoc |
157 |
fi |
158 |
|
159 |
# Install ocaml-rebuild portage set |
160 |
insinto /usr/share/portage/config/sets |
161 |
doins "${FILESDIR}/ocaml.conf" |
162 |
} |