Date: Mon, 23 Mar 2020 18:52:22 +0000 (UTC) From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r528997 - in head/x11: . wofi wofi/files Message-ID: <202003231852.02NIqMfI061225@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jbeich Date: Mon Mar 23 18:52:21 2020 New Revision: 528997 URL: https://svnweb.freebsd.org/changeset/ports/528997 Log: wofix11/wofi: add new port Wofi is a launcher/menu program for wlroots-based Wayland compositors such as Sway. https://hg.sr.ht/~scoopta/wofi Added: head/x11/wofi/ head/x11/wofi/Makefile (contents, props changed) head/x11/wofi/distinfo (contents, props changed) head/x11/wofi/files/ head/x11/wofi/files/patch-glib-2.56 (contents, props changed) head/x11/wofi/pkg-descr (contents, props changed) head/x11/wofi/pkg-plist (contents, props changed) Modified: head/x11/Makefile (contents, props changed) Modified: head/x11/Makefile ============================================================================== --- head/x11/Makefile Mon Mar 23 18:33:55 2020 (r528996) +++ head/x11/Makefile Mon Mar 23 18:52:21 2020 (r528997) @@ -350,6 +350,7 @@ SUBDIR += wmutils-core SUBDIR += wmutils-opt SUBDIR += wmxss + SUBDIR += wofi SUBDIR += workrave SUBDIR += x11perf SUBDIR += x3270 Added: head/x11/wofi/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/wofi/Makefile Mon Mar 23 18:52:21 2020 (r528997) @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= wofi +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.2 +CATEGORIES= x11 +#MASTER_SITES= https://hg.sr.ht/~scoopta/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/ +MASTER_SITES+= LOCAL/jbeich # https://todo.sr.ht/~sircmpwn/hg.sr.ht/33 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Launcher/menu program for wlroots-based compositors + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING.md + +LIB_DEPENDS= libwayland-client.so:graphics/wayland + +USES= gnome meson pkgconfig +USE_CSTD= gnu99 +USE_GNOME= gdkpixbuf2 gtk30 + +post-patch: + @${REINPLACE_CMD} 's,/usr/local,${PREFIX},g' \ + ${WRKSRC}/man/${PORTNAME}.7 \ + ${WRKSRC}/modes/drun.c +# Extract (snapshot) version from the port instead of meson.build + @${REINPLACE_CMD} -i .nohg -e 's/hg.found()/false/' \ + -e "s/' + version + '/${DISTVERSIONFULL}/" \ + ${WRKSRC}/meson.build + +.include <bsd.port.mk> Added: head/x11/wofi/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/wofi/distinfo Mon Mar 23 18:52:21 2020 (r528997) @@ -0,0 +1,3 @@ +TIMESTAMP = 1583818656 +SHA256 (wofi-v1.1.2.tar.gz) = c7f952e49bf52d3519b52c9f7c88c8d83a800297d16076f7eaefddf0cb6f8371 +SIZE (wofi-v1.1.2.tar.gz) = 64813 Added: head/x11/wofi/files/patch-glib-2.56 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/wofi/files/patch-glib-2.56 Mon Mar 23 18:52:21 2020 (r528997) @@ -0,0 +1,44 @@ +Partially revert https://hg.sr.ht/~scoopta/wofi/rev/6343e02e2478 until +devel/glib20 is updated to 2.60 or later. + +ld: error: undefined symbol: g_app_info_launch_uris_async +>>> referenced by drun.c +>>> wofi@exe/modes_drun.c.o:(wofi_drun_exec) + +ld: error: undefined symbol: g_app_info_launch_uris_finish +>>> referenced by drun.c +>>> wofi@exe/modes_drun.c.o:(launch_done) + +--- modes/drun.c.orig 2020-03-10 05:37:36 UTC ++++ modes/drun.c +@@ -315,6 +315,7 @@ struct widget* wofi_drun_get_widget(void) { + return NULL; + } + ++#if GLIB_CHECK_VERSION(2, 60, 0) + static void launch_done(GObject* obj, GAsyncResult* result, gpointer data) { + GError* err = NULL; + if(g_app_info_launch_uris_finish(G_APP_INFO(obj), result, &err)) { +@@ -329,6 +330,7 @@ static void launch_done(GObject* obj, GAsyncResult* re + } + exit(1); + } ++#endif + + void wofi_drun_exec(const gchar* cmd) { + GDesktopAppInfo* info = g_desktop_app_info_new_from_filename(cmd); +@@ -338,7 +340,14 @@ void wofi_drun_exec(const gchar* cmd) { + printf("%s\n", g_app_info_get_commandline(G_APP_INFO(info))); + exit(0); + } else { ++#if GLIB_CHECK_VERSION(2, 60, 0) + g_app_info_launch_uris_async(G_APP_INFO(info), NULL, NULL, NULL, launch_done, (gchar*) cmd); ++#else ++ const char* exec = g_app_info_get_executable(G_APP_INFO(info)); ++ execlp(exec, exec, NULL); ++ fprintf(stderr, "%s cannot be executed\n", exec); ++ exit(errno); ++#endif + } + } else if(strrchr(cmd, ' ') != NULL) { + char* space = strrchr(cmd, ' '); Added: head/x11/wofi/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/wofi/pkg-descr Mon Mar 23 18:52:21 2020 (r528997) @@ -0,0 +1,4 @@ +Wofi is a launcher/menu program for wlroots-based Wayland compositors +such as Sway. + +WWW: https://hg.sr.ht/~scoopta/wofi Added: head/x11/wofi/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/wofi/pkg-plist Mon Mar 23 18:52:21 2020 (r528997) @@ -0,0 +1,15 @@ +bin/wofi +include/wofi-1/config.h +include/wofi-1/map.h +include/wofi-1/utils.h +include/wofi-1/wofi_api.h +libdata/pkgconfig/wofi.pc +man/man1/wofi.1.gz +man/man3/wofi-api.3.gz +man/man3/wofi-config.3.gz +man/man3/wofi-map.3.gz +man/man3/wofi-utils.3.gz +man/man3/wofi.3.gz +man/man5/wofi.5.gz +man/man7/wofi-keys.7.gz +man/man7/wofi.7.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003231852.02NIqMfI061225>