From 53d4c7e207a75a293d9d9b4fbf37ad81efa0d369 Mon Sep 17 00:00:00 2001 From: Stephen Gregoratto Date: Mon, 8 Jun 2020 19:38:13 +0000 Subject: [PATCH] Ports: Add editline library (#2532) --- Ports/editline/package.sh | 6 ++++++ Ports/editline/patches/configure-system.patch | 11 +++++++++++ .../editline/patches/example-add-missing-header.patch | 10 ++++++++++ 3 files changed, 27 insertions(+) create mode 100755 Ports/editline/package.sh create mode 100644 Ports/editline/patches/configure-system.patch create mode 100644 Ports/editline/patches/example-add-missing-header.patch diff --git a/Ports/editline/package.sh b/Ports/editline/package.sh new file mode 100755 index 00000000000..1b1d092ca0c --- /dev/null +++ b/Ports/editline/package.sh @@ -0,0 +1,6 @@ +#!/bin/bash ../.port_include.sh +port=editline +version=1.17.1 +useconfigure=true +files="https://github.com/troglobit/editline/releases/download/${version}/editline-${version}.tar.xz editline-${version}.tar.xz ec25530e02f0926909bd0f176528019e" +auth_type="md5" diff --git a/Ports/editline/patches/configure-system.patch b/Ports/editline/patches/configure-system.patch new file mode 100644 index 00000000000..328c32ce730 --- /dev/null +++ b/Ports/editline/patches/configure-system.patch @@ -0,0 +1,11 @@ +--- editline-1.17.1/aux/config.sub 2020-06-08 23:59:28.865434416 +1000 ++++ editline-1.17.1/aux/config.sub.new 2020-06-08 23:59:21.345434106 +1000 +@@ -1390,7 +1390,7 @@ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ + | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ +- | -midnightbsd*) ++ | -midnightbsd* | -serenity*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) diff --git a/Ports/editline/patches/example-add-missing-header.patch b/Ports/editline/patches/example-add-missing-header.patch new file mode 100644 index 00000000000..b66db98b441 --- /dev/null +++ b/Ports/editline/patches/example-add-missing-header.patch @@ -0,0 +1,10 @@ +--- editline-1.17.1/examples/excallback.c 2020-02-23 19:37:53.000000000 +1100 ++++ editline-1.17.1/examples/excallback.c.new 2020-06-09 00:29:06.482173883 +1000 +@@ -39,6 +39,7 @@ + + #include + #include ++#include + + #ifdef HAVE_STDLIB_H + #include