mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
reimport ocaml-ulex 0.4
A lexer generator for Unicode and OCaml
This commit is contained in:
parent
e3eda8d4d1
commit
f2177fd0c8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=104565
@ -514,6 +514,7 @@
|
||||
SUBDIR += ocaml-classes
|
||||
SUBDIR += ocaml-findlib
|
||||
SUBDIR += ocaml-pcre
|
||||
SUBDIR += ocaml-ulex
|
||||
SUBDIR += ocamlweb
|
||||
SUBDIR += ode
|
||||
SUBDIR += omniORB
|
||||
|
43
devel/ocaml-ulex/Makefile
Normal file
43
devel/ocaml-ulex/Makefile
Normal file
@ -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>
|
2
devel/ocaml-ulex/distinfo
Normal file
2
devel/ocaml-ulex/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (ulex-0.4.tar.gz) = 10f32784ea8b5173f9a9ce058b452a3b
|
||||
SIZE (ulex-0.4.tar.gz) = 24862
|
1
devel/ocaml-ulex/pkg-descr
Normal file
1
devel/ocaml-ulex/pkg-descr
Normal file
@ -0,0 +1 @@
|
||||
Ulex: A OCaml lexer generator for Unicode.
|
9
devel/ocaml-ulex/pkg-install
Normal file
9
devel/ocaml-ulex/pkg-install
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user