aboutsummaryrefslogblamecommitdiff
path: root/biology/unikmer/Makefile
blob: e75dbb39e2c1dcc46aa6907921f478fbbfd7aca0 (plain) (tree)
1
2
3
4
5
6
7
8
9

                         
                      
                 



                                                                                 
                                                     



                                 

                                   
                                

                                     
                    





                                             



                                                                  



                                                          
                                                      



                                                                          
                      
PORTNAME=	unikmer
DISTVERSIONPREFIX=	v
DISTVERSION=	0.19.1
PORTREVISION=	6
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>