1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
This commit is contained in:
Vanilla I. Shu 2014-07-11 13:24:16 +00:00
parent aa0aa3d929
commit 41930dfa21
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361532
2 changed files with 36 additions and 24 deletions

View File

@ -6,42 +6,29 @@ PORTVERSION= 0.0.2
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://ocaml-sem.sourceforge.net/files/ \
SF/ocaml-${PORTNAME}/${PORTNAME}/${PORTVERSION}
SF/ocaml-${PORTNAME}/${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= POSIX semaphores for OCaml
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml \
ocamlfind:${PORTSDIR}/devel/ocaml-findlib
USES= gmake tar:bzip2
USE_OCAML= yes
USE_OCAML_LDCONFIG= yes
USE_OCAML_FINDLIB= yes
MAKE_ENV= OCAML_LIB_INSTALL="${PREFIX}/lib/ocaml/site-lib/sem" \
INCDIRS="${LOCALBASE}/include" LIBDIRS="${LOCALBASE}/lib"
MAKE_JOBS_UNSAFE= yes
ALL_TARGET= all
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
.if !defined(WITH_CUSTOM)
MAKE_ENV+= NO_CUSTOM=y
.endif
ALL_TARGET= all
PORTDOCS= html README
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
USES= gmake tar:bzip2
PKGDEINSTALL= ${PKGINSTALL}
NO_STAGE= yes
post-install:
@${FIND} ${PREFIX}/lib/ocaml/site-lib/sem -type f | \
${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm lib/ocaml/site-lib/sem" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ocamlfind remove sem 2>/dev/null || true" >> ${TMPPLIST}
.ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
${CP} ${WRKSRC}/README ${DOCSDIR}
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} -R ${WRKSRC}/doc/ ${STAGEDIR}${DOCSDIR}
${CP} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

25
devel/ocaml-sem/pkg-plist Normal file
View File

@ -0,0 +1,25 @@
%%OCAML_SITELIBDIR%%/sem/META
%%OCAML_SITELIBDIR%%/sem/dllsem_stubs.so
%%OCAML_SITELIBDIR%%/sem/libsem_stubs.a
%%OCAML_SITELIBDIR%%/sem/sem.a
%%OCAML_SITELIBDIR%%/sem/sem.cma
%%OCAML_SITELIBDIR%%/sem/sem.cmi
%%OCAML_SITELIBDIR%%/sem/sem.cmxa
%%OCAML_SITELIBDIR%%/sem/sem.mli
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/html/Sem.html
%%PORTDOCS%%%%DOCSDIR%%/html/index.html
%%PORTDOCS%%%%DOCSDIR%%/html/index_attributes.html
%%PORTDOCS%%%%DOCSDIR%%/html/index_class_types.html
%%PORTDOCS%%%%DOCSDIR%%/html/index_classes.html
%%PORTDOCS%%%%DOCSDIR%%/html/index_exceptions.html
%%PORTDOCS%%%%DOCSDIR%%/html/index_methods.html
%%PORTDOCS%%%%DOCSDIR%%/html/index_module_types.html
%%PORTDOCS%%%%DOCSDIR%%/html/index_modules.html
%%PORTDOCS%%%%DOCSDIR%%/html/index_types.html
%%PORTDOCS%%%%DOCSDIR%%/html/index_values.html
%%PORTDOCS%%%%DOCSDIR%%/html/style.css
%%PORTDOCS%%%%DOCSDIR%%/html/type_Sem.html
@dirrmtry %%OCAML_SITELIBDIR%%/sem
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
%%PORTDOCS%%@dirrm %%DOCSDIR%%