git: 02105a9bc95c - main - biology/seqtk: Update to 1.3

From: Jason W. Bacon <jwb_at_FreeBSD.org>
Date: Sat, 18 Dec 2021 19:37:08 UTC
The branch main has been updated by jwb:

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

commit 02105a9bc95c5771fac5452e1cf8176a1b591c88
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2021-12-18 19:35:28 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2021-12-18 19:37:06 +0000

    biology/seqtk: Update to 1.3
    
    A few minor fixes and enhancements
    
    Changes: https://github.com/lh3/seqtk/tags
---
 biology/seqtk/Makefile             | 11 ++++-------
 biology/seqtk/distinfo             |  6 +++---
 biology/seqtk/files/patch-Makefile | 29 ++++++++++++++++++++++-------
 3 files changed, 29 insertions(+), 17 deletions(-)

diff --git a/biology/seqtk/Makefile b/biology/seqtk/Makefile
index 820432492ed8..c4b0dd5ecab6 100644
--- a/biology/seqtk/Makefile
+++ b/biology/seqtk/Makefile
@@ -1,7 +1,7 @@
-PORTNAME=	seqtk
-DISTVERSION=	1.2-8
-DISTVERSIONSUFFIX=	-gd210c57
-CATEGORIES=	biology
+PORTNAME=		seqtk
+DISTVERSIONPREFIX=	v
+DISTVERSION=		1.3
+CATEGORIES=		biology
 
 MAINTAINER=	jwb@FreeBSD.org
 COMMENT=	Tool for processing sequences in FASTA/FASTQ format
@@ -13,7 +13,4 @@ GH_ACCOUNT=	lh3
 
 PLIST_FILES=	bin/seqtk
 
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/seqtk ${STAGEDIR}${PREFIX}/bin
-
 .include <bsd.port.mk>
diff --git a/biology/seqtk/distinfo b/biology/seqtk/distinfo
index 430869c941bf..f44856371472 100644
--- a/biology/seqtk/distinfo
+++ b/biology/seqtk/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1522780777
-SHA256 (lh3-seqtk-1.2-8-gd210c57_GH0.tar.gz) = 557317aab7f8cc306a98cd1148449f1e2edd7cd7c78ad5254ba955dfee518fa0
-SIZE (lh3-seqtk-1.2-8-gd210c57_GH0.tar.gz) = 21166
+TIMESTAMP = 1639855187
+SHA256 (lh3-seqtk-v1.3_GH0.tar.gz) = 5a1687d65690f2f7fa3f998d47c3c5037e792f17ce119dab52fff3cfdca1e563
+SIZE (lh3-seqtk-v1.3_GH0.tar.gz) = 21196
diff --git a/biology/seqtk/files/patch-Makefile b/biology/seqtk/files/patch-Makefile
index 6d8f5ee8535d..ab373642a46e 100644
--- a/biology/seqtk/files/patch-Makefile
+++ b/biology/seqtk/files/patch-Makefile
@@ -1,20 +1,35 @@
---- Makefile.orig	2017-11-07 19:42:14 UTC
+--- Makefile.orig	2018-06-18 00:15:09 UTC
 +++ Makefile
-@@ -1,10 +1,11 @@
+@@ -1,14 +1,23 @@
 -CC=gcc
 -CFLAGS=-g -Wall -O2 -Wno-unused-function
-+CC ?=		gcc
-+CFLAGS ?=	-g -Wall -O2 -Wno-unused-function
-+LDFLAGS +=	-lz -lm
+-BINDIR=/usr/local/bin
  
 -all:seqtk
-+all: seqtk
++# Respect user's build environment by using ?= to set defaults for variables
++# not set in the env or make arguments.  Use += to add essential args.
  
 -seqtk:seqtk.c khash.h kseq.h
 -		$(CC) $(CFLAGS) seqtk.c -o $@ -lz -lm
++CC	?= gcc
++CFLAGS	?= -g -Wall -O2 -Wno-unused-function
++LDFLAGS	+= -lz -lm
++PREFIX	?= /usr/local
++MKDIR	?= mkdir
++INSTALL	?= install
++# DESTDIR is empty by default to install straight to PREFIX
+ 
+-install:all
+-		install seqtk $(BINDIR)
++all: seqtk
+ 
 +seqtk: seqtk.c khash.h kseq.h
 +	$(CC) $(CFLAGS) seqtk.c -o $@ $(LDFLAGS)
- 
++
++install: all
++	$(MKDIR) -p $(DESTDIR)$(PREFIX)/bin
++	$(INSTALL) -c -m 0755 seqtk $(DESTDIR)$(PREFIX)/bin
++
  clean:
 -		rm -fr gmon.out *.o ext/*.o a.out seqtk trimadap *~ *.a *.dSYM session*
 +	rm -fr gmon.out *.o ext/*.o a.out seqtk trimadap *~ *.a *.dSYM session*