ocaml-ppx-tools-0.99.2 port
This commit is contained in:
parent
0907d0527f
commit
41e12e0668
32
devel/ocaml-ppx-tools/Makefile
Normal file
32
devel/ocaml-ppx-tools/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2015/08/30 15:47:06 avsm Exp $
|
||||
|
||||
COMMENT = tools for authors of OCaml ppx rewriters
|
||||
CATEGORIES = devel
|
||||
|
||||
V = 0.99.2
|
||||
GH_ACCOUNT = alainfrisch
|
||||
GH_PROJECT = ppx_tools
|
||||
GH_TAGNAME = ppx_tools_${V}
|
||||
DISTNAME = ${GH_PROJECT}-${GH_TAGNAME}
|
||||
PKGNAME = ocaml-ppx-tools-${V}
|
||||
|
||||
HOMEPAGE = https://github.com/${GH_ACCOUNT}/${GH_PROJECT}
|
||||
|
||||
ALL_TARGET = byte
|
||||
.include <bsd.port.arch.mk>
|
||||
.if ${PROPERTIES:Mocaml_native}
|
||||
ALL_TARGET += opt
|
||||
.if ${PROPERTIES:Mocaml_native_dynlink}
|
||||
ALL_TARGET += dyn
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
MODULES = lang/ocaml
|
||||
BUILD_DEPENDS = sysutils/findlib
|
||||
USE_GMAKE = Yes
|
||||
NO_TEST = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/ocaml-ppx-tools/distinfo
Normal file
2
devel/ocaml-ppx-tools/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (ppx_tools-ppx_tools_0.99.2.tar.gz) = mBKAIuoFdNdpomPrm3O+BiAO7EusmtuNxE3yiad8Tew=
|
||||
SIZE (ppx_tools-ppx_tools_0.99.2.tar.gz) = 15877
|
27
devel/ocaml-ppx-tools/patches/patch-Makefile
Normal file
27
devel/ocaml-ppx-tools/patches/patch-Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2015/08/30 15:47:06 avsm Exp $
|
||||
--- Makefile.orig Mon Sep 29 11:13:30 2014
|
||||
+++ Makefile Thu Aug 13 13:40:05 2015
|
||||
@@ -12,9 +12,11 @@ OCAMLC = ocamlc
|
||||
OCAMLOPT = ocamlopt
|
||||
COMPFLAGS = -w +A-4-17-44-45 -I +compiler-libs -safe-string
|
||||
|
||||
-.PHONY: all
|
||||
-all: genlifter$(EXE) dumpast$(EXE) ppx_metaquot$(EXE) rewriter$(EXE) ast_mapper_class.cmo ppx_tools.cma
|
||||
-all: ppx_tools.cmxa ppx_tools.cmxs
|
||||
+.PHONY: all byte opt dyn
|
||||
+all: byte opt dyn
|
||||
+byte: genlifter$(EXE) dumpast$(EXE) ppx_metaquot$(EXE) rewriter$(EXE) ast_mapper_class.cmo ppx_tools.cma
|
||||
+opt: ppx_tools.cmxa
|
||||
+dyn: ppx_tools.cmxs
|
||||
|
||||
genlifter$(EXE): ppx_tools.cma genlifter.cmo
|
||||
$(OCAMLC) $(COMPFLAGS) -o genlifter$(EXE) ocamlcommon.cma ppx_tools.cma genlifter.cmo
|
||||
@@ -73,7 +75,7 @@ clean:
|
||||
|
||||
INSTALL = META \
|
||||
genlifter$(EXE) dumpast$(EXE) ppx_metaquot$(EXE) rewriter$(EXE) \
|
||||
- ppx_tools.cma ppx_tools.cmxa ppx_tools$(EXT_LIB) \
|
||||
+ ppx_tools.cma -optional ppx_tools.cmxa ppx_tools$(EXT_LIB) \
|
||||
ppx_tools.cmxs \
|
||||
ast_convenience.cmi ast_convenience.cmx \
|
||||
ast_mapper_class.cmi ast_mapper_class.cmx
|
9
devel/ocaml-ppx-tools/pkg/DESCR
Normal file
9
devel/ocaml-ppx-tools/pkg/DESCR
Normal file
@ -0,0 +1,9 @@
|
||||
Tools for authors of syntactic tools in OCaml 4.02+ (such as ppx
|
||||
rewriters)
|
||||
|
||||
This package is licensed by LexiFi under the terms of the MIT
|
||||
license.
|
||||
|
||||
The tools are installed as a findlib package called 'ppx_tools'.
|
||||
Executables are thus accessible through the ocamlfind driver (e.g.:
|
||||
ocamlfind ppx_tools/dumpast).
|
2
devel/ocaml-ppx-tools/pkg/PFRAG.dynlink-native
Normal file
2
devel/ocaml-ppx-tools/pkg/PFRAG.dynlink-native
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.dynlink-native,v 1.1.1.1 2015/08/30 15:47:06 avsm Exp $
|
||||
@bin lib/ocaml/ppx_tools/ppx_tools.cmxs
|
6
devel/ocaml-ppx-tools/pkg/PFRAG.native
Normal file
6
devel/ocaml-ppx-tools/pkg/PFRAG.native
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PFRAG.native,v 1.1.1.1 2015/08/30 15:47:06 avsm Exp $
|
||||
%%dynlink%%
|
||||
lib/ocaml/ppx_tools/ast_convenience.cmx
|
||||
lib/ocaml/ppx_tools/ast_mapper_class.cmx
|
||||
lib/ocaml/ppx_tools/ppx_tools.a
|
||||
lib/ocaml/ppx_tools/ppx_tools.cmxa
|
11
devel/ocaml-ppx-tools/pkg/PLIST
Normal file
11
devel/ocaml-ppx-tools/pkg/PLIST
Normal file
@ -0,0 +1,11 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2015/08/30 15:47:06 avsm Exp $
|
||||
%%native%%
|
||||
lib/ocaml/ppx_tools/
|
||||
lib/ocaml/ppx_tools/META
|
||||
lib/ocaml/ppx_tools/ast_convenience.cmi
|
||||
lib/ocaml/ppx_tools/ast_mapper_class.cmi
|
||||
lib/ocaml/ppx_tools/dumpast
|
||||
lib/ocaml/ppx_tools/genlifter
|
||||
lib/ocaml/ppx_tools/ppx_metaquot
|
||||
lib/ocaml/ppx_tools/ppx_tools.cma
|
||||
lib/ocaml/ppx_tools/rewriter
|
Loading…
Reference in New Issue
Block a user