mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- stagify the port
- fix LIB_DEPENDS - add LICENSE and LICENSE_FILE Submitted by: rodrigo Approved by: bapt (mentor)
This commit is contained in:
parent
faf4706a4b
commit
a99e7281f5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360584
@ -9,15 +9,17 @@ MASTER_SITES= LOCAL/bf SF/tclxml/TclXML/${PORTVERSION}
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= API for parsing XML documents using Tcl
|
||||
|
||||
LIB_DEPENDS= xslt:${PORTSDIR}/textproc/libxslt
|
||||
LICENSE= BSD2CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
LIB_DEPENDS= libxslt.so:${PORTSDIR}/textproc/libxslt
|
||||
RUN_DEPENDS?= dtplite:${PORTSDIR}/devel/tcllib
|
||||
|
||||
PORTDOCS= README.xml html.xsl man.macros nroff.xsl tcldoc-1.0.dtd \
|
||||
tcldom.html tcldom.xml tclxml.css tclxml.html tclxml.xml \
|
||||
tclxslt.html tclxslt.xml transform.tcl txt.xsl
|
||||
|
||||
USES= tcl
|
||||
USE_XZ= yes
|
||||
USES= tcl tar:xz
|
||||
XML_CONFIG?= ${LOCALBASE}/bin/xml2-config
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG?= ${PREFIX}/lib/Tclxml${PORTVERSION}
|
||||
@ -25,22 +27,17 @@ CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \
|
||||
XML_CONFIG="${XML_CONFIG}"
|
||||
PLIST_SUB= VER=${PORTVERSION}
|
||||
|
||||
NO_STAGE= yes
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
MAKE_ENV+= TCLLIBPATH=${STAGEDIR}/usr/local/lib
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/^TCLSH_ENV[[:blank:]]*=/,/[^\]$$/d' \
|
||||
${WRKSRC}/Makefile.in
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
post-install:
|
||||
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} doc
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
||||
.endif
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
@cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
check test: install
|
||||
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} test
|
||||
|
Loading…
Reference in New Issue
Block a user