View | Details | Raw Unified | Return to bug 172231 | Differences between
and this patch

Collapse All | Expand All

(-)devel/ocaml-res/Makefile (-43 / +34 lines)
Lines 1-63 Link Here
1
# New ports collection makefile for:	res
1
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
2
# Date created:		2006-08-15
3
# Whom:			Stanislav Sedov <ssedov@mbsd.msk.ru>
4
#
5
# $MBSDlabs$
6
# $FreeBSD: ports/devel/ocaml-res/Makefile,v 1.11 2011/10/24 03:32:56 stas Exp $
2
# $FreeBSD: ports/devel/ocaml-res/Makefile,v 1.11 2011/10/24 03:32:56 stas Exp $
7
#
8
3
9
PORTNAME=	res
4
PORTNAME=	res
10
PORTVERSION=	3.2.0
5
PORTVERSION=	4.0.2
11
PORTREVISION=	1
12
CATEGORIES=	devel
6
CATEGORIES=	devel
13
MASTER_SITES=	http://hg.ocaml.info/release/res/archive/
7
MASTER_SITES=	http://cdn.bitbucket.org/mmottl/res/downloads/
14
PKGNAMEPREFIX=	ocaml-
8
PKGNAMEPREFIX=	ocaml-
15
DISTNAME=	release-${PORTVERSION}
16
9
17
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
18
COMMENT=	Automatically Resizing Contiguous Memory for OCaml
11
COMMENT=	Automatically Resizing Contiguous Memory for OCaml
19
12
20
USE_BZIP2=	yes
13
LICENSE=	LGPL21
21
USE_GMAKE=	yes
14
15
OPTIONS_DEFINE=	DOCS EXAMPLES
16
22
USE_OCAML=	yes
17
USE_OCAML=	yes
23
USE_OCAML_FINDLIB=yes
18
USE_OCAML_FINDLIB=yes
19
USE_OCAMLFIND_PLIST=yes
24
USE_OCAML_WASH=	yes
20
USE_OCAML_WASH=	yes
25
MAKE_JOBS_UNSAFE=	yes
26
21
27
DOCS=		README.txt
22
HAS_CONFIGURE=	yes
28
DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
23
CONFIGURE_ARGS=	--prefix ${PREFIX} --disable-docs --disable-examples
29
EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
24
MAKE_JOBS_UNSAFE=yes
30
WRKSRC=		${WRKDIR}/${PORTNAME}-release-${PORTVERSION}
25
31
26
DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
32
.include <bsd.port.pre.mk>
27
EXAMPLESDIR=	${OCAML_EXAMPLESDIR}/${PORTNAME}
33
28
34
post-extract:
29
PORTDOCS=	*
35
# For nonstandard prefixes
30
PORTEXAMPLES=	*
36
.if !exists(${OCAMLFIND_DESTDIR})
31
37
	${MKDIR} ${OCAMLFIND_DESTDIR}
32
.include <bsd.port.options.mk>
33
34
.if ${PORT_OPTIONS:MDOCS}
35
PLIST_DIRSTRY+=	${OCAML_DOCSDIR:S,^${PREFIX}/,,}
36
.endif
37
38
.if ${PORT_OPTIONS:MEXAMPLES}
39
PLIST_DIRSTRY+=	${OCAML_EXAMPLESDIR:S,^${PREFIX}/,,}
38
.endif
40
.endif
39
41
40
post-install:
42
post-install:
41
	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
43
.if ${PORT_OPTIONS:MDOCS}
42
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
43
.if !defined(NOPORTDOCS)
44
	@${MKDIR} ${DOCSDIR}
44
	@${MKDIR} ${DOCSDIR}
45
	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
45
.for i in AUTHORS.txt CHANGES.txt README.md TODO.md
46
	cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}
47
.endfor
48
.endif
49
.if ${PORT_OPTIONS:MEXAMPLES}
46
	@${MKDIR} ${EXAMPLESDIR}
50
	@${MKDIR} ${EXAMPLESDIR}
47
	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
51
	cd ${WRKSRC}/examples && ${INSTALL_DATA} *.ml ${EXAMPLESDIR}
48
	@${FIND} ${EXAMPLESDIR}/ ! -type d | \
49
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
50
	@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
51
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
52
	@${FIND} ${DOCSDIR}/ ! -type d | \
53
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
54
	@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
55
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
56
# XXX: temporary workaround for non-standard PREFIX
57
	@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
58
		>> ${TMPPLIST}
59
	@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
60
		>> ${TMPPLIST}
61
.endif
52
.endif
62
53
63
.include <bsd.port.post.mk>
54
.include <bsd.port.mk>
(-)devel/ocaml-res/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (release-3.2.0.tar.bz2) = 945c1dfa6d29ec7443dc9707df41f89a8a58274f7e2257f8d7ac5e407a971765
1
SHA256 (res-4.0.2.tar.gz) = 4f3e0a62c57ac1293ec119e94ecff2f404cd9196e71c276bd6c3855731af0d7e
2
SIZE (release-3.2.0.tar.bz2) = 35294
2
SIZE (res-4.0.2.tar.gz) = 69538
(-)devel/ocaml-res/pkg-descr (-1 / +1 lines)
Lines 9-12 Link Here
9
which use different reallocation strategies.
9
which use different reallocation strategies.
10
10
11
Author:	Markus Mottl <markus.mottl@gmail.com>
11
Author:	Markus Mottl <markus.mottl@gmail.com>
12
WWW:	http://www.ocaml.info/home/ocaml_sources.html
12
WWW:	https://bitbucket.org/mmottl/res

Return to bug 172231