Use USES=zip

- Add my LOCAL to MASTER_SITES
- Add NO_ARCH
- Simplify do-extract: and do-install:
- Take maintainership
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-08-23 19:35:29 +00:00
parent 18278c113d
commit 11c7988567
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545846
3 changed files with 34 additions and 38 deletions

View File

@ -4,29 +4,25 @@ PORTNAME= iso-schematron-xslt
PORTVERSION= 20130313
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www.schematron.com/tmp/
MASTER_SITES= http://www.schematron.com/tmp/ \
LOCAL/sunpoet
DISTFILES= iso-schematron-xslt1.zip \
iso-schematron-xslt2.zip
MAINTAINER= ports@FreeBSD.org
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= The Leading Implementation of ISO Schematron
USES= zip:infozip
USES= zip
NO_ARCH= yes
NO_BUILD= yes
do-extract:
${MKDIR} ${WRKDIR}/xslt1
${MKDIR} ${WRKDIR}/xslt2
( cd ${WRKDIR}/xslt1 && ${UNZIP_CMD} ${DISTDIR}/iso-schematron-xslt1.zip )
( cd ${WRKDIR}/xslt2 && ${UNZIP_CMD} ${DISTDIR}/iso-schematron-xslt2.zip )
INSTDIR= share/xsl/iso-schematron
PLIST_SUB+= INSTDIR="${INSTDIR}"
@${MKDIR} ${WRKSRC}/xslt1 ${WRKSRC}/xslt2
@${EXTRACT_CMD} -d ${WRKSRC}/xslt1 -q ${DISTDIR}/iso-schematron-xslt1.zip
@${EXTRACT_CMD} -d ${WRKSRC}/xslt2 -q ${DISTDIR}/iso-schematron-xslt2.zip
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt1
( ${FIND} ${WRKDIR}/xslt1 -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt1/ \; )
${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt2
( ${FIND} ${WRKDIR}/xslt2 -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/${INSTDIR}/xslt2/ \; )
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/xsl/iso-schematron
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
This is Rick Jelliffe's implementation of ISO Schematron using XSLT.
This is Rick Jelliffe's implementation of ISO Schematron using XSLT.
WWW: http://www.schematron.com/implementation.html

View File

@ -1,23 +1,23 @@
%%INSTDIR%%/xslt1/ExtractSchFromRNG.xsl
%%INSTDIR%%/xslt1/ExtractSchFromXSD.xsl
%%INSTDIR%%/xslt1/iso_abstract_expand.xsl
%%INSTDIR%%/xslt1/iso_dsdl_include.xsl
%%INSTDIR%%/xslt1/iso_schematron_message.xsl
%%INSTDIR%%/xslt1/iso_schematron_skeleton_for_xslt1.xsl
%%INSTDIR%%/xslt1/iso_svrl_for_xslt1.xsl
%%INSTDIR%%/xslt1/readme.txt
%%INSTDIR%%/xslt1/schematron-skeleton-api.htm
%%INSTDIR%%/xslt2/ExtractSchFromRNG-2.xsl
%%INSTDIR%%/xslt2/ExtractSchFromXSD-2.xsl
%%INSTDIR%%/xslt2/iso_abstract_expand.xsl
%%INSTDIR%%/xslt2/iso_dsdl_include.xsl
%%INSTDIR%%/xslt2/iso_schematron_message_xslt2.xsl
%%INSTDIR%%/xslt2/iso_schematron_skeleton_for_saxon.xsl
%%INSTDIR%%/xslt2/iso_svrl_for_xslt2.xsl
%%INSTDIR%%/xslt2/readme.txt
%%INSTDIR%%/xslt2/sch-messages-cs.xhtml
%%INSTDIR%%/xslt2/sch-messages-de.xhtml
%%INSTDIR%%/xslt2/sch-messages-en.xhtml
%%INSTDIR%%/xslt2/sch-messages-fr.xhtml
%%INSTDIR%%/xslt2/sch-messages-nl.xhtml
%%INSTDIR%%/xslt2/schematron-skeleton-api.htm
share/xsl/iso-schematron/xslt1/ExtractSchFromRNG.xsl
share/xsl/iso-schematron/xslt1/ExtractSchFromXSD.xsl
share/xsl/iso-schematron/xslt1/iso_abstract_expand.xsl
share/xsl/iso-schematron/xslt1/iso_dsdl_include.xsl
share/xsl/iso-schematron/xslt1/iso_schematron_message.xsl
share/xsl/iso-schematron/xslt1/iso_schematron_skeleton_for_xslt1.xsl
share/xsl/iso-schematron/xslt1/iso_svrl_for_xslt1.xsl
share/xsl/iso-schematron/xslt1/readme.txt
share/xsl/iso-schematron/xslt1/schematron-skeleton-api.htm
share/xsl/iso-schematron/xslt2/ExtractSchFromRNG-2.xsl
share/xsl/iso-schematron/xslt2/ExtractSchFromXSD-2.xsl
share/xsl/iso-schematron/xslt2/iso_abstract_expand.xsl
share/xsl/iso-schematron/xslt2/iso_dsdl_include.xsl
share/xsl/iso-schematron/xslt2/iso_schematron_message_xslt2.xsl
share/xsl/iso-schematron/xslt2/iso_schematron_skeleton_for_saxon.xsl
share/xsl/iso-schematron/xslt2/iso_svrl_for_xslt2.xsl
share/xsl/iso-schematron/xslt2/readme.txt
share/xsl/iso-schematron/xslt2/sch-messages-cs.xhtml
share/xsl/iso-schematron/xslt2/sch-messages-de.xhtml
share/xsl/iso-schematron/xslt2/sch-messages-en.xhtml
share/xsl/iso-schematron/xslt2/sch-messages-fr.xhtml
share/xsl/iso-schematron/xslt2/sch-messages-nl.xhtml
share/xsl/iso-schematron/xslt2/schematron-skeleton-api.htm