1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/math/ocaml-ocamlgraph/Makefile
Benjamin Jacobs 8054d1d0da math/ocaml-ocamlgraph: update to 2.1.0
Use ocaml:dune.
Add LICENSE and LICENSE_FILE.
Update WWW.
Use GITHUB.
Switch to DISTVERSION.
Submitter takes maintainership.

Changelog: https://github.com/backtracking/ocamlgraph/blob/master/CHANGES.md

PR:		279335
2024-08-11 07:40:59 +02:00

40 lines
998 B
Makefile

PORTNAME= ocamlgraph
DISTVERSION= 2.1.0
CATEGORIES= math
PKGNAMEPREFIX= ocaml-
MAINTAINER= freebsd@dev.thsi.be
COMMENT= Graph manipulation library for OCaml
WWW= https://github.com/backtracking/ocamlgraph
LICENSE= LGPL21 # with a special exception to clause 6
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= ocaml:dune
USE_GITHUB= yes
GH_ACCOUNT= backtracking
USE_OCAML= yes
DUNE_INSTALL_TARGETS= ocamlgraph
ALL_TARGET= ocamlgraph.install
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} \
-e "s/(name ${PORTNAME})/&\n (version ${PORTVERSION})/" \
${WRKSRC}/dune-project
@${REINPLACE_CMD} -e 's/ stdlib-shims//' ${WRKSRC}/src/dune
post-install:
@${STRIP_CMD} \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/graph.cmxs
# USE_OCAML_LDCONFIG cleanup
@${ECHO_CMD} @postexec ${SED} -i "''" -e \
"'/^${PREFIX:S#/#\/#g}\/${OCAML_SITELIBDIR:S#/#\/#g}\/ocamlgraph$$/d'" \
%D/${OCAML_LDCONF} >> ${TMPPLIST}
.include <bsd.port.mk>