1 |
commit: c5a506d62eb8d841aa8fb29fa88da952f2fbe12b |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 28 13:40:32 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 28 13:40:32 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5a506d6 |
7 |
|
8 |
dev-ml/camlp4: Version bump (v4.08_p1) |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
dev-ml/camlp4/Manifest | 1 + |
14 |
dev-ml/camlp4/camlp4-4.08_p1.ebuild | 44 +++++++++++++++++++++++++++++++++++++ |
15 |
dev-ml/camlp4/files/oc409.patch | 13 +++++++++++ |
16 |
dev-ml/camlp4/files/reload.patch | 13 +++++++++++ |
17 |
4 files changed, 71 insertions(+) |
18 |
|
19 |
diff --git a/dev-ml/camlp4/Manifest b/dev-ml/camlp4/Manifest |
20 |
index 1f2104298bc..cc8bcfc4f3e 100644 |
21 |
--- a/dev-ml/camlp4/Manifest |
22 |
+++ b/dev-ml/camlp4/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST camlp4-4.04_p1.tar.gz 648320 BLAKE2B d383a366facaaa440b24184bb54a8e1c3bb22ae02387a0bc4f9ee4331ecdc60e5bf22715c1022c987041fb081eb448794a74026736df9f70e05c7213e08bfa44 SHA512 7db8eebcf3d230f60650ba62d9cb630c069394237e97b678a40b61d3dcaded752a2b7e089a50ff528f1ea0740d0291b722df123a072f2cee489cadc5201c6776 |
25 |
DIST camlp4-4.05_p1.tar.gz 647566 BLAKE2B 068c1016a75616811787eb480b61349a32960997f03e0bc99d63e15357a8932a6019d9e7195541fd942ef99fc1d71c067fb5fcb0fd0c2c3efb77aac494589854 SHA512 0ee9720286d0d832fb7d2d21a8877856e0e47c94c86b1b58d28f8e757a18472eecb56a16e3a04ce815f240dd5048f5d597515461d084fd1cf4da1b121f97a3fe |
26 |
+DIST camlp4-4.08_p1.tar.gz 649830 BLAKE2B 8dff6f82618d0f61a56acfa71ae679d4ba5ed4aea272019da7b19ea64960c80e50c55482ff9782748dad5042aa1bcd8728ff0825f8f900ff27239db0e0db3515 SHA512 1f8d6df42935ecdbed96a7b02d05564665b4bf0cbe4f5fd1800a1f292d8b3864d973df1e9e8c566c0fd00b5a55ba47ecd9bd07f134a9be83601e010b0246e075 |
27 |
|
28 |
diff --git a/dev-ml/camlp4/camlp4-4.08_p1.ebuild b/dev-ml/camlp4/camlp4-4.08_p1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..0c86d665428 |
31 |
--- /dev/null |
32 |
+++ b/dev-ml/camlp4/camlp4-4.08_p1.ebuild |
33 |
@@ -0,0 +1,44 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+MY_PV=${PV/_p/+} |
40 |
+MY_P=${PN}-${MY_PV} |
41 |
+ |
42 |
+DESCRIPTION="System for writing extensible parsers for programming languages" |
43 |
+HOMEPAGE="https://github.com/ocaml/camlp4" |
44 |
+SRC_URI="https://github.com/ocaml/camlp4/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="LGPL-2-with-linking-exception" |
47 |
+SLOT="0/${PV}" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
49 |
+IUSE="+ocamlopt" |
50 |
+ |
51 |
+DEPEND=">=dev-lang/ocaml-4.09.0:=[ocamlopt?]" |
52 |
+RDEPEND="${DEPEND} |
53 |
+ !<dev-lang/ocaml-4.02 |
54 |
+ !<dev-ml/findlib-1.5.5-r1" |
55 |
+DEPEND="${DEPEND} |
56 |
+ dev-ml/ocamlbuild" |
57 |
+ |
58 |
+S=${WORKDIR}/${P/_p/-} |
59 |
+PATCHES=( "${FILESDIR}/reload.patch" "${FILESDIR}/oc409.patch" ) |
60 |
+ |
61 |
+src_configure() { |
62 |
+ ./configure \ |
63 |
+ --bindir="${EPREFIX}/usr/bin" \ |
64 |
+ --libdir="$(ocamlc -where)" \ |
65 |
+ --pkgdir="$(ocamlc -where)" \ |
66 |
+ || die |
67 |
+} |
68 |
+ |
69 |
+src_compile() { |
70 |
+ emake byte |
71 |
+ use ocamlopt && emake native |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ emake DESTDIR="${D}" install install-META |
76 |
+ dodoc CHANGES.md README.md |
77 |
+} |
78 |
|
79 |
diff --git a/dev-ml/camlp4/files/oc409.patch b/dev-ml/camlp4/files/oc409.patch |
80 |
new file mode 100644 |
81 |
index 00000000000..727762a64a2 |
82 |
--- /dev/null |
83 |
+++ b/dev-ml/camlp4/files/oc409.patch |
84 |
@@ -0,0 +1,13 @@ |
85 |
+Index: camlp4-4.08-1/configure |
86 |
+=================================================================== |
87 |
+--- camlp4-4.08-1.orig/configure |
88 |
++++ camlp4-4.08-1/configure |
89 |
+@@ -39,7 +39,7 @@ if [ $major -lt 4 -o \( $major -eq 4 -a |
90 |
+ echo "The standalone Camlp4 requires OCaml >= 4.02." |
91 |
+ echo "For previous versions of OCaml use the Camlp4 distributed with OCaml." |
92 |
+ exit 2 |
93 |
+-elif [ $major -ne 4 -o $minor -ne 8 ]; then |
94 |
++elif [ $major -lt 4 -o $minor -lt 8 ]; then |
95 |
+ echo "This version of Camlp4 is for OCaml 4.07 but you are using OCaml $ocaml_version." |
96 |
+ if [ -d .git ] ; then |
97 |
+ if [ $PINNED -eq 1 ] ; then |
98 |
|
99 |
diff --git a/dev-ml/camlp4/files/reload.patch b/dev-ml/camlp4/files/reload.patch |
100 |
new file mode 100644 |
101 |
index 00000000000..8fbc1c05532 |
102 |
--- /dev/null |
103 |
+++ b/dev-ml/camlp4/files/reload.patch |
104 |
@@ -0,0 +1,13 @@ |
105 |
+Index: camlp4-4.08-1/camlp4/Camlp4/Struct/DynLoader.ml |
106 |
+=================================================================== |
107 |
+--- camlp4-4.08-1.orig/camlp4/Camlp4/Struct/DynLoader.ml |
108 |
++++ camlp4-4.08-1/camlp4/Camlp4/Struct/DynLoader.ml |
109 |
+@@ -76,7 +76,7 @@ value load = |
110 |
+ [ Not_found -> raise (Error file "file not found in path") ] |
111 |
+ in |
112 |
+ try Dynlink.loadfile fname with |
113 |
+- [ Dynlink.Error e -> raise (Error fname (Dynlink.error_message e)) ] |
114 |
++ [ Dynlink.Error (Module_already_loaded _ ) -> () | Dynlink.Error e -> raise (Error fname (Dynlink.error_message e)) ] |
115 |
+ }; |
116 |
+ |
117 |
+ |