Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: archivers/bzip3: new port (version 1.4.0)
To:
"Kirill A. Korinsky" <kirill@korins.ky>
Cc:
OpenBSD ports <ports@openbsd.org>
Date:
Tue, 16 Apr 2024 11:07:09 +0100

Download raw body.

Thread
On 2024/04/12 14:46, Kirill A. Korinsky wrote:
> Greetings,
> 
> I'd like to present a new port bzip3.
> 
> At it's homepage it claims to be 4 times more efficient than xz or any other
> compression algothithm: https://github.com/kspalaiologos/bzip3
> 
> It also exists in many systems from different Linux to FreeBSD, but OpenBSD
> is missed.
> 
> So, here it is.

GH_* are only for ports using autogenerated tarballs, this should just
use DISTNAME etc.

New version attached tweaked to do that, reorder the Makefile according
to Makefile.template, and copy SHARED_LIBS direct from shared_libs.log
as is common.

I don't really like COMMENT but don't have a better idea right away.

With this, it's OK sthen@ if someone wants to import.

diff --git a/archivers/bzip3/Makefile b/archivers/bzip3/Makefile
index dc3b444..5791686 100644
--- a/archivers/bzip3/Makefile
+++ b/archivers/bzip3/Makefile
@@ -1,20 +1,20 @@
 COMMENT=	a better, faster and stronger spiritual successor to BZip2
 
-GH_ACCOUNT=	kspalaiologos
-GH_PROJECT=	bzip3
-GH_TAGNAME=	1.4.0
+V=		1.4.0
+DISTNAME=	bzip3-${V}
+
+SHARED_LIBS +=  bzip3                0.0      # 0.0
 
 CATEGORIES=	archivers
 
-# tag hasn't got configure and autoreconf requires to provide .tarball-version
-SITES=		https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/${GH_TAGNAME}/
+SITES=		https://github.com/kspalaiologos/bzip3
 
 # LGPLv3
 PERMIT_PACKAGE=	Yes
 
 WANTLIB=	c pthread
 
-SHARED_LIBS+=  bzip3                     0.0 # 0.0
+SITES=		https://github.com/kspalaiologos/bzip3/releases/download/${V}/
 
 CONFIGURE_STYLE=gnu