2021-05-26 21:39:02 +00:00
|
|
|
PORTNAME= unikmer
|
|
|
|
DISTVERSIONPREFIX= v
|
2024-06-11 17:11:06 +00:00
|
|
|
DISTVERSION= 0.20.0
|
2024-07-03 08:23:32 +00:00
|
|
|
PORTREVISION= 2
|
2021-05-26 21:39:02 +00:00
|
|
|
CATEGORIES= biology
|
|
|
|
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
|
|
COMMENT= Toolkit for nucleic acid k-mer analysis, set operations on k-mers
|
2024-06-11 17:11:06 +00:00
|
|
|
WWW= https://github.com/shenwei356/unikmer/
|
2021-05-26 21:39:02 +00:00
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2021-08-14 18:34:40 +00:00
|
|
|
TEST_DEPENDS= csvtk:science/csvtk
|
|
|
|
|
2021-09-03 13:01:58 +00:00
|
|
|
USES= go:modules perl5
|
2023-03-20 13:29:48 +00:00
|
|
|
USE_GITHUB= nodefault
|
2024-06-11 17:11:06 +00:00
|
|
|
GH_TUPLE= golang:sys:v0.21.0:sys
|
2021-09-03 13:01:58 +00:00
|
|
|
USE_PERL5= test
|
2021-05-26 21:39:02 +00:00
|
|
|
|
|
|
|
GO_MODULE= github.com/shenwei356/unikmer
|
|
|
|
GO_TARGET= ./${PORTNAME}
|
|
|
|
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
|
2023-03-20 13:29:48 +00:00
|
|
|
pre-patch:
|
|
|
|
${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
|
|
|
|
${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys
|
|
|
|
|
2021-08-14 18:34:40 +00:00
|
|
|
do-test: # from the benchmark section in README
|
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${GO_CMD} test . -bench=Bench* -benchmem \
|
|
|
|
| ${GREP} Bench \
|
2021-09-26 08:40:04 +00:00
|
|
|
| ${PERL} -pe 's/\s\s+/\t/g' \
|
2021-08-14 18:34:40 +00:00
|
|
|
| csvtk cut -Ht -f 1,3-5 \
|
|
|
|
| csvtk add-header -t -n test,time,memory,allocs \
|
|
|
|
| csvtk pretty -t -r
|
|
|
|
|
2021-05-26 21:39:02 +00:00
|
|
|
.include <bsd.port.mk>
|