1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/deskutils/foliate/Makefile
Santhosh Raju befa41655c deskutils/foliate: Update to 2.6.4
Changes since 2.6.3:

2.6.4

Changes:

  * Fixed various bugs
2022-01-16 06:04:15 +01:00

45 lines
1.3 KiB
Makefile

PORTNAME= foliate
PORTVERSION= 2.6.4
CATEGORIES= deskutils
MAINTAINER= fox@FreeBSD.org
COMMENT= Simple and modern GTK eBook viewer
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:3.6+ 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>