summaryrefslogtreecommitdiff
path: root/editors/amp/Makefile
blob: 6c58e25ce55915f5b6b3f9aad9f585a78c9d3e59 (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
PORTNAME=	amp
DISTVERSION=	0.6.2
PORTREVISION=	4
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>