summaryrefslogtreecommitdiff
path: root/devel/gitg/Makefile
blob: ba9bc3704d74d5fb396364ef50a6dec8e9a46948 (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
# Created by: kipz <somicide@gmail.com>
# $FreeBSD$

PORTNAME=	gitg
PORTVERSION=	3.19.6
CATEGORIES=	devel deskutils gnome
MASTER_SITES=	GNOME

MAINTAINER=	kwm@FreeBSD.org
COMMENT=	GTK-based git repository viewer

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libsoup-2.4.so:${PORTSDIR}/devel/libsoup \
		libgee-0.8.so:${PORTSDIR}/devel/libgee \
		libgit2-glib-1.0.so:${PORTSDIR}/devel/libgit2-glib \
		libpeas-1.0.so:${PORTSDIR}/devel/libpeas \
		libgtkspell3-3.so:${PORTSDIR}/textproc/gtkspell3 \
		libsecret-1.so:${PORTSDIR}/security/libsecret
BUILD_DEPENDS=	gsettings-desktop-schemas>=0:${PORTSDIR}/devel/gsettings-desktop-schemas \
		valac:${PORTSDIR}/lang/vala
RUN_DEPENDS=	gsettings-desktop-schemas>=0:${PORTSDIR}/devel/gsettings-desktop-schemas

CONFLICTS=	gitg0-[0-9]*
PORTSCOUT=	limitw:1,even

USES=		compiler:c11 desktop-file-utils gmake libtool pathfix pkgconfig tar:xz
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-silent-rules \
		--disable-maintainer-mode \
		--enable-compile-warnings=no
USE_GNOME=	glib20 gtk30 gtksourceview3 intlhack introspection
INSTALL_TARGET=	install-strip

INSTALLS_ICONS=	yes
GLIB_SCHEMAS=	org.gnome.gitg.gschema.xml

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

OPTIONS_DEFINE=	DEBUG NLS PYTHON
OPTIONS_SUB=	yes
DEBUG_CONFIGURE_ENABLE=	debug
NLS_USES=	gettext
NLS_CONFIGURE_ENABLE=	nls
PYTHON_USES=	python:3
PYTHON_CONFIGURE_ENABLE=	python
PYTHON_USE=	GNOME=py3gobject3
PYTHON_PLIST_SUB=	PYTHON_SUFFIX=${PYTHON_SUFFIX}

.include <bsd.port.pre.mk>

.if defined(PYTHON_REL)
.if ${PYTHON_REL} < 3500
PYOEXTENSION=	pyo
.else
PYOEXTENSION=	opt-1.pyc
.endif
.endif

PLIST_SUB+=	PYOEXTENSION=${PYOEXTENSION}

post-patch:
	@${REINPLACE_CMD} -e 's|0.24.0|0.25.0|g' \
		${WRKSRC}/configure

.include <bsd.port.post.mk>