blob: 42d3b64d102dd3610a47642dc24028f6d7e51cc7 (
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
|
# $NetBSD: Makefile,v 1.1 2021/05/12 12:24:41 pin Exp $
DISTNAME= csview-0.3.8
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=wfxr/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pin@NetBSD.org
HOMEPAGE= https://github.com/wfxr/csview/
COMMENT= High performance csv viewer with cjk/emoji support
LICENSE= apache-2.0
.include "cargo-depends.mk"
# Depends on an unpublished crate. Can't use cargo.mk to fetch it.
PRETTYTABLE-RS_REV= 3239b51dbbb449e69cd599b83bfb152441209cc3
DISTFILES= ${DEFAULT_DISTFILES}
DISTFILES+= prettytable-rs-${PRETTYTABLE-RS_REV}.tar.gz
SITES.prettytable-rs-${PRETTYTABLE-RS_REV}.tar.gz+= -${MASTER_SITE_GITHUB:=wfxr/}prettytable-rs/archive/${PRETTYTABLE-RS_REV}.tar.gz
USE_LANGUAGES= c # Rust, but needs toolchain for linking
USE_TOOLS+= pkg-config
INSTALLATION_DIRS= bin
post-extract:
mv ${WRKDIR}/prettytable-rs-* ${WRKSRC}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/csview ${DESTDIR}${PREFIX}/bin
.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"
|