summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-22 04:13:46 +0000
committerSam James <sam@gentoo.org>2021-04-04 06:09:12 +0000
commita840c9f904e5dbb7cf4e6124d35f44076ef9ee18 (patch)
treef98a9b93aa3fd9c2d3626b7f7660bb1a68e5c2f4
parentdev-ml/eliom: treeclean (diff)
downloadgentoo-a840c9f904e5dbb7cf4e6124d35f44076ef9ee18.tar.gz
gentoo-a840c9f904e5dbb7cf4e6124d35f44076ef9ee18.tar.bz2
gentoo-a840c9f904e5dbb7cf4e6124d35f44076ef9ee18.zip
dev-ml/js_of_ocaml: treeclean
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-ml/js_of_ocaml/Manifest2
-rw-r--r--dev-ml/js_of_ocaml/files/ocaml405.patch41
-rw-r--r--dev-ml/js_of_ocaml/files/ppx.patch11
-rw-r--r--dev-ml/js_of_ocaml/js_of_ocaml-2.8.4-r2.ebuild70
-rw-r--r--dev-ml/js_of_ocaml/js_of_ocaml-3.0.0.ebuild76
-rw-r--r--dev-ml/js_of_ocaml/js_of_ocaml-9999.ebuild75
-rw-r--r--dev-ml/js_of_ocaml/metadata.xml15
7 files changed, 0 insertions, 290 deletions
diff --git a/dev-ml/js_of_ocaml/Manifest b/dev-ml/js_of_ocaml/Manifest
deleted file mode 100644
index 175cbf5c7101..000000000000
--- a/dev-ml/js_of_ocaml/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST js_of_ocaml-2.8.4.tar.gz 1344082 BLAKE2B f7f24e422a906d14ccf26b65de00c4d08726058cb14113c60527e337a14b6e2e65fc6dcda76dcffe3139c5fc7b5b2c1111ecb3ceaf820697581fed7cd35d097d SHA512 8dc65bac7d60f2d3534e31e0fddb061f1b97bfd8146b1a34b4a1a516574c6a39f66d115646aa9767b7e24a51ec76949b05841088601f97d76972c8899a50c4fd
-DIST js_of_ocaml-3.0.0.tar.gz 1433377 BLAKE2B c4d696adc90c8caacf725f7b691b9f57199385f6137356da8562d63b95c5089317064e36d343f524713df600e07f04d8b530b591cb5532f0dffa4ae143dd8f4b SHA512 dc4bbbfdacb43338aa7f97b7012b6de8a2eac5d7c5f535ceb9565c477c961a212ce5b2a75b1719fcd9f2d57938ee2162f6f04d3364397a469d7a13d1fe4e3908
diff --git a/dev-ml/js_of_ocaml/files/ocaml405.patch b/dev-ml/js_of_ocaml/files/ocaml405.patch
deleted file mode 100644
index 552dff425c46..000000000000
--- a/dev-ml/js_of_ocaml/files/ocaml405.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-Index: js_of_ocaml-2.8.4/lib/ppx/ppx_js.ml
-===================================================================
---- js_of_ocaml-2.8.4.orig/lib/ppx/ppx_js.ml
-+++ js_of_ocaml-2.8.4/lib/ppx/ppx_js.ml
-@@ -162,7 +162,8 @@ let invoker ?(extra_types = []) uplift d
- {[ fun (type res t0 t1 ..) arg1 arg2 -> e ]}
- *)
- let local_types =
-- res :: List.map Arg.name (extra_types @ arguments)
-+ List.map Location.mknoloc
-+ (res :: List.map Arg.name (extra_types @ arguments))
- in
- let result = List.fold_right Exp.newtype local_types invoker in
-
-@@ -210,7 +211,7 @@ let method_call ~loc obj meth args =
- (Exp.fun_ ~loc ~attrs:[merlin_noloc] Label.nolabel None
- (Pat.var ~loc ~attrs:[merlin_noloc] (Location.mknoloc "x"))
- (Exp.send ~loc ~attrs:[merlin_noloc]
-- (Exp.ident ~loc:gloc (lid ~loc:gloc "x")) meth))]
-+ (Exp.ident ~loc:gloc (lid ~loc:gloc "x")) (Location.mknoloc meth)))]
- )
-
- (* {[ obj##.prop ]} generates
-@@ -244,7 +245,7 @@ let prop_get ~loc:_ ~prop_loc obj prop =
- (Exp.fun_ ~loc:gloc Label.nolabel None
- (Pat.var ~loc:gloc ~attrs:[merlin_noloc] (Location.mknoloc "x"))
- (Exp.send ~loc:prop_loc ~attrs:[merlin_noloc]
-- (Exp.ident ~loc:gloc (lid ~loc:gloc "x")) prop))
-+ (Exp.ident ~loc:gloc (lid ~loc:gloc "x")) (Location.mknoloc prop)))
- ]
- )
-
-@@ -289,7 +290,7 @@ let prop_set ~loc ~prop_loc obj prop val
- (Exp.fun_ ~loc Label.nolabel None
- (Pat.var ~loc:gloc ~attrs:[merlin_noloc] (Location.mknoloc "x"))
- (Exp.send ~loc:prop_loc ~attrs:[merlin_noloc]
-- (Exp.ident ~loc:gloc (lid ~loc:gloc "x")) prop))
-+ (Exp.ident ~loc:gloc (lid ~loc:gloc "x")) (Location.mknoloc prop)))
- ]
- )
-
diff --git a/dev-ml/js_of_ocaml/files/ppx.patch b/dev-ml/js_of_ocaml/files/ppx.patch
deleted file mode 100644
index c46293f546da..000000000000
--- a/dev-ml/js_of_ocaml/files/ppx.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-Index: js_of_ocaml-2.8.4/lib/ppx_driver/ppx_js_driver.ml
-===================================================================
---- js_of_ocaml-2.8.4.orig/lib/ppx_driver/ppx_js_driver.ml
-+++ js_of_ocaml-2.8.4/lib/ppx_driver/ppx_js_driver.ml
-@@ -1,5 +1,5 @@
- let () =
- let js_mapper = Ppx_js.js_mapper [] in
-- Ppx_driver.register_transformation "js_of_ocaml"
-+ Ppx_driver.register_transformation_using_ocaml_current_ast "js_of_ocaml"
- ~impl:(js_mapper.Ast_mapper.structure js_mapper)
- ~intf:(js_mapper.Ast_mapper.signature js_mapper)
diff --git a/dev-ml/js_of_ocaml/js_of_ocaml-2.8.4-r2.ebuild b/dev-ml/js_of_ocaml/js_of_ocaml-2.8.4-r2.ebuild
deleted file mode 100644
index 411a3127760b..000000000000
--- a/dev-ml/js_of_ocaml/js_of_ocaml-2.8.4-r2.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit findlib eutils
-
-DESCRIPTION="A compiler from OCaml bytecode to javascript"
-HOMEPAGE="http://ocsigen.org/js_of_ocaml/"
-
-if [ "${PV#9999}" != "${PV}" ] ; then
- inherit git-r3
- SRC_URI=""
- EGIT_REPO_URI="https://github.com/ocsigen/js_of_ocaml"
-else
- SRC_URI="https://github.com/ocsigen/js_of_ocaml/archive/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64"
-fi
-
-LICENSE="LGPL-2.1-with-linking-exception"
-SLOT="0/${PV}"
-IUSE="+ocamlopt doc +deriving +ppx +react +xml X"
-
-RDEPEND="
- >=dev-lang/ocaml-3.12:=[ocamlopt?,X(+)?]
- >=dev-ml/lwt-2.4.4:=[camlp4(+)]
- react? ( dev-ml/react:= dev-ml/reactiveData:= )
- xml? ( >=dev-ml/tyxml-4:= )
- ppx? ( dev-ml/ppx_tools:= dev-ml/ppx_deriving:= dev-ml/ppx_driver:= )
- dev-ml/cmdliner:=
- dev-ml/menhir:=
- dev-ml/ocaml-base64:=
- dev-ml/camlp4:=
- dev-ml/cppo:=
- dev-ml/uchar:=
- dev-ml/ocamlbuild:=
- dev-ml/yojson:=
- dev-ml/ocaml-migrate-parsetree:=
- deriving? ( >=dev-ml/deriving-0.6:= )"
-DEPEND="${RDEPEND}"
-
-src_prepare() {
- epatch "${FILESDIR}/ppx.patch"
- has_version '>=dev-lang/ocaml-4.05_rc' && epatch "${FILESDIR}/ocaml405.patch"
-}
-
-src_configure() {
- printf "\n\n" >> Makefile.conf
- use ocamlopt || echo "BEST := byte" >> Makefile.conf
- use ocamlopt || echo "NATDYNLINK := NO" >> Makefile.conf
- use deriving || echo "WITH_DERIVING := NO" >> Makefile.conf
- use X || echo "WITH_GRAPHICS := NO" >> Makefile.conf
- use react || echo "WITH_REACT := NO" >> Makefile.conf
- use ppx || echo "WITH_PPX := NO" >> Makefile.conf
- use ppx || echo "WITH_PPX_DERIVING := NO" >> Makefile.conf
- use ppx || echo "WITH_PPX_DRIVER := NO" >> Makefile.conf
- echo "WITH_ASYNC := NO" >> Makefile.conf
-}
-
-src_compile() {
- emake -j1
- use doc && emake doc
-}
-
-src_install() {
- findlib_src_preinst
- emake BINDIR="${ED}/usr/bin/" install
- dodoc CHANGES README.md
- use doc && dohtml -r doc/api/html/
-}
diff --git a/dev-ml/js_of_ocaml/js_of_ocaml-3.0.0.ebuild b/dev-ml/js_of_ocaml/js_of_ocaml-3.0.0.ebuild
deleted file mode 100644
index 6b828ef47386..000000000000
--- a/dev-ml/js_of_ocaml/js_of_ocaml-3.0.0.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit findlib eutils
-
-DESCRIPTION="A compiler from OCaml bytecode to javascript"
-HOMEPAGE="http://ocsigen.org/js_of_ocaml/"
-
-if [ "${PV#9999}" != "${PV}" ] ; then
- inherit git-r3
- SRC_URI=""
- EGIT_REPO_URI="https://github.com/ocsigen/js_of_ocaml"
-else
- SRC_URI="https://github.com/ocsigen/js_of_ocaml/archive/${PV}.tar.gz -> ${P}.tar.gz"
- # Breaks dev-ml/eliom dev-ml/async_js dev-ml/ocsigen-toolkit
- #KEYWORDS="~amd64"
-fi
-
-LICENSE="LGPL-2.1-with-linking-exception"
-SLOT="0/${PV}"
-IUSE="+ocamlopt +camlp4 +lwt doc +deriving +ppx +xml test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- >=dev-lang/ocaml-3.12:=[ocamlopt?]
-
- camlp4? ( dev-ml/camlp4:= )
-
- dev-ml/cmdliner:=
- dev-ml/cppo:=
-
- lwt? ( >=dev-ml/lwt-2.4.4:= )
-
- dev-ml/ocamlbuild:=
-
- dev-ml/ocaml-migrate-parsetree:=
- dev-ml/ppx_tools_versioned:=
- dev-ml/uchar:=
-
- ppx? ( dev-ml/ppx_tools:= dev-ml/ppx_deriving:= )
-
- xml? ( >=dev-ml/tyxml-4:= dev-ml/reactiveData:= )
-"
-DEPEND="${RDEPEND}
- dev-ml/jbuilder
- dev-ml/opam
- test? ( dev-util/patdiff )
-"
-REQUIRED_USE="xml? ( ppx )"
-
-src_compile() {
- emake
- use doc && emake doc
-}
-
-oinstall() {
- opam-installer -i \
- --prefix="${ED}/usr" \
- --libdir="${D}/$(ocamlc -where)" \
- --docdir="${ED}/usr/share/doc/${PF}" \
- --mandir="${ED}/usr/share/man" \
- ${1}.install || die
-}
-
-src_install() {
- use camlp4 && oinstall js_of_ocaml-camlp4
- oinstall js_of_ocaml-compiler
- use lwt && oinstall js_of_ocaml-lwt
- oinstall js_of_ocaml-ocamlbuild
- oinstall js_of_ocaml
- use ppx && oinstall js_of_ocaml-ppx
- use ppx && oinstall js_of_ocaml-toplevel
- use xml && oinstall js_of_ocaml-tyxml
-}
diff --git a/dev-ml/js_of_ocaml/js_of_ocaml-9999.ebuild b/dev-ml/js_of_ocaml/js_of_ocaml-9999.ebuild
deleted file mode 100644
index af747867d5a6..000000000000
--- a/dev-ml/js_of_ocaml/js_of_ocaml-9999.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit findlib eutils
-
-DESCRIPTION="A compiler from OCaml bytecode to javascript"
-HOMEPAGE="http://ocsigen.org/js_of_ocaml/"
-
-if [ "${PV#9999}" != "${PV}" ] ; then
- inherit git-r3
- SRC_URI=""
- EGIT_REPO_URI="https://github.com/ocsigen/js_of_ocaml"
- KEYWORDS=""
-else
- SRC_URI="https://github.com/ocsigen/js_of_ocaml/archive/${PV}.tar.gz -> ${P}.tar.gz"
-fi
-
-LICENSE="LGPL-2.1-with-linking-exception"
-SLOT="0/${PV}"
-IUSE="+ocamlopt +camlp4 +lwt doc +deriving +ppx +xml test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
- >=dev-lang/ocaml-3.12:=[ocamlopt?]
-
- camlp4? ( dev-ml/camlp4:= )
-
- dev-ml/cmdliner:=
- dev-ml/cppo:=
-
- lwt? ( >=dev-ml/lwt-2.4.4:= )
-
- dev-ml/ocamlbuild:=
-
- dev-ml/ocaml-migrate-parsetree:=
- dev-ml/ppx_tools_versioned:=
- dev-ml/uchar:=
-
- ppx? ( dev-ml/ppx_tools:= dev-ml/ppx_deriving:= )
-
- xml? ( >=dev-ml/tyxml-4:= dev-ml/reactiveData:= )
-"
-DEPEND="${RDEPEND}
- dev-ml/jbuilder
- dev-ml/opam
- test? ( dev-util/patdiff )
-"
-REQUIRED_USE="xml? ( ppx )"
-
-src_compile() {
- emake
- use doc && emake doc
-}
-
-oinstall() {
- opam-installer -i \
- --prefix="${ED}/usr" \
- --libdir="${D}/$(ocamlc -where)" \
- --docdir="${ED}/usr/share/doc/${PF}" \
- --mandir="${ED}/usr/share/man" \
- ${1}.install || die
-}
-
-src_install() {
- use camlp4 && oinstall js_of_ocaml-camlp4
- oinstall js_of_ocaml-compiler
- use lwt && oinstall js_of_ocaml-lwt
- oinstall js_of_ocaml-ocamlbuild
- oinstall js_of_ocaml
- use ppx && oinstall js_of_ocaml-ppx
- use ppx && oinstall js_of_ocaml-toplevel
- use xml && oinstall js_of_ocaml-tyxml
-}
diff --git a/dev-ml/js_of_ocaml/metadata.xml b/dev-ml/js_of_ocaml/metadata.xml
deleted file mode 100644
index c99ea42ab35b..000000000000
--- a/dev-ml/js_of_ocaml/metadata.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <!-- maintainer-needed -->
- <use>
- <flag name="camlp4">Build with camlp4 syntax extensions.</flag>
- <flag name="deriving">Enable <pkg>dev-ml/deriving</pkg> support for improving the type safety.</flag>
- <flag name="lwt">Enable <pkg>dev-ml/lwt</pkg> support.</flag>
- <flag name="ppx">Enables the ppx syntax extension</flag>
- <flag name="react">Enable functionnal reactive programming support.</flag>
- </use>
- <upstream>
- <remote-id type="github">ocsigen/js_of_ocaml</remote-id>
- </upstream>
-</pkgmetadata>