blob: 065421fdd0c01e33ec3ad3c18fe513748eae46b7 (
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
|
PORTNAME= cinnamon
PORTVERSION= 5.4.9
CATEGORIES= x11 gnome
DIST_SUBDIR= gnome
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
MAINTAINER= gnome@FreeBSD.org
COMMENT= Fork of GNOME Shell with layout similar to GNOME 2
WWW= https://github.com/linuxmint/cinnamon
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ca_root_nss>0:security/ca_root_nss \
${LOCALBASE}/include/EGL/eglmesaext.h:graphics/mesa-dri
LIB_DEPENDS= libcjs.so:lang/cjs \
libmuffin.so:x11-wm/muffin \
libcinnamon-menu-3.so:x11/cinnamon-menus \
libdbus-1.so:devel/dbus \
libpolkit-agent-1.so:sysutils/polkit \
libatk-bridge-2.0.so:accessibility/at-spi2-atk \
libsoup-2.4.so:devel/libsoup \
libxapp.so:x11/xapp
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} \
ca_root_nss>0:security/ca_root_nss \
gnome-themes-extra>3.0.0:x11-themes/gnome-themes-extra \
caribou>0:accessibility/caribou \
cinnamon-control-center:sysutils/cinnamon-control-center \
cinnamon-screensaver:x11/cinnamon-screensaver \
nemo:x11-fm/nemo \
${PY_PILLOW} \
${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyinotify>0:devel/py-pyinotify@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}python-xapp>0:x11/py-python-xapp@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}python-pam>0:security/py-python-pam@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tinycss>0:textproc/py-tinycss@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}distro>0:sysutils/py-distro@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
gkbd-keyboard-display:x11/libgnomekbd \
gucharmap:deskutils/gucharmap \
keybinder-gtk3>0:x11/keybinder-gtk3 \
timezonemap>0:misc/timezonemap \
${LOCALBASE}/lib/girepository-1.0/GSound-1.0.typelib:audio/gsound \
gnome-backgrounds>0:x11-themes/gnome-backgrounds \
metacity:x11-wm/metacity \
tint2:x11/tint
USES= compiler:c11 cpe gettext-runtime gettext-tools:run gl gnome gstreamer \
meson perl5 pkgconfig python shebangfix xorg
CPE_VENDOR= linuxmint
USE_GNOME= cairo gdkpixbuf2 glib20 gtk30 intltool introspection libxml2 pygobject3
USE_XORG= x11 xfixes
USE_GL= gl
USE_PERL5= build
USE_GITHUB= yes
GH_ACCOUNT= linuxmint
SHEBANG_GLOB= *.py
SHEBANG_FILES= files/* src/data-to-c.pl
USE_LDCONFIG= yes
BINARY_ALIAS= python3=${PYTHON_CMD}
MESON_ARGS= -Ddisable_networkmanager=true
GLIB_SCHEMAS= org.cinnamon.gschema.xml
OPTIONS_DEFINE= DOCS NLS
OPTIONS_DEFAULT= DOCS NLS
OPTIONS_SUB= yes
DOCS_BUILD_DEPENDS= gtkdocize:textproc/gtk-doc
DOCS_MESON_TRUE= docs
NLS_RUN_DEPENDS= cinnamon-translations>0:misc/cinnamon-translations
post-patch:
@${REINPLACE_CMD} -e '/prefix/s|/usr|${PREFIX}|g ;\
/datadir/s|/usr|${PREFIX}|g ;\
/libdir/s|/usr|${PREFIX}|g ;\
/libexecdir/s|/usr|${PREFIX}|g' \
${WRKSRC}/files/usr/share/cinnamon/cinnamon-menu-editor/cme/config.py
@${FIND} ${WRKSRC} -name \* -type f | ${XARGS} ${EGREP} -l "/usr/share/cinnamon/locale" | \
${XARGS} ${REINPLACE_CMD} -e "s|/usr/share/cinnamon/locale|${PREFIX}/share/locale|g"
@${FIND} ${WRKSRC} -name \* -type f | ${XARGS} ${EGREP} -l "/usr/share" | \
${XARGS} ${REINPLACE_CMD} -e "s|/usr/share|${PREFIX}/share|g"
@${FIND} ${WRKSRC} -name \* -type f | ${XARGS} ${EGREP} -l "/usr/lib" | \
${XARGS} ${REINPLACE_CMD} -e "s|/usr/lib|${PREFIX}/lib|g"
@${FIND} ${WRKSRC} -name \* -type f | ${XARGS} ${EGREP} -l "/usr/bin" | \
${XARGS} ${REINPLACE_CMD} -e "s|/usr/bin|${PREFIX}/bin|g"
@${REINPLACE_CMD} -e '/cs-bluetooth/d; /cs-network/d' \
${WRKSRC}/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py
# Some python files use #! /usr/bin/python (note the space between the bang and the python interpreter
@${FIND} ${WRKSRC} -name \* -type f | ${XARGS} ${EGREP} -l "#!.*\/usr\/bin\/python" | \
${XARGS} ${REINPLACE_CMD} -e "s|#!.*python.*|#!/usr/bin/env python|g"
# gtk-doc builds erroneous documentation files otherwise
@${FIND} ${WRKSRC} -name '*.orig' -type f -delete
@${FIND} ${WRKSRC} -name '*.bak' -type f -delete
# Adhere to our hier(7)
@${MKDIR} ${WRKSRC}/files${PREFIX}
@${MV} ${WRKSRC}/files/etc ${WRKSRC}/files${PREFIX}
. for i in bin share
@${MV} ${WRKSRC}/files/usr/${i} ${WRKSRC}/files${PREFIX}
. endfor
.include <bsd.port.mk>
|