diff options
author | Brandon Scott <xeons@users.noreply.github.com> | 2019-11-16 04:42:07 -0600 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-16 12:50:50 +0100 |
commit | 0414e390350887a65ddcb18f3372992f4290d94a (patch) | |
tree | 154bad144072588791d09c40858c46977934012a /Ports/nano | |
parent | 3069988a757f0f7b9fed78336c5006efa2303d23 (diff) | |
download | serenity-0414e390350887a65ddcb18f3372992f4290d94a.zip |
Port: Nano
An early step towards a fully functional nano.
Diffstat (limited to 'Ports/nano')
-rwxr-xr-x | Ports/nano/package.sh | 11 | ||||
-rw-r--r-- | Ports/nano/patches/fix-autoconf.patch | 12 | ||||
-rw-r--r-- | Ports/nano/patches/fix-files.patch | 12 |
3 files changed, 35 insertions, 0 deletions
diff --git a/Ports/nano/package.sh b/Ports/nano/package.sh new file mode 100755 index 0000000000..394a00e2e0 --- /dev/null +++ b/Ports/nano/package.sh @@ -0,0 +1,11 @@ +#!/bin/bash ../.port_include.sh +port=nano +version=4.5 +workdir=nano-4.5 +useconfigure="true" +curlopts="-L" +files="https://www.nano-editor.org/dist/v4/nano-4.5.tar.xz nano-4.5.tar.xz" +configopts="--target=i686-pc-serenity --disable-browser --disable-utf8" +depends="ncurses" + +export CPPFLAGS=-I${SERENITY_ROOT}/Root/usr/local/include/ncurses diff --git a/Ports/nano/patches/fix-autoconf.patch b/Ports/nano/patches/fix-autoconf.patch new file mode 100644 index 0000000000..4129cb774a --- /dev/null +++ b/Ports/nano/patches/fix-autoconf.patch @@ -0,0 +1,12 @@ +diff -ru nano-4.5-original/nano-4.5/config.sub nano-4.5/config.sub +--- nano-4.5-original/nano-4.5/config.sub 2018-11-10 00:30:37.000000000 -0600 ++++ nano-4.5/config.sub 2019-11-13 01:52:22.442486361 -0600 +@@ -1369,6 +1369,7 @@ + | -sym* | -kopensolaris* | -plan9* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* | -aros* | -cloudabi* | -sortix* \ ++ | -serenity* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ + diff --git a/Ports/nano/patches/fix-files.patch b/Ports/nano/patches/fix-files.patch new file mode 100644 index 0000000000..80b3ad24a3 --- /dev/null +++ b/Ports/nano/patches/fix-files.patch @@ -0,0 +1,12 @@ +diff -ru nano-4.5-original/nano-4.5/src/files.c nano-4.5/src/files.c +--- nano-4.5-original/nano-4.5/src/files.c 2019-10-04 04:38:05.000000000 -0500 ++++ nano-4.5/src/files.c 2019-11-13 02:17:33.268207958 -0600 +@@ -31,6 +31,7 @@ + #include <unistd.h> + + #define LOCKBUFSIZE 8192 ++#define P_tmpdir "/tmp" + + /* Verify that the containing directory of the given filename exists. */ + bool has_valid_path(const char *filename) + |