summaryrefslogtreecommitdiff
path: root/sysutils/topgrade/Makefile
blob: 1ca3a08c7a9981f49a7766c3375db6427fb2f6dd (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
PORTNAME=	topgrade
DISTVERSIONPREFIX=	v
DISTVERSION=	9.0.1
PORTREVISION=	1
CATEGORIES=	sysutils

MAINTAINER=	freebsd@scd-systems.net
COMMENT=	Tool for upgrade everything

LICENSE=	GPLv3

NOT_FOR_ARCHS=	i386
NOT_FOR_ARCHS_REASON=	failed to run custom build command for `sys-info v0.9.1`

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	r-darwish

PLIST_FILES=	bin/topgrade \
		man/man8/topgrade.8.gz
PORTEXAMPLES=	config.example.toml

OPTIONS_DEFINE=	EXAMPLES

post-install:
		${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
		${INSTALL_MAN} ${WRKSRC}/topgrade.8 ${STAGEDIR}${PREFIX}/man/man8/

post-install-EXAMPLES-on:
		${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
		${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>