summaryrefslogtreecommitdiff
path: root/editors/neovim-gtk/Makefile
blob: 3fcd1aec944049fa5b12643d1e5961cafccdabc4 (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
PORTNAME=	neovim-gtk
DISTVERSIONPREFIX=	v
DISTVERSION=	1.0.4
PORTREVISION=	3
CATEGORIES=	editors

MAINTAINER=	asomers@FreeBSD.org
COMMENT=	Neovim client library and GTK4 GUI
WWW=		https://github.com/Lyude/neovim-gtk

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libgraphene-1.0.so:graphics/graphene
RUN_DEPENDS=	neovim>=0:editors/neovim

USES=		cargo pkgconfig gnome desktop-file-utils
USE_GNOME=	atk pango gtk40 glib20
USE_GITHUB=	yes
GH_ACCOUNT=	Lyude

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/nvim-gtk
	( cd ${WRKSRC} && ${COPYTREE_SHARE} runtime ${STAGEDIR}${PREFIX}/share/nvim-gtk )
	${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
	${SED} -e "s|Exec=nvim-gtk|Exec=${PREFIX}/bin/nvim-gtk|" ${WRKSRC}/desktop/org.daa.NeovimGtk.desktop >${STAGEDIR}${PREFIX}/share/applications/org.daa.NeovimGtk.desktop
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/
	${INSTALL_DATA} ${WRKSRC}/desktop/org.daa.NeovimGtk_128.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/org.daa.NeovimGtk.png
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/
	${INSTALL_DATA} ${WRKSRC}/desktop/org.daa.NeovimGtk_48.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/org.daa.NeovimGtk.png
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/
	${INSTALL_DATA} ${WRKSRC}/desktop/org.daa.NeovimGtk.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/symbolic/apps/
	${INSTALL_DATA} ${WRKSRC}/desktop/org.daa.NeovimGtk-symbolic.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/symbolic/apps/

.include <bsd.port.mk>