diff options
author | ijliao <ijliao@FreeBSD.org> | 2004-03-19 01:56:37 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2004-03-19 01:56:37 +0000 |
commit | b2a47133112ebb01b405b1f668341c184f1e65fc (patch) | |
tree | 4075cf14ddc98136243f484a071d11ad3c56ff6a /devel/ocaml-ulex | |
parent | 24c20ee392749687838931f59d305fd3cef08c5d (diff) | |
download | FreeBSD-ports-b2a47133112ebb01b405b1f668341c184f1e65fc.zip FreeBSD-ports-b2a47133112ebb01b405b1f668341c184f1e65fc.tar.gz |
reimport ocaml-ulex 0.4
A lexer generator for Unicode and OCaml
Diffstat (limited to 'devel/ocaml-ulex')
-rw-r--r-- | devel/ocaml-ulex/Makefile | 43 | ||||
-rw-r--r-- | devel/ocaml-ulex/distinfo | 2 | ||||
-rw-r--r-- | devel/ocaml-ulex/pkg-descr | 1 | ||||
-rw-r--r-- | devel/ocaml-ulex/pkg-install | 9 |
4 files changed, 55 insertions, 0 deletions
diff --git a/devel/ocaml-ulex/Makefile b/devel/ocaml-ulex/Makefile new file mode 100644 index 0000000..714ef04 --- /dev/null +++ b/devel/ocaml-ulex/Makefile @@ -0,0 +1,43 @@ +# ex:ts=8 +# Ports collection makefile for: ulex +# Date created: Mar 17, 2004 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= ulex +PORTVERSION= 0.4 +CATEGORIES= devel +MASTER_SITES= http://www.cduce.org/download/ +PKGNAMEPREFIX= ocaml- + +MAINTAINER= ports@FreeBSD.org +COMMENT= A lexer generator for Unicode and OCaml + +BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ + ocamlfind:${PORTSDIR}/devel/ocaml-findlib +RUN_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ + ocamlfind:${PORTSDIR}/devel/ocaml-findlib + +USE_GMAKE= yes +ALL_TARGET= all all.opt + +.if !defined(NOPORTDOCS) +ALL_TARGET+= doc +PORTDOCS= * +.endif + +PKGDEINSTALL= ${PKGINSTALL} + +post-install: + @${FIND} ${PREFIX}/lib/ocaml/site-lib/${PORTNAME} -type f | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/${PORTNAME}" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec ocamlfind remove ${PORTNAME} 2>/dev/null || true" >> ${TMPPLIST} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/*.html ${WRKSRC}/*.css ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/devel/ocaml-ulex/distinfo b/devel/ocaml-ulex/distinfo new file mode 100644 index 0000000..2fa0822 --- /dev/null +++ b/devel/ocaml-ulex/distinfo @@ -0,0 +1,2 @@ +MD5 (ulex-0.4.tar.gz) = 10f32784ea8b5173f9a9ce058b452a3b +SIZE (ulex-0.4.tar.gz) = 24862 diff --git a/devel/ocaml-ulex/pkg-descr b/devel/ocaml-ulex/pkg-descr new file mode 100644 index 0000000..7fc14a3 --- /dev/null +++ b/devel/ocaml-ulex/pkg-descr @@ -0,0 +1 @@ +Ulex: A OCaml lexer generator for Unicode. diff --git a/devel/ocaml-ulex/pkg-install b/devel/ocaml-ulex/pkg-install new file mode 100644 index 0000000..6b2520e --- /dev/null +++ b/devel/ocaml-ulex/pkg-install @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$2" = "POST-INSTALL" ]; then + echo "${PKG_PREFIX}/lib/ocaml/site-lib/ulex" >> ${PKG_PREFIX}/lib/ocaml/ld.conf +elif [ "$2" = "DEINSTALL" ]; then + mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp + grep -v ulex ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf + rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp +fi |