devel/ocaml-result: update the port to version 1.5
- Now builds itself using Dune (devel/ocaml-dune) - Drop reference to Pervasives; it is deprecated - Result is an alias to Stdlib.Result on OCaml 4.08+ Reported by: portscout (a while ago)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
||||
|
||||
PORTNAME= result
|
||||
PORTVERSION= 1.2
|
||||
PORTVERSION= 1.5
|
||||
CATEGORIES= devel
|
||||
PKGNAMEPREFIX= ocaml-
|
||||
|
||||
@@ -9,15 +9,18 @@ MAINTAINER= danfe@FreeBSD.org
|
||||
COMMENT= Compatibility result module for OCaml
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
||||
|
||||
BUILD_DEPENDS= dune:devel/ocaml-dune
|
||||
|
||||
USES= gmake
|
||||
|
||||
USE_OCAML= yes
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= janestreet
|
||||
|
||||
USE_OCAML= yes
|
||||
USE_OCAML_FINDLIB= yes
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
ALL_TARGET= default
|
||||
MAKE_ENV= LIBDIR=${OCAML_SITELIBDIR}
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1457018677
|
||||
SHA256 (janestreet-result-1.2_GH0.tar.gz) = 7cf7909f902994dc885ceae1983e4cda3665914c774f774604d076b89f76f7dd
|
||||
SIZE (janestreet-result-1.2_GH0.tar.gz) = 2100
|
||||
TIMESTAMP = 1582184927
|
||||
SHA256 (janestreet-result-1.5_GH0.tar.gz) = 1072a8b0b35bd6df939c0670add33027f981e4f69a53233cb006b442fa12af30
|
||||
SIZE (janestreet-result-1.5_GH0.tar.gz) = 2291
|
||||
|
||||
8
devel/ocaml-result/files/patch-Makefile
Normal file
8
devel/ocaml-result/files/patch-Makefile
Normal file
@@ -0,0 +1,8 @@
|
||||
--- Makefile.orig 2020-02-20 07:48:47 UTC
|
||||
+++ Makefile
|
||||
@@ -1,4 +1,5 @@
|
||||
INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),)
|
||||
+INSTALL_ARGS += $(if $(LIBDIR),--libdir $(LIBDIR),)
|
||||
|
||||
default:
|
||||
dune build @install
|
||||
@@ -1,11 +1,14 @@
|
||||
%%OCAML_SITELIBDIR%%/result/META
|
||||
%%OCAML_SITELIBDIR%%/result/dune-package
|
||||
%%OCAML_SITELIBDIR%%/result/opam
|
||||
%%OCAML_SITELIBDIR%%/result/result.a
|
||||
%%OCAML_SITELIBDIR%%/result/result.cma
|
||||
%%OCAML_SITELIBDIR%%/result/result.cmi
|
||||
%%OCAML_SITELIBDIR%%/result/result.cmo
|
||||
%%OCAML_SITELIBDIR%%/result/result.cmt
|
||||
%%OCAML_SITELIBDIR%%/result/result.cmx
|
||||
%%OCAML_SITELIBDIR%%/result/result.cmxa
|
||||
%%OCAML_SITELIBDIR%%/result/result.cmxs
|
||||
%%OCAML_SITELIBDIR%%/result/result.install
|
||||
%%OCAML_SITELIBDIR%%/result/result.ml
|
||||
%%OCAML_SITELIBDIR%%/result/result.o
|
||||
%%PORTDOCS%%share/doc/ocaml/result/CHANGES.md
|
||||
%%PORTDOCS%%share/doc/ocaml/result/LICENSE.md
|
||||
%%PORTDOCS%%share/doc/ocaml/result/README.md
|
||||
|
||||
Reference in New Issue
Block a user