Ports: Add ed port (#1159)
This commit is contained in:
parent
d0c230855d
commit
c904095333
Notes:
sideshowbarker
2024-07-19 09:43:21 +09:00
Author: https://github.com/ibara Commit: https://github.com/SerenityOS/serenity/commit/c9040953338 Pull-request: https://github.com/SerenityOS/serenity/pull/1159
4 changed files with 44 additions and 0 deletions
10
Ports/ed/package.sh
Executable file
10
Ports/ed/package.sh
Executable file
|
@ -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
|
||||
}
|
11
Ports/ed/patches/fix-Makefile-in.patch
Normal file
11
Ports/ed/patches/fix-Makefile-in.patch
Normal file
|
@ -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 > $@
|
12
Ports/ed/patches/fix-ed.patch
Normal file
12
Ports/ed/patches/fix-ed.patch
Normal file
|
@ -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 <stdbool.h>
|
||||
#endif
|
||||
|
||||
enum Pflags /* print suffixes */
|
11
Ports/ed/patches/fix-regex.patch
Normal file
11
Ports/ed/patches/fix-regex.patch
Normal file
|
@ -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 <stddef.h>
|
||||
#include <errno.h>
|
||||
-#include <regex.h>
|
||||
+#include <pcre2posix.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
Loading…
Add table
Reference in a new issue