On Tue, 17 Dec 2024 19:19:04 +0100,
Klemens Nanni <k...@openbsd.org> wrote:
> 
> 16.12.2024 18:17, Kirill A. Korinsky пишет:
> > Upstream releases a bugfix release, changelog:
> 
> OK kn
> 
> Default TEST_TARGET=check doesn't do anything, =test tries to run bzip3,
> but the difstfile doesn't contain the example file to be compressed.
> 
> If you care, you could provide your own do-test similar to upstream's
> test or anything else, really.
>

or fix make test:

Index: archivers/bzip3/Makefile
===================================================================
RCS file: /home/cvs/ports/archivers/bzip3/Makefile,v
diff -u -p -r1.1.1.1 Makefile
--- archivers/bzip3/Makefile    23 Apr 2024 23:12:59 -0000      1.1.1.1
+++ archivers/bzip3/Makefile    17 Dec 2024 19:33:04 -0000
@@ -1,9 +1,9 @@
 COMMENT=       compress and decompress bzip3 files
 
-V=             1.4.0
+V=             1.5.1
 DISTNAME=      bzip3-${V}
 
-SHARED_LIBS +=  bzip3                0.0      # 0.0
+SHARED_LIBS +=  bzip3                1.0      # 0.0
 
 CATEGORIES=    archivers
 
@@ -14,8 +14,23 @@ PERMIT_PACKAGE=      Yes
 
 WANTLIB=       c pthread
 
-SITES=         https://github.com/kspalaiologos/bzip3/releases/download/${V}/
+SITES=         ${HOMEPAGE}/releases/download/${V}/
+
+SITES.e=       ${HOMEPAGE}/raw/refs/tags/${V}/examples/
+DISTFILES.e+=  ${DISTNAME}-shakespeare.txt{shakespeare.txt} \
+               ${DISTNAME}-shakespeare.txt.bz3{shakespeare.txt.bz3}
+
+EXTRACT_ONLY=  ${DISTFILES}
 
 CONFIGURE_STYLE=gnu
+
+TEST_TARGET=   test
+
+post-extract:
+       @mkdir -p ${WRKSRC}/examples/
+       @cp ${FULLDISTDIR}/${DISTNAME}-shakespeare.txt \
+               ${WRKSRC}/examples/shakespeare.txt
+       @cp ${FULLDISTDIR}/${DISTNAME}-shakespeare.txt.bz3 \
+               ${WRKSRC}/examples/shakespeare.txt.bz3
 
 .include <bsd.port.mk>
Index: archivers/bzip3/distinfo
===================================================================
RCS file: /home/cvs/ports/archivers/bzip3/distinfo,v
diff -u -p -r1.1.1.1 distinfo
--- archivers/bzip3/distinfo    23 Apr 2024 23:12:59 -0000      1.1.1.1
+++ archivers/bzip3/distinfo    17 Dec 2024 19:24:48 -0000
@@ -1,2 +1,6 @@
-SHA256 (bzip3-1.4.0.tar.gz) = p78jafHqDh8mFmhjSPN0lgerrdlXUZ7gm28R2gKxA5o=
-SIZE (bzip3-1.4.0.tar.gz) = 407569
+SHA256 (bzip3-1.5.1-shakespeare.txt) = 
xWAdJmmHrIhcqWUisbTkOf637KOfD+ERH3NCtjtkaPM=
+SHA256 (bzip3-1.5.1-shakespeare.txt.bz3) = 
+v3DKYMXec9dCo9ZXODzAosU7CGImenHuhJT8gN3Ybo=
+SHA256 (bzip3-1.5.1.tar.gz) = zHys2m0V8k0/5z/Ye4ldX9LA+LbdBjCuSZOqRcSFPDs=
+SIZE (bzip3-1.5.1-shakespeare.txt) = 5458199
+SIZE (bzip3-1.5.1-shakespeare.txt.bz3) = 1262682
+SIZE (bzip3-1.5.1.tar.gz) = 413067


-- 
wbr, Kirill

Reply via email to