diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-03-23 23:39:20 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-03-23 23:39:20 +0000 |
commit | 8ddc28fb851f1225afc70abacfe830d0970c4aff (patch) | |
tree | 6b476f073473bc6abc99b49a7378786b75c90e63 /www/ocaml-net/Makefile | |
parent | 87a230e894af415c41e3771671d7fe05720d1a1f (diff) | |
download | ports-8ddc28fb851f1225afc70abacfe830d0970c4aff.tar.gz ports-8ddc28fb851f1225afc70abacfe830d0970c4aff.zip |
Notes
Diffstat (limited to 'www/ocaml-net/Makefile')
-rw-r--r-- | www/ocaml-net/Makefile | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/www/ocaml-net/Makefile b/www/ocaml-net/Makefile index 0abdbd44bdb7..effa43a89146 100644 --- a/www/ocaml-net/Makefile +++ b/www/ocaml-net/Makefile @@ -6,8 +6,7 @@ # PORTNAME= net -PORTVERSION= 0.95 -PORTREVISION= 1 +PORTVERSION= 0.97 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ocamlnet @@ -21,7 +20,7 @@ BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \ ocamlfind:${PORTSDIR}/devel/ocaml-findlib \ ${LOCALBASE}/lib/ocaml/site-lib/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre -WRKSRC= ${WRKDIR}/${DISTNAME}/src +WRKSRC= ${WRKDIR}/${DISTNAME}/src USE_GMAKE= yes @@ -29,4 +28,32 @@ HAS_CONFIGURE= yes ALL_TARGET= all opt +.if !defined(NOPORTDOCS) +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} +EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} + +PORTDOCS= * +.endif + +post-install: + @${FIND} ${PREFIX}/lib/ocaml/site-lib/cgi -type f | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/cgi" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec ocamlfind remove cgi 2>/dev/null || true" >> ${TMPPLIST} + @${FIND} ${PREFIX}/lib/ocaml/site-lib/netstring -type f | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/netstring" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec ocamlfind remove netstring 2>/dev/null || true" >> ${TMPPLIST} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${CP} -R ${WRKSRC}/../doc/ ${DOCSDIR} + @${MKDIR} ${EXAMPLESDIR} + ${CP} -R ${WRKSRC}/../examples/ ${EXAMPLESDIR} + @${CHMOD} -R +r ${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> |