summaryrefslogtreecommitdiff
path: root/x11/eww/Makefile
blob: e2287df33a29c40edbf44412a25e78b7f355f251 (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=	eww
DISTVERSIONPREFIX=	v
DISTVERSION=	0.4.0
PORTREVISION=	3
CATEGORIES=	x11 wayland
PKGNAMESUFFIX=	-${FLAVOR}

MAINTAINER=	DtxdF@disroot.org
COMMENT=	ElKowars wacky widgets
WWW=		https://elkowar.github.io/eww

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_armv7=	mismatched types: expected \`i32\`, found \`i64\`

FLAVORS=			x11 wayland
wayland_LIB_DEPENDS=		libgtk-layer-shell.so:x11-toolkits/gtk-layer-shell
wayland_CONFLICTS_INSTALL=	${PORTNAME}-x11
x11_CONFLICTS_INSTALL=		${PORTNAME}-wayland

USES=		cargo gnome
USE_GITHUB=	yes
GH_ACCOUNT=	elkowar
USE_GNOME=	cairo gdkpixbuf2 gtk30

CARGO_FEATURES=		--no-default-features ${FLAVOR}
CARGO_INSTALL_PATH=	crates/${PORTNAME}
CARGO_ENV=	RUSTC_BOOTSTRAP=1

PLIST_FILES=	bin/${PORTNAME}

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

.include <bsd.port.mk>