Ports: Add GNU indent

This commit is contained in:
Brendan Coles 2020-11-09 10:52:11 +00:00 committed by Andreas Kling
parent 32957745fb
commit 7fbf890717
Notes: sideshowbarker 2024-07-19 01:29:03 +09:00
3 changed files with 38 additions and 0 deletions

17
Ports/indent/package.sh Executable file
View file

@ -0,0 +1,17 @@
#!/bin/bash ../.port_include.sh
port=indent
version=2.2.11
files="https://ftp.gnu.org/gnu/indent/indent-${version}.tar.gz indent-${version}.tar.gz
https://ftp.gnu.org/gnu/indent/indent-${version}.tar.gz.sig indent-${version}.tar.gz.sig
https://ftp.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
useconfigure=true
auth_type="sig"
auth_opts="--keyring ./gnu-keyring.gpg indent-${version}.tar.gz.sig"
man_dir=$SERENITY_ROOT/Build/Root/usr/local/share/man/man1/
post_install() {
mkdir -p "${man_dir}"
cp "indent-${version}/man/indent.1" "${man_dir}"
}

View file

@ -0,0 +1,11 @@
--- indent-2.2.11/Makefile.in.orig 2020-11-09 01:22:06.155330703 -0800
+++ indent-2.2.11/Makefile.in 2020-11-09 01:22:26.199212026 -0800
@@ -237,7 +237,7 @@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = no-texinfo.tex
-SUBDIRS = intl src doc po man
+SUBDIRS = intl src po
BUILT_SOURCES =
EXTRA_DIST = README \
config/config.rpath config/mkinstalldirs \

View file

@ -0,0 +1,10 @@
--- indent-2.2.11/config/config.sub.orig 2020-11-08 23:19:24.782365611 -0800
+++ indent-2.2.11/config/config.sub 2020-11-08 23:19:36.510304136 -0800
@@ -1236,6 +1236,7 @@
# Each alternative MUST END IN A *, to match a version number.
# -sysv* is not here because it comes later, after sysvr4.
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ | -serenity* \
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \