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

Collapse All | Expand All

(-)devel/ocaml-pomap/Makefile (-37 / +32 lines)
Lines 2-59 Link Here
2
# $FreeBSD: ports/devel/ocaml-pomap/Makefile,v 1.9 2012/10/26 14:57:50 bapt Exp $
2
# $FreeBSD: ports/devel/ocaml-pomap/Makefile,v 1.9 2012/10/26 14:57:50 bapt Exp $
3
3
4
PORTNAME=	pomap
4
PORTNAME=	pomap
5
PORTVERSION=	2.9.8
5
PORTVERSION=	3.0.1
6
PORTREVISION=	1
7
PORTREVISION=	1
8
CATEGORIES=	devel
6
CATEGORIES=	devel
9
MASTER_SITES=	http://www.ocaml.info/ocaml_sources/
7
MASTER_SITES=	http://cdn.bitbucket.org/mmottl/pomap/downloads/
10
PKGNAMEPREFIX=	ocaml-
8
PKGNAMEPREFIX=	ocaml-
11
9
12
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
13
COMMENT=	OCaml library to maintain a list of partially ordered elements
11
COMMENT=	OCaml library to maintain a list of partially ordered elements
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
21
24
DOCS=		README
22
HAS_CONFIGURE=	yes
25
DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
23
CONFIGURE_ARGS=	--prefix ${PREFIX} --disable-docs --disable-examples
26
EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
24
MAKE_JOBS_UNSAFE=yes
27
25
28
.include <bsd.port.pre.mk>
26
DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
29
27
EXAMPLESDIR=	${OCAML_EXAMPLESDIR}/${PORTNAME}
30
post-extract:
28
31
# For nonstandard prefixes
29
PORTDOCS=	*
32
.if !exists(${OCAMLFIND_DESTDIR})
30
PORTEXAMPLES=	*
33
	${MKDIR} ${OCAMLFIND_DESTDIR}
31
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}/,,}
34
.endif
40
.endif
35
41
36
post-install:
42
post-install:
37
	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
43
.if ${PORT_OPTIONS:MDOCS}
38
		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
39
.if !defined(NOPORTDOCS)
40
	@${MKDIR} ${DOCSDIR}
44
	@${MKDIR} ${DOCSDIR}
41
	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
45
.for i in AUTHORS.txt CHANGES.txt README.md
46
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
47
.endfor
48
.endif
49
.if ${PORT_OPTIONS:MEXAMPLES}
42
	@${MKDIR} ${EXAMPLESDIR}
50
	@${MKDIR} ${EXAMPLESDIR}
43
	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
51
	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
44
	@${FIND} ${EXAMPLESDIR}/ ! -type d | \
45
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
46
	@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
47
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
48
	@${FIND} ${DOCSDIR}/ ! -type d | \
49
		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
50
	@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
51
		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
52
# XXX: temporary workaround for non-standard PREFIX
53
	@${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
54
		>> ${TMPPLIST}
55
	@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
56
		>> ${TMPPLIST}
57
.endif
52
.endif
58
53
59
.include <bsd.port.post.mk>
54
.include <bsd.port.mk>
(-)devel/ocaml-pomap/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (pomap-2.9.8.tar.bz2) = 8cea14b604b261cdb8a16b1a90153cbfb19c958e3466a8556ca50bfeea64b5ce
1
SHA256 (pomap-3.0.1.tar.gz) = 1afbedafedb6922937cb58b3bbef057e69f2908cac899288257ba608fbf534ce
2
SIZE (pomap-2.9.8.tar.bz2) = 36645
2
SIZE (pomap-3.0.1.tar.gz) = 69989
(-)devel/ocaml-pomap/pkg-descr (-5 / +5 lines)
Lines 1-7 Link Here
1
The Pomap-library implements an ADT that maintains maps of partially ordered
1
The Pomap-library implements an ADT that maintains maps of partially
2
elements. Whereas a total order allows you to say whether some element is
2
ordered elements. Whereas a total order allows you to say whether some
3
lower, equal or greater than another one, partial orders also allow for a
3
element is lower, equal or greater than another one, partial orders also
4
"don-t know" case.
4
allow for a "don-t know" case.
5
5
6
Author:	Markus Mottl <markus.mottl@gmail.com>
6
Author:	Markus Mottl <markus.mottl@gmail.com>
7
WWW:	http://www.ocaml.info/home/ocaml_sources.html
7
WWW:	https://bitbucket.org/mmottl/pomap

Return to bug 172230