aboutsummaryrefslogtreecommitdiff
path: root/graphics/zathura
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2013-11-28 21:08:38 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2013-11-28 21:08:38 +0000
commite53a32eee68e8ca2f8fa5ebd484108d51aac791d (patch)
tree023e84304f7ebcdf46e155419ac76232f6de9a01 /graphics/zathura
parent95618cce27045740d8f476c00af000f2db598a82 (diff)
downloadports-e53a32eee68e8ca2f8fa5ebd484108d51aac791d.tar.gz
ports-e53a32eee68e8ca2f8fa5ebd484108d51aac791d.zip
- x11-toolkits/girara update to 0.1.9
- graphics/zathura update to 0.2.5 - gaphics/zathura-djvu update to 0.2.3 - Convert to new LIB_DEPENDS format - Girara now defaults to gtk3, modify depending ports accordingly - Convert to staging - Always install man pages - Remove uneeded patches PR: ports/183842 Submitted by: myself Approved by: Alexander <alexander.4mail@gmail.com> (maintainer of zathura-djvu) Approved by: maintainer timeout (for graphics/zathura)
Notes
Notes: svn path=/head/; revision=335121
Diffstat (limited to 'graphics/zathura')
-rw-r--r--graphics/zathura/Makefile35
-rw-r--r--graphics/zathura/distinfo4
-rw-r--r--graphics/zathura/files/patch-render.c36
-rw-r--r--graphics/zathura/pkg-plist10
4 files changed, 22 insertions, 63 deletions
diff --git a/graphics/zathura/Makefile b/graphics/zathura/Makefile
index 03c8984a0eaa..cee8f1eb445e 100644
--- a/graphics/zathura/Makefile
+++ b/graphics/zathura/Makefile
@@ -2,39 +2,33 @@
# $FreeBSD$
PORTNAME= zathura
-PORTVERSION= 0.2.2
+PORTVERSION= 0.2.5
CATEGORIES= graphics print
MASTER_SITES= http://pwmt.org/projects/zathura/download/
MAINTAINER= acieroid@awesom.eu
COMMENT= Customizable lightweight pdf viewer
-LIB_DEPENDS= cairo:${PORTSDIR}/graphics/cairo \
- girara-gtk2:${PORTSDIR}/x11-toolkits/girara
+LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo \
+ libgirara-gtk3.so:${PORTSDIR}/x11-toolkits/girara
+BUILD_DEPENDS+= rst2html:${PORTSDIR}/textproc/py-docutils
-USE_GNOME= glib20 gtk20
+USE_GNOME= glib20 gtk30
USES= gmake pkgconfig
-MAKE_ENV= SFLAGS="${STRIP}"
+MAKE_ENV= SFLAGS="${STRIP}" \
+ RSTTOMAN=${LOCALBASE}/bin/rst2man
-OPTIONS_DEFINE= DOCS NLS SQLITE
+OPTIONS_DEFINE= NLS SQLITE
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSQLITE}
-LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3
+LIB_DEPENDS+= libsqlite3.so:${PORTSDIR}/databases/sqlite3
MAKE_ENV+= WITH_SQLITE=1
.else
MAKE_ENV+= WITH_SQLITE=0
.endif
-.if ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS+= rst2html:${PORTSDIR}/textproc/py-docutils
-MAN1+= zathura.1
-MAN5+= zathurarc.5
-MAKE_ENV+= RSTTOMAN=${LOCALBASE}/bin/rst2man
-.endif
-
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
@@ -48,12 +42,6 @@ post-patch: .SILENT
${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's|PLUGINDIR ?= .*$$|PLUGINDIR ?= ${PREFIX}/lib/zathura|'\
${WRKSRC}/config.mk
-.if ! ${PORT_OPTIONS:MDOCS}
- ${REINPLACE_CMD} -e 's|install-manpages$$||'\
- ${WRKSRC}/Makefile
- ${REINPLACE_CMD} -e 's|RSTTOMAN ?= /usr/bin/rst2man|RSTTOMAN ?= ""|'\
- ${WRKSRC}/config.mk
-.endif
.if ! ${PORT_OPTIONS:MNLS}
${REINPLACE_CMD} -e '/-C po/d'\
${WRKSRC}/Makefile
@@ -66,9 +54,6 @@ post-patch: .SILENT
${REINPLACE_CMD} -e 's|/etc|${PREFIX}&|g' \
${WRKSRC}/config.h \
${WRKSRC}/zathurarc.5.rst
- (cd ${WRKSRC}; ${RM} -f ${MAN1} ${MAN5})
-
-post-install:
- @${CAT} ${PKGMESSAGE}
+ (cd ${WRKSRC}; ${RM} -f zathura.1 zathurarc.5)
.include <bsd.port.mk>
diff --git a/graphics/zathura/distinfo b/graphics/zathura/distinfo
index efc81c1d7d58..32d0689f6a04 100644
--- a/graphics/zathura/distinfo
+++ b/graphics/zathura/distinfo
@@ -1,2 +1,2 @@
-SHA256 (zathura-0.2.2.tar.gz) = 6506237ba76ce1611dc24ddd870853d753b5e70e5200d75d2a2257ff7c9242c9
-SIZE (zathura-0.2.2.tar.gz) = 108240
+SHA256 (zathura-0.2.5.tar.gz) = d901805efa7e18575008e97187a406adc6ac911b493f0e0dfaa69f453ac089d3
+SIZE (zathura-0.2.5.tar.gz) = 133895
diff --git a/graphics/zathura/files/patch-render.c b/graphics/zathura/files/patch-render.c
deleted file mode 100644
index 3475f7b1b9d3..000000000000
--- a/graphics/zathura/files/patch-render.c
+++ /dev/null
@@ -1,36 +0,0 @@
---- render.c.orig 2013-01-22 17:23:39.000000000 +0100
-+++ render.c 2013-01-22 17:23:03.000000000 +0100
-@@ -19,7 +19,7 @@
-
- struct render_thread_s {
- GThreadPool* pool; /**< Pool of threads */
-- GMutex mutex; /**< Render lock */
-+ GStaticMutex mutex; /**< Render lock */
- bool about_to_close; /**< Render thread is to be freed */
- };
-
-@@ -51,7 +51,7 @@
-
- render_thread->about_to_close = false;
- g_thread_pool_set_sort_function(render_thread->pool, render_thread_sort, zathura);
-- g_mutex_init(&render_thread->mutex);
-+ g_static_mutex_init(&render_thread->mutex);
-
- return render_thread;
-
-@@ -328,7 +328,7 @@
- return;
- }
-
-- g_mutex_lock(&render_thread->mutex);
-+ g_static_mutex_lock(&render_thread->mutex);
- }
-
- void
-@@ -338,5 +338,5 @@
- return;
- }
-
-- g_mutex_unlock(&render_thread->mutex);
-+ g_static_mutex_unlock(&render_thread->mutex);
- }
diff --git a/graphics/zathura/pkg-plist b/graphics/zathura/pkg-plist
index fed4be41c8d6..d73fe6b81b8b 100644
--- a/graphics/zathura/pkg-plist
+++ b/graphics/zathura/pkg-plist
@@ -7,16 +7,24 @@ include/zathura/plugin-api.h
include/zathura/types.h
include/zathura/version.h
libdata/pkgconfig/zathura.pc
+man/man1/zathura.1.gz
+man/man5/zathurarc.5.gz
share/applications/zathura.desktop
+%%NLS%%share/locale/ca/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/cs/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/de/LC_MESSAGES/zathura.mo
+%%NLS%%share/locale/el/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/eo/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/es/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/es_CL/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/et/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/fr/LC_MESSAGES/zathura.mo
+%%NLS%%share/locale/he/LC_MESSAGES/zathura.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/zathura.mo
+%%NLS%%share/locale/id_ID/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/it/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/pl/LC_MESSAGES/zathura.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/ru/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/ta_IN/LC_MESSAGES/zathura.mo
%%NLS%%share/locale/tr/LC_MESSAGES/zathura.mo
@@ -24,6 +32,8 @@ share/applications/zathura.desktop
@dirrm include/zathura
@dirrmtry share/locale/es_CL/LC_MESSAGES
@dirrmtry share/locale/es_CL
+@dirrmtry share/locale/id_ID/LC_MESSAGES
+@dirrmtry share/locale/id_ID
@dirrmtry share/locale/ta_IN/LC_MESSAGES
@dirrmtry share/locale/ta_IN
@dirrmtry share/locale/uk_UA/LC_MESSAGES