PORTNAME=	nemo
DISTVERSION=	6.4.5
PORTREVISION=	5
CATEGORIES=	x11-fm gnome
DIST_SUBDIR=	gnome

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	File manager for the Cinnamon desktop
WWW=		https://github.com/linuxmint/nemo

LICENSE=	GPLv2 LGPL20
LICENSE_COMB=	multi
LICENSE_FILE_GPLv2=	${WRKSRC}/COPYING
LICENSE_FILE_LGPL20=	${WRKSRC}/COPYING.LIB

LIB_DEPENDS=	libcinnamon-desktop.so:x11/cinnamon-desktop \
		libxapp.so:x11/xapp \
		libjson-glib-1.0.so:devel/json-glib
RUN_DEPENDS=	gsettings-desktop-schemas>=0:devel/gsettings-desktop-schemas \
		${PYTHON_PKGNAMEPREFIX}pycairo>=0:graphics/py-pycairo@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}xlrd>=0:textproc/py-xlrd@${PY_FLAVOR} \
		catdoc:textproc/catdoc \
		html2text:textproc/html2text \
		id3:audio/id3mtag \
		pdftotext:graphics/poppler-utils

USES=		compiler:c11 desktop-file-utils gettext-runtime ghostscript:run gnome \
		localbase meson pkgconfig python shared-mime-info shebangfix xorg

SHEBANG_FILES=	generate_additional_file makepot search-helpers/nemo-xls-to-txt \
		search-helpers/nemo-odf-to-txt
SHEBANG_GLOB=	*.py

USE_GITHUB=	yes
GH_ACCOUNT=	linuxmint

USE_GNOME=	cairo gdkpixbuf gtk30 gvfs:run intltool introspection:build libgsf \
		pango pygobject3

USE_XORG=	x11

GLIB_SCHEMAS=	org.nemo.gschema.xml

USE_LDCONFIG=	yes

OPTIONS_DEFINE=		DOCS EXEMPI EXIF TRACKER
OPTIONS_DEFAULT=	DOCS EXEMPI EXIF
OPTIONS_SUB=		yes

EXEMPI_DESC=		XMP support
EXIF_DESC=		Digital camera file meta-data support
TRACKER_DESC=		Integration with tracker

DOCS_BUILD_DEPENDS=	gtkdocize:textproc/gtk-doc
DOCS_MESON_TRUE=	gtk_doc

EXEMPI_LIB_DEPENDS=	libexempi.so:textproc/exempi
EXEMPI_MESON_TRUE=	xmp

EXIF_LIB_DEPENDS=	libexif.so:graphics/libexif
EXIF_MESON_TRUE=	exif

TRACKER_LIB_DEPENDS=	libtracker-sparql-3.0.so:devel/tinysparql
TRACKER_MESON_TRUE=	tracker

.include <bsd.port.mk>
