From c90409533380b59e7e0f1e26b51823ce296ab579 Mon Sep 17 00:00:00 2001 From: Brian Callahan Date: Sat, 1 Feb 2020 14:54:04 -0500 Subject: Ports: Add ed port (#1159) --- Ports/ed/package.sh | 10 ++++++++++ Ports/ed/patches/fix-Makefile-in.patch | 11 +++++++++++ Ports/ed/patches/fix-ed.patch | 12 ++++++++++++ Ports/ed/patches/fix-regex.patch | 11 +++++++++++ 4 files changed, 44 insertions(+) create mode 100755 Ports/ed/package.sh create mode 100644 Ports/ed/patches/fix-Makefile-in.patch create mode 100644 Ports/ed/patches/fix-ed.patch create mode 100644 Ports/ed/patches/fix-regex.patch diff --git a/Ports/ed/package.sh b/Ports/ed/package.sh new file mode 100755 index 0000000000..8832756232 --- /dev/null +++ b/Ports/ed/package.sh @@ -0,0 +1,10 @@ +#!/bin/bash ../.port_include.sh +port=ed +version=1.15 +files="https://ftp.gnu.org/gnu/ed/ed-1.15.tar.lz ed-1.15.tar.lz" +useconfigure=true +depends=pcre2 + +configure() { + run ./"$configscript" CC=i686-pc-serenity-gcc +} diff --git a/Ports/ed/patches/fix-Makefile-in.patch b/Ports/ed/patches/fix-Makefile-in.patch new file mode 100644 index 0000000000..60ec8235bf --- /dev/null +++ b/Ports/ed/patches/fix-Makefile-in.patch @@ -0,0 +1,11 @@ +--- ed-1.15/Makefile.in.orig Sat Feb 1 14:22:52 2020 ++++ ed-1.15/Makefile.in Sat Feb 1 14:23:06 2020 +@@ -20,7 +20,7 @@ + all : $(progname) r$(progname) + + $(progname) : $(objs) +- $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(objs) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(objs) -lpcre2-posix -lpcre2-8 + + r$(progname) : r$(progname).in + cat $(VPATH)/r$(progname).in > $@ diff --git a/Ports/ed/patches/fix-ed.patch b/Ports/ed/patches/fix-ed.patch new file mode 100644 index 0000000000..f19c5a2b2d --- /dev/null +++ b/Ports/ed/patches/fix-ed.patch @@ -0,0 +1,12 @@ +--- ed-1.15/ed.h.orig Sat Feb 1 14:19:01 2020 ++++ ed-1.15/ed.h Sat Feb 1 14:19:17 2020 +@@ -18,8 +18,7 @@ + */ + + #ifndef __cplusplus +-enum Bool { false = 0, true = 1 }; +-typedef enum Bool bool; ++#include + #endif + + enum Pflags /* print suffixes */ diff --git a/Ports/ed/patches/fix-regex.patch b/Ports/ed/patches/fix-regex.patch new file mode 100644 index 0000000000..c88deaf90a --- /dev/null +++ b/Ports/ed/patches/fix-regex.patch @@ -0,0 +1,11 @@ +--- ed-1.15/regex.c.orig Sat Feb 1 14:17:22 2020 ++++ ed-1.15/regex.c Sat Feb 1 14:17:34 2020 +@@ -19,7 +19,7 @@ + + #include + #include +-#include ++#include + #include + #include + #include -- cgit v1.2.3