PORTNAME=	tcl-ooxml
DISTVERSIONPREFIX=	version-
DISTVERSION=	1.13.2
CATEGORIES=	devel textproc tcl
GH_DISTNAME=xx

MAINTAINER=	you@example.org
COMMENT=	Tcl extension for reading/writing  ooxml file formats
WWW=		https://github.com/aschoepe/ooxml

LICENSE=	TCL
LICENSE_NAME=	Tcl/Tk License
LICENSE_FILE=	${WRKSRC}/license.terms
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

RUN_DEPENDS=	tDOM>=0.9.6:www/tdom

USES=		tcl:86+,tea

USE_GITHUB=	yes
GH_ACCOUNT=	aschoepe
GH_PROJECT=	ooxml
# TODO: set to the real tag or commit hash (e.g. v2.5.1)
GH_TAGNAME=	version-${DISTVERSION}

PLIST_SUB=      TCL_PKG_LIB_PREFIX=${TCL_PKG_LIB_PREFIX}
PLIST_SUB+=	PORTVERSION=${PORTVERSION}

GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--with-tcl=${TCL_LIBDIR} --with-tclinclude=${TCL_INCLUDEDIR}

# The release tarball ships a pre-generated configure script and a
# pre-built man page, so neither autoconf nor pandoc is needed.
# Upstream installs the man page as json.n, which collides with the
# tcllib json page; install it under the name upstream's meson build
# uses.

.include <bsd.port.mk>
