Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2012 05:54:02 +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: r309296 - head/devel/ocaml-xstrp4
Message-ID:  <201212200554.qBK5s27K082645@svn.freebsd.org>

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

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

Modified:
  head/devel/ocaml-xstrp4/Makefile   (contents, props changed)
  head/devel/ocaml-xstrp4/distinfo   (contents, props changed)

Modified: head/devel/ocaml-xstrp4/Makefile
==============================================================================
--- head/devel/ocaml-xstrp4/Makefile	Thu Dec 20 05:53:00 2012	(r309295)
+++ head/devel/ocaml-xstrp4/Makefile	Thu Dec 20 05:54:02 2012	(r309296)
@@ -1,13 +1,8 @@
-# New ports collection makefile for:	ocaml-xstrp4
-# Date created:		2006-08-01
-# Whom:			Stanislav Sedov <ssedov@mbsd.msk.ru>
-#
-# $MBSDlabs$
+# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	xstrp4
-PORTVERSION=	1.7
+PORTVERSION=	1.8
 PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://download.camlcity.org/download/
@@ -16,36 +11,32 @@ PKGNAMEPREFIX=	ocaml-
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	An OCaml extension to expands brace expansions
 
+LICENSE=	MIT
+
+OPTIONS_DEFINE=	EXAMPLES
+
 USE_GMAKE=	yes
 USE_OCAML=	yes
 USE_OCAML_FINDLIB=yes
+USE_OCAMLFIND_PLIST=yes
+
 HAS_CONFIGURE=	yes
 MAKE_JOBS_UNSAFE=	yes
 
-EXAMPLESDIR=	${PREFIX}/share/examples/ocaml/${PORTNAME}
+EXAMPLESDIR=	${OCAML_EXAMPLESDIR}/${PORTNAME}
 
-.include <bsd.port.pre.mk>
+PORTEXAMPLES=	*
 
-post-extract:
-# For nonstandard prefixes
-.if !exists(${OCAMLFIND_DESTDIR})
-	${MKDIR} ${OCAMLFIND_DESTDIR}
-.endif
-.if !exists(${OCAMLFIND_LDCONF})
-	${TOUCH} ${OCAMLFIND_LDCONF}
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MEXAMPLES}
+PLIST_DIRSTRY+=	${OCAML_EXAMPLESDIR:S,^${PREFIX}/,,}
 .endif
 
 post-install:
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/sample.* ${EXAMPLESDIR}
-
-	@${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \
-		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
-	@${FIND} ${EXAMPLESDIR} -type f | \
-		${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
-
-	@${ECHO_CMD} "@dirrm share/examples/ocaml/${PORTNAME}" >> ${TMPPLIST}
-	@${ECHO_CMD} "@unexec rmdir %D/share/examples/ocaml 2>/dev/null ||true"\
-  		>> ${TMPPLIST}
+	(cd ${WRKSRC} && ${INSTALL_DATA} sample.* ${EXAMPLESDIR})
+.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/devel/ocaml-xstrp4/distinfo
==============================================================================
--- head/devel/ocaml-xstrp4/distinfo	Thu Dec 20 05:53:00 2012	(r309295)
+++ head/devel/ocaml-xstrp4/distinfo	Thu Dec 20 05:54:02 2012	(r309296)
@@ -1,2 +1,2 @@
-SHA256 (xstrp4-1.7.tar.gz) = 105649f9b4722a356485a2d5bce40224b0df29b6a7e821e904accfb86fbb92c9
-SIZE (xstrp4-1.7.tar.gz) = 8240
+SHA256 (xstrp4-1.8.tar.gz) = d43e87ef81b62661485597748c8eb30b67794c648e2d936869c32ed033061bc9
+SIZE (xstrp4-1.8.tar.gz) = 7513



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