- Update ocamlgraph to 1.8.2

- Convert to new options framework
This commit is contained in:
Johan van Selst 2012-06-16 20:28:03 +00:00
parent 9bcc3c664c
commit 6d226e5bb0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299428
3 changed files with 19 additions and 9 deletions

View file

@ -6,8 +6,7 @@
#
PORTNAME= ocamlgraph
PORTVERSION= 1.8.1
PORTREVISION= 1
PORTVERSION= 1.8.2
CATEGORIES= math
MASTER_SITES= http://ocamlgraph.lri.fr/download/
PKGNAMEPREFIX= ocaml-
@ -15,7 +14,9 @@ PKGNAMEPREFIX= ocaml-
MAINTAINER= johans@FreeBSD.org
COMMENT= Graph manipulation library for OCaml
OPTIONS= GUI "Include user programs: viewer and editor" on
OPTIONS_DEFINE= GUI
OPTIONS_DEFAULT=GUI
GUI_DESC= Include GUI user programs: viewer and editor
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
@ -29,9 +30,11 @@ PLIST_SUB+= OCAMLGRAPHDIR="${OCAML_LIBDIR}/${PORTNAME}"
ALL_TARGET= all
INSTALL_TARGET= install install-findlib
.include <bsd.port.pre.mk>
PORTSCOUT= skipv:1.81
.ifdef WITH_GUI
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGUI}
BUILD_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
RUN_DEPENDS+= lablgtk2:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2
PLIST_SUB+= GUI=""
@ -40,16 +43,20 @@ CONFIGURE_ARGS+= LABLGTK2=no
PLIST_SUB+= GUI="@comment "
.endif
.ifndef NOPORTDOCS
.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+= doc
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e '/VIEWER_DIR. doc/d' ${WRKSRC}/Makefile.in
.if empty(PORT_OPTIONS:MGUI)
# Override auto-detection
@${REINPLACE_CMD} -Ee 's/(LABLGTK2)=yes/\1=no/' ${WRKSRC}/configure
.endif
post-install:
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc; ${INSTALL_DATA} * ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (ocamlgraph-1.8.1.tar.gz) = ba6388ffc2c15139b0f26330ef6dd922f0ff0f364eee99a3202bf1cd93512b43
SIZE (ocamlgraph-1.8.1.tar.gz) = 252502
SHA256 (ocamlgraph-1.8.2.tar.gz) = e54ae60cd977a032854166dad56348d0fb76c6cd8e03e960af455268f0c8b5a6
SIZE (ocamlgraph-1.8.2.tar.gz) = 249253

View file

@ -9,6 +9,7 @@
%%OCAMLGRAPHDIR%%/cliquetree.mli
%%OCAMLGRAPHDIR%%/coloring.mli
%%OCAMLGRAPHDIR%%/components.mli
%%OCAMLGRAPHDIR%%/contraction.mli
%%OCAMLGRAPHDIR%%/delaunay.mli
%%OCAMLGRAPHDIR%%/dot.mli
%%OCAMLGRAPHDIR%%/dot_ast.mli
@ -26,9 +27,11 @@
%%OCAMLGRAPHDIR%%/graphviz.mli
%%OCAMLGRAPHDIR%%/imperative.mli
%%OCAMLGRAPHDIR%%/kruskal.mli
%%OCAMLGRAPHDIR%%/leaderlist.mli
%%OCAMLGRAPHDIR%%/mcs_m.mli
%%OCAMLGRAPHDIR%%/md.mli
%%OCAMLGRAPHDIR%%/minsep.mli
%%OCAMLGRAPHDIR%%/nonnegative.mli
%%OCAMLGRAPHDIR%%/oper.mli
%%OCAMLGRAPHDIR%%/pack.mli
%%OCAMLGRAPHDIR%%/path.mli