a039f19ee7
Looks like onig_sys crate requires libclang.so to build. Reported by: wiz
170 lines
6.1 KiB
Makefile
170 lines
6.1 KiB
Makefile
# $NetBSD: Makefile,v 1.4 2019/09/06 17:32:04 fox Exp $
|
|
|
|
DISTNAME= bat-0.12.1
|
|
PKGREVISION= 1
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=sharkdp/}
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
DIST_SUBDIR= ${PKGBASE}
|
|
EXTRACT_USING= bsdtar
|
|
|
|
MAINTAINER= fox@NetBSD.org
|
|
HOMEPAGE= https://github.com/sharkdp/bat/
|
|
COMMENT= Clone of cat with syntax highlighting
|
|
LICENSE= apache-2.0
|
|
|
|
USE_LANGUAGES= c
|
|
|
|
CARGO_CRATE_DEPENDS+= adler32-1.0.3
|
|
CARGO_CRATE_DEPENDS+= aho-corasick-0.7.6
|
|
CARGO_CRATE_DEPENDS+= ansi_colours-1.0.1
|
|
CARGO_CRATE_DEPENDS+= ansi_term-0.11.0
|
|
CARGO_CRATE_DEPENDS+= ansi_term-0.12.1
|
|
CARGO_CRATE_DEPENDS+= arrayref-0.3.5
|
|
CARGO_CRATE_DEPENDS+= arrayvec-0.4.11
|
|
CARGO_CRATE_DEPENDS+= assert_cmd-0.11.1
|
|
CARGO_CRATE_DEPENDS+= atty-0.2.13
|
|
CARGO_CRATE_DEPENDS+= autocfg-0.1.6
|
|
CARGO_CRATE_DEPENDS+= backtrace-0.3.35
|
|
CARGO_CRATE_DEPENDS+= backtrace-sys-0.1.31
|
|
CARGO_CRATE_DEPENDS+= base64-0.10.1
|
|
CARGO_CRATE_DEPENDS+= bincode-1.1.4
|
|
CARGO_CRATE_DEPENDS+= bindgen-0.50.0
|
|
CARGO_CRATE_DEPENDS+= bitflags-1.1.0
|
|
CARGO_CRATE_DEPENDS+= blake2b_simd-0.5.7
|
|
CARGO_CRATE_DEPENDS+= byteorder-1.3.2
|
|
CARGO_CRATE_DEPENDS+= cc-1.0.41
|
|
CARGO_CRATE_DEPENDS+= cexpr-0.3.5
|
|
CARGO_CRATE_DEPENDS+= cfg-if-0.1.9
|
|
CARGO_CRATE_DEPENDS+= clang-sys-0.28.1
|
|
CARGO_CRATE_DEPENDS+= clap-2.33.0
|
|
CARGO_CRATE_DEPENDS+= clicolors-control-1.0.1
|
|
CARGO_CRATE_DEPENDS+= cloudabi-0.0.3
|
|
CARGO_CRATE_DEPENDS+= console-0.8.0
|
|
CARGO_CRATE_DEPENDS+= constant_time_eq-0.1.4
|
|
CARGO_CRATE_DEPENDS+= content_inspector-0.2.4
|
|
CARGO_CRATE_DEPENDS+= crc32fast-1.2.0
|
|
CARGO_CRATE_DEPENDS+= crossbeam-utils-0.6.6
|
|
CARGO_CRATE_DEPENDS+= difference-2.0.0
|
|
CARGO_CRATE_DEPENDS+= dirs-2.0.2
|
|
CARGO_CRATE_DEPENDS+= dirs-sys-0.3.4
|
|
CARGO_CRATE_DEPENDS+= encode_unicode-0.3.6
|
|
CARGO_CRATE_DEPENDS+= encoding-0.2.33
|
|
CARGO_CRATE_DEPENDS+= encoding-index-japanese-1.20141219.5
|
|
CARGO_CRATE_DEPENDS+= encoding-index-korean-1.20141219.5
|
|
CARGO_CRATE_DEPENDS+= encoding-index-simpchinese-1.20141219.5
|
|
CARGO_CRATE_DEPENDS+= encoding-index-singlebyte-1.20141219.5
|
|
CARGO_CRATE_DEPENDS+= encoding-index-tradchinese-1.20141219.5
|
|
CARGO_CRATE_DEPENDS+= encoding_index_tests-0.1.4
|
|
CARGO_CRATE_DEPENDS+= env_logger-0.6.2
|
|
CARGO_CRATE_DEPENDS+= error-chain-0.12.1
|
|
CARGO_CRATE_DEPENDS+= escargot-0.4.0
|
|
CARGO_CRATE_DEPENDS+= escargot-0.5.0
|
|
CARGO_CRATE_DEPENDS+= failure-0.1.5
|
|
CARGO_CRATE_DEPENDS+= failure_derive-0.1.5
|
|
CARGO_CRATE_DEPENDS+= flate2-1.0.11
|
|
CARGO_CRATE_DEPENDS+= fnv-1.0.6
|
|
CARGO_CRATE_DEPENDS+= fuchsia-cprng-0.1.1
|
|
CARGO_CRATE_DEPENDS+= fxhash-0.2.1
|
|
CARGO_CRATE_DEPENDS+= git2-0.10.0
|
|
CARGO_CRATE_DEPENDS+= glob-0.3.0
|
|
CARGO_CRATE_DEPENDS+= humantime-1.2.0
|
|
CARGO_CRATE_DEPENDS+= idna-0.2.0
|
|
CARGO_CRATE_DEPENDS+= itoa-0.4.4
|
|
CARGO_CRATE_DEPENDS+= kernel32-sys-0.2.2
|
|
CARGO_CRATE_DEPENDS+= lazy_static-1.4.0
|
|
CARGO_CRATE_DEPENDS+= lazycell-1.2.1
|
|
CARGO_CRATE_DEPENDS+= libc-0.2.62
|
|
CARGO_CRATE_DEPENDS+= libgit2-sys-0.9.0
|
|
CARGO_CRATE_DEPENDS+= libloading-0.5.2
|
|
CARGO_CRATE_DEPENDS+= libz-sys-1.0.25
|
|
CARGO_CRATE_DEPENDS+= line-wrap-0.1.1
|
|
CARGO_CRATE_DEPENDS+= linked-hash-map-0.5.2
|
|
CARGO_CRATE_DEPENDS+= log-0.4.8
|
|
CARGO_CRATE_DEPENDS+= matches-0.1.8
|
|
CARGO_CRATE_DEPENDS+= memchr-2.2.1
|
|
CARGO_CRATE_DEPENDS+= miniz-sys-0.1.12
|
|
CARGO_CRATE_DEPENDS+= miniz_oxide-0.3.2
|
|
CARGO_CRATE_DEPENDS+= nodrop-0.1.13
|
|
CARGO_CRATE_DEPENDS+= nom-4.2.3
|
|
CARGO_CRATE_DEPENDS+= onig-5.0.0
|
|
CARGO_CRATE_DEPENDS+= onig_sys-69.2.0
|
|
CARGO_CRATE_DEPENDS+= peeking_take_while-0.1.2
|
|
CARGO_CRATE_DEPENDS+= percent-encoding-2.1.0
|
|
CARGO_CRATE_DEPENDS+= pkg-config-0.3.15
|
|
CARGO_CRATE_DEPENDS+= plist-0.4.2
|
|
CARGO_CRATE_DEPENDS+= predicates-1.0.1
|
|
CARGO_CRATE_DEPENDS+= predicates-core-1.0.0
|
|
CARGO_CRATE_DEPENDS+= predicates-tree-1.0.0
|
|
CARGO_CRATE_DEPENDS+= proc-macro2-0.4.30
|
|
CARGO_CRATE_DEPENDS+= proc-macro2-1.0.2
|
|
CARGO_CRATE_DEPENDS+= quick-error-1.2.2
|
|
CARGO_CRATE_DEPENDS+= quote-0.6.13
|
|
CARGO_CRATE_DEPENDS+= quote-1.0.2
|
|
CARGO_CRATE_DEPENDS+= rand-0.4.6
|
|
CARGO_CRATE_DEPENDS+= rand_core-0.3.1
|
|
CARGO_CRATE_DEPENDS+= rand_core-0.4.2
|
|
CARGO_CRATE_DEPENDS+= rand_os-0.1.3
|
|
CARGO_CRATE_DEPENDS+= rdrand-0.4.0
|
|
CARGO_CRATE_DEPENDS+= redox_syscall-0.1.56
|
|
CARGO_CRATE_DEPENDS+= redox_users-0.3.1
|
|
CARGO_CRATE_DEPENDS+= regex-1.2.1
|
|
CARGO_CRATE_DEPENDS+= regex-syntax-0.6.11
|
|
CARGO_CRATE_DEPENDS+= remove_dir_all-0.5.2
|
|
CARGO_CRATE_DEPENDS+= rust-argon2-0.5.1
|
|
CARGO_CRATE_DEPENDS+= rustc-demangle-0.1.16
|
|
CARGO_CRATE_DEPENDS+= ryu-1.0.0
|
|
CARGO_CRATE_DEPENDS+= safemem-0.3.2
|
|
CARGO_CRATE_DEPENDS+= same-file-1.0.5
|
|
CARGO_CRATE_DEPENDS+= serde-1.0.99
|
|
CARGO_CRATE_DEPENDS+= serde_derive-1.0.99
|
|
CARGO_CRATE_DEPENDS+= serde_json-1.0.40
|
|
CARGO_CRATE_DEPENDS+= shell-words-0.1.0
|
|
CARGO_CRATE_DEPENDS+= shlex-0.1.1
|
|
CARGO_CRATE_DEPENDS+= smallvec-0.6.10
|
|
CARGO_CRATE_DEPENDS+= strsim-0.8.0
|
|
CARGO_CRATE_DEPENDS+= syn-0.15.44
|
|
CARGO_CRATE_DEPENDS+= syn-1.0.5
|
|
CARGO_CRATE_DEPENDS+= synstructure-0.10.2
|
|
CARGO_CRATE_DEPENDS+= syntect-3.2.1
|
|
CARGO_CRATE_DEPENDS+= tempdir-0.3.7
|
|
CARGO_CRATE_DEPENDS+= term_size-0.3.1
|
|
CARGO_CRATE_DEPENDS+= termcolor-1.0.5
|
|
CARGO_CRATE_DEPENDS+= termios-0.3.1
|
|
CARGO_CRATE_DEPENDS+= textwrap-0.11.0
|
|
CARGO_CRATE_DEPENDS+= thread_local-0.3.6
|
|
CARGO_CRATE_DEPENDS+= treeline-0.1.0
|
|
CARGO_CRATE_DEPENDS+= unicode-bidi-0.3.4
|
|
CARGO_CRATE_DEPENDS+= unicode-normalization-0.1.8
|
|
CARGO_CRATE_DEPENDS+= unicode-width-0.1.6
|
|
CARGO_CRATE_DEPENDS+= unicode-xid-0.1.0
|
|
CARGO_CRATE_DEPENDS+= unicode-xid-0.2.0
|
|
CARGO_CRATE_DEPENDS+= url-2.1.0
|
|
CARGO_CRATE_DEPENDS+= vcpkg-0.2.7
|
|
CARGO_CRATE_DEPENDS+= vec_map-0.8.1
|
|
CARGO_CRATE_DEPENDS+= version_check-0.1.5
|
|
CARGO_CRATE_DEPENDS+= walkdir-2.2.9
|
|
CARGO_CRATE_DEPENDS+= which-2.0.1
|
|
CARGO_CRATE_DEPENDS+= wild-2.0.2
|
|
CARGO_CRATE_DEPENDS+= winapi-0.2.8
|
|
CARGO_CRATE_DEPENDS+= winapi-0.3.8
|
|
CARGO_CRATE_DEPENDS+= winapi-build-0.1.1
|
|
CARGO_CRATE_DEPENDS+= winapi-i686-pc-windows-gnu-0.4.0
|
|
CARGO_CRATE_DEPENDS+= winapi-util-0.1.2
|
|
CARGO_CRATE_DEPENDS+= winapi-x86_64-pc-windows-gnu-0.4.0
|
|
CARGO_CRATE_DEPENDS+= wincolor-1.0.2
|
|
CARGO_CRATE_DEPENDS+= xml-rs-0.8.0
|
|
CARGO_CRATE_DEPENDS+= yaml-rust-0.4.3
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/cargo build --locked --frozen --release
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/target/release/bat ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/doc/bat.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
.include "../../lang/clang/buildlink3.mk"
|
|
.include "../../lang/rust/cargo.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|