git: aafe5d31c5f3 - main - biology/htslib: Update to 1.21

From: Jason W. Bacon <jwb_at_FreeBSD.org>
Date: Wed, 09 Oct 2024 22:23:11 UTC
The branch main has been updated by jwb:

URL: https://cgit.FreeBSD.org/ports/commit/?id=aafe5d31c5f3afdaad0f6345bee06e7a3e2c5ced

commit aafe5d31c5f3afdaad0f6345bee06e7a3e2c5ced
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2024-10-09 22:06:24 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2024-10-09 22:23:08 +0000

    biology/htslib: Update to 1.21
    
    Numerous bug fixes and enhancements since 1.17
    Changes:        https://github.com/samtools/htslib/releases
    
    Reported by:    portscout
---
 biology/htslib/Makefile                                           | 5 ++---
 biology/htslib/distinfo                                           | 6 +++---
 .../files/patch-htscodecs_htscodecs_rANS__static32x16pr__neon.c   | 6 +++---
 .../htslib/files/patch-htscodecs_htscodecs_rANS__static4x16pr.c   | 8 ++++----
 biology/htslib/pkg-plist                                          | 2 ++
 5 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/biology/htslib/Makefile b/biology/htslib/Makefile
index 5a844cef433c..3d39f202a887 100644
--- a/biology/htslib/Makefile
+++ b/biology/htslib/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	htslib
-DISTVERSION=	1.17
-PORTREVISION=	1
+DISTVERSION=	1.21
 CATEGORIES=	biology devel
 # Github generated distfiles are incomplete, so use custom tarball
 MASTER_SITES=	https://github.com/samtools/htslib/releases/download/${DISTVERSION}/
@@ -24,7 +23,7 @@ GNU_CONFIGURE=		yes
 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 MAKE_ARGS_armv6=	HTS_HAVE_NEON=
 MAKE_ARGS_armv7=	HTS_HAVE_NEON=
-MAKE_ARGS=		$(MAKE_ARGS_$(ARCH))
+MAKE_ARGS=		${MAKE_ARGS_${ARCH}}
 PATHFIX_MAKEFILEIN=	Makefile
 SHEBANG_FILES=		test/*.pl
 
diff --git a/biology/htslib/distinfo b/biology/htslib/distinfo
index 24c398cacc3c..f035bfd3f3d0 100644
--- a/biology/htslib/distinfo
+++ b/biology/htslib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1677245487
-SHA256 (htslib-1.17.tar.bz2) = 763779288c40f07646ec7ad98b96c378c739171d162ad98398868783b721839f
-SIZE (htslib-1.17.tar.bz2) = 4619884
+TIMESTAMP = 1727437235
+SHA256 (htslib-1.21.tar.bz2) = 84b510e735f4963641f26fd88c8abdee81ff4cb62168310ae716636aac0f1823
+SIZE (htslib-1.21.tar.bz2) = 4781943
diff --git a/biology/htslib/files/patch-htscodecs_htscodecs_rANS__static32x16pr__neon.c b/biology/htslib/files/patch-htscodecs_htscodecs_rANS__static32x16pr__neon.c
index 577a3d651321..434edf03f411 100644
--- a/biology/htslib/files/patch-htscodecs_htscodecs_rANS__static32x16pr__neon.c
+++ b/biology/htslib/files/patch-htscodecs_htscodecs_rANS__static32x16pr__neon.c
@@ -1,11 +1,11 @@
---- htscodecs/htscodecs/rANS_static32x16pr_neon.c.orig	2023-04-17 21:11:08 UTC
+--- htscodecs/htscodecs/rANS_static32x16pr_neon.c.orig	2024-10-09 21:43:35 UTC
 +++ htscodecs/htscodecs/rANS_static32x16pr_neon.c
 @@ -32,7 +32,7 @@
   */
  
  #include "config.h"
--#ifdef __ARM_NEON
-+#if defined(__ARM_NEON) && defined(__aarch64__)
+-#if defined(__ARM_NEON) && defined(__aarch64__)
++#if defined(__ARM_NEON)
  #include <arm_neon.h>
  
  #include <limits.h>
diff --git a/biology/htslib/files/patch-htscodecs_htscodecs_rANS__static4x16pr.c b/biology/htslib/files/patch-htscodecs_htscodecs_rANS__static4x16pr.c
index 8f3e883eec42..3eaebe7ae36d 100644
--- a/biology/htslib/files/patch-htscodecs_htscodecs_rANS__static4x16pr.c
+++ b/biology/htslib/files/patch-htscodecs_htscodecs_rANS__static4x16pr.c
@@ -1,11 +1,11 @@
---- htscodecs/htscodecs/rANS_static4x16pr.c.orig	2023-04-17 21:13:50 UTC
+--- htscodecs/htscodecs/rANS_static4x16pr.c.orig	2024-10-09 21:44:38 UTC
 +++ htscodecs/htscodecs/rANS_static4x16pr.c
-@@ -1006,7 +1006,7 @@ unsigned char *(*rans_dec_func(int do_simd, int order)
+@@ -1030,7 +1030,7 @@ unsigned char *(*rans_dec_func(int do_simd, int order)
      }
  }
  
--#elif defined(__ARM_NEON)
-+#elif defined(__ARM_NEON) && defined(__aarch64__)
+-#elif defined(__ARM_NEON) && defined(__aarch64__)
++#elif defined(__ARM_NEON)
  
  #if defined(__linux__) || defined(__FreeBSD__)
  #include <sys/auxv.h>
diff --git a/biology/htslib/pkg-plist b/biology/htslib/pkg-plist
index 8c97aa84399c..1d4e538f1e47 100644
--- a/biology/htslib/pkg-plist
+++ b/biology/htslib/pkg-plist
@@ -1,3 +1,4 @@
+bin/annot-tsv
 bin/bgzip
 bin/htsfile
 bin/tabix
@@ -34,6 +35,7 @@ lib/libhts.so
 lib/libhts.so.%%PORTVERSION%%
 lib/libhts.so.3
 libdata/pkgconfig/htslib.pc
+share/man/man1/annot-tsv.1.gz
 share/man/man1/bgzip.1.gz
 share/man/man1/htsfile.1.gz
 share/man/man1/tabix.1.gz