I recently cleared the distfiles directory on my bulk build machine and
noticed that img2pdf was failing. I talked to upstream, who said he
recently switched packages for GitLab. He suggested the below approach,
which works for me.
The old WRKDIST is present but empty in the new archive, so I changed
that.
ok? Or is there a better way of doing this?
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/img2pdf/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile 17 Nov 2015 17:54:56 -0000 1.1.1.1
+++ Makefile 21 Mar 2016 18:05:46 -0000
@@ -3,8 +3,9 @@
COMMENT= losslessly convert images to PDF
MODPY_EGG_VERSION= 0.1.5
+REVISION= 0
DISTNAME= img2pdf-${MODPY_EGG_VERSION}
-DISTFILES= ${DISTNAME}.tar.bz2{archive.tar.bz2?ref=${MODPY_EGG_VERSION}}
+DISTFILES= ${DISTNAME}.tar.gz{archive.tar.gz?ref=${MODPY_EGG_VERSION}}
CATEGORIES= graphics
@@ -19,7 +20,7 @@ MODULES= lang/python
MODPY_SETUPTOOLS= Yes
RUN_DEPENDS= graphics/py-Pillow
-WRKDIST= ${WRKDIR}/img2pdf.git
+WRKDIST= ${WRKDIR}/img2pdf-0.1.5-4e6a4b937807a2bb59aeecec01304d916137add4
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/img2pdf
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/img2pdf/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo 17 Nov 2015 17:54:56 -0000 1.1.1.1
+++ distinfo 21 Mar 2016 18:05:46 -0000
@@ -1,2 +1,2 @@
-SHA256 (img2pdf-0.1.5.tar.bz2) = kmaV23K7nwNaMn5HwlafiJOJZ/HSPyhZMWstINKLTZI=
-SIZE (img2pdf-0.1.5.tar.bz2) = 23942
+SHA256 (img2pdf-0.1.5.tar.gz) = W1y6lPeRrnfDaIuCokSJCJq9yU+cqxB+A8KqaY7E0EA=
+SIZE (img2pdf-0.1.5.tar.gz) = 26423