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

Collapse All | Expand All

(-)devel/ocaml-pomap/Makefile (-41 / +34 lines)
Lines 1-61 Link Here
1
# New ports collection makefile for:	pomap
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-pomap/Makefile,v 1.8 2011/10/24 03:32:56 stas Exp $
2
# $FreeBSD: ports/devel/ocaml-pomap/Makefile,v 1.8 2011/10/24 03:32:56 stas Exp $
7
#
8
3
9
PORTNAME=	pomap
4
PORTNAME=	pomap
10
PORTVERSION=	2.9.8
5
PORTVERSION=	3.0.1
11
PORTREVISION=	1
12
PORTREVISION=	1
13
CATEGORIES=	devel
6
CATEGORIES=	devel
14
MASTER_SITES=	http://www.ocaml.info/ocaml_sources/
7
MASTER_SITES=	http://cdn.bitbucket.org/mmottl/pomap/downloads/
15
PKGNAMEPREFIX=	ocaml-
8
PKGNAMEPREFIX=	ocaml-
16
9
17
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
18
COMMENT=	OCaml library to maintain a list of partially ordered elements
11
COMMENT=	OCaml library to maintain a list of partially ordered elements
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
21
26
DOCS=		README
22
HAS_CONFIGURE=	yes
27
DOCSDIR=	${PREFIX}/share/doc/ocaml/${PORTNAME}
23
CONFIGURE_ARGS=	--prefix ${PREFIX} --disable-docs --disable-examples
28
EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
24
MAKE_JOBS_UNSAFE=yes
29
25
30
.include <bsd.port.pre.mk>
26
DOCSDIR=	${OCAML_DOCSDIR}/${PORTNAME}
31
27
EXAMPLESDIR=	${OCAML_EXAMPLESDIR}/${PORTNAME}
32
post-extract:
28
33
# For nonstandard prefixes
29
PORTDOCS=	*
34
.if !exists(${OCAMLFIND_DESTDIR})
30
PORTEXAMPLES=	*
35
	${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}/,,}
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
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 && ${COPYTREE_SHARE} . ${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-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