ports/172230: devel/ocaml-pomap: Update to version 3.0.1
KATO Tsuguru
tkato432 at yahoo.com
Mon Oct 1 18:10:08 UTC 2012
>Number: 172230
>Category: ports
>Synopsis: devel/ocaml-pomap: Update to version 3.0.1
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 01 18:10:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.4-RELEASE-p10 i386
>Organization:
>Environment:
>Description:
- Update to version 3.0.1
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/devel/ocaml-pomap/Makefile devel/ocaml-pomap/Makefile
--- /usr/ports/devel/ocaml-pomap/Makefile 2011-10-24 12:32:56.000000000 +0900
+++ devel/ocaml-pomap/Makefile 2012-09-28 18:56:35.000000000 +0900
@@ -1,61 +1,54 @@
-# New ports collection makefile for: pomap
-# Date created: 2006-08-15
-# Whom: Stanislav Sedov <ssedov at mbsd.msk.ru>
-#
-# $MBSDlabs$
+# Created by: Stanislav Sedov <ssedov at mbsd.msk.ru>
# $FreeBSD: ports/devel/ocaml-pomap/Makefile,v 1.8 2011/10/24 03:32:56 stas Exp $
-#
PORTNAME= pomap
-PORTVERSION= 2.9.8
-PORTREVISION= 1
-PORTREVISION= 1
+PORTVERSION= 3.0.1
CATEGORIES= devel
-MASTER_SITES= http://www.ocaml.info/ocaml_sources/
+MASTER_SITES= http://cdn.bitbucket.org/mmottl/pomap/downloads/
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports at FreeBSD.org
COMMENT= OCaml library to maintain a list of partially ordered elements
-USE_BZIP2= yes
-USE_GMAKE= yes
+LICENSE= LGPL21
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
USE_OCAML= yes
USE_OCAML_FINDLIB=yes
+USE_OCAMLFIND_PLIST=yes
USE_OCAML_WASH= yes
-DOCS= README
-DOCSDIR= ${PREFIX}/share/doc/ocaml/${PORTNAME}
-EXAMPLESDIR= ${PREFIX}/share/examples/ocaml/${PORTNAME}
-
-.include <bsd.port.pre.mk>
-
-post-extract:
-# For nonstandard prefixes
-.if !exists(${OCAMLFIND_DESTDIR})
- ${MKDIR} ${OCAMLFIND_DESTDIR}
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix ${PREFIX} --disable-docs --disable-examples
+MAKE_JOBS_UNSAFE=yes
+
+DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
+EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
+
+PORTDOCS= *
+PORTEXAMPLES= *
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+PLIST_DIRSTRY+= ${OCAML_DOCSDIR:S,^${PREFIX}/,,}
+.endif
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+PLIST_DIRSTRY+= ${OCAML_EXAMPLESDIR:S,^${PREFIX}/,,}
.endif
post-install:
- @${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
- ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+.for i in AUTHORS.txt CHANGES.txt README.md
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
+.endfor
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
- @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
- @${FIND} ${EXAMPLESDIR}/ ! -type d | \
- ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
- @${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
- ${SED} 's,^${PREFIX}/, at dirrm ,' >> ${TMPPLIST}
- @${FIND} ${DOCSDIR}/ ! -type d | \
- ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
- @${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
- ${SED} 's,^${PREFIX}/, at dirrm ,' >> ${TMPPLIST}
-# XXX: temporary workaround for non-standard PREFIX
- @${ECHO_CMD} "@unexec rmdir %D/share/doc/ocaml 2>/dev/null || true" \
- >> ${TMPPLIST}
- @${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null||true" \
- >> ${TMPPLIST}
+ @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/devel/ocaml-pomap/distinfo devel/ocaml-pomap/distinfo
--- /usr/ports/devel/ocaml-pomap/distinfo 2011-07-03 23:56:33.000000000 +0900
+++ devel/ocaml-pomap/distinfo 2012-09-27 15:11:22.000000000 +0900
@@ -1,2 +1,2 @@
-SHA256 (pomap-2.9.8.tar.bz2) = 8cea14b604b261cdb8a16b1a90153cbfb19c958e3466a8556ca50bfeea64b5ce
-SIZE (pomap-2.9.8.tar.bz2) = 36645
+SHA256 (pomap-3.0.1.tar.gz) = 1afbedafedb6922937cb58b3bbef057e69f2908cac899288257ba608fbf534ce
+SIZE (pomap-3.0.1.tar.gz) = 69989
diff -urN /usr/ports/devel/ocaml-pomap/pkg-descr devel/ocaml-pomap/pkg-descr
--- /usr/ports/devel/ocaml-pomap/pkg-descr 2006-08-20 15:47:52.000000000 +0900
+++ devel/ocaml-pomap/pkg-descr 2012-09-27 15:09:42.000000000 +0900
@@ -1,7 +1,7 @@
-The Pomap-library implements an ADT that maintains maps of partially ordered
-elements. Whereas a total order allows you to say whether some element is
-lower, equal or greater than another one, partial orders also allow for a
-"don-t know" case.
+The Pomap-library implements an ADT that maintains maps of partially
+ordered elements. Whereas a total order allows you to say whether some
+element is lower, equal or greater than another one, partial orders also
+allow for a "don-t know" case.
Author: Markus Mottl <markus.mottl at gmail.com>
-WWW: http://www.ocaml.info/home/ocaml_sources.html
+WWW: https://bitbucket.org/mmottl/pomap
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list