Upstream of libb2 started offering distfiles via githubs release
infrastructure.

Changes to the port:

- Move from GH_* to MASTER_SITES and DISTNAME
  * Set EPOCH as version numbering has changed
  * Set HOMEPAGE
- No need to pull in automake and libtool
  * Drop BDEPs
  * Change CONFIGURE_STYLE
- Follow Makefile.template
- Change email address MAINTAINER

'make test' runs successfully, build tested all customers, and run
tested with borgbackup.

Comments/OKs?


Index: Makefile
===================================================================
RCS file: /cvs/ports/security/libb2/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile    1 Jan 2018 15:40:55 -0000       1.1.1.1
+++ Makefile    28 Apr 2018 19:36:15 -0000
@@ -1,37 +1,31 @@
 # $OpenBSD: Makefile,v 1.1.1.1 2018/01/01 15:40:55 bcallah Exp $
 
 COMMENT =      library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp
-DISTNAME =     libb2-0.98.20171225
-CATEGORIES =   security
 
-SHARED_LIBS += b2                        0.0 # 1.3
+V =            0.98
+DISTNAME =     libb2-${V}
+EPOCH =                0
+
+SHARED_LIBS =  b2      0.0 # 1.3
 
-# No GH_TAGNAME
-GH_ACCOUNT =   BLAKE2
-GH_PROJECT =   libb2
-GH_COMMIT =    60ea749837362c226e8501718f505ab138e5c19d
+CATEGORIES =   security
 
-MAINTAINER =   Bjorn Ketelaars <bjorn.ketela...@hydroxide.nl>
+HOMEPAGE =     https://blake2.net/
+
+MAINTAINER =   Bjorn Ketelaars <b...@openbsd.org>
 
 # CC0
 PERMIT_PACKAGE_CDROM = Yes
 
-BUILD_DEPENDS =                ${MODGNU_AUTOCONF_DEPENDS} \
-                       ${MODGNU_AUTOMAKE_DEPENDS} \
-                       devel/libtool
+MASTER_SITES = https://github.com/BLAKE2/libb2/releases/download/v${V}/
 
-CONFIGURE_STYLE =      gnu
+SEPARATE_BUILD =       Yes
+
+CONFIGURE_STYLE =      autoconf
 CONFIGURE_ARGS =       --disable-fat \
                        --disable-native \
                        --disable-openmp
 
-SEPARATE_BUILD =       Yes
-
 AUTOCONF_VERSION =     2.69
-AUTOMAKE_VERSION =     1.15
-
-pre-configure:
-       cd ${WRKSRC} && ${SETENV} AUTOCONF_VERSION=${AUTOCONF_VERSION} \
-               AUTOMAKE_VERSION=${AUTOMAKE_VERSION} ./autogen.sh
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/security/libb2/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo    1 Jan 2018 15:40:55 -0000       1.1.1.1
+++ distinfo    28 Apr 2018 19:36:15 -0000
@@ -1,2 +1,2 @@
-SHA256 (libb2-0.98.20171225-60ea7498.tar.gz) = 
hFPmDkOFj1DIsdroNJEzyl/mzA4PeLWIFl/AVTtMGnk=
-SIZE (libb2-0.98.20171225-60ea7498.tar.gz) = 275231
+SHA256 (libb2-0.98.tar.gz) = 6Gngw6k7xW0QUuzL6c2SW4qMcwi0F1MoKacAzzdLA28=
+SIZE (libb2-0.98.tar.gz) = 530982

Reply via email to