Verified Commit 0a0263b6 authored by Charlie Li's avatar Charlie Li
Browse files

graphics/xreader: move and update to 4.6.0

This started as a fork of graphics/atril, which in turn forked from
graphics/evince, so move categories to match.

- make PDF and pixbuf support unconditional, support for those
  formats are always expected
- optionalise NLS, previewer, thumbnailer
- exclude DOCS as upstream is still evaluating the build issue
parent c668b3f9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4872,3 +4872,4 @@ science/zx||2025-11-25|Removed: upstream repository archived on Jun 15, 2023, th
x11/salut||2025-11-25|Has expired: fails to build with rust 1.90.0
comms/gtkmmorse||2025-11-26|Has expired: Depends on expired devel/gconfmm26
devel/gconfmm26||2025-11-26|Has expired: Gconf has been replaced with gsettings
print/xreader|graphics/xreader|2025-11-27|Use proper category based on repocopy from graphics/atril
+1 −0
Original line number Diff line number Diff line
@@ -1296,6 +1296,7 @@
    SUBDIR += xpdf3
    SUBDIR += xpdf4
    SUBDIR += xpx
    SUBDIR += xreader
    SUBDIR += xsane
    SUBDIR += xtexcad
    SUBDIR += xv
+112 −97
Original line number Diff line number Diff line
PORTNAME=	xreader
PORTVERSION=	4.2.6
CATEGORIES=	print gnome
PORTVERSION=	4.6.0
CATEGORIES=	graphics print gnome
DIST_SUBDIR=	gnome

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Multi-format document reader
COMMENT=	GTK multi-format document viewer
WWW=		https://github.com/linuxmint/xreader

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

PORTSCOUT=	limit:^[0-9.]+$$	# ignore non-numeric tags
BUILD_DEPENDS=	itstool:textproc/itstool
LIB_DEPENDS=	libxapp.so:x11/xapp \
		libpoppler-glib.so:graphics/poppler-glib

BUILD_DEPENDS=	intltool-merge:textproc/intltool \
		itstool:textproc/itstool
LIB_DEPENDS=	libxapp.so:x11/xapp
USES=		compiler:c11 desktop-file-utils gnome meson pkgconfig \
		python:build shebangfix xorg

USES=		desktop-file-utils gettext-tools gnome meson pkgconfig xorg
USE_GITHUB=	yes
GH_ACCOUNT=	linuxmint
USE_LDCONFIG=	yes
USE_GNOME=	cairo gdkpixbuf gtk30 libxml2

SHEBANG_FILES=	install-scripts test

USE_XORG=	ice sm x11

USE_GNOME=	cairo gdkpixbuf gtk30 intltool libxml2
GLIB_SCHEMAS=	org.x.reader.gschema.xml

MATHJAX_DIR=	${LOCALBASE}/www/MathJax
MESON_ARGS=	-Dmathjax-directory=${PREFIX}/www/MathJax \
		-Dpixbuf=true \
		-Dpdf=true
USE_LDCONFIG=	yes

PORTSCOUT=	limit:^[0-9.]+$$	# ignore non-numeric tags

OPTIONS_DEFINE=	DBUS DOCS HELP INTROSPECTION KEYRING T1LIB
OPTIONS_DEFINE=	DBUS DOCS HELP INTROSPECTION KEYRING NLS PREVIEWER T1LIB \
		THUMBNAILER WAYLAND
OPTIONS_GROUP=	BACKENDS
OPTIONS_GROUP_BACKENDS=	COMICS DJVU DVI EPUB PDF PIXBUF PS TIFF XPS
OPTIONS_DEFAULT=	DBUS DJVU DOCS HELP KEYRING PDF TIFF XPS
OPTIONS_GROUP_BACKENDS=	COMICS DJVU DVI EPUB PS TIFF XPS
OPTIONS_DEFAULT=	COMICS DBUS DJVU EPUB HELP INTROSPECTION KEYRING PREVIEWER PS \
			THUMBNAILER TIFF WAYLAND XPS
OPTIONS_SUB=	yes
# https://github.com/linuxmint/xreader/pull/662
OPTIONS_EXCLUDE=	DOCS

