ports/print/tex-xmltex/Makefile
Muhammad Moinur Rahman b72b56a1a6 print/tex-xmltex: Update dists
- The distfile has been replaced with a locally modified distfile
  including all the patches required resulting in a smaller distfile.
  The delta is a huge step forward reducing the original file from 3.6GB
  to <1 MB.
- There are still some ports which uses the original upstream distfile
  of 3.6GB but I will slowly replace them with smaller targeted dists to
  reduce the fetch target duration.
- Not bumping as the resulting pkg is same.

Sponsored by:	Nepustil
2023-10-27 18:35:03 +02:00

51 lines
1.4 KiB
Makefile

PORTNAME= xmltex
PORTVERSION= 1.9
PORTREVISION= 4
CATEGORIES= print
MASTER_SITES= LOCAL/tex
PKGNAMEPREFIX= tex-
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}-freebsd
DIST_SUBDIR= TeX
EXTRACT_ONLY=
MAINTAINER= tex@FreeBSD.org
COMMENT= Non-validating XML parser, written in TeX
USES= tar:xz tex
USE_TEX= pdftex fmtutil
NO_ARCH= yes
NO_BUILD= yes
TEX_FORMATS= xmltex
TEXHASHDIRS= ${TEXMFDISTDIR}
do-install:
${TAR} -Jxf ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
-C ${STAGEDIR}${PREFIX}/share \
--strip-components 1 --no-same-permission --no-same-owner
.if defined(MAINTAINER_MODE)
_EXTRACT_FILES= \
texmf-dist/tex/xmltex \
texmf-dist/doc/otherformats/xmltex
_WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}
_maintainer-extract:
${MAKE} clean
${MKDIR} ${_WRKSRC}
${TAR} -xf ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME_TEXMF}${EXTRACT_SUFX} \
-C ${_WRKSRC}$ \
--strip-components 1 --no-same-permission --no-same-owner \
${_EXTRACT_FILES:S,^,${DISTNAME_TEXMF}/,}
_maintainer-dist: _maintainer-extract
${TAR} --options xz:compression-level=9 -Jcvf \
${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}-freebsd.tar.xz \
-C ${WRKDIR} ${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}
scp ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}-freebsd.tar.xz \
bofh@freefall.freebsd.org://home/tex/public_distfiles/
.endif
.include <bsd.port.mk>