summaryrefslogtreecommitdiff
path: root/x11/guake/Makefile
blob: e9ebc70e882a37413c7956183bb678dec44d608a (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
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

PORTNAME=	guake
PORTVERSION=	3.4.0
PORTREVISION=	2
CATEGORIES=	x11 python
MASTER_SITES=	CHEESESHOP
DISTNAME=	Guake-${PORTVERSION}

MAINTAINER=	daniel@shafer.cc
COMMENT=	Dropdown terminal made for the GNOME desktop

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pbr>0:devel/py-pbr@${PY_FLAVOR}
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dbus>0:devel/py-dbus@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}notify2>0:devel/py-notify2@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}pbr>0:devel/py-pbr@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR} \
		gnome-settings-daemon>0:sysutils/gnome-settings-daemon \
		gsettings-desktop-schemas>0:devel/gsettings-desktop-schemas \
		keybinder-gtk3>0:x11/keybinder-gtk3 \
		keybinder>0:x11/keybinder \
		libnotify>0:devel/libnotify

USES=		gmake gnome libtool localbase pathfix python:3.5+ \
		shebangfix
USE_GNOME=	glib20 gtk30 intltool vte3
USE_PYTHON=	distutils noflavors
GLIB_SCHEMAS=	org.guake.gschema.xml
NO_ARCH=	yes
INSTALLS_ICONS=	yes

PLIST_SUB=	PORTVERSION=${PORTVERSION}

OPTIONS_DEFINE=		MANPAGES NLS
OPTIONS_DEFAULT=	MANPAGES
OPTIONS_SUB=		yes

NLS_USES=		gettext
NLS_CONFIGURE_ENABLE=	nls

MANPAGES_MAKE_ENV_OFF=	man_MANS=""

GETTEXT_FIX=	about.py boxes.py customcommands.py dialogs.py globals.py \
		gsettings.py guake_app.py keybindings.py main.py menus.py \
		notebook.py prefs.py

post-extract:
	@${REINPLACE_CMD} -e 's|PYTHON_INTERPRETER=python3|PYTHON_INTERPRETER=${PYTHON_CMD}|g' \
		${WRKSRC}/Makefile
.for x in ${GETTEXT_FIX}
	@${REINPLACE_CMD} -e '/import/s|locale|gettext|g' ${WRKSRC}/guake/${x}
.endfor

post-install:
	cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} \
		install-schemas install-locale

.include <bsd.port.mk>