From 06edf25d89c17483ecf7b08324fca8c2b5a6baa1 Mon Sep 17 00:00:00 2001 From: dcoppa Date: Thu, 13 Dec 2012 12:10:13 +0000 Subject: [PATCH] Update to i3-4.4 --- x11/i3/Makefile | 13 ++-- x11/i3/distinfo | 4 +- x11/i3/patches/patch-i3-config-wizard_main_c | 18 ----- x11/i3/patches/patch-i3-dmenu-desktop | 63 +++++++++++++++++ x11/i3/patches/patch-i3_config | 12 ++-- x11/i3/patches/patch-i3_config_keycodes | 18 ++--- x11/i3/patches/patch-i3_xsession_desktop | 17 ----- x11/i3/patches/patch-include_data_h | 19 ----- .../patch-man_i3-migrate-config-to-v4_1 | 12 ++-- x11/i3/patches/patch-parser-specs_config_spec | 28 ++++++++ x11/i3/patches/patch-src_cfgparse_y | 8 +-- x11/i3/patches/patch-src_commands_c | 8 +-- x11/i3/patches/patch-src_con_c | 33 --------- x11/i3/patches/patch-src_config_c | 8 +-- x11/i3/patches/patch-src_floating_c | 22 ------ x11/i3/patches/patch-src_i3_mk | 10 +-- x11/i3/patches/patch-src_ipc_c | 10 +-- x11/i3/patches/patch-src_main_c | 25 ++++--- x11/i3/patches/patch-src_manage_c | 70 ------------------- x11/i3/patches/patch-src_sighandler_c | 24 ------- x11/i3/patches/patch-src_startup_c | 38 +++++----- x11/i3/patches/patch-src_workspace_c | 45 ------------ x11/i3/patches/patch-src_x_c | 49 ++----------- x11/i3/pkg/PLIST | 3 +- 24 files changed, 181 insertions(+), 376 deletions(-) delete mode 100644 x11/i3/patches/patch-i3-config-wizard_main_c create mode 100644 x11/i3/patches/patch-i3-dmenu-desktop delete mode 100644 x11/i3/patches/patch-i3_xsession_desktop delete mode 100644 x11/i3/patches/patch-include_data_h create mode 100644 x11/i3/patches/patch-parser-specs_config_spec delete mode 100644 x11/i3/patches/patch-src_con_c delete mode 100644 x11/i3/patches/patch-src_floating_c delete mode 100644 x11/i3/patches/patch-src_manage_c delete mode 100644 x11/i3/patches/patch-src_sighandler_c delete mode 100644 x11/i3/patches/patch-src_workspace_c diff --git a/x11/i3/Makefile b/x11/i3/Makefile index edbd920a051..8d0b6e8fcd6 100644 --- a/x11/i3/Makefile +++ b/x11/i3/Makefile @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile,v 1.52 2012/11/13 08:44:01 dcoppa Exp $ +# $OpenBSD: Makefile,v 1.53 2012/12/13 12:10:13 dcoppa Exp $ COMMENT = improved dynamic tiling window manager -DISTNAME = i3-4.3 -REVISION = 5 +DISTNAME = i3-4.4 CATEGORIES = x11 EXTRACT_SUFX = .tar.bz2 @@ -17,7 +16,7 @@ PERMIT_PACKAGE_FTP = Yes PERMIT_DISTFILES_CDROM = Yes PERMIT_DISTFILES_FTP = Yes -WANTLIB = GL X11 Xcursor Xrender c cairo ev expat \ +WANTLIB = GL X11 Xcursor Xext Xrender c cairo ev expat \ fontconfig freetype glib-2.0 gobject-2.0 m \ pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre \ pixman-1 png pthread pthread-stubs \ @@ -62,7 +61,8 @@ FAKE_FLAGS = PREFIX=${PREFIX} \ INSTALL_SCRIPT="${INSTALL_SCRIPT}" post-configure: - ${SUBST_CMD} ${WRKSRC}/i3.config \ + ${SUBST_CMD} ${WRKSRC}/i3-dmenu-desktop \ + ${WRKSRC}/i3.config \ ${WRKSRC}/i3.config.keycodes \ ${WRKSRC}/src/cfgparse.y \ ${WRKSRC}/src/commands.c \ @@ -77,7 +77,8 @@ post-install: ${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} \ -c ${WRKBUILD}/man/i3.1 \ ${PREFIX}/man/man1/i3.1 - @rm ${PREFIX}/man/man1/i3-dump-log.1 \ + @rm ${PREFIX}/man/man1/i3-dmenu-desktop.1 \ + ${PREFIX}/man/man1/i3-dump-log.1 \ ${PREFIX}/man/man1/i3-sensible*.1 .include diff --git a/x11/i3/distinfo b/x11/i3/distinfo index a8095b7c863..e98859e3c68 100644 --- a/x11/i3/distinfo +++ b/x11/i3/distinfo @@ -1,2 +1,2 @@ -SHA256 (i3-4.3.tar.bz2) = iVv1hgklNe+yvHI7pZnHGgJ3aBFeVgUvER/IuxSNuSU= -SIZE (i3-4.3.tar.bz2) = 852253 +SHA256 (i3-4.4.tar.bz2) = mYdXSeq21vWjBY8zJVMs0iOp+iJ3GlTC/QbA3tl/SBs= +SIZE (i3-4.4.tar.bz2) = 884182 diff --git a/x11/i3/patches/patch-i3-config-wizard_main_c b/x11/i3/patches/patch-i3-config-wizard_main_c deleted file mode 100644 index 19cdbe171d4..00000000000 --- a/x11/i3/patches/patch-i3-config-wizard_main_c +++ /dev/null @@ -1,18 +0,0 @@ -$OpenBSD: patch-i3-config-wizard_main_c,v 1.6 2012/12/08 21:41:47 dcoppa Exp $ - -From 69e15bba5df807809a91baec08bc45b193ab8e85 Mon Sep 17 00:00:00 2001 -From: David Coppa -Date: Thu, 06 Dec 2012 11:30:14 +0000 -Subject: OpenBSD has getline() now - ---- i3-config-wizard/main.c.orig Tue May 8 16:42:21 2012 -+++ i3-config-wizard/main.c Tue May 8 16:42:37 2012 -@@ -13,7 +13,7 @@ - #endif - - /* For systems without getline, fall back to fgetln */ --#if defined(__APPLE__) || (defined(__FreeBSD__) && __FreeBSD_version < 800000) || defined(__OpenBSD__) -+#if defined(__APPLE__) || (defined(__FreeBSD__) && __FreeBSD_version < 800000) - #define USE_FGETLN - #elif defined(__FreeBSD__) - /* Defining this macro before including stdio.h is necessary in order to have diff --git a/x11/i3/patches/patch-i3-dmenu-desktop b/x11/i3/patches/patch-i3-dmenu-desktop new file mode 100644 index 00000000000..f029ede9340 --- /dev/null +++ b/x11/i3/patches/patch-i3-dmenu-desktop @@ -0,0 +1,63 @@ +$OpenBSD: patch-i3-dmenu-desktop,v 1.1 2012/12/13 12:10:13 dcoppa Exp $ +--- i3-dmenu-desktop.orig Thu Dec 13 09:55:16 2012 ++++ i3-dmenu-desktop Thu Dec 13 10:00:16 2012 +@@ -88,7 +88,7 @@ $xdg_data_home = $ENV{HOME} . '/.local/share' if + ! -d $xdg_data_home; + + my $xdg_data_dirs = $ENV{XDG_DATA_DIRS}; +-$xdg_data_dirs = '/usr/local/share/:/usr/share/' if ++$xdg_data_dirs = '${LOCALBASE}/share/' if + !defined($xdg_data_dirs) || + $xdg_data_dirs eq ''; + +@@ -187,12 +187,12 @@ for my $file (values %desktops) { + # 'evince.desktop' => { + # 'Exec' => 'evince %U', + # 'Name' => 'Dokumentenbetrachter', +-# '_Location' => '/usr/share/applications/evince.desktop' ++# '_Location' => '${LOCALBASE}/share/applications/evince.desktop' + # }, + # 'gedit.desktop' => { + # 'Exec' => 'gedit %U', + # 'Name' => 'gedit', +-# '_Location' => '/usr/share/applications/gedit.desktop' ++# '_Location' => '${LOCALBASE}/share/applications/gedit.desktop' + # } + # }; + +@@ -355,7 +355,7 @@ if (exists($app->{Terminal}) && $app->{Terminal}) { + # we need to create a temporary script that contains the full command line + # as the syntax for starting commands with arguments varies from terminal + # emulator to terminal emulator. +- # Then, we launch that script with i3-sensible-terminal. ++ # Then, we launch that script with xterm. + my ($fh, $filename) = tempfile(); + binmode($fh, ':utf8'); + say $fh <