blob: 2245c9a2c8cadeb6a628cf0181625c6476b358fb (
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
40
41
42
43
44
45
46
47
|
PORTNAME= fselect
DISTVERSION= 0.8.4
PORTREVISION= 3
CATEGORIES= sysutils
MAINTAINER= lcook@FreeBSD.org
COMMENT= Find files with SQL-like queries
WWW= https://github.com/jhspetersson/fselect
LICENSE= APACHE20 MIT
LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
LIB_DEPENDS= libzstd.so:archivers/zstd
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= jhspetersson
PLIST_FILES= bin/${PORTNAME} \
man/man1/${PORTNAME}.1.gz
_DOCS= docs/usage.md README.md
PORTDOCS= ${_DOCS:T}
OPTIONS_DEFINE= DOCS USERS
OPTIONS_DEFAULT= USERS
USERS_DESC= Query with 'user' and 'group' fields
USERS_VARS= CARGO_FEATURES+=users
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc
LIB_DEPENDS+= libatomic.so:lang/gcc${GCC_DEFAULT}
LDFLAGS+= -L/usr/local/lib/gcc${GCC_DEFAULT} -latomic
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${_DOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|