aboutsummaryrefslogtreecommitdiff
path: root/editors/gedit-plugins/Makefile
blob: 64df59d269ebb1c5f8586043d1ff2606d48c5ff7 (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
# Created by: Adam Weinberger <adamw@FreeBSD.org>

PORTNAME=	gedit-plugins
PORTVERSION=	40.1
PORTREVISION=	1
CATEGORIES=	editors gnome
MASTER_SITES=	GNOME/sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+)\..*/\1/}
DIST_SUBDIR=	gnome

PATCH_SITES=	https://gitlab.gnome.org/GNOME/${PORTNAME}/-/commit/
PATCHFILES+=	70c8ba4a1393.patch:-p1 # https://gitlab.gnome.org/GNOME/gedit-plugins/-/merge_requests/27

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Plugins for GEdit 3

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	gedit>=0:editors/gedit \
		valac:lang/vala \
		itstool:textproc/itstool \
		${PYTHON_PKGNAMEPREFIX}dbus>=0:devel/py-dbus@${PY_FLAVOR}
LIB_DEPENDS=	libpeas-1.0.so:devel/libpeas \
		libgit2-glib-1.0.so:devel/libgit2-glib \
		libgucharmap_2_90.so:deskutils/gucharmap
RUN_DEPENDS=	gedit>=0:editors/gedit \
		${PYTHON_PKGNAMEPREFIX}dbus>=0:devel/py-dbus@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}libpeas>=0:devel/py-libpeas@${PY_FLAVOR}

PORTSCOUT=	limitw:1,even

USES=		compiler:c11 gettext gnome localbase meson pkgconfig \
		python:3.4+ shebangfix tar:xz
USE_GNOME=	cairo gdkpixbuf2 gtk30 gtksourceview4 intlhack introspection \
		vte3
USE_CSTD=	c11
USE_LDCONFIG=	yes
INSTALL_TARGET=	install-strip
SHEBANG_FILES=	plugins/synctex/synctex/evince_dbus.py
BINARY_ALIAS=	python3=${PYTHON_CMD}

GLIB_SCHEMAS=	org.gnome.gedit.plugins.drawspaces.gschema.xml \
		org.gnome.gedit.plugins.wordcompletion.gschema.xml \
		org.gnome.gedit.plugins.terminal.gschema.xml \
		org.gnome.gedit.plugins.translate.gschema.xml

.include <bsd.port.mk>