Date: Fri, 27 Oct 2023 16:35:21 GMT From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: bd619b797890 - main - print/tex-dvipsk: Update dists Message-ID: <202310271635.39RGZLTQ092499@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=bd619b79789041f2f5db861998f7ffbbbd32e5dd commit bd619b79789041f2f5db861998f7ffbbbd32e5dd Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-10-27 15:38:26 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-10-27 16:35:04 +0000 print/tex-dvipsk: 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 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 --- print/tex-dvipsk/Makefile | 48 ++++++++++++++++++++++++++++++++--------------- print/tex-dvipsk/distinfo | 6 +++--- 2 files changed, 36 insertions(+), 18 deletions(-) diff --git a/print/tex-dvipsk/Makefile b/print/tex-dvipsk/Makefile index 216f9fb7c4d7..3a05bd3992a8 100644 --- a/print/tex-dvipsk/Makefile +++ b/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} @@ -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 @@ -48,8 +39,9 @@ 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} | \ @@ -57,4 +49,30 @@ post-install: ${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> diff --git a/print/tex-dvipsk/distinfo b/print/tex-dvipsk/distinfo index d2f5a56f927b..b92e36a9e759 100644 --- a/print/tex-dvipsk/distinfo +++ b/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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310271635.39RGZLTQ092499>