git: 3e4ef4bd633d - main - print/tex-jadetex: Update dists

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 27 Oct 2023 16:35:19 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3e4ef4bd633dc4e55182d1c926bc6a9a8fb59671

commit 3e4ef4bd633dc4e55182d1c926bc6a9a8fb59671
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-10-27 14:37:51 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-10-27 16:35:03 +0000

    print/tex-jadetex: 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 tnd install target duration.
    - Not bumped as the resulting pkg is same.
    
    Sponsored by:   Nepustil
---
 print/tex-jadetex/Makefile | 41 +++++++++++++++++++++++++++++------------
 print/tex-jadetex/distinfo |  6 +++---
 2 files changed, 32 insertions(+), 15 deletions(-)

diff --git a/print/tex-jadetex/Makefile b/print/tex-jadetex/Makefile
index eb38460ec46c..05bf6a89b28f 100644
--- a/print/tex-jadetex/Makefile
+++ b/print/tex-jadetex/Makefile
@@ -2,9 +2,9 @@ PORTNAME=	jadetex
 PORTVERSION=	3.13
 PORTREVISION=	5
 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=
 
@@ -15,14 +15,6 @@ WWW=		http://jadetex.sourceforge.net/
 USES=		tar:xz tex
 USE_TEX=	fmtutil pdftex xmltex
 
-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/doc/otherformats/jadetex \
-	texmf-dist/source/jadetex/base \
-	texmf-dist/tex/jadetex/base
-
 NO_ARCH=	yes
 NO_BUILD=	yes
 
@@ -30,7 +22,32 @@ TEXHASHDIRS=	${TEXMFDISTDIR} ${TEXMFVARDIR}
 TEX_FORMATS=	jadetex
 
 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/doc/otherformats/jadetex \
+	texmf-dist/source/jadetex/base \
+	texmf-dist/tex/jadetex/base
+_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>
diff --git a/print/tex-jadetex/distinfo b/print/tex-jadetex/distinfo
index 3b94c01ff22d..fe4150612a85 100644
--- a/print/tex-jadetex/distinfo
+++ b/print/tex-jadetex/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1680910730
-SHA256 (TeX/texlive-20230313-texmf.tar.xz) = 4c4dc77a025acaad90fb6140db2802cdb7ca7a9a2332b5e3d66aa77c43a81253
-SIZE (TeX/texlive-20230313-texmf.tar.xz) = 3866405744
+TIMESTAMP = 1698415087
+SHA256 (TeX/tex-jadetex-20230313-freebsd.tar.xz) = 5f030ba979e46131818cc2c21cfac856712de1dc0bee22361f8b1753bbc2366e
+SIZE (TeX/tex-jadetex-20230313-freebsd.tar.xz) = 55920