upgrade to 5.06.2

This commit is contained in:
Ying-Chieh Liao 2004-03-17 09:54:11 +00:00
parent 3718781425
commit f213d271e6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=104270
3 changed files with 29 additions and 18 deletions

View File

@ -6,11 +6,10 @@
#
PORTNAME= pcre
PORTVERSION= 4.33.0
PORTREVISION= 1
PORTVERSION= 5.06.2
PORTREVISION= 0
CATEGORIES= devel
MASTER_SITES= http://www.henrik-motakef.de/freebsd-distfiles/
MASTER_SITE_SUBDIR= pcre-ocaml
MASTER_SITES= http://www.oefai.at/~markus/ocaml_sources/
PKGNAMEPREFIX= ocaml-
DISTNAME= pcre-ocaml-${PORTVERSION}
@ -19,7 +18,7 @@ COMMENT= Perl compatible regular expressions for Objective Caml
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
ocamlfind:${PORTSDIR}/devel/ocaml-findlib
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
USE_GMAKE= yes
MAKE_ENV= OCAML_LIB_INSTALL="${PREFIX}/lib/ocaml/site-lib/pcre" \
@ -27,5 +26,28 @@ MAKE_ENV= OCAML_LIB_INSTALL="${PREFIX}/lib/ocaml/site-lib/pcre" \
.if !defined(WITH_CUSTOM)
MAKE_ENV+= NO_CUSTOM=y
.endif
ALL_TARGET= all
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX
ALL_TARGET+= doc
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
.endif
post-install:
@${ECHO_CMD} "@unexec ocamlfind remove pcre 2>/dev/null || true" >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
@${FIND} ${EXAMPLESDIR} -type f | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.endif
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
MD5 (pcre-ocaml-4.33.0.tar.gz) = 0c8b9b5c3d1d7f04622ae781b4bb554d
SIZE (pcre-ocaml-4.33.0.tar.gz) = 43306
MD5 (pcre-ocaml-5.06.2.tar.gz) = 632f5a594c6349380d39840a20e94c8c
SIZE (pcre-ocaml-5.06.2.tar.gz) = 50466

View File

@ -1,11 +0,0 @@
lib/ocaml/site-lib/pcre/META
lib/ocaml/site-lib/pcre/dllpcre_stubs.so
lib/ocaml/site-lib/pcre/libpcre_stubs.a
lib/ocaml/site-lib/pcre/pcre.a
lib/ocaml/site-lib/pcre/pcre.cmxa
lib/ocaml/site-lib/pcre/pcre.cma
lib/ocaml/site-lib/pcre/pcre.cmi
lib/ocaml/site-lib/pcre/pcre.mli
@dirrm lib/ocaml/site-lib/pcre
@exec echo "Updating %D/lib/ocaml/ld.conf"; if (! grep -q "lib/ocaml/site-lib/pcre" %D/lib/ocaml/ld.conf); then echo "%D/lib/ocaml/site-lib/pcre" >> %D/lib/ocaml/ld.conf; fi;
@unexec echo "Updating %D/lib/ocaml/ld.conf"; cp %D/lib/ocaml/ld.conf %D/lib/ocaml/ld.conf.tmp; grep -v "lib/ocaml/site-lib/pcre" %D/lib/ocaml/ld.conf.tmp > %D/lib/ocaml/ld.conf; rm %D/lib/ocaml/ld.conf.tmp