blob: 98970d569d48d94818ef0b49b6d97fa8dc2b58f5 (
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
|
PORTNAME= topgrade
DISTVERSIONPREFIX= v
DISTVERSION= 10.0.1
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= freebsd@scd-systems.net
COMMENT= Tool for upgrade everything
WWW= https://crates.io/crates/topgrade-rs/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= topgrade-rs
PLIST_FILES= bin/topgrade \
man/man8/topgrade.8.gz
PORTEXAMPLES= config.example.toml
OPTIONS_DEFINE= EXAMPLES
# sys-info-0.9.1 crate fix: https://github.com/FillZpp/sys-info-rs/issues/80
post-patch:
@${REINPLACE_CMD} \
-e '/get_cpu/s|unsigned long|uint64_t|' \
-e '/get_proc_total/s|unsigned long|uint64_t|' \
${WRKSRC}/cargo-crates/sys-info-0.9.1/c/*.[ch]
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>
|