mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
Stagify.
This commit is contained in:
parent
aa0aa3d929
commit
41930dfa21
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361532
@ -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
25
devel/ocaml-sem/pkg-plist
Normal 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%%
|
Loading…
Reference in New Issue
Block a user