File gwget-epi2_24.patch of Package gwget

--- configure.in
+++ configure.in
@@ -97,13 +97,21 @@
 
 EPHY_VER=
 AC_ARG_WITH([epiphany-version],
-        AC_HELP_STRING([--with-epiphany-version@<:@=1.6|1.8|1.10|2.14@:>@],
-                       [Whether to use epiphany version 1.6 or 1.8 or 1.10 or 2.14 (default 1.6)]),
+        AC_HELP_STRING([--with-epiphany-version@<:@=1.6|1.8|1.10|2.14|2.16|2.18|2.19|2.20|2.21|2.22|2.23|2.24@:>@],
+                       [Whether to use epiphany version 1.6 or 1.8 or 1.10 or 2.x (default 1.6)]),
         [EPHY_VER="$withval"])
 
 dnl try to autodetect Epiphany 1.2, 1.4, 1.6, 1.8, 1.10, 2.14, 2.15, 2.16, 2.17 or 2.18
 EPHY_AUTODETECT="(autodetect)"
-if pkg-config --exists epiphany-2.18; then
+if pkg-config --exists epiphany-2.24; then
+	EPHY_VER=2.24
+elif pkg-config --exists epiphany-2.23; then
+	EPHY_VER=2.23
+elif pkg-config --exists epiphany-2.22; then
+	EPHY_VER=2.22
+elif pkg-config --exists epiphany-2.21; then
+	EPHY_VER=2.21
+elif pkg-config --exists epiphany-2.18; then
 	EPHY_VER=2.18
 elif pkg-config --exists epiphany-2.17; then
         EPHY_VER=2.17
@@ -170,6 +178,22 @@
 	  EPIPHANY_PKGCONFIG=epiphany-2.18
           EPIPHANY_REQUIRED=2.18
 	  EPIPHANY_SHORTVER=218
+elif test "x$EPHY_VER" = "x2.21"; then
+	  EPIPHANY_PKGCONFIG=epiphany-2.21
+          EPIPHANY_REQUIRED=2.21
+	  EPIPHANY_SHORTVER=221
+elif test "x$EPHY_VER" = "x2.22"; then
+	  EPIPHANY_PKGCONFIG=epiphany-2.22
+          EPIPHANY_REQUIRED=2.22
+	  EPIPHANY_SHORTVER=222
+elif test "x$EPHY_VER" = "x2.23"; then
+	  EPIPHANY_PKGCONFIG=epiphany-2.23
+          EPIPHANY_REQUIRED=2.23
+	  EPIPHANY_SHORTVER=223
+elif test "x$EPHY_VER" = "x2.24"; then
+	  EPIPHANY_PKGCONFIG=epiphany-2.24
+          EPIPHANY_REQUIRED=2.24
+	  EPIPHANY_SHORTVER=224
 else
      	AC_MSG_RESULT([no epiphany installed])
 fi
openSUSE Build Service is sponsored by