From: ericonr <ericonr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Add general localized man pages, remove hook that removes them.
Date: Fri, 23 Oct 2020 08:02:18 +0200 [thread overview]
Message-ID: <20201023060218.yTw4WHgvaW-9PfjeJYksaHrVU00254YSsNVSEm_uZNw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-24443@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 827 bytes --]
There is an updated pull request by ericonr against master on the void-packages repository
https://github.com/ericonr/void-packages l10n
https://github.com/void-linux/void-packages/pull/24443
Add general localized man pages, remove hook that removes them.
Why does this hook exist? `mdocml` doesn't seem to support localized pages, but `man-db` does.
I need some help on the `manpages-l10n` package, since setting `build_style=meta` would force me to manually specify a lot of functions for no gain, and the license shouldn't be `vlicense`d. So `xbps-src` is complaining the package is empty :/
The `short_descs` also still need to be updated.
---
`mdocml` supports this, as long as it's configured in `/etc/man.conf`.
A patch file from https://github.com/void-linux/void-packages/pull/24443.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-l10n-24443.patch --]
[-- Type: text/x-diff, Size: 4985 bytes --]
From 9d966105f3bf548f8b629678c383c6ed33872e60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Sun, 23 Aug 2020 20:27:21 -0300
Subject: [PATCH 1/2] common/hooks: remove remove-localized-manpages hook.
Allow packages to include localized man pages. Needed for manpages-l10n.
---
.../01-remove-localized-manpages.sh | 20 -------------------
1 file changed, 20 deletions(-)
delete mode 100644 common/hooks/post-install/01-remove-localized-manpages.sh
diff --git a/common/hooks/post-install/01-remove-localized-manpages.sh b/common/hooks/post-install/01-remove-localized-manpages.sh
deleted file mode 100644
index bee8d9d84e6..00000000000
--- a/common/hooks/post-install/01-remove-localized-manpages.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-# This hook removes localized man(1) files
-
-hook() {
- local section mandir=${PKGDESTDIR}/usr/share/man
-
- for section in ${mandir}/*; do
- if ! [ -d ${section} ]; then
- continue
- fi
-
- case ${section} in
- ${mandir}/man[0-9n]|${mandir}/man[013][fp])
- continue;;
- ${mandir}/cat[0-9n]|${mandir}/cat[013][fp])
- continue;;
- esac
-
- rm -rf ${section}
- done
-}
From 5a5a564dfd6457264eb449f36372028006423c18 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Sun, 23 Aug 2020 20:27:44 -0300
Subject: [PATCH 2/2] New package: manpages-pt-br-4.2.0.
Plus subpackages for other languages.
---
srcpkgs/manpages-de | 1 +
srcpkgs/manpages-fr | 1 +
srcpkgs/manpages-nl | 1 +
srcpkgs/manpages-pl | 1 +
srcpkgs/manpages-pt-br/template | 55 +++++++++++++++++++++++++++++++++
srcpkgs/manpages-pt-br/update | 2 ++
srcpkgs/manpages-ro | 1 +
7 files changed, 62 insertions(+)
create mode 120000 srcpkgs/manpages-de
create mode 120000 srcpkgs/manpages-fr
create mode 120000 srcpkgs/manpages-nl
create mode 120000 srcpkgs/manpages-pl
create mode 100644 srcpkgs/manpages-pt-br/template
create mode 100644 srcpkgs/manpages-pt-br/update
create mode 120000 srcpkgs/manpages-ro
diff --git a/srcpkgs/manpages-de b/srcpkgs/manpages-de
new file mode 120000
index 00000000000..3cf72f5bb89
--- /dev/null
+++ b/srcpkgs/manpages-de
@@ -0,0 +1 @@
+manpages-pt-br
\ No newline at end of file
diff --git a/srcpkgs/manpages-fr b/srcpkgs/manpages-fr
new file mode 120000
index 00000000000..3cf72f5bb89
--- /dev/null
+++ b/srcpkgs/manpages-fr
@@ -0,0 +1 @@
+manpages-pt-br
\ No newline at end of file
diff --git a/srcpkgs/manpages-nl b/srcpkgs/manpages-nl
new file mode 120000
index 00000000000..3cf72f5bb89
--- /dev/null
+++ b/srcpkgs/manpages-nl
@@ -0,0 +1 @@
+manpages-pt-br
\ No newline at end of file
diff --git a/srcpkgs/manpages-pl b/srcpkgs/manpages-pl
new file mode 120000
index 00000000000..3cf72f5bb89
--- /dev/null
+++ b/srcpkgs/manpages-pl
@@ -0,0 +1 @@
+manpages-pt-br
\ No newline at end of file
diff --git a/srcpkgs/manpages-pt-br/template b/srcpkgs/manpages-pt-br/template
new file mode 100644
index 00000000000..51a46f0452d
--- /dev/null
+++ b/srcpkgs/manpages-pt-br/template
@@ -0,0 +1,55 @@
+# Template file for 'manpages-pt-br'
+pkgname=manpages-pt-br
+version=4.2.0
+revision=1
+_prjname=manpages-l10n
+wrksrc=${_prjname}-v${version}
+build_style=gnu-configure
+make_build_args="comp_extension= compressor=cat"
+hostmakedepends="po4a"
+_desc="Translations of manpages"
+short_desc="${_desc} - Brazilian Portuguese (Português Brasileiro)"
+maintainer="Érico Nogueira <ericonr@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://manpages-l10n-team.pages.debian.net/manpages-l10n/"
+distfiles="https://salsa.debian.org/manpages-l10n-team/${_prjname}/-/archive/v${version}/${_prjname}-v${version}.tar.gz"
+checksum=efb0cdf72510ca74d6f6172c44059d7726116d2e3839e70f494a2e8e3728f6fb
+
+post_install() {
+ find $DESTDIR -name '*systemd*' -delete
+}
+
+manpages-nl_package() {
+ short_desc="${_desc} - Dutch (Nederlands)"
+ pkg_install() {
+ vmove usr/share/man/nl
+ }
+}
+
+manpages-fr_package() {
+ short_desc="${_desc} - French (Français)"
+ pkg_install() {
+ vmove usr/share/man/fr
+ }
+}
+
+manpages-de_package() {
+ short_desc="${_desc} - German (Deutsch)"
+ pkg_install() {
+ vmove usr/share/man/de
+ }
+}
+
+manpages-pl_package() {
+ short_desc="${_desc} - Polish (Polski)"
+ pkg_install() {
+ vmove usr/share/man/pl
+ }
+}
+
+manpages-ro_package() {
+ short_desc="${_desc} - Romanian (Limba Română)"
+ pkg_install() {
+ vmove usr/share/man/ro
+ }
+}
diff --git a/srcpkgs/manpages-pt-br/update b/srcpkgs/manpages-pt-br/update
new file mode 100644
index 00000000000..43c7e78b44e
--- /dev/null
+++ b/srcpkgs/manpages-pt-br/update
@@ -0,0 +1,2 @@
+pkgname=manpages-l10n
+site="https://salsa.debian.org/manpages-l10n-team/manpages-l10n/-/tags"
diff --git a/srcpkgs/manpages-ro b/srcpkgs/manpages-ro
new file mode 120000
index 00000000000..3cf72f5bb89
--- /dev/null
+++ b/srcpkgs/manpages-ro
@@ -0,0 +1 @@
+manpages-pt-br
\ No newline at end of file
next prev parent reply other threads:[~2020-10-23 6:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-23 23:37 [PR PATCH] " ericonr
2020-08-24 23:44 ` fosslinux
2020-09-20 15:23 ` ericonr
2020-09-22 18:21 ` Chocimier
2020-10-23 6:02 ` ericonr [this message]
2020-10-23 6:03 ` ericonr
2020-10-23 6:03 ` ericonr
2020-12-12 6:58 ` [PR PATCH] [Merged]: " ericonr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201023060218.yTw4WHgvaW-9PfjeJYksaHrVU00254YSsNVSEm_uZNw@z \
--to=ericonr@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).