app-doc/openbsd-manpages: add 7.5

Closes: https://bugs.gentoo.org/935243
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu
2024-07-01 06:53:24 +03:00
parent 1a6ab49cef
commit 145870bdf3
2 changed files with 43 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
DIST comp69.tgz 88021988 BLAKE2B e1e49f09baa01d747b5c165b57ef129e91d9d534b61163659478db1118f042c0aaf7c4df88ba0eacf74a5fff4692e3f92a663c5b2ef84d3cfb46a1e5ca87baf8 SHA512 5f22e7271e9677af9975a9645ed693fb490b5a85c5e1ddfdaf95c6d2fdac504ad34e2aa064801b052c426153431625f111191124907fd271802dbbf14277c8bd
DIST comp70.tgz 74754856 BLAKE2B b462967a6349c167d385cb534dca86b4d96de74be307c69d78c3e82f7326767ab80640dcd28e86055a2989cb049d067657c9bdd68d75b8283d08f8a5109929d9 SHA512 10d3a5feb6d275613df9abb4a2eb0526363d97a4f7b9d33a7ffc7bea2bfe18d3aed8f44885bbd9402da0064b94e2363356879e5f2628bbfe60557a87807cfa82
DIST comp75.tgz 82618249 BLAKE2B d54381675aba347d70058fc0cfb5fa55a80a477096af65287009221b540e09342bb6a05b1172defc6e046602057b35083fa164493037f851e979fe66cc067ae6 SHA512 e5c018ed834ba11994da18dc97b10f0c8d3d0384c2d2d55e750acf09bf074c2445264b76579c822a4457f6daee7fec47dbf4c16cf3ea1d70053e9fc9acd09918
DIST man69.tgz 7742404 BLAKE2B 8375477e1fecc20945ebc766c2da980ca988a0955dad746631ce5cebe2080b7eb030b1a8e062a6174c7a998aff99cbe5104268f142d372f91cf7d0aec581ed22 SHA512 b257a84862ba274bea82a908cc06c84d4164fcd607d29e92180154d89bb4250893b04e2faeac2dbc3ef9e919c5cfdee19e1b418ec8958d0b4dcdc3e492d837be
DIST man70.tgz 7762328 BLAKE2B 3dbdde2b4242f10d9d35981b471baf01fb1e8919dd7982af77fabc9875cd8976de491cea1b640af56de4ea093c9d90b7821d21691bf78fb2a389ac2e1f7f42f0 SHA512 5aea38a8046610ed10e9de5ea3c0c3ddced457c17d162e1ae1250cb2fcee5d1252b4be165f199e55b6e7f413c9803339fdb49b25da48378fa2e3aa755c4191bd
DIST man75.tgz 8059203 BLAKE2B 2fe5823fa6f8b2580e95057a0cebc93d299d4da66cd552b123e95d22080109e5f95a1506adfd50f89c613d75df43c2858a36e353d0c20ac46addbb10edc86290 SHA512 2c60f6f42c6eff7caa563bf4db7c51e2b83aee59ef647835b0b3031deabf0b0e4e582894900665155b44eda946eedd0d9c418ef3e29432ca2d401b7516c74399

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