aboutsummaryrefslogtreecommitdiff
path: root/devel/ocaml-xstrp4
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2012-12-20 05:54:02 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2012-12-20 05:54:02 +0000
commita9583d310920a4b97ef102a2d03b07ea1961bc89 (patch)
tree8389473dcec9a4040d35ec2bd88eba849da4c6f8 /devel/ocaml-xstrp4
parent9d212c4a31a245c18a7ce9eea7c8f9683a7e4e2f (diff)
downloadports-a9583d310920a4b97ef102a2d03b07ea1961bc89.tar.gz
ports-a9583d310920a4b97ef102a2d03b07ea1961bc89.zip
Notes
Diffstat (limited to 'devel/ocaml-xstrp4')
-rw-r--r--devel/ocaml-xstrp4/Makefile45
-rw-r--r--devel/ocaml-xstrp4/distinfo4
2 files changed, 20 insertions, 29 deletions
diff --git a/devel/ocaml-xstrp4/Makefile b/devel/ocaml-xstrp4/Makefile
index 5fba3f4202ee..1114758d9b5d 100644
--- a/devel/ocaml-xstrp4/Makefile
+++ b/devel/ocaml-xstrp4/Makefile
@@ -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>
diff --git a/devel/ocaml-xstrp4/distinfo b/devel/ocaml-xstrp4/distinfo
index 0fc9f317dc18..9c951e00bb96 100644
--- a/devel/ocaml-xstrp4/distinfo
+++ b/devel/ocaml-xstrp4/distinfo
@@ -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