app-doc/openbsd-manpages: initial import

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2021-07-23 22:13:13 +05:00
parent 6093442972
commit 209a3388a4
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST comp69.tgz 88021988 BLAKE2B e1e49f09baa01d747b5c165b57ef129e91d9d534b61163659478db1118f042c0aaf7c4df88ba0eacf74a5fff4692e3f92a663c5b2ef84d3cfb46a1e5ca87baf8 SHA512 5f22e7271e9677af9975a9645ed693fb490b5a85c5e1ddfdaf95c6d2fdac504ad34e2aa064801b052c426153431625f111191124907fd271802dbbf14277c8bd
DIST man69.tgz 7742404 BLAKE2B 8375477e1fecc20945ebc766c2da980ca988a0955dad746631ce5cebe2080b7eb030b1a8e062a6174c7a998aff99cbe5104268f142d372f91cf7d0aec581ed22 SHA512 b257a84862ba274bea82a908cc06c84d4164fcd607d29e92180154d89bb4250893b04e2faeac2dbc3ef9e919c5cfdee19e1b418ec8958d0b4dcdc3e492d837be

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>cyber+gentoo@sysrq.in</email>
<name>Anna</name>
</maintainer>
</pkgmetadata>

View File

@@ -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"
}