I found a  recent ports-cvs opensmtpd-extras thread regarding libtoolize
and applied it to the yad patch.  It was pertinent and worked.  Only
remaining issue is whether to configure for --html.  Webkitgtk2-4.0
security has improved but I am not in the best position to judge.  This
attached patch maintains the 0.40 configuration option.
Constructive comments, testing on other architectures and consideration
for submission appreciated.

--
J. Scott Heppler
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/yad/Makefile,v
retrieving revision 1.19
diff -u -p -u -p -r1.19 Makefile
--- Makefile	12 Jul 2019 21:02:30 -0000	1.19
+++ Makefile	26 Dec 2019 18:09:08 -0000
@@ -2,34 +2,46 @@
 
 COMMENT=		display graphical dialogs from shell scripts or command line
 
-DISTNAME=		yad-0.40.0
-CATEGORIES=		x11
-REVISION=		1
+V=			5.0
+CATEGORIES=             x11
+DISTNAME=		yad-${V}
+EXTRACT_SUFX=           .tar.xz
 
-HOMEPAGE=		http://sourceforge.net/projects/yad-dialog/
+HOMEPAGE=		https://github.com/v1cont/yad
+
+MASTER_SITES=		https://github.com/v1cont/yad/releases/download/v$V/
 
 # GPLv3
-PERMIT_PACKAGE=	Yes
+PERMIT_PACKAGE=		Yes
 
-MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=yad-dialog/}
-EXTRACT_SUFX=		.tar.xz
 
 WANTLIB += atk-1.0 c cairo cairo-gobject gdk-3 gdk_pixbuf-2.0
-WANTLIB += gio-2.0 glib-2.0 gobject-2.0 gtk-3 intl pango-1.0 pangocairo-1.0
-WANTLIB += pthread fribidi
+WANTLIB += gio-2.0 glib-2.0 gobject-2.0 gtk-3 harfbuzz intl pango-1.0
+WANTLIB += pangocairo-1.0 pthread
 
-MODULES=		textproc/intltool
+MODULES=		devel/dconf \
+			textproc/intltool
 
+CONFIGURE_STYLE=	autoreconf
 USE_GMAKE=		Yes
 
+AUTOCONF_VERSION=       2.69
+AUTOMAKE_VERSION=       1.14
+
+BUILD_DEPENDS=		${MODGNU_AUTOCONF_DEPEND} \
+			${MODGNU_AUTOMAKE_DEPENDS}
+
 LIB_DEPENDS=		devel/gettext,-runtime \
 			x11/gtk+3
 RUN_DEPENDS=		x11/gtk+3,-guic
 
-CONFIGURE_STYLE=	gnu
-CONFIGURE_ARGS=		--with-gtk=gtk3 \
+CONFIGURE_ARGS=		--localstatedir=/var/run \
+			--mandir=${LOCALBASE} \
+			--with-gtk=gtk3 \
 			--disable-html \
-			--with-rgb=${X11BASE}/share/X11/rgb.txt
+			--with-rgb=${X11BASE}/share/X11/rgb.txt \
+			--disable-schemas-compile
+
 CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
 			LDFLAGS="-L${LOCALBASE}/lib"
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/x11/yad/distinfo,v
retrieving revision 1.11
diff -u -p -u -p -r1.11 distinfo
--- distinfo	28 Apr 2018 13:18:18 -0000	1.11
+++ distinfo	26 Dec 2019 18:09:08 -0000
@@ -1,2 +1,2 @@
-SHA256 (yad-0.40.0.tar.xz) = wtC30bbToIdymfqgDbddWMl0+B/OctUgo6hOZ9HWDvQ=
-SIZE (yad-0.40.0.tar.xz) = 263332
+SHA256 (yad-5.0.tar.xz) = bXAI9ywrmx+3HNrkOZ8+avYXuxsq6xN2ryPhp6IZl7c=
+SIZE (yad-5.0.tar.xz) = 274632
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/x11/yad/pkg/PLIST,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 PLIST
--- pkg/PLIST	29 Jun 2018 22:16:37 -0000	1.6
+++ pkg/PLIST	26 Dec 2019 18:09:08 -0000
@@ -1,7 +1,10 @@
 @comment $OpenBSD: PLIST,v 1.6 2018/06/29 22:16:37 espie Exp $
+@bin bin/pfd
 @bin bin/yad
+@man man/man1/pfd.1
 @man man/man1/yad.1
 share/aclocal/yad.m4
+share/glib-2.0/schemas/yad.gschema.xml
 share/icons/hicolor/128x128/apps/yad.png
 share/icons/hicolor/16x16/apps/yad.png
 share/icons/hicolor/24x24/apps/yad.png
@@ -9,6 +12,7 @@ share/icons/hicolor/32x32/apps/yad.png
 share/icons/hicolor/48x48/apps/yad.png
 share/icons/hicolor/96x96/apps/yad.png
 share/locale/de/LC_MESSAGES/yad.mo
+share/locale/es/LC_MESSAGES/yad.mo
 share/locale/fr/LC_MESSAGES/yad.mo
 share/locale/it/LC_MESSAGES/yad.mo
 share/locale/pt_BR/LC_MESSAGES/yad.mo
@@ -17,3 +21,4 @@ share/locale/sk/LC_MESSAGES/yad.mo
 share/locale/uk/LC_MESSAGES/yad.mo
 share/locale/zh_TW/LC_MESSAGES/yad.mo
 @tag gtk-update-icon-cache %D/share/icons/hicolor
+@tag glib-compile-schemas

Reply via email to