aboutsummaryrefslogtreecommitdiff
path: root/print/texinfo
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-03-29 14:15:34 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2019-03-29 14:15:34 +0000
commitef2dabd1f9dad2f7dba3b57cdf7161e58a557e2f (patch)
treeb79f73cf8bf59615b2a3dd95c9bd9840dc8777ab /print/texinfo
parent2799326af2fb55c0c73ac87c9ca0eeaa9795384e (diff)
downloadports-ef2dabd1f9dad2f7dba3b57cdf7161e58a557e2f.tar.gz
ports-ef2dabd1f9dad2f7dba3b57cdf7161e58a557e2f.zip
Fix the download of auxiliary files
The main problem is that upstream provides unversioned auxiliary files (htmlxref.cnf, texi2dvi and texinfo.tex) [1]. After several failure and PRs, I decided to host those files in my LOCAL and use it as MASTER_SITES. It helps make the update "expected". But it still makes problem when the users have an outdated ports tree. In order to solve this problem, those files are stored versioned (by date) in my LOCAL from now on. Therefore, people with old ports tree would still be able to fetch the files. [1] https://ftp.gnu.org/gnu/texinfo/
Notes
Notes: svn path=/head/; revision=497124
Diffstat (limited to 'print/texinfo')
-rw-r--r--print/texinfo/Makefile22
-rw-r--r--print/texinfo/distinfo18
2 files changed, 23 insertions, 17 deletions
diff --git a/print/texinfo/Makefile b/print/texinfo/Makefile
index 01a8d56d9361..4faddad372c9 100644
--- a/print/texinfo/Makefile
+++ b/print/texinfo/Makefile
@@ -6,9 +6,12 @@ PORTVERSION= 6.6
PORTEPOCH= 1
CATEGORIES= print
MASTER_SITES= GNU \
- LOCAL/sunpoet/${DIST_SUBDIR}:DEFAULT,local
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} htmlxref.cnf:local texi2dvi:local texinfo.tex:local
-DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
+ LOCAL/sunpoet/texinfo:DEFAULT,local
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ htmlxref.cnf-${HTMLXREF_CNF_RELDATE}:local \
+ texi2dvi-${TEXI2DVI_RELDATE}:local \
+ texinfo.tex-${TEXINFO_TEX_RELDATE}:local
+DIST_SUBDIR= texinfo
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= sunpoet@FreeBSD.org
@@ -39,6 +42,10 @@ USE_TEX= yes
INFO= info-stnd texinfo
+HTMLXREF_CNF_RELDATE= 20180823
+TEXI2DVI_RELDATE= 20190104
+TEXINFO_TEX_RELDATE= 20190216
+
CPE_VENDOR= gnu
CPE_VERSION= ${PORTVERSION:R}
@@ -46,11 +53,10 @@ NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
post-patch:
- @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/texinfo.tex ${WRKSRC}/doc/
- @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/htmlxref.cnf ${WRKSRC}/util/
- @${INSTALL_SCRIPT} ${DISTDIR}/${DIST_SUBDIR}/texi2dvi ${WRKSRC}/util/
- @${REINPLACE_CMD} -e '/rm -f $$(DESTDIR)/ s|$$| $$(DESTDIR)$$(xsdir)/XSParagraph.*|' \
- ${WRKSRC}/tp/Texinfo/XS/Makefile.in
+ @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/texinfo.tex-${TEXINFO_TEX_RELDATE} ${WRKSRC}/doc/texinfo.tex
+ @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/htmlxref.cnf-${HTMLXREF_CNF_RELDATE} ${WRKSRC}/util/htmlxref.cnf
+ @${INSTALL_SCRIPT} ${DISTDIR}/${DIST_SUBDIR}/texi2dvi-${TEXI2DVI_RELDATE} ${WRKSRC}/util/texi2dvi
+ @${REINPLACE_CMD} -e '/rm -f $$(DESTDIR)/ s|$$| $$(DESTDIR)$$(xsdir)/XSParagraph.*|' ${WRKSRC}/tp/Texinfo/XS/Makefile.in
@${REINPLACE_CMD} -e 's|free (.*)|Safe&|' ${WRKSRC}/tp/Texinfo/XS/misc.c
post-install:
diff --git a/print/texinfo/distinfo b/print/texinfo/distinfo
index 08a298f1746f..fc14876b745c 100644
--- a/print/texinfo/distinfo
+++ b/print/texinfo/distinfo
@@ -1,9 +1,9 @@
-TIMESTAMP = 1551424865
-SHA256 (texinfo/6.6/texinfo-6.6.tar.xz) = 9bb9ca00da53f26a7e5725eee49689cd4a1e18d25d5b061ac8b2053018d93d66
-SIZE (texinfo/6.6/texinfo-6.6.tar.xz) = 4946900
-SHA256 (texinfo/6.6/htmlxref.cnf) = 214988e088251b52c5b9c80c05120858777fee4c8cec384be2f33dd716374d2d
-SIZE (texinfo/6.6/htmlxref.cnf) = 20076
-SHA256 (texinfo/6.6/texi2dvi) = 9c608884b81a43a9b0802e7294788b336b2a9db8a64ca775e9e6bdae396a0c24
-SIZE (texinfo/6.6/texi2dvi) = 61195
-SHA256 (texinfo/6.6/texinfo.tex) = b19a421624076a9d1335d1a17c33329a26d02a0a3430b43c2a3cbd51708f1cdf
-SIZE (texinfo/6.6/texinfo.tex) = 380503
+TIMESTAMP = 1552736091
+SHA256 (texinfo/texinfo-6.6.tar.xz) = 9bb9ca00da53f26a7e5725eee49689cd4a1e18d25d5b061ac8b2053018d93d66
+SIZE (texinfo/texinfo-6.6.tar.xz) = 4946900
+SHA256 (texinfo/htmlxref.cnf-20180823) = 214988e088251b52c5b9c80c05120858777fee4c8cec384be2f33dd716374d2d
+SIZE (texinfo/htmlxref.cnf-20180823) = 20076
+SHA256 (texinfo/texi2dvi-20190104) = 9c608884b81a43a9b0802e7294788b336b2a9db8a64ca775e9e6bdae396a0c24
+SIZE (texinfo/texi2dvi-20190104) = 61195
+SHA256 (texinfo/texinfo.tex-20190216) = b19a421624076a9d1335d1a17c33329a26d02a0a3430b43c2a3cbd51708f1cdf
+SIZE (texinfo/texinfo.tex-20190216) = 380503