aboutsummaryrefslogtreecommitdiff
path: root/deskutils/solanum/Makefile
blob: fc87c612b8a085782b03e4c5ad22ff5e19f43c1e (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
PORTNAME=	solanum
DISTVERSIONPREFIX=	v
DISTVERSION=	2.1.0
PORTREVISION=	3
CATEGORIES=	deskutils

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Pomodoro timer for the GNOME desktop

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/LICENSE.md

USES=		cargo gettext gnome meson pkgconfig python:build shebangfix
USE_GITHUB=	nodefault
USE_GITLAB=	yes
USE_GNOME=	gtk40 libadwaita
USE_GSTREAMER1=	bad good vorbis
GH_TUPLE=	gtk-rs:gtk3-rs:c58fab4fec1254244f598c4eac7f9310184c5996:gtk3 \
		gtk-rs:gtk4-rs:64d0e1c1344458a065ccf22dcecf105c55b902ca:gtk4
GL_SITE=	https://gitlab.gnome.org
GL_ACCOUNT=	World
GL_PROJECT=	Solanum
GL_COMMIT=	3e69272fb31bf18a7aa74ece9d904d445c458274
GL_TUPLE=	https://gitlab.freedesktop.org:gstreamer:gstreamer-rs:0e8b95f1d029530ad3f84a3f08a20d8dfd80a089:gstreamer \
		bilelmoussaoui:libadwaita-rs:b898c11fb6776fc7a9a6b920222fa3173216a80c:libadwaita
SHEBANG_FILES=	build-aux/meson/postinstall.py
MAKE_ENV=	${CARGO_ENV}
GLIB_SCHEMAS=	org.gnome.Solanum.gschema.xml
INSTALLS_ICONS=	yes

CARGO_CRATES=	aho-corasick-0.7.15 \
		anyhow-1.0.35 \
		autocfg-1.0.1 \
		bitflags-1.2.1 \
		cc-1.0.66 \
		cfg-if-1.0.0 \
		cmake-0.1.45 \
		either-1.6.1 \
		field-offset-0.3.2 \
		freetype-0.7.0 \
		freetype-sys-0.13.1 \
		futures-channel-0.3.8 \
		futures-core-0.3.8 \
		futures-executor-0.3.8 \
		futures-io-0.3.8 \
		futures-task-0.3.8 \
		futures-util-0.3.8 \
		gettext-rs-0.4.4 \
		gettext-sys-0.19.9 \
		gtk-macros-0.2.0 \
		heck-0.3.1 \
		itertools-0.9.0 \
		itertools-0.10.0 \
		lazy_static-1.4.0 \
		libc-0.2.81 \
		locale_config-0.2.3 \
		memchr-2.3.4 \
		memoffset-0.5.6 \
		muldiv-1.0.0 \
		num-integer-0.1.44 \
		num-rational-0.3.2 \
		num-traits-0.2.14 \
		once_cell-1.5.2 \
		paste-1.0.4 \
		pin-project-1.0.2 \
		pin-project-internal-1.0.2 \
		pin-utils-0.1.0 \
		pkg-config-0.3.19 \
		pretty-hex-0.2.1 \
		proc-macro-crate-0.1.5 \
		proc-macro-error-1.0.4 \
		proc-macro-error-attr-1.0.4 \
		proc-macro2-1.0.24 \
		quote-1.0.7 \
		regex-1.4.2 \
		regex-syntax-0.6.21 \
		rustc_version-0.2.3 \
		semver-0.9.0 \
		semver-parser-0.7.0 \
		serde-1.0.118 \
		slab-0.4.2 \
		smallvec-1.5.1 \
		strum-0.20.0 \
		strum_macros-0.20.1 \
		syn-1.0.54 \
		system-deps-2.0.2 \
		thiserror-1.0.22 \
		thiserror-impl-1.0.22 \
		thread_local-1.0.1 \
		toml-0.5.7 \
		unicode-segmentation-1.7.1 \
		unicode-xid-0.2.1 \
		version-compare-0.0.11 \
		version_check-0.9.2 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-x86_64-pc-windows-gnu-0.4.0
CARGO_USE_GITHUB=	yes
CARGO_USE_GITLAB=	yes
CARGO_GIT_SUBDIR=	gstreamer:gstreamer-player:gstreamer-player \
			gstreamer:gstreamer:gstreamer \
			gtk3:cairo-rs:cairo \
			gtk3:cairo-sys-rs:cairo/sys \
			gtk3:gdk-pixbuf-sys:gdk-pixbuf/sys \
			gtk3:gdk-pixbuf:gdk-pixbuf \
			gtk3:gio-sys:gio/sys \
			gtk3:gio:gio \
			gtk3:glib-sys:glib/sys \
			gtk3:glib:glib \
			gtk3:gobject-sys:glib/gobject-sys \
			gtk3:graphene-sys:graphene/sys \
			gtk3:graphene:graphene \
			gtk3:pango-sys:pango/sys \
			gtk3:pango:pango \
			gtk4:gdk-sys:gdk4/sys \
			gtk4:gdk:gdk4 \
			gtk4:gtk-sys:gtk4/sys \
			gtk4:gtk:gtk4 \
			libadwaita:libadwaita:libadwaita
CARGO_BUILD=	no
CARGO_INSTALL=	no
CARGO_TEST=	no

pre-patch:
# Chase gtk-rs -> gtk3-rs rename for USES=cargo patching
	@${GREP} --include='*/Cargo.toml' -lr 'git.*gtk-rs' ${WRKDIR} | ${XARGS} ${REINPLACE_CMD} \
		's,\(gtk-rs\)/gtk-rs,\1/gtk3-rs,'

post-patch:
# Make each cargo subcommand very verbose
	@${REINPLACE_CMD} -e '/cargo/s/ --/&verbose&verbose&/' \
		${WRKSRC}/build-aux/cargo.sh

.include <bsd.port.mk>