summaryrefslogtreecommitdiff
path: root/www/rustypaste-cli/Makefile
blob: 33b274c61a25792df8acf042c5c5ec3a1f9f6f1e (plain) (blame)
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
PORTNAME=	rustypaste-cli
DISTVERSIONPREFIX=	v
DISTVERSION=	0.9.4
PORTREVISION=	3
CATEGORIES=	www

MAINTAINER=	dtxdf@FreeBSD.org
COMMENT=	CLI tool for rustypaste
WWW=		https://github.com/orhun/rustypaste-cli

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_i386=	compilation fails: error[E0080]: evaluation of constant value failed

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	orhun

CARGO_FEATURES=	--no-default-features

PLIST_DIRS=	${EXAMPLESDIR}
PLIST_FILES=	${EXAMPLESDIR}/config.toml \
		bin/rpaste

OPTIONS_DEFINE=	NATIVE_CERTS

NATIVE_CERTS_DESC=	Support using the OS TLS trust store
NATIVE_CERTS_VARS=	CARGO_FEATURES+=use-native-certs

post-install:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/config.toml ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>