mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
Ports: Add GNU indent
This commit is contained in:
parent
32957745fb
commit
7fbf890717
3 changed files with 38 additions and 0 deletions
17
Ports/indent/package.sh
Executable file
17
Ports/indent/package.sh
Executable 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}"
|
||||||
|
}
|
||||||
|
|
11
Ports/indent/patches/disable-docs.patch
Normal file
11
Ports/indent/patches/disable-docs.patch
Normal 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 \
|
10
Ports/indent/patches/fix-autoconf.patch
Normal file
10
Ports/indent/patches/fix-autoconf.patch
Normal 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* \
|
Loading…
Add table
Add a link
Reference in a new issue