mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-31 05:41:08 +00:00
- Update to 108.07.00.
- Add LICENSE. - Add MAKE_JOBS_UNSAFE. - Trim header. PR: ports/172232 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
parent
57231a2b5b
commit
abbcaea61d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309292
@ -1,55 +1,46 @@
|
||||
# New ports collection makefile for: ocaml-sexplib
|
||||
# Date created: 2006-08-01
|
||||
# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
|
||||
#
|
||||
# $MBSDlabs$
|
||||
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= sexplib
|
||||
PORTVERSION= 3.0.0
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 108.07.00
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://www.janestcapital.com/ocaml/
|
||||
MASTER_SITES= https://ocaml.janestreet.com/ocaml-core/%SUBDIR%/
|
||||
MASTER_SITE_SUBDIR= ${PORTVERSION}/individual
|
||||
PKGNAMEPREFIX= ocaml-
|
||||
DISTNAME= ${PORTNAME}310-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= An OCaml library for working with S-expressions
|
||||
|
||||
BUILD_DEPENDS= ${SA_DIR}/type-conv/pa_type_conv.cmi:${PORTSDIR}/devel/ocaml-typeconv
|
||||
RUN_DEPENDS= ${SA_DIR}/type-conv/pa_type_conv.cmi:${PORTSDIR}/devel/ocaml-typeconv
|
||||
LICENSE= BSD
|
||||
|
||||
BUILD_DEPENDS= ocaml-type-conv>0:${PORTSDIR}/devel/ocaml-typeconv
|
||||
RUN_DEPENDS= ocaml-type-conv>0:${PORTSDIR}/devel/ocaml-typeconv
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_OCAML= yes
|
||||
USE_OCAML_FINDLIB=yes
|
||||
USE_OCAMLFIND_PLIST=yes
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --prefix ${PREFIX} --disable-docs
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
|
||||
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR}
|
||||
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
|
||||
PORTDOCS= *
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-extract:
|
||||
# For nonstandard prefixes
|
||||
.if !exists(${OCAMLFIND_DESTDIR})
|
||||
${MKDIR} ${OCAMLFIND_DESTDIR}
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
PLIST_DIRSTRY+= ${OCAML_DOCSDIR:S,^${PREFIX}/,,)
|
||||
.endif
|
||||
.if !exists(${OCAMLFIND_LDCONF})
|
||||
${TOUCH} ${OCAMLFIND_LDCONF}
|
||||
.endif
|
||||
@${REINPLACE_CMD} -E -e "/lib_test/d" ${WRKSRC}/Makefile
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
|
||||
.for i in CHANGES.txt README.md
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
|
||||
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
|
||||
@${FIND} ${DOCSDIR} -type f | \
|
||||
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
|
||||
@${ECHO_CMD} "@dirrm share/doc/ocaml/${PORTNAME}" >> ${TMPPLIST}
|
||||
@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null ||true"\
|
||||
>> ${TMPPLIST}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (sexplib310-3.0.0.tar.gz) = a7ee9981d271ac9d8771dc0e7dcbd7c2eeb1084a23fcf6147c339b94bf31d696
|
||||
SIZE (sexplib310-3.0.0.tar.gz) = 48720
|
||||
SHA256 (sexplib-108.07.00.tar.gz) = 9d2a6e94feb386eef85757231876e415ff9325f582c28b6eac79de552640aace
|
||||
SIZE (sexplib-108.07.00.tar.gz) = 116072
|
||||
|
@ -1,13 +1,14 @@
|
||||
This library contains functionality for parsing and pretty-printing
|
||||
S-expressions. In addition to that it contains an extremely useful
|
||||
preprocessing module for Camlp4, which can be used to automatically generate
|
||||
code from type definitions for efficiently converting OCaml-values to
|
||||
S-expressions and vice versa. In combination with the parsing and
|
||||
pretty-printing functionality this frees the user from having to write his own
|
||||
I/O-routines for data structures he defines. Possible errors during automatic
|
||||
conversions from S-expressions to OCaml-values are reported in a very
|
||||
human-readable way. Another module in the library allows you to extract and
|
||||
replace sub-expressions in S-expressions.
|
||||
preprocessing module for Camlp4, which can be used to automatically
|
||||
generate code from type definitions for efficiently converting
|
||||
OCaml-values to S-expressions and vice versa. In combination with the
|
||||
parsing and pretty-printing functionality this frees the user from
|
||||
having to write his own I/O-routines for data structures he defines.
|
||||
Possible errors during automatic conversions from S-expressions to
|
||||
OCaml-values are reported in a very human-readable way. Another module
|
||||
in the library allows you to extract and replace sub-expressions in
|
||||
S-expressions.
|
||||
|
||||
Author: Markus Mottl <mmottl@janestcapital.com>
|
||||
WWW: http://www.janestcapital.com/ocaml/index.html
|
||||
WWW: http://ocaml.janestcapital.com/
|
||||
|
Loading…
Reference in New Issue
Block a user