BACKENDS_DESC=	Document formats support
COMICS_DESC=	Comic book (cbr) support
DVI_DESC=	DVI format support
EPUB_DESC=	EPUB e-book format support
COMICS_DESC=		Comic book archives support
DJVU_DESC=		DJVU support
DVI_DESC=		DVI viewer support
EPUB_DESC=		Epub support
HELP_DESC=		Install help files
INTROSPECTION_DESC=	Enable GObject introspection
INTROSPECTION_DESC=	Enable GObject Introspection
KEYRING_DESC=		Password-protected document support
PIXBUF_DESC=	Image files support via GdkPixbuf
T1LIB_DESC=	Type1 font support in DVI backend
XPS_DESC=	XPS document format support
PREVIEWER_DESC=		Print previewer support
T1LIB_DESC=		T1LIB for TYPE1 fonts to DVI (Enables DVI)
THUMBNAILER_DESC=	Thumbnailer support
XPS_DESC=		XPS support

COMICS_USES=		libarchive
COMICS_MESON_TRUE=	comics

DBUS_RUN_DEPENDS=	dbus-daemon:devel/dbus
DBUS_LIB_DEPENDS=	libdbus-1.so:devel/dbus
DBUS_MESON_TRUE=	enable_dbus

DJVU_LIB_DEPENDS=	libdjvulibre.so:graphics/djvulibre
DJVU_MESON_TRUE=	djvu

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

DJVU_LIB_DEPENDS=	libdjvulibre.so:graphics/djvulibre
DJVU_MESON_TRUE=	djvu

DVI_LIB_DEPENDS=	libspectre.so:print/libspectre
DVI_USES=		tex
DVI_USE=		TEX=kpathsea
DVI_USE=		tex=kpathsea
DVI_MESON_TRUE=		dvi

EPUB_BUILD_DEPENDS=	${MATHJAX_DIR}/MathJax.js:www/mathjax
EPUB_LIB_DEPENDS=	libwebkit2gtk-4.1.so:www/webkit2-gtk@41
EPUB_RUN_DEPENDS=	${EPUB_BUILD_DEPENDS}
EPUB_MESON_ON=		-Dmathjax-directory=${MATHJAX_DIR}
EPUB_MESON_OFF=		-Depub=false
EPUB_RUN_DEPENDS=	MathJax>0:www/mathjax
EPUB_MESON_TRUE=	epub

HELP_RUN_DEPENDS=	yelp:x11/yelp
HELP_IMPLIES=		NLS
HELP_RUN_DEPENDS=	yelp>0:x11/yelp
HELP_MESON_TRUE=	help_files

INTROSPECTION_USE=		GNOME=introspection:build
INTROSPECTION_USE=	gnome=introspection:build
INTROSPECTION_MESON_TRUE=	introspection

KEYRING_LIB_DEPENDS=	libsecret-1.so:security/libsecret
KEYRING_MESON_TRUE=	keyring

PDF_LIB_DEPENDS=	libpoppler-glib.so:graphics/poppler-glib
PDF_MESON_TRUE=		pdf
NLS_USES=		gettext-tools

PIXBUF_MESON_TRUE=	pixbuf
PREVIEWER_MESON_TRUE=	previewer

PS_LIB_DEPENDS=		libspectre.so:print/libspectre
PS_MESON_TRUE=		ps

T1LIB_LIB_DEPENDS=	libt1.so:devel/t1lib
T1LIB_MESON_TRUE=	t1lib
T1LIB_USES=		localbase:ldflags
T1LIB_IMPLIES=		DVI

THUMBNAILER_MESON_TRUE=	thumbnailer

TIFF_LIB_DEPENDS=	libtiff.so:graphics/tiff
TIFF_MESON_TRUE=	tiff

XPS_LIB_DEPENDS=	libgxps.so:graphics/libgxps
XPS_MESON_TRUE=		xps

# XXX x11-toolkits/gtk30 built with WAYLAND disabled will not have <gdk/gdkwayland.h>
post-patch-WAYLAND-off:
	@${REINPLACE_CMD} -e '/gdkwayland/d' ${WRKSRC}/libdocument/ev-document-misc.h

.include <bsd.port.mk>
+3 −0
Original line number Diff line number Diff line
TIMESTAMP = 1763830748
SHA256 (gnome/linuxmint-xreader-4.6.0_GH0.tar.gz) = abab93f367912d83a1df1ff0ade6a95037da0dd79bc6e2e6f142ad01e03c7b6e
SIZE (gnome/linuxmint-xreader-4.6.0_GH0.tar.gz) = 2217125
+3 −0
Original line number Diff line number Diff line
Xreader is a document viewer for multiple document formats including PDF and
Postscript.  The goal of Xreader is to replace document viewers such as ggv and
gpdf with a single, simple application.
Loading