Ports: Add editline library (#2532)

This commit is contained in:
Stephen Gregoratto 2020-06-08 19:38:13 +00:00 committed by GitHub
parent 883dc9260d
commit 53d4c7e207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-19 05:44:35 +09:00
3 changed files with 27 additions and 0 deletions

6
Ports/editline/package.sh Executable file
View File

@ -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"

View File

@ -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*)

View File

@ -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 <stdio.h>
#include <sys/types.h>
+#include <sys/select.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>