1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/deskutils/foliate/Makefile
Nuno Teixeira 3572ca3e01 */*: Bump consumers of x11-toolkits/gtk30
New version of gtk3 in tree
2023-12-23 18:14:14 +00:00

47 lines
1.3 KiB
Makefile

PORTNAME= foliate
PORTVERSION= 2.6.4
PORTREVISION= 2
CATEGORIES= deskutils
MAINTAINER= fox@FreeBSD.org
COMMENT= Simple and modern GTK eBook viewer
WWW= https://johnfactotum.github.io/foliate/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= appstream-util:devel/appstream-glib \
gjs-console:lang/gjs
LIB_DEPENDS= libwebkit2gtk-4.0.so:www/webkit2-gtk3
RUN_DEPENDS= gjs-console:lang/gjs
USES= desktop-file-utils gnome localbase meson python shebangfix
USE_GNOME= cairo gtk30 introspection
GLIB_SCHEMAS= com.github.johnfactotum.Foliate.gschema.xml
SHEBANG_FILES= ${WRKSRC}/build-aux/meson/postinstall.py \
${WRKSRC}/src/assets/KindleUnpack/*.py
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
USE_GITHUB= yes
GH_ACCOUNT= johnfactotum
post-patch:
@${REINPLACE_CMD} -e 's/@PYTHON_VERSION@/${PYTHON_VERSION}/g' \
${WRKSRC}/src/epubView.js
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/foliate
@${MV} ${STAGEDIR}${PREFIX}/bin/com.github.johnfactotum.Foliate \
${STAGEDIR}${PREFIX}/libexec/foliate/com.github.johnfactotum.Foliate
@${RLN} ${STAGEDIR}${PREFIX}/libexec/foliate/com.github.johnfactotum.Foliate \
${STAGEDIR}${PREFIX}/bin/foliate
@${REINPLACE_CMD} -e 's/Exec=com.github.johnfactotum.Foliate %U/Exec=foliate %U/g' \
${STAGEDIR}${PREFIX}/share/applications/com.github.johnfactotum.Foliate.desktop
.include <bsd.port.mk>