dev-ml/ocaml-uri: port to pa_sexp_conv and avoid requiring old sexplib
authorAlexis Ballier <aballier@gentoo.org>
Mon, 8 Feb 2016 13:26:04 +0000 (14:26 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Mon, 8 Feb 2016 13:36:08 +0000 (14:36 +0100)
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
dev-ml/ocaml-uri/files/sexpl.patch [new file with mode: 0644]
dev-ml/ocaml-uri/ocaml-uri-1.9.1-r1.ebuild

diff --git a/dev-ml/ocaml-uri/files/sexpl.patch b/dev-ml/ocaml-uri/files/sexpl.patch
new file mode 100644 (file)
index 0000000..85008d1
--- /dev/null
@@ -0,0 +1,42 @@
+Index: ocaml-uri-1.9.1/_tags
+===================================================================
+--- ocaml-uri-1.9.1.orig/_tags
++++ ocaml-uri-1.9.1/_tags
+@@ -22,7 +22,7 @@ true: annot, bin_annot
+ "lib/services_full.cmxs": use_services_full
+ <lib/*.ml{,i,y}>: package(re.posix)
+ <lib/*.ml{,i,y}>: package(sexplib)
+-<lib/*.ml{,i,y}>: package(sexplib.syntax)
++<lib/*.ml{,i,y}>: package(pa_sexp_conv.syntax)
+ <lib/*.ml{,i,y}>: package(stringext)
+ <lib/*.ml{,i,y}>: use_uri
+ # Library uri_top
+@@ -32,13 +32,13 @@ true: annot, bin_annot
+ <lib_test/test_runner.{native,byte}>: package(oUnit)
+ <lib_test/test_runner.{native,byte}>: package(re.posix)
+ <lib_test/test_runner.{native,byte}>: package(sexplib)
+-<lib_test/test_runner.{native,byte}>: package(sexplib.syntax)
++<lib_test/test_runner.{native,byte}>: package(pa_sexp_conv)
+ <lib_test/test_runner.{native,byte}>: package(stringext)
+ <lib_test/test_runner.{native,byte}>: use_uri
+ <lib_test/*.ml{,i,y}>: package(oUnit)
+ <lib_test/*.ml{,i,y}>: package(re.posix)
+ <lib_test/*.ml{,i,y}>: package(sexplib)
+-<lib_test/*.ml{,i,y}>: package(sexplib.syntax)
++<lib_test/*.ml{,i,y}>: package(pa_sexp_conv)
+ <lib_test/*.ml{,i,y}>: package(stringext)
+ <lib_test/*.ml{,i,y}>: use_uri
+ <lib_test/test_runner.{native,byte}>: custom
+Index: ocaml-uri-1.9.1/setup.ml
+===================================================================
+--- ocaml-uri-1.9.1.orig/setup.ml
++++ ocaml-uri-1.9.1/setup.ml
+@@ -6964,7 +6964,7 @@ let setup_t =
+                         [
+                            FindlibPackage ("re.posix", None);
+                            FindlibPackage ("stringext", None);
+-                           FindlibPackage ("sexplib.syntax", None);
++                           FindlibPackage ("pa_sexp_conv.syntax", None);
+                            FindlibPackage ("sexplib", None)
+                         ];
+                       bs_build_tools = [ExternalTool "ocamlbuild"];
index 52341e8abff8449cdd35c640a64e453e081dac1b..62fa77aebb81a557ca59ca1f9d18a6a788c93b5d 100644 (file)
@@ -20,7 +20,7 @@ IUSE="allservices"
 RDEPEND="
        dev-ml/ocaml-re:=
        >=dev-ml/sexplib-109.53.00:=
-       <dev-ml/sexplib-113.01.00
+       dev-ml/pa_sexp_conv:=
        dev-ml/stringext:=
        dev-ml/type-conv:=
 "
@@ -28,6 +28,7 @@ DEPEND="
        test? ( >=dev-ml/ounit-1.0.2 )
        ${RDEPEND}
 "
+PATCHES=( "${FILESDIR}/sexpl.patch" )
 
 src_configure() {
        oasis_configure_opts="