pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/imv imv: update to 4.2.0. #nice



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4d3ed7eaa760
branches:  trunk
changeset: 446000:4d3ed7eaa760
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Feb 03 10:43:42 2021 +0000

description:
imv: update to 4.2.0. #nice

v4.2.0 - 2020-12-17

* Switched to meson build system
* Added HEIF backend
* Added rotate and flip commands
* Added colour support for overlay
* Added some missing command/config documentation
* Read directories in alphabetical order
* Fixed several memory leaks
* Improved compatibility with non glibc systems
* Fixed several window management bugs for Wayland
* Fixed bug when selecting first/last image

diffstat:

 graphics/imv/Makefile                  |  24 +++++++++++++++++-------
 graphics/imv/PLIST                     |   3 ++-
 graphics/imv/distinfo                  |  12 +++++++-----
 graphics/imv/options.mk                |  12 ++++++------
 graphics/imv/patches/patch-meson.build |  15 +++++++++++++++
 graphics/imv/patches/patch-src_imv.c   |  16 ++++++++++++++++
 6 files changed, 63 insertions(+), 19 deletions(-)

diffs (153 lines):

diff -r de14b8e932c2 -r 4d3ed7eaa760 graphics/imv/Makefile
--- a/graphics/imv/Makefile     Wed Feb 03 10:31:50 2021 +0000
+++ b/graphics/imv/Makefile     Wed Feb 03 10:43:42 2021 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.7 2020/11/05 09:08:23 ryoon Exp $
+# $NetBSD: Makefile,v 1.8 2021/02/03 10:43:42 nia Exp $
 
-DISTNAME=      imv-4.1.0
-PKGREVISION=   6
+DISTNAME=      imv-4.2.0
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=eXeC64/}
 GITHUB_PROJECT=        imv
@@ -14,20 +13,31 @@
 
 TOOL_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
 
-USE_TOOLS+=    gmake pkg-config
+USE_TOOLS+=    pkg-config
 USE_LANGUAGES= c99
 
-MAKE_FLAGS+=   MANPREFIX=${PREFIX}/${PKGMANDIR}
+# alphasort
+CFLAGS.NetBSD+=        -D_NETBSD_SOURCE
+
+MESON_ARGS+=   -Dlibtiff=enabled
+MESON_ARGS+=   -Dlibpng=enabled
 
-MAKE_FLAGS+=   BACKEND_LIBTIFF="yes"
-MAKE_FLAGS+=   BACKEND_LIBPNG="yes"
+CONF_FILES+=   ${PREFIX}/share/examples/imv/imv_config \
+               ${PKG_SYSCONFDIR}/imv_config
+
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     src/imv.c
+SUBST_VARS.paths=      PKG_SYSCONFDIR
 
 .include "options.mk"
+.include "../../devel/meson/build.mk"
 .include "../../devel/pango/buildlink3.mk"
 .include "../../graphics/MesaLib/buildlink3.mk"
 .include "../../graphics/freeimage/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"
 .include "../../textproc/icu/buildlink3.mk"
+.include "../../textproc/inih/buildlink3.mk"
 .include "../../x11/libxkbcommon/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r de14b8e932c2 -r 4d3ed7eaa760 graphics/imv/PLIST
--- a/graphics/imv/PLIST        Wed Feb 03 10:31:50 2021 +0000
+++ b/graphics/imv/PLIST        Wed Feb 03 10:43:42 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2020/01/11 15:18:46 nia Exp $
+@comment $NetBSD: PLIST,v 1.2 2021/02/03 10:43:42 nia Exp $
 bin/imv
 bin/imv-msg
 ${PLIST.all}bin/imv-wayland
@@ -7,3 +7,4 @@
 man/man1/imv.1
 man/man5/imv.5
 share/applications/imv.desktop
+share/examples/imv/imv_config
diff -r de14b8e932c2 -r 4d3ed7eaa760 graphics/imv/distinfo
--- a/graphics/imv/distinfo     Wed Feb 03 10:31:50 2021 +0000
+++ b/graphics/imv/distinfo     Wed Feb 03 10:43:42 2021 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.1 2020/01/11 15:18:46 nia Exp $
+$NetBSD: distinfo,v 1.2 2021/02/03 10:43:42 nia Exp $
 
