From nobody Thu Oct 26 17:59:29 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SGYTZ29csz4y6L1; Thu, 26 Oct 2023 17:59:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SGYTZ1Knmz4fCj; Thu, 26 Oct 2023 17:59:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698343170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GlOmhkQzJjmOVq+8BJHP/27cXnJw1QxUIDHy79Bg9TU=; b=kIBvuF1oJCubyJv2kxi95yN6eFtJ144NhHXQJkONu+LJCy3YpegtHDQPEh8Zi7SNwXYVyJ 93UEXYpRJE9Bhpckcz9l2Lm1l5xMqQO2BEbrSb5rsFfjQpMuTfJezRPbOrqgMUoG03F2Gs mUerWrG20szL7J/YAJ8XFyjeuKKz7/ONwPFEtUBsnMxU/M39x3CAeBlcVZqqWbMZf8RYMW V98sZqcs+EjohELbwrjhB+mYabo8XqdjYEul/o7o4IXxKjAv2isU8nm+0dYyPKTO9Ik3mm V7SAhvENAkz7628HcGft9mC1i1N+PLToMmtaSipXNVGOL8pjPPioQqJ0VZT3nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698343170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GlOmhkQzJjmOVq+8BJHP/27cXnJw1QxUIDHy79Bg9TU=; b=kUd58NKINsVD8OKLUsyx40b1cUWjFa7hjVnfqu3Q/TkUbk9TBEGT9pGRaMFshRo5Ao79UG nUrhOAxOK/+ZEwpJYcXluK3UtSDvIZwl5podXrUlJnyFINYkxbp56XImPsLgZjlVTE/8bu PYAsrRhGkhgjUUdHCWHr18pYMZ6+l8bnQVbswZHpOmWPagmn87DDeNUIXc0A9KB/9//Fvq yRUOAB2c8Bq5UP5UdrIKh82FL8CsevE96xMYX9YNNU923Hpl1Fzxyylc4QX+4TaM1g/S7U lzlT9qhxuvG4oO7ucPHsxfsYJibCft3YYc4WxvAkupdg/5c36cF3xCO93oxxJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698343170; a=rsa-sha256; cv=none; b=ONr3bafFMZHrUVd4xJPSwG4oZEHCK3RwFVw9n9VFEOoMEPwt38xdsBb7EbOaPj7P/NFtkU pSw+vDClOuTQIMEeqteaHR0FnYh3YPFTxdofREOe/j2FAkmQ5W3HBtREcxFMk7PVDNnxLZ VG8ApsDeGPxaSbrUNwM1GZVMFedAb56e41WKmRYKAiFlRYLz1UoFQClU6uqNBMi6UpyXg0 f07lzddJKecMIMGwGKH7hy71ArkR9smfX9eEOPj8InWcNi/RlNEgnuW7OUhwyBDlYT08mO aTy3f2kjbv6DgGDII/pX85uECGLfpC7LZMddS1m8nEnoH2ktNJDr2uBsz2Zfhg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SGYTZ0NTczh97; Thu, 26 Oct 2023 17:59:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39QHxTgm022825; Thu, 26 Oct 2023 17:59:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39QHxT42022822; Thu, 26 Oct 2023 17:59:29 GMT (envelope-from git) Date: Thu, 26 Oct 2023 17:59:29 GMT Message-Id: <202310261759.39QHxT42022822@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 94f7d7bfab55 - main - japanese/tex-ptex: Update dists List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 94f7d7bfab55f8e8efd4ed31da9eca468811be3f Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=94f7d7bfab55f8e8efd4ed31da9eca468811be3f commit 94f7d7bfab55f8e8efd4ed31da9eca468811be3f Author: Muhammad Moinur Rahman AuthorDate: 2023-10-26 14:21:33 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-10-26 17:57:13 +0000 japanese/tex-ptex: 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 10 MB. - However this still does not change the build time a lot. Although it reduces the fetch and install target but the package target is still large. I have checked with a static plist and due to it's size the time difference is longer and does not yield any better results. - There are still 9 more 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 unchanged. Sponsored by: Nepustil --- japanese/tex-ptex/Makefile | 115 +++++++++++++++++++++++++-------------------- japanese/tex-ptex/distinfo | 6 +-- 2 files changed, 67 insertions(+), 54 deletions(-) diff --git a/japanese/tex-ptex/Makefile b/japanese/tex-ptex/Makefile index ea7f061b9e04..417e3c9859fe 100644 --- a/japanese/tex-ptex/Makefile +++ b/japanese/tex-ptex/Makefile @@ -2,11 +2,11 @@ PORTNAME= ptex PORTVERSION= 3.6 PORTREVISION= 4 CATEGORIES= japanese print -MASTER_SITES= TEX_CTAN/systems/texlive/${TEXLIVE_YEAR}/ +MASTER_SITES= TEX_CTAN/systems/texlive/${TEXLIVE_YEAR}/:source \ + LOCAL/tex:texmf PKGNAMEPREFIX= ja-tex- -DISTNAME= texlive-${TEXLIVE_VERSION}-source -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ - ${DISTNAME_TEXMF}${EXTRACT_SUFX} +DISTFILES= texlive-${TEXLIVE_VERSION}-source${EXTRACT_SUFX}:source \ + texlive-${TEXLIVE_VERSION}-texmf-japanese_tex-ptex-freebsd${EXTRACT_SUFX}:texmf DIST_SUBDIR= TeX EXTRACT_ONLY= texlive-${TEXLIVE_VERSION}-source${EXTRACT_SUFX} @@ -16,32 +16,8 @@ WWW= https://ctan.org/pkg/ptex USES= localbase perl5 pkgconfig tar:xz tex USE_TEX= fmtutil formats kpathsea ptexenc web2c -TEXHASHDIRS= ${TEXMFDISTDIR} ${TEXMFVARDIR} -EXTRACT_AFTER_ARGS= ${EXTRACT_FILES:S,^,${DISTNAME}/,} -EXTRACT_FILES= build-aux libs/xpdf texk/web2c -EXTRACT_AFTER_ARGS_TEXMF= | ${TAR} -xf - -C ${STAGEDIR}${PREFIX}/share \ - --strip-components 1 --no-same-permission \ - --no-same-owner \ - ${EXTRACT_FILES_TEXMF:S,^,${DISTNAME_TEXMF}/,} -EXTRACT_FILES_TEXMF= texmf-dist/doc/ptex texmf-dist/doc/platex \ - texmf-dist/doc/uptex texmf-dist/doc/uplatex \ - texmf-dist/doc/fonts/japanese-otf \ - texmf-dist/fonts/vf/public/japanese-otf \ - texmf-dist/fonts/tfm/public/japanese-otf \ - texmf-dist/fonts/ofm/public/japanese-otf \ - texmf-dist/source/fonts/japanese-otf \ - texmf-dist/source/platex \ - texmf-dist/source/uplatex texmf-dist/tex/ptex \ - texmf-dist/tex/uptex texmf-dist/tex/platex \ - texmf-dist/tex/uplatex \ - texmf-dist/tex/generic/hyph-utf8/patterns/ptex \ - texmf-dist/fonts/map/dvipdfmx/updmap/kanjix.map -WRKSRC= ${WRKDIR}/${DISTNAME}/texk/web2c -GNU_CONFIGURE= yes -EXCLUDE_ENGINES= aleph etex pdftex luatex luajittex mf mf-nowin \ - otangle mp pmp upmp web2c web-progs xetex tex \ - synctex mflua mfluajit luahbtex luajithbtex +GNU_CONFIGURE= yes CONFIGURE_ARGS= ${EXCLUDE_ENGINES:S/^/--disable-/} \ --enable-eptex \ --enable-euptex \ @@ -54,40 +30,77 @@ CONFIGURE_ARGS+= --with-$L-include=${LOCALBASE}/include \ --with-$L-libdir=${LOCALBASE}/lib \ --with-system-$L .endfor + MAKE_JOBS_UNSAFE= yes +EXTRACT_AFTER_ARGS= ${EXTRACT_FILES:S,^,${_DISTNAME_SOURCE}/,} +EXTRACT_FILES= build-aux libs/xpdf texk/web2c +WRKSRC= ${WRKDIR}/${_DISTNAME_SOURCE}/texk/web2c +EXCLUDE_ENGINES= aleph etex pdftex luatex luajittex mf mf-nowin \ + otangle mp pmp upmp web2c web-progs xetex tex \ + synctex mflua mfluajit luahbtex luajithbtex + +_DISTNAME_SOURCE= texlive-${TEXLIVE_VERSION}-source +TEXHASHDIRS= ${TEXMFDISTDIR} ${TEXMFVARDIR} TEX_FORMATS= ptex uptex -post-extract: - @${FIND} ${WRKSRC} -name '*.orig' -delete +#post-extract: +# @${FIND} ${WRKSRC} -name '*.orig' -delete pre-configure: - for D in libs/xpdf; do \ - cd ${WRKDIR}/${DISTNAME}/$$D && \ - ${SETENV} ${CONFIGURE_ENV} ${SH} ${CONFIGURE_SCRIPT} \ - ${CONFIGURE_ARGS}; \ - done + cd ${WRKDIR}/${_DISTNAME_SOURCE}/libs/xpdf && \ + ${SETENV} ${CONFIGURE_ENV} ${SH} ${CONFIGURE_SCRIPT} \ + ${CONFIGURE_ARGS}; \ pre-install: - ${CAT} ${DISTDIR}/${DIST_SUBDIR}/texlive-${TEXLIVE_VERSION}-texmf${EXTRACT_SUFX} \ - ${EXTRACT_AFTER_ARGS_TEXMF} + ${TAR} -Jxf ${DISTDIR}/${DIST_SUBDIR}/texlive-${TEXLIVE_VERSION}-texmf-japanese_tex-ptex-freebsd${EXTRACT_SUFX} \ + -C ${STAGEDIR}${PREFIX}/share \ + --strip-components 1 --no-same-permission --no-same-owner post-install: - ${REINPLACE_CMD} -i '' -e 's|/usr/bin/perl|${PERL}|g' \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/mkjvf \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/script/mkcidvf.pl \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/script/mkjp04tfmvf.pl \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/script/mkmlcidvf.pl \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/script/mktfm.pl \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/script/mktfm_sp.pl \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/script/mkutf32list.pl \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/script/mkutfvf.pl \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/script/mkutfvf_sp.pl \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/script/umkvpkana.pl \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/script/umkpkana.pl \ - ${STAGEDIR}${PREFIX}/share/texmf-dist/source/fonts/japanese-otf/umkjvf ${FIND} -s ${STAGEDIR}${PREFIX}/share -not -type d | ${SORT} | \ ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST} ${FIND} -s ${STAGEDIR}${PREFIX}/share -type d -empty | ${SORT} -r | \ ${SED} -e 's#^${STAGEDIR}${PREFIX}/#@dir #' >> ${TMPPLIST} +.if defined(MAINTAINER_MODE) +_MAINTAINER_DISTNAME= ${DISTNAME_TEXMF}${EXTRACT_SUFX} +_EXTRACT_TARGETDIR= texlive-${TEXLIVE_VERSION}-texmf-japanese_tex-ptex-freebsd +EXTRACT_FILES_TEXMF= doc/ptex doc/platex doc/uptex doc/uplatex \ + doc/fonts/japanese-otf fonts/vf/public/japanese-otf \ + fonts/tfm/public/japanese-otf source/uplatex tex/ptex \ + fonts/ofm/public/japanese-otf source/platex \ + tex/uplatex source/fonts/japanese-otf tex/uptex \ + tex/platex tex/generic/hyph-utf8/patterns/ptex \ + fonts/map/dvipdfmx/updmap/kanjix.map + +_maintainer-extract: + ${MAKE} clean + ${MKDIR} ${WRKDIR}/${_EXTRACT_TARGETDIR} + ${TAR} -xf ${DISTDIR}/${DIST_SUBDIR}/texlive-${TEXLIVE_VERSION}-texmf${EXTRACT_SUFX} \ + -C ${WRKDIR}/${_EXTRACT_TARGETDIR} \ + --strip-components 1 --no-same-permission --no-same-owner \ + ${EXTRACT_FILES_TEXMF:S,^,${DISTNAME_TEXMF}/texmf-dist/,} + +_maintainer-patch: _maintainer-extract + ${REINPLACE_CMD} -i '' -e 's|/usr/bin/perl|${PERL}|g' \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/mkjvf \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/script/mkcidvf.pl \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/script/mkjp04tfmvf.pl \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/script/mkmlcidvf.pl \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/script/mktfm.pl \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/script/mktfm_sp.pl \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/script/mkutf32list.pl \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/script/mkutfvf.pl \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/script/mkutfvf_sp.pl \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/script/umkvpkana.pl \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/script/umkpkana.pl \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}/texmf-dist/source/fonts/japanese-otf/umkjvf + +_maintainer-dist: _maintainer-patch + ${TAR} --options xz:compression-level=9 -Jcvf \ + ${WRKDIR}/${_EXTRACT_TARGETDIR}${EXTRACT_SUFX} \ + -C ${WRKDIR} ${_EXTRACT_TARGETDIR} + +.endif + .include diff --git a/japanese/tex-ptex/distinfo b/japanese/tex-ptex/distinfo index 6f4e6f089cb6..90691924fdd0 100644 --- a/japanese/tex-ptex/distinfo +++ b/japanese/tex-ptex/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1680794675 +TIMESTAMP = 1698325900 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/texlive-20230313-texmf-japanese_tex-ptex-freebsd.tar.xz) = b02128975b6653060bd656b7733439e1a10f2e51e6e89e8eb52d0373e4ddc652 +SIZE (TeX/texlive-20230313-texmf-japanese_tex-ptex-freebsd.tar.xz) = 9401208