Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2012 05:45:04 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309286 - head/devel/ocaml-cfg
Message-ID:  <201212200545.qBK5j4tL080701@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Thu Dec 20 05:45:04 2012
New Revision: 309286
URL: http://svnweb.freebsd.org/changeset/ports/309286

Log:
  - Update to 2.0.1
  - Add LICENSE.
  - Trim header.
  
  PR:		ports/172225
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Modified:
  head/devel/ocaml-cfg/Makefile   (contents, props changed)
  head/devel/ocaml-cfg/distinfo   (contents, props changed)
  head/devel/ocaml-cfg/pkg-descr   (contents, props changed)

Modified: head/devel/ocaml-cfg/Makefile
==============================================================================
--- head/devel/ocaml-cfg/Makefile	Thu Dec 20 05:43:28 2012	(r309285)
+++ head/devel/ocaml-cfg/Makefile	Thu Dec 20 05:45:04 2012	(r309286)
@@ -2,58 +2,55 @@
 # $FreeBSD$
 
 PORTNAME=	cfg
-PORTVERSION=	1.7.4
-PORTREVISION=	2
+PORTVERSION=	2.0.1
 CATEGORIES=	devel
-MASTER_SITES=	http://www.ocaml.info/ocaml_sources/
+MASTER_SITES=	http://cdn.bitbucket.org/mmottl/cfg/downloads/
 PKGNAMEPREFIX=	ocaml-
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Library for manipulation of context-free grammars
 
-DEPRECATED=	No more public distfiles
-EXPIRATION_DATE=	2012-11-26
+LICENSE=	LGPL21
+
+BUILD_DEPENDS=	menhir:${PORTSDIR}/devel/menhir
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
-USE_BZIP2=	yes
-USE_GMAKE=	yes
 USE_OCAML=	yes
 USE_OCAML_FINDLIB=yes
+USE_OCAMLFIND_PLIST=yes
 USE_OCAML_WASH=	yes
-MAKE_JOBS_UNSAFE=	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}/,@dirrm ,' >> ${TMPPLIST}
-	@${FIND} ${DOCSDIR}/ ! -type d | \
-		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-	@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
-		${SED} 's,^${PREFIX}/,@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>

Modified: head/devel/ocaml-cfg/distinfo
==============================================================================
--- head/devel/ocaml-cfg/distinfo	Thu Dec 20 05:43:28 2012	(r309285)
+++ head/devel/ocaml-cfg/distinfo	Thu Dec 20 05:45:04 2012	(r309286)
@@ -1,2 +1,2 @@
-SHA256 (cfg-1.7.4.tar.bz2) = 380119cc3f110d2b602ad63500f0478a63f4ac9064abf3ea3355094d818ae0c3
-SIZE (cfg-1.7.4.tar.bz2) = 24278
+SHA256 (cfg-2.0.1.tar.gz) = 55ef3d99914891eaeee5db542eb709c59b07720ccc7f67927e04c811f537283f
+SIZE (cfg-2.0.1.tar.gz) = 57253

Modified: head/devel/ocaml-cfg/pkg-descr
==============================================================================
--- head/devel/ocaml-cfg/pkg-descr	Thu Dec 20 05:43:28 2012	(r309285)
+++ head/devel/ocaml-cfg/pkg-descr	Thu Dec 20 05:45:04 2012	(r309286)
@@ -2,4 +2,4 @@ This OCaml-library consists of a set of 
 for manipulating context-free grammars (CFGs) in a purely functional way.
 
 Author:	Markus Mottl <markus.mottl@gmail.com>
-WWW:	http://www.ocaml.info/home/ocaml_sources.html
+WWW:	https://bitbucket.org/mmottl/cfg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212200545.qBK5j4tL080701>