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

(-)devel/ocaml-xstrp4/Makefile (-28 / +18 lines)
Lines 1-14 Link Here
1
# New ports collection makefile for:	ocaml-xstrp4
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-xstrp4/Makefile,v 1.8 2011/10/24 03:32:57 stas Exp $
2
# $FreeBSD: ports/devel/ocaml-xstrp4/Makefile,v 1.8 2011/10/24 03:32:57 stas Exp $
7
#
8
3
9
PORTNAME=	xstrp4
4
PORTNAME=	xstrp4
10
PORTVERSION=	1.7
5
PORTVERSION=	1.8
11
PORTREVISION=	1
12
CATEGORIES=	devel
6
CATEGORIES=	devel
13
MASTER_SITES=	http://download.camlcity.org/download/
7
MASTER_SITES=	http://download.camlcity.org/download/
14
PKGNAMEPREFIX=	ocaml-
8
PKGNAMEPREFIX=	ocaml-
Lines 16-51 Link Here
16
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	An OCaml extension to expands brace expansions
11
COMMENT=	An OCaml extension to expands brace expansions
18
12
13
LICENSE=	MIT
14
15
OPTIONS_DEFINE=	EXAMPLES
16
19
USE_GMAKE=	yes
17
USE_GMAKE=	yes
20
USE_OCAML=	yes
18
USE_OCAML=	yes
21
USE_OCAML_FINDLIB=yes
19
USE_OCAML_FINDLIB=yes
20
USE_OCAMLFIND_PLIST=yes
21
22
HAS_CONFIGURE=	yes
22
HAS_CONFIGURE=	yes
23
MAKE_JOBS_UNSAFE=	yes
23
MAKE_JOBS_UNSAFE=	yes
24
24
25
EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
25
EXAMPLESDIR=	${OCAML_EXAMPLESDIR}/${PORTNAME}
26
26
27
.include <bsd.port.pre.mk>
27
PORTEXAMPLES=	*
28
28
29
post-extract:
29
.include <bsd.port.options.mk>
30
# For nonstandard prefixes
30
31
.if !exists(${OCAMLFIND_DESTDIR})
31
.if ${PORT_OPTIONS:MEXAMPLES}
32
	${MKDIR} ${OCAMLFIND_DESTDIR}
32
PLIST_DIRSTRY+=	${OCAML_EXAMPLESDIR:S,^${PREFIX}/,,}
33
.endif
34
.if !exists(${OCAMLFIND_LDCONF})
35
	${TOUCH} ${OCAMLFIND_LDCONF}
36
.endif
33
.endif
37
34
38
post-install:
35
post-install:
36
.if ${PORT_OPTIONS:MEXAMPLES}
39
	@${MKDIR} ${EXAMPLESDIR}
37
	@${MKDIR} ${EXAMPLESDIR}
40
	${INSTALL_DATA} ${WRKSRC}/sample.* ${EXAMPLESDIR}
38
	(cd ${WRKSRC} && ${INSTALL_DATA} sample.* ${EXAMPLESDIR})
41
39
.endif
42
	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
43
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
44
	@${FIND} ${EXAMPLESDIR} -type f | \
45
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
46
47
	@${ECHO_CMD} "@dirrm share/examples/ocaml/${PORTNAME}" >> ${TMPPLIST}
48
	@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null ||true"\
49
  		>> ${TMPPLIST}
50
40
51
.include <bsd.port.post.mk>
41
.include <bsd.port.mk>
(-)devel/ocaml-xstrp4/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (xstrp4-1.7.tar.gz) = 105649f9b4722a356485a2d5bce40224b0df29b6a7e821e904accfb86fbb92c9
1
SHA256 (xstrp4-1.8.tar.gz) = d43e87ef81b62661485597748c8eb30b67794c648e2d936869c32ed033061bc9
2
SIZE (xstrp4-1.7.tar.gz) = 8240
2
SIZE (xstrp4-1.8.tar.gz) = 7513

Return to bug 172236