summaryrefslogtreecommitdiff
path: root/editors/xi-core/Makefile
blob: 82501ab75cc0cb887b18f26e72c7c83e24c2974b (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=	xi-core
DISTVERSIONPREFIX=	v
DISTVERSION=	0.3.0.20230201
CATEGORIES=	editors

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	Modern editor backend written in Rust
WWW=		https://xi-editor.io

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/../LICENSE

USES=		cargo
USE_GITHUB=	yes
GH_ACCOUNT=	xi-editor
GH_PROJECT=	xi-editor
GH_TAGNAME=	d027769

WRKSRC_SUBDIR=	rust

PLIST_FILES=	bin/xi-core
PORTDOCS=	README.md

OPTIONS_DEFINE=	DOCS

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/../README.md ${STAGEDIR}${DOCSDIR}

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

.include <bsd.port.mk>