mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
textproc/ocaml-tyxml: Upgrade 2.0.1 -> 2.2.0 and support stage
The implements the referenced PR and then stage support was added. The latter largely came from the pkgsrc version of this port which has the same maintainer. The modified LGPL license (with an OpenSSL exception) was annotated as well. PR: ports/176065 Submitted by: maintainer (Jaap Boender) Stage support: Taken from pkgsrc
This commit is contained in:
parent
b306894ebc
commit
ad7d492f2b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349310
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= tyxml
|
||||
PORTVERSION= 2.0.1
|
||||
PORTVERSION= 2.2.0
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= http://ocsigen.org/download/
|
||||
PKGNAMEPREFIX= ocaml-
|
||||
@ -10,28 +10,21 @@ PKGNAMEPREFIX= ocaml-
|
||||
MAINTAINER= jaapb@kerguelen.org
|
||||
COMMENT= OCaml XML typing library
|
||||
|
||||
USE_GMAKE= yes
|
||||
LICENSE= LGPL21_SSLEX
|
||||
LICENSE_NAME= Lesser GPL 2.1 with a special OpenSSL exception clause
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
||||
|
||||
BUILD_DEPENDS= ${SA_DIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net
|
||||
RUN_DEPENDS= ${SA_DIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net
|
||||
|
||||
USES= gmake
|
||||
USE_OCAML= yes
|
||||
USE_OCAML_FINDLIB= yes
|
||||
USE_OCAML_LDCONFIG= yes
|
||||
USE_OCAMLFIND_PLIST= yes
|
||||
|
||||
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR}
|
||||
MAKE_ENV+= INSTALLDIR="${STAGEDIR}${SA_DIR}"
|
||||
|
||||
BUILD_DEPENDS+= ${SA_DIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net
|
||||
RUN_DEPENDS+= ${SA_DIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-extract:
|
||||
# For nonstandard prefixes
|
||||
.if !exists(${OCAMLFIND_DESTDIR})
|
||||
${MKDIR} ${OCAMLFIND_DESTDIR}
|
||||
.endif
|
||||
.if !exists(${OCAMLFIND_LDCONF})
|
||||
${TOUCH} ${OCAMLFIND_LDCONF}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (tyxml-2.0.1.tar.gz) = ad6bc8751d87f414d5c12962e8b94f064e3ccfb5af18367a031eabf540ceffb4
|
||||
SIZE (tyxml-2.0.1.tar.gz) = 104721
|
||||
SHA256 (tyxml-2.2.0.tar.gz) = 8eab54f5fd7e9f5df3ac894123bd5abb124d741411a0ad5333e5058e44325f84
|
||||
SIZE (tyxml-2.2.0.tar.gz) = 105748
|
||||
|
28
textproc/ocaml-tyxml/files/patch-Makefile
Normal file
28
textproc/ocaml-tyxml/files/patch-Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
$NetBSD: patch-Makefile,v 1.2 2013/06/11 14:52:40 jaapb Exp $
|
||||
|
||||
--- Makefile.orig 2012-12-07 15:15:22.000000000 +0000
|
||||
+++ Makefile
|
||||
@@ -52,19 +52,20 @@ files/META.tyxml: files/META.in Makefile
|
||||
$< > $@
|
||||
|
||||
install:
|
||||
+ mkdir -p ${INSTALLDIR}
|
||||
$(OCAMLFIND) install ${PACKAGENAME} \
|
||||
- -patch-version ${VERSION} \
|
||||
+ -patch-version ${VERSION} -destdir ${INSTALLDIR} \
|
||||
files/META ${INTF} ${IMPL} ${NATIMPL} \
|
||||
${MLI_TO_INSTALL}
|
||||
|
||||
install-byte:
|
||||
$(OCAMLFIND) install ${PACKAGENAME} \
|
||||
- -patch-version ${VERSION} \
|
||||
+ -patch-version ${VERSION} -destdir ${INSTALLDIR} \
|
||||
files/META ${INTF} ${IMPL} ${MLI_TO_INSTALL}
|
||||
|
||||
install-opt:
|
||||
$(OCAMLFIND) install ${PACKAGENAME} \
|
||||
- -patch-version ${VERSION} \
|
||||
+ -patch-version ${VERSION} -destdir ${INSTALLDIR} \
|
||||
files/META ${INTF} ${NATIMPL} ${MLI_TO_INSTALL}
|
||||
|
||||
uninstall:
|
@ -1,11 +0,0 @@
|
||||
--- Makefile.config.orig 2011-12-14 13:19:51.645986499 +0100
|
||||
+++ Makefile.config 2011-12-14 13:19:57.053913205 +0100
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
## Build options
|
||||
|
||||
-OCAMLDUCE :=YES
|
||||
+#OCAMLDUCE :=YES
|
||||
NATDYNLINK :=YES
|
||||
|
||||
# DBG := -g
|
13
textproc/ocaml-tyxml/files/patch-lib_Makefile
Normal file
13
textproc/ocaml-tyxml/files/patch-lib_Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
$NetBSD: patch-lib_Makefile,v 1.1 2013/06/11 14:52:40 jaapb Exp $
|
||||
|
||||
--- lib/Makefile.orig 2012-12-07 15:15:22.000000000 +0000
|
||||
+++ lib/Makefile
|
||||
@@ -13,7 +13,7 @@ DUCE_INTF := xml_sigs_duce.mli xhtml_ty
|
||||
|
||||
DUCE_FILES := xml_print_duce.ml xhtml_duce.ml
|
||||
|
||||
-LIBS := -package netstring
|
||||
+LIBS := -package netstring,netstring-pcre
|
||||
|
||||
# SYNTAX := -ppopt ../syntax/pa_include.cmo -package camlp4 -syntax camlp4o
|
||||
|
Loading…
Reference in New Issue
Block a user