summaryrefslogtreecommitdiff
path: root/biology/unikmer/Makefile
blob: a032f583182a2b6f3f6b18b5977c4e760251feb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
PORTNAME=	unikmer
DISTVERSIONPREFIX=	v
DISTVERSION=	0.19.1
PORTREVISION=	13
CATEGORIES=	biology

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Toolkit for nucleic acid k-mer analysis, set operations on k-mers
WWW=		https://github.com/shenwei356/unikmer

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

TEST_DEPENDS=	csvtk:science/csvtk

USES=		go:modules perl5
USE_GITHUB=	nodefault
GH_TUPLE=	golang:sys:v0.6.0:sys
USE_PERL5=	test

GO_MODULE=	github.com/shenwei356/unikmer
GO_TARGET=	./${PORTNAME}

PLIST_FILES=	bin/${PORTNAME}

pre-patch:
	${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
	${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys

do-test: # from the benchmark section in README
	@cd ${WRKSRC} && \
		${GO_CMD} test . -bench=Bench* -benchmem \
			| ${GREP} Bench \
			| ${PERL} -pe 's/\s\s+/\t/g' \
			| csvtk cut -Ht -f 1,3-5 \
			| csvtk add-header -t -n test,time,memory,allocs \
			| csvtk pretty -t -r

.include <bsd.port.mk>