View | Details | Raw Unified | Return to bug 172232
Collapse All | Expand All

(-)devel/ocaml-sexplib/Makefile (-35 / +27 lines)
Lines 1-55 Link Here
1
# New ports collection makefile for:	ocaml-sexplib
1
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
2
# Date created:		2006-08-01
3
# Whom:			Stanislav Sedov <ssedov@mbsd.msk.ru>
4
#
5
# $MBSDlabs$
6
# $FreeBSD: ports/devel/ocaml-sexplib/Makefile,v 1.8 2011/10/24 03:32:56 stas Exp $
2
# $FreeBSD: ports/devel/ocaml-sexplib/Makefile,v 1.8 2011/10/24 03:32:56 stas Exp $
7
#
8
3
9
PORTNAME=	sexplib
4
PORTNAME=	sexplib
10
PORTVERSION=	3.0.0
5
PORTVERSION=	108.07.00
11
PORTREVISION=	1
12
CATEGORIES=	devel
6
CATEGORIES=	devel
13
MASTER_SITES=	http://www.janestcapital.com/ocaml/
7
MASTER_SITES=	https://ocaml.janestreet.com/ocaml-core/%SUBDIR%/
8
MASTER_SITE_SUBDIR=	${PORTVERSION}/individual
14
PKGNAMEPREFIX=	ocaml-
9
PKGNAMEPREFIX=	ocaml-
15
DISTNAME=	${PORTNAME}310-${PORTVERSION}
16
10
17
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
18
COMMENT=	An OCaml library for working with S-expressions
12
COMMENT=	An OCaml library for working with S-expressions
19
13
20
BUILD_DEPENDS=	${SA_DIR}/type-conv/pa_type_conv.cmi:${PORTSDIR}/devel/ocaml-typeconv
14
LICENSE=	BSD
21
RUN_DEPENDS=	${SA_DIR}/type-conv/pa_type_conv.cmi:${PORTSDIR}/devel/ocaml-typeconv
15
16
BUILD_DEPENDS=	ocaml-type-conv>0:${PORTSDIR}/devel/ocaml-typeconv
17
RUN_DEPENDS=	ocaml-type-conv>0:${PORTSDIR}/devel/ocaml-typeconv
18
19
OPTIONS_DEFINE=	DOCS
22
20
23
USE_GMAKE=	yes
24
USE_OCAML=	yes
21
USE_OCAML=	yes
25
USE_OCAML_FINDLIB=yes
22
USE_OCAML_FINDLIB=yes
26
MAKE_JOBS_UNSAFE=	yes
23
USE_OCAMLFIND_PLIST=yes
27
24
28
DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
25
HAS_CONFIGURE=	yes
29
SA_DIR=		${LOCALBASE}/${OCAML_SITELIBDIR}
26
CONFIGURE_ARGS=	--prefix ${PREFIX} --disable-docs
27
MAKE_JOBS_UNSAFE=yes
30
28
31
.include <bsd.port.pre.mk>
29
DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
32
30
33
post-extract:
31
PORTDOCS=	*
34
# For nonstandard prefixes
32
35
.if !exists(${OCAMLFIND_DESTDIR})
33
.include <bsd.port.options.mk>
36
	${MKDIR} ${OCAMLFIND_DESTDIR}
34
37
.endif
35
.if ${PORT_OPTIONS:MDOCS}
38
.if !exists(${OCAMLFIND_LDCONF})
36
PLIST_DIRSTRY+=	${OCAML_DOCSDIR:S,^${PREFIX}/,,}
39
	${TOUCH} ${OCAMLFIND_LDCONF}
40
.endif
37
.endif
41
	@${REINPLACE_CMD} -E -e "/lib_test/d" ${WRKSRC}/Makefile
42
38
43
post-install:
39
post-install:
40
.if ${PORT_OPTIONS:MDOCS}
44
	@${MKDIR} ${DOCSDIR}
41
	@${MKDIR} ${DOCSDIR}
45
	${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
42
.for i in CHANGES.txt README.md
46
43
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
47
	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
44
.endfor
48
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
45
.endif
49
	@${FIND} ${DOCSDIR} -type f | \
50
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
51
	@${ECHO_CMD} "@dirrm share/doc/ocaml/${PORTNAME}" >> ${TMPPLIST}
52
	@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null ||true"\
53
		>> ${TMPPLIST}
54
46
55
.include <bsd.port.post.mk>
47
.include <bsd.port.mk>
(-)devel/ocaml-sexplib/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (sexplib310-3.0.0.tar.gz) = a7ee9981d271ac9d8771dc0e7dcbd7c2eeb1084a23fcf6147c339b94bf31d696
1
SHA256 (sexplib-108.07.00.tar.gz) = 9d2a6e94feb386eef85757231876e415ff9325f582c28b6eac79de552640aace
2
SIZE (sexplib310-3.0.0.tar.gz) = 48720
2
SIZE (sexplib-108.07.00.tar.gz) = 116072
(-)devel/ocaml-sexplib/pkg-descr (-9 / +10 lines)
Lines 1-13 Link Here
1
This library contains functionality for parsing and pretty-printing
1
This library contains functionality for parsing and pretty-printing
2
S-expressions. In addition to that it contains an extremely useful
2
S-expressions. In addition to that it contains an extremely useful
3
preprocessing module for Camlp4, which can be used to automatically generate
3
preprocessing module for Camlp4, which can be used to automatically
4
code from type definitions for efficiently converting OCaml-values to
4
generate code from type definitions for efficiently converting
5
S-expressions and vice versa. In combination with the parsing and
5
OCaml-values to S-expressions and vice versa. In combination with the
6
pretty-printing functionality this frees the user from having to write his own
6
parsing and pretty-printing functionality this frees the user from
7
I/O-routines for data structures he defines. Possible errors during automatic
7
having to write his own I/O-routines for data structures he defines.
8
conversions from S-expressions to OCaml-values are reported in a very
8
Possible errors during automatic conversions from S-expressions to
9
human-readable way. Another module in the library allows you to extract and
9
OCaml-values are reported in a very human-readable way. Another module
10
replace sub-expressions in S-expressions.
10
in the library allows you to extract and replace sub-expressions in
11
S-expressions.
11
12
12
Author:	Markus Mottl <mmottl@janestcapital.com>
13
Author:	Markus Mottl <mmottl@janestcapital.com>
13
WWW:	http://www.janestcapital.com/ocaml/index.html
14
WWW:	http://ocaml.janestcapital.com/

Return to bug 172232