A newer version of hexchat is available, which fixes several bugs.
Changelog can be found at
https://hexchat.readthedocs.io/en/latest/changelog.html.

Changes to the port:
- Use https instead of http for HOMEPAGE and MASTER_SITES
- Update WANTLIB
- Use meson as build system has been rewritten
- Hexchat dropped support for python2, instead use python3
- luajit is needed for scripts

Run tested - without any scripts - on amd64.

Comments/ok?


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/hexchat/Makefile,v
retrieving revision 1.26
diff -u -p -r1.26 Makefile
--- Makefile    12 Jul 2019 20:48:27 -0000      1.26
+++ Makefile    16 Oct 2019 21:06:35 -0000
@@ -1,64 +1,43 @@
 # $OpenBSD: Makefile,v 1.26 2019/07/12 20:48:27 sthen Exp $
 
 COMMENT =              GTK+2 IRC Client
-DISTNAME =             hexchat-2.12.3
+DISTNAME =             hexchat-2.14.2
 EXTRACT_SUFX =         .tar.xz
 CATEGORIES =           net x11
-REVISION =             8
 
-HOMEPAGE =             http://hexchat.github.io/
+HOMEPAGE =             https://hexchat.github.io/
 # GPLv2+
 PERMIT_PACKAGE =       Yes
 
-WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
-WANTLIB += Xrandr Xrender atk-1.0 c cairo crypto dbus-1 dbus-glib-1
-WANTLIB += expat ffi fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
-WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 graphite2
-WANTLIB += gthread-2.0 gtk-x11-2.0 harfbuzz iconv intl ${MODLUA_WANTLIB} m
-WANTLIB += notify pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre perl pixman-1
-WANTLIB += png proxy pthread ${MODPY_WANTLIB} ssl ${COMPILER_LIBCXX} util
-WANTLIB += xcb xcb-render xcb-shm z fribidi
-
-COMPILER =             base-clang ports-gcc base-gcc
-
-MASTER_SITES =         http://dl.hexchat.net/hexchat/
-
-MODULES =              textproc/intltool \
-                       lang/lua \
-                       lang/python
+WANTLIB += X11 c crypto dbus-glib-1 gdk-x11-2.0 gdk_pixbuf-2.0
+WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gtk-x11-2.0
+WANTLIB += intl luajit-5.1 notify pango-1.0 perl proxy ssl
+WANTLIB += ${MODPY_WANTLIB}
+
+MASTER_SITES =         https://dl.hexchat.net/hexchat/
+
+MODULES =              devel/meson \
+                       lang/python \
+                       textproc/intltool
 
-MODLUA_VERSION =       5.3
+MODPY_BUILDDEP =       No
+MODPY_VERSION =                ${MODPY_DEFAULT_VERSION_3}
 
 BUILD_DEPENDS =                devel/iso-codes
 
 LIB_DEPENDS =          devel/gettext,-runtime \
                        devel/libnotify \
+                       lang/luajit \
                        net/libproxy \
-                       x11/gtk+2 \
                        x11/dbus-glib \
-                       ${MODPY_LIB_DEPENDS} \
-                       ${MODLUA_LIB_DEPENDS}
-
-MODPY_BUILDDEP =       No
+                       x11/gtk+2 \
+                       ${MODPY_LIB_DEPENDS}
 
 RUN_DEPENDS =          devel/desktop-file-utils \
                        devel/iso-codes \
                        x11/gtk+3,-guic
 
-CONFIGURE_STYLE =      gnu
-CONFIGURE_ARGS +=      --enable-ipv6 \
-                       --enable-dbus \
-                       --disable-sysinfo \
-                       --disable-libcanberra
-CONFIGURE_ENV =                CPPFLAGS=-I${LOCALBASE}/include \
-                       LDFLAGS=-L${LOCALBASE}/lib \
-                       OBJC="${CC}" \
-                       LUA=${MODLUA_FLAVOR}
-
-LIBTOOL_FLAGS =                --tag=disable-static
-
-USE_GMAKE =            Yes
-
-NO_TEST =              Yes
+CONFIGURE_ARGS +=      -Dwith-libcanberra=false \
+                       -Dwith-sysinfo=false
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/hexchat/distinfo,v
retrieving revision 1.7
diff -u -p -r1.7 distinfo
--- distinfo    28 Oct 2016 14:55:19 -0000      1.7
+++ distinfo    16 Oct 2019 21:06:35 -0000
@@ -1,2 +1,2 @@
-SHA256 (hexchat-2.12.3.tar.xz) = bysiNyx6ntj/q4FweWOOj0F49fi6Y8ics7qgG+YU8ro=
-SIZE (hexchat-2.12.3.tar.xz) = 1577736
+SHA256 (hexchat-2.14.2.tar.xz) = d5K55SVg+9PhDXW/tdE4ogkTqHdx1nbSllR/G0rAlhg=
+SIZE (hexchat-2.14.2.tar.xz) = 1288732
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/hexchat/pkg/PLIST,v
retrieving revision 1.4
diff -u -p -r1.4 PLIST
--- pkg/PLIST   29 Jun 2018 22:16:19 -0000      1.4
+++ pkg/PLIST   16 Oct 2019 21:06:35 -0000
@@ -6,7 +6,6 @@ lib/hexchat/plugins/
 @comment lib/hexchat/plugins/checksum.la
 lib/hexchat/plugins/checksum.so
 @comment lib/hexchat/plugins/doat.la
-lib/hexchat/plugins/doat.so
 @comment lib/hexchat/plugins/fishlim.la
 lib/hexchat/plugins/fishlim.so
 @comment lib/hexchat/plugins/lua.la
@@ -17,9 +16,7 @@ lib/hexchat/plugins/perl.so
 lib/hexchat/plugins/python.so
 lib/pkgconfig/hexchat-plugin.pc
 @man man/man1/hexchat.1
-share/appdata/
-share/appdata/hexchat.appdata.xml
-share/applications/hexchat.desktop
+share/applications/io.github.Hexchat.desktop
 share/dbus-1/services/org.hexchat.service.service
 share/icons/hicolor/48x48/apps/hexchat.png
 share/icons/hicolor/scalable/apps/hexchat.svg
@@ -46,6 +43,8 @@ share/locale/hi/LC_MESSAGES/hexchat.mo
 share/locale/hu/LC_MESSAGES/hexchat.mo
 share/locale/id/LC_MESSAGES/hexchat.mo
 share/locale/it/LC_MESSAGES/hexchat.mo
+share/locale/ja_JP/
+share/locale/ja_JP/LC_MESSAGES/
 share/locale/ja_JP/LC_MESSAGES/hexchat.mo
 share/locale/kn/LC_MESSAGES/hexchat.mo
 share/locale/ko/LC_MESSAGES/hexchat.mo
@@ -78,3 +77,5 @@ share/locale/zh_CN/LC_MESSAGES/hexchat.m
 share/locale/zh_TW/LC_MESSAGES/hexchat.mo
 @tag gtk-update-icon-cache %D/share/icons/hicolor
 @tag update-desktop-database
+share/metainfo/
+share/metainfo/io.github.Hexchat.appdata.xml

Reply via email to