-SHA1 (imv-4.1.0.tar.gz) = 2c2bc59aab63e237178cc1cbac6d9f0d386f9b69
-RMD160 (imv-4.1.0.tar.gz) = b33143fa7595f81dbe16a3e15f4d114b40568d8c
-SHA512 (imv-4.1.0.tar.gz) = 92d7551bda55185b29724e90230dac608a82f4a45cd3cb9c7a5d261f65eede6dcdde78f5c16eecfc1242533ec8e155204189fab3cacf31ddc088707af5131b2a
-Size (imv-4.1.0.tar.gz) = 77341 bytes
+SHA1 (imv-4.2.0.tar.gz) = b1c087469780287a3e78233004194ef3a78e1676
+RMD160 (imv-4.2.0.tar.gz) = 28b918f037d154486c86f1a334d9be1e195f632e
+SHA512 (imv-4.2.0.tar.gz) = 7b64c6d4e5e484fd2ef4e28e2ba5cc74e4d28f8e2fa329ae7c744bd77ce8a345123f9cc3c77e015ff780938d5add97cfe9ed4e5a3a52b03a91b7bb6bb50e7115
+Size (imv-4.2.0.tar.gz) = 77809 bytes
+SHA1 (patch-meson.build) = bd0ae99fc71416486f6ba855ff3635540e5916cf
+SHA1 (patch-src_imv.c) = 75c3931a5b315174cb66d78e1c62593e8bacc96a
diff -r de14b8e932c2 -r 4d3ed7eaa760 graphics/imv/options.mk
--- a/graphics/imv/options.mk   Wed Feb 03 10:31:50 2021 +0000
+++ b/graphics/imv/options.mk   Wed Feb 03 10:43:42 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2020/01/11 16:24:11 nia Exp $
+# $NetBSD: options.mk,v 1.3 2021/02/03 10:43:42 nia Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.imv
 PKG_SUPPORTED_OPTIONS=         svg
@@ -17,19 +17,19 @@
 
 .if !empty(PKG_OPTIONS:Msvg)
 .  include "../../graphics/librsvg/buildlink3.mk"
-MAKE_FLAGS+=           BACKEND_LIBRSVG="yes"
+MESON_ARGS+=           -Dlibrsvg=enabled
 .else
-MAKE_FLAGS+=           BACKEND_LIBRSVG="no"
+MESON_ARGS+=           -Dlibrsvg=disabled
 .endif
 
 PLIST_VARS+=           all
 .if !empty(PKG_OPTIONS:Mwayland) && !empty(PKG_OPTIONS:Mx11)
 PLIST.all=             yes
-MAKE_FLAGS+=           WINDOWS="all"
+MESON_ARGS+=           -Dwindows=all
 .elif !empty(PKG_OPTIONS:Mwayland)
-MAKE_FLAGS+=           WINDOWS="wayland"
+MESON_ARGS+=           -Dwindows=wayland
 .elif !empty(PKG_OPTIONS:Mx11)
-MAKE_FLAGS+=           WINDOWS="x11"
+MESON_ARGS+=           -Dwindows=x11
 .endif
 
 .if !empty(PKG_OPTIONS:Mwayland)
diff -r de14b8e932c2 -r 4d3ed7eaa760 graphics/imv/patches/patch-meson.build
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/imv/patches/patch-meson.build    Wed Feb 03 10:43:42 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-meson.build,v 1.1 2021/02/03 10:43:42 nia Exp $
+
+Install example config file to examples.
+
+--- meson.build.orig   2020-12-17 20:30:42.000000000 +0000
++++ meson.build
+@@ -165,7 +165,7 @@ install_data(
+ 
+ install_data(
+   files('files/imv_config'),
+-  install_dir: get_option('sysconfdir'),
++  install_dir: get_option('datadir') + '/examples/imv',
+   install_mode: 'rw-r--r--',
+ )
+ 
diff -r de14b8e932c2 -r 4d3ed7eaa760 graphics/imv/patches/patch-src_imv.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/imv/patches/patch-src_imv.c      Wed Feb 03 10:43:42 2021 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_imv.c,v 1.1 2021/02/03 10:43:42 nia Exp $
+
+Allow the proper configuration path to be substituted.
+
+--- src/imv.c.orig     2020-12-17 20:30:42.000000000 +0000
++++ src/imv.c
+@@ -1370,8 +1370,7 @@ static char *get_config_path(void)
+     "$HOME/.config/imv/config",
+     "$HOME/.imv_config",
+     "$HOME/.imv/config",
+-    "/usr/local/etc/imv_config",
+-    "/etc/imv_config",
++    "@PKG_SYSCONFDIR@/imv_config",
+   };
+ 
+   for (size_t i = 0; i < sizeof(config_paths) / sizeof(char*); ++i) {



Home | Main Index | Thread Index | Old Index