blob: b5b4378e41e8d0abe9c16c5a50c175fb60f8ac00 (
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
|
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
PORTNAME= gnome-pie
PORTVERSION= 0.5.5
PORTREVISION= 0
CATEGORIES= x11
MAINTAINER= nivit@FreeBSD.org
COMMENT= Circular application launcher
LICENSE= GPLv3
BUILD_DEPENDS= valac:${PORTSDIR}/lang/vala
RUN_DEPENDS= gnome-icons-faenza>=1.3:${PORTSDIR}/x11-themes/gnome-icons-faenza \
gnome-settings-daemon>=2.32.1_4:${PORTSDIR}/sysutils/gnome-settings-daemon
LIB_DEPENDS= Xtst:${PORTSDIR}/x11/libXtst \
cairo:${PORTSDIR}/graphics/cairo \
gee:${PORTSDIR}/devel/libgee06 \
unique:${PORTSDIR}/x11-toolkits/unique
GH_ACCOUNT= Simmesimme
GH_PROJECT= Gnome-Pie
GH_COMMIT= 5ea8b11
GH_TAGNAME= v${PORTVERSION}
INSTALLS_ICONS= yes
OPTIONS_DEFINE= DOCS MANPAGES NLS
OPTIONS_DEFAULT= MANPAGES
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
CMAKE_ARGS+= -DINSTALL_DOCS:BOOL=ON
.endif
.if ${PORT_OPTIONS:MMANPAGES}
MAN1= gnome-pie.1
.else
CMAKE_ARGS+= -DNO_INSTALL_MANPAGES:BOOL=ON
.endif
.if ${PORT_OPTIONS:MNLS}
CMAKE_ARGS+= -DINSTALL_NLS:BOOL=ON
USES+= gettext
PLIST_SUB= NLS=""
.else
CMAKE_ARGS+= -DINSTALL_NLS:BOOL=OFF
PLIST_SUB= NLS="@comment "
.endif
PLIST_SUB+= DESKTOPDIR=${DESKTOPDIR:S,${PREFIX}/,,}
REINPLACE_ARGS= -e 's,%%DATADIR%%,${DATADIR},1' \
-e 's,%%DESKTOPDIR%%,${DESKTOPDIR},1' \
-e 's,%%PREFIX%%,${PREFIX},1' \
-e '/has_resize_grip/d' -i ''
SUB_FILES= pkg-message
SUB_LIST= PORTSDIR=${PORTSDIR}
USES+= cmake pkgconfig
USE_GITHUB= yes
USE_GNOME= gconf2 gnomemenus gtk20 libwnck
post-patch:
${REINPLACE_CMD} ${WRKSRC}/src/actions/actionRegistry.vala \
${WRKSRC}/src/gui/indicator.vala \
${WRKSRC}/src/utilities/paths.vala \
${WRKSRC}/resources/ui/*.ui
post-install:
@${CAT} ${PKGMESSAGE}
gnome-pie-user:
gconftool-2 --type string --set /desktop/gnome/interface/icon_theme "Faenza"
gconftool-2 --type bool --set /desktop/gnome/interface/menus_have_icons true
.include <bsd.port.mk>
|