git: 0ece2dbac79c - main - biology/trimadap: Update to 0.1.4

From: Jason W. Bacon <jwb_at_FreeBSD.org>
Date: Fri, 18 Oct 2024 11:39:16 UTC
The branch main has been updated by jwb:

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

commit 0ece2dbac79cc447af3d8385ff6ab867134cccb7
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2024-10-18 11:37:12 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2024-10-18 11:37:12 +0000

    biology/trimadap: Update to 0.1.4
    
    Update to latest commit, with new MIT license
    Add support for other architectures using SIMDE
    
    Reported by:            fuz
    Reviewed by:            fuz
    Differential Revision:  https://reviews.freebsd.org/D47129
---
 biology/trimadap/Makefile          | 11 +++++------
 biology/trimadap/distinfo          |  6 +++---
 biology/trimadap/files/patch-ksw.c | 13 +++++++++++++
 3 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/biology/trimadap/Makefile b/biology/trimadap/Makefile
index 800b2a18d6fe..7d5d5a58e05f 100644
--- a/biology/trimadap/Makefile
+++ b/biology/trimadap/Makefile
@@ -1,18 +1,17 @@
 PORTNAME=	trimadap
-DISTVERSION=	0.1-3
-DISTVERSIONSUFFIX=	-gddfef21
-PORTREVISION=	1
+DISTVERSION=	0.1-4
+DISTVERSIONSUFFIX=	-gec5a764
 CATEGORIES=	biology
 
 MAINTAINER=	jwb@FreeBSD.org
 COMMENT=	Trim adapter sequences from Illumina data using heuristic rules
 WWW=		https://github.com/lh3/trimadap
 
-LICENSE=	GPLv2
+LICENSE=	MIT
 
-ONLY_FOR_ARCHS=		amd64 i386 powerpc64le
-ONLY_FOR_ARCHS_REASON=	uses hard-coded SSE instructions
+BUILD_DEPENDS=	simde>0:devel/simde
 
+USES=		localbase
 USE_GITHUB=	yes
 GH_ACCOUNT=	lh3
 
diff --git a/biology/trimadap/distinfo b/biology/trimadap/distinfo
index 99e06ce2a75b..59177ee4abda 100644
--- a/biology/trimadap/distinfo
+++ b/biology/trimadap/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1522773176
-SHA256 (lh3-trimadap-0.1-3-gddfef21_GH0.tar.gz) = c2c42a3257d37b12be3523ed0d4415bddd401d72b99b05ba4ae33afaa3c3f373
-SIZE (lh3-trimadap-0.1-3-gddfef21_GH0.tar.gz) = 13138
+TIMESTAMP = 1729109026
+SHA256 (lh3-trimadap-0.1-4-gec5a764_GH0.tar.gz) = fa842c705028054e13dc5be6aab5feb621b0ac54c2ca5bee3ab9eb9046a55ac4
+SIZE (lh3-trimadap-0.1-4-gec5a764_GH0.tar.gz) = 13268
diff --git a/biology/trimadap/files/patch-ksw.c b/biology/trimadap/files/patch-ksw.c
new file mode 100644
index 000000000000..e82692c1ee80
--- /dev/null
+++ b/biology/trimadap/files/patch-ksw.c
@@ -0,0 +1,13 @@
+--- ksw.c.orig	2024-10-16 19:52:35 UTC
++++ ksw.c
+@@ -26,7 +26,9 @@
+ #include <stdlib.h>
+ #include <stdint.h>
+ #include <string.h>
+-#include <emmintrin.h>
++// #include <emmintrin.h>
++#define SIMDE_ENABLE_NATIVE_ALIASES
++#include <simde/x86/sse2.h>
+ #include "ksw.h"
+ 
+ #ifdef __GNUC__