diff options
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> |