From 7fbf8907177929dd48becca46cf927bd32e356bd Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Mon, 9 Nov 2020 10:52:11 +0000 Subject: [PATCH] Ports: Add GNU indent --- Ports/indent/package.sh | 17 +++++++++++++++++ Ports/indent/patches/disable-docs.patch | 11 +++++++++++ Ports/indent/patches/fix-autoconf.patch | 10 ++++++++++ 3 files changed, 38 insertions(+) create mode 100755 Ports/indent/package.sh create mode 100644 Ports/indent/patches/disable-docs.patch create mode 100644 Ports/indent/patches/fix-autoconf.patch diff --git a/Ports/indent/package.sh b/Ports/indent/package.sh new file mode 100755 index 0000000000..0a1d14ef31 --- /dev/null +++ b/Ports/indent/package.sh @@ -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}" +} + diff --git a/Ports/indent/patches/disable-docs.patch b/Ports/indent/patches/disable-docs.patch new file mode 100644 index 0000000000..332e88bcfb --- /dev/null +++ b/Ports/indent/patches/disable-docs.patch @@ -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 \ diff --git a/Ports/indent/patches/fix-autoconf.patch b/Ports/indent/patches/fix-autoconf.patch new file mode 100644 index 0000000000..38fa99ccf4 --- /dev/null +++ b/Ports/indent/patches/fix-autoconf.patch @@ -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* \