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

Collapse All | Expand All

(-)devel/ocaml-res/Makefile (-39 / +32 lines)
Lines 2-61 Link Here
2
# $FreeBSD: ports/devel/ocaml-res/Makefile,v 1.12 2012/10/26 14:57:50 bapt Exp $
2
# $FreeBSD: ports/devel/ocaml-res/Makefile,v 1.12 2012/10/26 14:57:50 bapt Exp $
3
3
4
PORTNAME=	res
4
PORTNAME=	res
5
PORTVERSION=	3.2.0
5
PORTVERSION=	4.0.2
6
PORTREVISION=	1
7
CATEGORIES=	devel
6
CATEGORIES=	devel
8
MASTER_SITES=	http://hg.ocaml.info/release/res/archive/
7
MASTER_SITES=	http://cdn.bitbucket.org/mmottl/res/downloads/
9
PKGNAMEPREFIX=	ocaml-
8
PKGNAMEPREFIX=	ocaml-
10
DISTNAME=	release-${PORTVERSION}
11
9
12
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
13
COMMENT=	Automatically Resizing Contiguous Memory for OCaml
11
COMMENT=	Automatically Resizing Contiguous Memory for OCaml
14
12
15
DEPRECATED=	No more public distfiles
13
LICENSE=	LGPL21
16
EXPIRATION_DATE=	2012-11-26
14
15
OPTIONS_DEFINE=	DOCS EXAMPLES
17
16
18
USE_BZIP2=	yes
19
USE_GMAKE=	yes
20
USE_OCAML=	yes
17
USE_OCAML=	yes
21
USE_OCAML_FINDLIB=yes
18
USE_OCAML_FINDLIB=yes
19
USE_OCAMLFIND_PLIST=yes
22
USE_OCAML_WASH=	yes
20
USE_OCAML_WASH=	yes
23
MAKE_JOBS_UNSAFE=	yes
24
21
25
DOCS=		README.txt
22
HAS_CONFIGURE=	yes
26
DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
23
CONFIGURE_ARGS=	--prefix ${PREFIX} --disable-docs --disable-examples
27
EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
24
MAKE_JOBS_UNSAFE=yes
28
WRKSRC=		${WRKDIR}/${PORTNAME}-release-${PORTVERSION}
25
29
26
DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
30
.include <bsd.port.pre.mk>
27
EXAMPLESDIR=	${OCAML_EXAMPLESDIR}/${PORTNAME}
31
28
32
post-extract:
29
PORTDOCS=	*
33
# For nonstandard prefixes
30
PORTEXAMPLES=	*
34
.if !exists(${OCAMLFIND_DESTDIR})
31
35
	${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}/,,}
36
.endif
40
.endif
37
41
38
post-install:
42
post-install:
39
	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
43
.if ${PORT_OPTIONS:MDOCS}
40
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
41
.if !defined(NOPORTDOCS)
42
	@${MKDIR} ${DOCSDIR}
44
	@${MKDIR} ${DOCSDIR}
43
	${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}
44
	@${MKDIR} ${EXAMPLESDIR}
50
	@${MKDIR} ${EXAMPLESDIR}
45
	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
51
	cd ${WRKSRC}/examples && ${INSTALL_DATA} *.ml ${EXAMPLESDIR}
46
	@${FIND} ${EXAMPLESDIR}/ ! -type d | \
47
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
48
	@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
49
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
50
	@${FIND} ${DOCSDIR}/ ! -type d | \
51
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
52
	@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
53
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
54
# XXX: temporary workaround for non-standard PREFIX
55
	@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
56
		>> ${TMPPLIST}
57
	@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
58
		>> ${TMPPLIST}
59
.endif
52
.endif
60
53
61
.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