Skip to content

Commit

Permalink
print/tex-xmltex: Update dists
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
5u623l20 committed Oct 27, 2023
1 parent 3e4ef4b commit b72b56a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 13 deletions.
38 changes: 28 additions & 10 deletions print/tex-xmltex/Makefile
Expand Up @@ -2,9 +2,9 @@ PORTNAME= xmltex
PORTVERSION= 1.9
PORTREVISION= 4
CATEGORIES= print
MASTER_SITES= TEX_CTAN/systems/texlive/${TEXLIVE_YEAR}/
MASTER_SITES= LOCAL/tex
PKGNAMEPREFIX= tex-
DISTNAME= texlive-${TEXLIVE_VERSION}-texmf
DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}-freebsd
DIST_SUBDIR= TeX
EXTRACT_ONLY=

Expand All @@ -14,20 +14,38 @@ COMMENT= Non-validating XML parser, written in TeX
USES= tar:xz tex
USE_TEX= pdftex fmtutil

EXTRACT_AFTER_ARGS=| ${TAR} -xf - -C ${STAGEDIR}${PREFIX}/share \
--strip-components 1 --no-same-permission --no-same-owner \
${EXTRACT_FILES:S,^,${DISTNAME}/,}
EXTRACT_FILES= \
texmf-dist/tex/xmltex \
texmf-dist/doc/otherformats/xmltex
NO_ARCH= yes
NO_BUILD= yes

TEX_FORMATS= xmltex
TEXHASHDIRS= ${TEXMFDISTDIR}

do-install:
${CAT} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
${EXTRACT_AFTER_ARGS}
${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>
6 changes: 3 additions & 3 deletions print/tex-xmltex/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1680903623
SHA256 (TeX/texlive-20230313-texmf.tar.xz) = 4c4dc77a025acaad90fb6140db2802cdb7ca7a9a2332b5e3d66aa77c43a81253
SIZE (TeX/texlive-20230313-texmf.tar.xz) = 3866405744
TIMESTAMP = 1698416956
SHA256 (TeX/tex-xmltex-20230313-freebsd.tar.xz) = fb8e6ce06d88b18743a3e22617454caf5a23559ea4aff2843adde0311a955b4f
SIZE (TeX/tex-xmltex-20230313-freebsd.tar.xz) = 75824

0 comments on commit b72b56a

Please sign in to comment.