aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/libhandy
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2020-02-02 14:41:11 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2020-02-02 14:41:11 +0000
commitb049915bbe3753bb306ea0ba8f31c91828dc04a4 (patch)
tree2ec0d95e348690ef55e52fb68f1d8986643b2416 /x11-toolkits/libhandy
parentf862ccd302fba7d3834c00aa926dc29b704720a5 (diff)
downloadports-b049915bbe3753bb306ea0ba8f31c91828dc04a4.tar.gz
ports-b049915bbe3753bb306ea0ba8f31c91828dc04a4.zip
x11-toolkits/libhandy: Move e1c500dd02b1.patch to patch file
Checksum of it changed again. It changes all the time because GitLab insists on embedding the version of whatever Git packages they have installed in the footer. PR: 243797
Notes
Notes: svn path=/head/; revision=524965
Diffstat (limited to 'x11-toolkits/libhandy')
-rw-r--r--x11-toolkits/libhandy/Makefile3
-rw-r--r--x11-toolkits/libhandy/files/patch-src_gen-public-types.sh21
2 files changed, 21 insertions, 3 deletions
diff --git a/x11-toolkits/libhandy/Makefile b/x11-toolkits/libhandy/Makefile
index a3d020d35ac8..49fc8a0045c5 100644
--- a/x11-toolkits/libhandy/Makefile
+++ b/x11-toolkits/libhandy/Makefile
@@ -5,9 +5,6 @@ PORTVERSION= 0.0.10
CATEGORIES= x11-toolkits gnome
DIST_SUBDIR= gnome
-PATCH_SITES= ${GL_SITE}/${GL_ACCOUNT}/${GL_PROJECT}/commit/
-PATCHFILES+= e1c500dd02b1.patch:-p1
-
MAINTAINER= gnome@FreeBSD.org
COMMENT= Library with GTK+ widgets for mobile phones
diff --git a/x11-toolkits/libhandy/files/patch-src_gen-public-types.sh b/x11-toolkits/libhandy/files/patch-src_gen-public-types.sh
new file mode 100644
index 000000000000..0b49bc09a521
--- /dev/null
+++ b/x11-toolkits/libhandy/files/patch-src_gen-public-types.sh
@@ -0,0 +1,21 @@
+From e1c500dd02b14285e69544ad4384d8ed6e1c5109 Mon Sep 17 00:00:00 2001
+From: Ting-Wei Lan <lantw@src.gnome.org>
+Date: Wed, 10 Jul 2019 21:01:14 +0800
+Subject: [PATCH] Replace \+ with \{1,\}
+
+\+ is a non-standard GNU extension recognized by GNU sed. However, it
+doesn't work on FreeBSD, causing the generated hdy_init_public_types
+function to be empty.
+
+Fixes https://source.puri.sm/Librem5/libhandy/issues/135
+--- src/gen-public-types.sh.orig 2019-06-12 15:30:57 UTC
++++ src/gen-public-types.sh
+@@ -16,7 +16,7 @@ void
+ hdy_init_public_types (void)
+ {'
+
+-sed -ne 's/^#define \+\(HDY_TYPE_[A-Z0-9_]\+\) \+.*/ g_type_ensure (\1);/p' "$@" | sort
++sed -ne 's/^#define \{1,\}\(HDY_TYPE_[A-Z0-9_]\{1,\}\) \{1,\}.*/ g_type_ensure (\1);/p' "$@" | sort
+
+ echo '}
+ '