sys-apps/man-pages-posix: add version 2013.a

This commit is contained in:
Leorize
2018-08-09 14:15:33 +07:00
parent 853c3385d3
commit f97ed6da0a
2 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
The Institute of Electrical and Electronics Engineers (IEEE) and
The Open Group, have given us permission to reprint portions of
their documentation.
In the following statement, the phrase ``this text'' refers to
portions of the system documentation.
Portions of this text are reprinted and reproduced in electronic form
from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
-- Portable Operating System Interface (POSIX), The Open Group Base
Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri-
cal and Electronics Engineers, Inc and The Open Group. (This is
POSIX.1-2008 with the 2013 Technical Corrigendum 1 applied.) In the
event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online
at http://www.unix.org/online.html .
This notice shall appear on any product containing this material.
Redistribution of this material is permitted so long as this notice and
the corresponding notices within each POSIX manual page are retained on
any distribution, and the nroff source is included. Modifications to
the text are permitted so long as any conflicts with the standard
are clearly marked as such in the text.

View File

@@ -0,0 +1,50 @@
SUMMARY="POSIX man-pages (0p, 1p, 3p)"
DESCRIPTION="Contains descriptions of the headers, the utilities, \
and the functions documented in the POSIX standard."
HOMEPAGE="https://www.kernel.org/doc/man-pages/"
COPYRIGHT="2013 Institute of Electrical and Electronics Engineers, Inc
2013 The Open Group"
LICENSE="POSIX"
REVISION="1"
SOURCE_URI="https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/${portName//_/-}-${portVersion/./-}.tar.xz"
CHECKSUM_SHA256="19633a5c75ff7deab35b1d2c3d5b7748e7bd4ef4ab598b647bb7e7f60b90a808"
SOURCE_DIR="${portName//_/-}-${portVersion/./-}"
ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE="yes"
PROVIDES="
$portName = $portVersion
"
REQUIRES=""
BUILD_REQUIRES=""
BUILD_PREREQUIRES="
cmd:find
cmd:make
cmd:perl
"
PATCH() {
# Replace Linux's prolog with Haiku's
local prolog="This manual page is part of the POSIX Programmer's Manual.\\n\
This interface might not be implemented on Haiku."
local manpages=( $(find man?p -type f) )
for m in "${manpages[@]}"
do
perl -e '
while (<>) {
$s .= $_;
}
chomp $s;
$s =~ s/(?<=\.SH PROLOG\n).*?(?=^\s*$)/'"$prolog"'/gms;
print "$s"
' < "$m" > "$m.new"
mv "$m.new" "$m"
done
}
INSTALL() {
make MANDIR="$manDir" install
}