Skip to content

Commit

Permalink
print/tex-dvipsk: 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 3 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 remains same.

Sponsored by:	Nepustil
  • Loading branch information
5u623l20 committed Oct 27, 2023
1 parent b72b56a commit bd619b7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 18 deletions.
48 changes: 33 additions & 15 deletions print/tex-dvipsk/Makefile
@@ -1,11 +1,12 @@
PORTNAME= dvipsk
PORTVERSION= ${TEXLIVE_YEAR}.1
CATEGORIES= print
MASTER_SITES= TEX_CTAN/systems/texlive/${TEXLIVE_YEAR}/
MASTER_SITES= TEX_CTAN/systems/texlive/${TEXLIVE_YEAR}/:source \
LOCAL/tex:texmf
PKGNAMEPREFIX= tex-
DISTNAME= texlive-${TEXLIVE_VERSION}-source
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${DISTNAME_TEXMF}${EXTRACT_SUFX}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source \
${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}-freebsd${EXTRACT_SUFX}:texmf
DIST_SUBDIR= TeX
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}

Expand All @@ -29,16 +30,6 @@ CONFIGURE_ARGS= --with-kpathsea-includes=${LOCALBASE}/include \

EXTRACT_AFTER_ARGS= ${EXTRACT_FILES:S,^,${DISTNAME}/,}
EXTRACT_FILES= am m4 build-aux texk/dvipsk texk/lcdf-typetools
EXTRACT_AFTER_ARGS_TEXMF= | ${TAR} -xf - -C ${STAGEDIR}${PREFIX}/share \
--strip-components 1 --no-same-permission \
--no-same-owner \
${EXCLUDE_FILES:S,^,--exclude ,} \
${EXTRACT_FILES_TEXMF:S,^,${DISTNAME_TEXMF}/,}
EXTRACT_FILES_TEXMF= texmf-dist/doc/dvips/ texmf-dist/dvips/ \
texmf-dist/fonts/map/dvips/ \
texmf-dist/fonts/enc/dvips/ \
texmf-dist/tex/generic/dvips/
EXCLUDE_FILES= texmf-dist/dvips/xdvi
WRKSRC= ${WRKDIR}/${DISTNAME}/texk/dvipsk

INFO= dvips
Expand All @@ -48,13 +39,40 @@ PLIST_FILES= bin/afm2tfm \
man/man1/dvips.1.gz

pre-install:
${CAT} ${DISTDIR}/${DIST_SUBDIR}/texlive-${TEXLIVE_VERSION}-texmf${EXTRACT_SUFX} \
${EXTRACT_AFTER_ARGS_TEXMF}
${TAR} -Jxf ${DISTDIR}/${DIST_SUBDIR}/${PKGNAMEPREFIX}${PORTNAME}-${TEXLIVE_VERSION}-freebsd${EXTRACT_SUFX} \
-C ${STAGEDIR}${PREFIX}/share \
--strip-components 1 --no-same-permission --no-same-owner

post-install:
${FIND} -s ${STAGEDIR}${PREFIX}/share/texmf-dist -not -type d | ${SORT} | \
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
${FIND} -s ${STAGEDIR}${PREFIX}/share/texmf-dist -type d -empty | ${SORT} -r | \
${SED} -e 's#^${STAGEDIR}${PREFIX}/#@dir #' >> ${TMPPLIST}

.if defined(MAINTAINER_MODE)
_EXTRACT_FILES= texmf-dist/doc/dvips/ texmf-dist/dvips/ \
texmf-dist/fonts/map/dvips/ \
texmf-dist/fonts/enc/dvips/ \
texmf-dist/tex/generic/dvips/
_EXCLUDE_FILES= texmf-dist/dvips/xdvi
_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 \
${_EXCLUDE_FILES:S,^,--exclude ,} \
${_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-dvipsk/distinfo
@@ -1,5 +1,5 @@
TIMESTAMP = 1680721364
TIMESTAMP = 1698419926
SHA256 (TeX/texlive-20230313-source.tar.xz) = 3878aa0e1ed0301c053b0e2ee4e9ad999c441345f4882e79bdd1c8f4ce9e79b9
SIZE (TeX/texlive-20230313-source.tar.xz) = 68630148
SHA256 (TeX/texlive-20230313-texmf.tar.xz) = 4c4dc77a025acaad90fb6140db2802cdb7ca7a9a2332b5e3d66aa77c43a81253
SIZE (TeX/texlive-20230313-texmf.tar.xz) = 3866405744
SHA256 (TeX/tex-dvipsk-20230313-freebsd.tar.xz) = 8356e2ebcd561de3afdc778bcdbd0f0f5cfaa9249a9415988aebb764fe3f107e
SIZE (TeX/tex-dvipsk-20230313-freebsd.tar.xz) = 2728208

0 comments on commit bd619b7

Please sign in to comment.