dev-ml/lambda-term: bump to 1.11
authorAlexis Ballier <aballier@gentoo.org>
Wed, 12 Apr 2017 16:42:26 +0000 (18:42 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 12 Apr 2017 19:20:25 +0000 (21:20 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

dev-ml/lambda-term/Manifest
dev-ml/lambda-term/files/lwtreact.patch [new file with mode: 0644]
dev-ml/lambda-term/lambda-term-1.11.ebuild [new file with mode: 0644]

index 4718b8bf09b95057ebde80ac939add2c1f37d569..454597c74a583273536c6a8ca07fa874225465a1 100644 (file)
@@ -1 +1,2 @@
 DIST lambda-term-1.10.1.tar.gz 162310 SHA256 d24e3ddc504c9a88309cf5f24f6cdc1b7950be64fcb4d5355b9c6da5197d8990 SHA512 e430b5039e5c7e4c55247c651e1b1cf61ce4b94537b84315e6f37287ecaecfc3459a7725f42d8e77219af0766ffbf5e0e55df1f5c6067c910b222b1e330b4e86 WHIRLPOOL a053dc9cca8cf67f597b1cffa01fed70530f0d5c7e0bd73f0dd29c865b16b5158ef70fab7433881cc07387359be87d0ce0c2197284f27c21187ddca8995d3452
+DIST lambda-term-1.11.tar.gz 125906 SHA256 f56c41e892e459beb12464f3ac2100726fcfb919057d6778c911ef6859a5942a SHA512 38654effe668d36766047f9e0ef74117c39a9f720322b92b9b8dcc5262c58de63fa36730c6a9c7d4921bf7bfd147753ce5d5a2da1c6df6171ee604b5bb224c27 WHIRLPOOL e1bdd5a12486937a1e3c701e65538fa7c096328afac374bb6952c631eb85ca7e56472b82ca52c9656d936dabbf73281ca40b291fed2ad6db59dab41c1b56e756
diff --git a/dev-ml/lambda-term/files/lwtreact.patch b/dev-ml/lambda-term/files/lwtreact.patch
new file mode 100644 (file)
index 0000000..b613d17
--- /dev/null
@@ -0,0 +1,13 @@
+Index: lambda-term-1.11/src/jbuild
+===================================================================
+--- lambda-term-1.11.orig/src/jbuild
++++ lambda-term-1.11/src/jbuild
+@@ -26,7 +26,7 @@ let () =
+  ((name lambda_term)
+   (public_name lambda-term)
+   (wrapped false)
+-  (libraries (lwt lwt.unix lwt.react zed))
++  (libraries (lwt lwt.unix lwt_react zed))
+   (synopsis "Cross-platform library for terminal manipulation")
+   (c_names (lTerm_term_stubs lTerm_unix_stubs lTerm_windows_stubs))
+   %s))
diff --git a/dev-ml/lambda-term/lambda-term-1.11.ebuild b/dev-ml/lambda-term/lambda-term-1.11.ebuild
new file mode 100644 (file)
index 0000000..7c744ae
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A cross-platform library for manipulating the terminal"
+HOMEPAGE="https://github.com/diml/lambda-term"
+SRC_URI="https://github.com/diml/lambda-term/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="
+       dev-lang/ocaml:=
+       dev-ml/lwt_react:=
+       >=dev-ml/lwt-2.4.0:=
+       >=dev-ml/zed-1.2:=
+       >=dev-ml/react-1.2:=
+"
+RDEPEND="${DEPEND}"
+DEPEND="${DEPEND}
+       dev-ml/jbuilder
+       dev-ml/opam
+"
+
+PATCHES=( "${FILESDIR}/lwtreact.patch" )
+
+src_install() {
+       opam-installer -i \
+               --prefix="${ED}/usr" \
+               --libdir="${D}/$(ocamlc -where)" \
+               --mandir="${ED}/usr/share/man" \
+               --docdir="${ED}/usr/share/doc/${PF}" \
+               ${PN}.install || die
+}