blob: 19d49b5e3f4ca4706094b42792d8e4b3ab5a10a5 (
plain)
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
|
PORTNAME= foliate
PORTVERSION= 2.6.3
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
INSTALLS_ICONS= yes
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
GLIB_SCHEMAS= com.github.johnfactotum.Foliate.gschema.xml
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>
|