summaryrefslogtreecommitdiff
path: root/editors/amp/Makefile
blob: 95828f7ced04a3a2c48e60ff5d3f8c34e67870e6 (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
PORTNAME=	amp
DISTVERSION=	0.6.2-27
DISTVERSIONSUFFIX=	-g71df483
PORTREVISION=	1
CATEGORIES=	editors

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	Complete text editor for your terminal
WWW=		https://amp.rs/

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cargo localbase:ldflags python:build xorg
USE_GITHUB=	yes
GH_ACCOUNT=	jmacdonald
USE_XORG=	xcb

PLIST_FILES=	bin/${PORTNAME}

post-patch:
	@${REINPLACE_CMD} 's|python3|python${PYTHON_VER}|' ${WRKSRC}/cargo-crates/xcb-0.8.2/build.rs

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>