aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2021-10-17 15:21:49 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2021-10-17 15:30:19 +0500
commitb200fbddec436ee462fb5bcb358c92744a379291 (patch)
tree68add27cc55d071ce0301dc91b0f137ac1c53648 /app-doc
parentdev-vcs/got: version bump to 0.61 (diff)
downloadguru-b200fbddec436ee462fb5bcb358c92744a379291.tar.gz
guru-b200fbddec436ee462fb5bcb358c92744a379291.tar.bz2
guru-b200fbddec436ee462fb5bcb358c92744a379291.zip
app-doc/openbsd-manpages: add 7.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'app-doc')
-rw-r--r--app-doc/openbsd-manpages/Manifest2
-rw-r--r--app-doc/openbsd-manpages/metadata.xml2
-rw-r--r--app-doc/openbsd-manpages/openbsd-manpages-7.0.ebuild41
3 files changed, 44 insertions, 1 deletions
diff --git a/app-doc/openbsd-manpages/Manifest b/app-doc/openbsd-manpages/Manifest
index 51427cb23..ea9b34463 100644
--- a/app-doc/openbsd-manpages/Manifest
+++ b/app-doc/openbsd-manpages/Manifest
@@ -1,2 +1,4 @@
DIST comp69.tgz 88021988 BLAKE2B e1e49f09baa01d747b5c165b57ef129e91d9d534b61163659478db1118f042c0aaf7c4df88ba0eacf74a5fff4692e3f92a663c5b2ef84d3cfb46a1e5ca87baf8 SHA512 5f22e7271e9677af9975a9645ed693fb490b5a85c5e1ddfdaf95c6d2fdac504ad34e2aa064801b052c426153431625f111191124907fd271802dbbf14277c8bd
+DIST comp70.tgz 74754856 BLAKE2B b462967a6349c167d385cb534dca86b4d96de74be307c69d78c3e82f7326767ab80640dcd28e86055a2989cb049d067657c9bdd68d75b8283d08f8a5109929d9 SHA512 10d3a5feb6d275613df9abb4a2eb0526363d97a4f7b9d33a7ffc7bea2bfe18d3aed8f44885bbd9402da0064b94e2363356879e5f2628bbfe60557a87807cfa82
DIST man69.tgz 7742404 BLAKE2B 8375477e1fecc20945ebc766c2da980ca988a0955dad746631ce5cebe2080b7eb030b1a8e062a6174c7a998aff99cbe5104268f142d372f91cf7d0aec581ed22 SHA512 b257a84862ba274bea82a908cc06c84d4164fcd607d29e92180154d89bb4250893b04e2faeac2dbc3ef9e919c5cfdee19e1b418ec8958d0b4dcdc3e492d837be
+DIST man70.tgz 7762328 BLAKE2B 3dbdde2b4242f10d9d35981b471baf01fb1e8919dd7982af77fabc9875cd8976de491cea1b640af56de4ea093c9d90b7821d21691bf78fb2a389ac2e1f7f42f0 SHA512 5aea38a8046610ed10e9de5ea3c0c3ddced457c17d162e1ae1250cb2fcee5d1252b4be165f199e55b6e7f413c9803339fdb49b25da48378fa2e3aa755c4191bd
diff --git a/app-doc/openbsd-manpages/metadata.xml b/app-doc/openbsd-manpages/metadata.xml
index c8b0192e7..7ebbd0334 100644
--- a/app-doc/openbsd-manpages/metadata.xml
+++ b/app-doc/openbsd-manpages/metadata.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>cyber+gentoo@sysrq.in</email>
diff --git a/app-doc/openbsd-manpages/openbsd-manpages-7.0.ebuild b/app-doc/openbsd-manpages/openbsd-manpages-7.0.ebuild
new file mode 100644
index 000000000..a534ffe92
--- /dev/null
+++ b/app-doc/openbsd-manpages/openbsd-manpages-7.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV=${PV/./}
+DESCRIPTION="OpenBSD manual pages"
+HOMEPAGE="https://man.openbsd.org"
+BASE_URI="https://ftp.openbsd.org/pub/OpenBSD/${PV}/amd64"
+SRC_URI="
+ ${BASE_URI}/comp${MY_PV}.tgz
+ ${BASE_URI}/man${MY_PV}.tgz
+"
+S="${WORKDIR}/usr/share/man"
+
+LICENSE="BSD BSD-2 BSD-4 ISC MIT icu openssl"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+
+src_prepare() {
+ default
+
+ ebegin "Renaming sections to prevent collision"
+ find . -maxdepth 1 -name 'man*' -execdir mv '{}' '{}'bsd \; || die
+ find . -type f -execdir mv '{}' '{}'bsd \; || die
+ find . -type f -execdir sed -i '{}' \
+ -e 's:^\.Dt \S\+ \S\+:\0bsd:' \
+ -e 's:^\(\.TH \S\+ "\?\)\([0-9a-z]\+\):\1\2bsd:' \; || die
+ eend 0
+}
+
+src_install() {
+ insinto /usr/share/man
+ doins -r *
+}
+
+pkg_postinst() {
+ elog "To read an OpenBSD manpage, add 'bsd' suffix to its section name."
+ elog "For example:"
+ elog "$ man -s 9bsd style"
+}