1 |
commit: 20d5a00479c12a67042fc963f3ff081ab09bb731 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 29 07:16:33 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 29 20:28:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20d5a004 |
7 |
|
8 |
dev-lang/ocaml: Bump to 4.05.0_rc1 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-lang/ocaml/Manifest | 1 + |
13 |
dev-lang/ocaml/ocaml-4.05.0_rc1.ebuild | 129 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 130 insertions(+) |
15 |
|
16 |
diff --git a/dev-lang/ocaml/Manifest b/dev-lang/ocaml/Manifest |
17 |
index 4392e6f2b5c..77f547ba084 100644 |
18 |
--- a/dev-lang/ocaml/Manifest |
19 |
+++ b/dev-lang/ocaml/Manifest |
20 |
@@ -2,5 +2,6 @@ DIST ocaml-4.04.0.tar.gz 4057711 SHA256 03e49d09d5a509216ca0cc8fccd10df3ad9dd441 |
21 |
DIST ocaml-4.04.1.tar.gz 4061830 SHA256 9aea1867848e370ae79f9aea4d48b04daf416478b0f43dfcb3a0f4d3ecf5f8e4 SHA512 d1bb536cd4c596752fb9e508f6b37b2d23a41350ecda866b8a890e15e5248b16e08bb99c9d02ed6cab8eed73162ae555cf6ef250f498e27f7463e6a724a5c103 WHIRLPOOL 56d16ba29596fb3952580643b5103415a46231af30cb0e86a9c8d3d200aa689d1cdeeda260494435ee958abbc3caab70b34a42622e9e9a61f3ad8d3c4e146a7d |
22 |
DIST ocaml-4.04.2.tar.gz 4061873 SHA256 6277a477956fc7b76f28af9941dce2984d0df809a0361093eb2e28234bf9c8ed SHA512 8b6a0319307cbb7451594d2f7c63851299d3e7d6ae7879e7525373304f9fd5a9b01d503ecd313a12a3cae24a4a7cb909f7aeebbb70efaa5277137189ea4558cb WHIRLPOOL b8b4fe7b86525686765cb02f221e6a75c06466cb172348474a18163648f7269bd29ca2bea4dcb890ce6fef86b91743139bfaa4e4fbda53d288d696b8572c5639 |
23 |
DIST ocaml-4.05.0-beta3.tar.gz 4424084 SHA256 3d82d5b32310d1c010981c12508e0ff63fb71b0c89457bcac813b7c291d4b61c SHA512 4c31f2b1f43d2c81ea9e8a6b86439806ab3b4b1ab6c6ae35bc98bbd2a993d94b9e26744febebe1d2424c5ee2deb8b5c9c45ff6fbf96bc629758dec86877fff80 WHIRLPOOL c2ecf0f8d4a9ee9fe92d1a0cbd3c16a4a341d6b8c1acd7077f8602aa730c88f7d58cf15f867da5f93c54de8c9f4984f5f12ae27ce3accedc0e4eeb0e0d73fc77 |
24 |
+DIST ocaml-4.05.0-rc1.tar.gz 4431747 SHA256 11fbf2eb1939d8352cee4f48b9621e95c10ca124a99b2403f92b6228f6b5c3dd SHA512 0ff2e2d3e27ad10b047dba43c11761ab0b834c245ffef83530db50fde8f0c5c50b6e17f4ff44c5fcfc60b9f6105bd2dd9c387cb36e10ede1331cd5379e3be14b WHIRLPOOL 05059c0062076d714684840a08190ed7c77bf6683a2010553873d2f1e08e114cefc694c90713de659d48e425d09084c192b4a495f8e18e37c68603c8064d711a |
25 |
DIST ocaml-patches-8.tar.bz2 1803 SHA256 bce7ea483842f6e201cdf3de266928b39b5b45322315010291ed28f811720525 SHA512 fc477fbb5bdec60a3c4d3dfa110119bb579560ac0e0e57e30e076da72643bda6359c06fd3745fd3436c5d611dbbd888ec2921e9d1920f4929df633c35a797411 WHIRLPOOL ae73b5377744add3afce012b5745fafd70c0f92f75cd6cf91560e0f2ba359a91f7276afed13db145c307be9fdf79c339c2c69be6946565354c68d701fa61a4be |
26 |
DIST ocaml-patches-9.tar.bz2 1700 SHA256 1709c257536e9a8fdd25bfa651c4fb1aaff4c97596dbaa70eb4d4afc7020ae92 SHA512 cc19f9104fac69aecc5effa8cb772342e1fb61cdcd38ba0176efe04cf3d710b1c56d5178748f3bd29099af91fa684da432a8ef8d42de76dbd1b6954a255ea6c0 WHIRLPOOL 185406937ff0fdbfba3eed0e2e4267efac5aff1a15fc3cc5ea4434a57bf4a790bd21a801613d768328f3ab5046a0c85a0b73681c6711c348d0d0755a723c4857 |
27 |
|
28 |
diff --git a/dev-lang/ocaml/ocaml-4.05.0_rc1.ebuild b/dev-lang/ocaml/ocaml-4.05.0_rc1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..32d26aa50e0 |
31 |
--- /dev/null |
32 |
+++ b/dev-lang/ocaml/ocaml-4.05.0_rc1.ebuild |
33 |
@@ -0,0 +1,129 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="5" |
38 |
+ |
39 |
+inherit flag-o-matic eutils multilib versionator toolchain-funcs |
40 |
+ |
41 |
+PATCHLEVEL="9" |
42 |
+MY_P="${P/_/-}" |
43 |
+DESCRIPTION="Type-inferring functional programming language descended from the ML family" |
44 |
+HOMEPAGE="http://www.ocaml.org/" |
45 |
+SRC_URI="https://github.com/ocaml/ocaml/archive/${PV/_/+}.tar.gz -> ${MY_P}.tar.gz |
46 |
+ mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2" |
47 |
+ |
48 |
+LICENSE="QPL-1.0 LGPL-2" |
49 |
+# Everytime ocaml is updated to a new version, everything ocaml must be rebuilt, |
50 |
+# so here we go with the subslot. |
51 |
+SLOT="0/${PV}" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
53 |
+IUSE="emacs +flambda latex ncurses +ocamlopt spacetime X xemacs" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ sys-libs/binutils-libs:= |
57 |
+ ncurses? ( sys-libs/ncurses:0= ) |
58 |
+ spacetime? ( sys-libs/libunwind:= ) |
59 |
+ X? ( x11-libs/libX11 x11-proto/xproto )" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ virtual/pkgconfig" |
62 |
+ |
63 |
+PDEPEND="emacs? ( app-emacs/ocaml-mode ) |
64 |
+ xemacs? ( app-xemacs/ocaml )" |
65 |
+ |
66 |
+S="${WORKDIR}/${MY_P}" |
67 |
+pkg_setup() { |
68 |
+ # dev-lang/ocaml creates its own objects but calls gcc for linking, which will |
69 |
+ # results in relocations if gcc wants to create a PIE executable |
70 |
+ if gcc-specs-pie ; then |
71 |
+ append-ldflags -nopie |
72 |
+ ewarn "Ocaml generates its own native asm, you're using a PIE compiler" |
73 |
+ ewarn "We have appended -nopie to ocaml build options" |
74 |
+ ewarn "because linking an executable with pie while the objects are not pic will not work" |
75 |
+ fi |
76 |
+} |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ export LC_ALL=C |
84 |
+ local myconf="" |
85 |
+ |
86 |
+ # Causes build failures because it builds some programs with -pg, |
87 |
+ # bug #270920 |
88 |
+ filter-flags -fomit-frame-pointer |
89 |
+ # Bug #285993 |
90 |
+ filter-mfpmath sse |
91 |
+ |
92 |
+ # -ggdb3 & co makes it behave weirdly, breaks sexplib |
93 |
+ replace-flags -ggdb* -ggdb |
94 |
+ |
95 |
+ # It doesn't compile on alpha without this LDFLAGS |
96 |
+ use alpha && append-ldflags "-Wl,--no-relax" |
97 |
+ |
98 |
+ use ncurses || myconf="${myconf} -no-curses" |
99 |
+ use X || myconf="${myconf} -no-graph" |
100 |
+ use flambda && myconf="${myconf} -flambda" |
101 |
+ use spacetime && myconf="${myconf} -spacetime" |
102 |
+ |
103 |
+ # ocaml uses a home-brewn configure script, preventing it to use econf. |
104 |
+ RAW_LDFLAGS="$(raw-ldflags)" ./configure \ |
105 |
+ --prefix "${EPREFIX}"/usr \ |
106 |
+ --bindir "${EPREFIX}"/usr/bin \ |
107 |
+ --target-bindir "${EPREFIX}"/usr/bin \ |
108 |
+ --libdir "${EPREFIX}"/usr/$(get_libdir)/ocaml \ |
109 |
+ --mandir "${EPREFIX}"/usr/share/man \ |
110 |
+ -target "${CHOST}" \ |
111 |
+ -host "${CBUILD}" \ |
112 |
+ -cc "$(tc-getCC)" \ |
113 |
+ -as "$(tc-getAS)" \ |
114 |
+ -aspp "$(tc-getCC) -c" \ |
115 |
+ -partialld "$(tc-getLD) -r" \ |
116 |
+ --with-pthread ${myconf} || die "configure failed!" |
117 |
+ |
118 |
+ # http://caml.inria.fr/mantis/view.php?id=4698 |
119 |
+ export CCLINKFLAGS="${LDFLAGS}" |
120 |
+} |
121 |
+ |
122 |
+src_compile() { |
123 |
+ emake world |
124 |
+ |
125 |
+ # Native code generation can be disabled now |
126 |
+ if use ocamlopt ; then |
127 |
+ # bug #279968 |
128 |
+ emake opt |
129 |
+ emake opt.opt |
130 |
+ fi |
131 |
+} |
132 |
+ |
133 |
+src_test() { |
134 |
+ if use ocamlopt ; then |
135 |
+ emake -j1 tests |
136 |
+ else |
137 |
+ ewarn "${PN} testsuite requires ocamlopt useflag" |
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 README.adoc |
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 |
+} |