Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Add general localized man pages, remove hook that removes them.
@ 2020-08-23 23:37 ericonr
  2020-08-24 23:44 ` fosslinux
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ericonr @ 2020-08-23 23:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 691 bytes --]

There is a new 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 :/ 



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: 4487 bytes --]

From d6cce362eb535f7d5d8309afaa5c21a0cdbc34f4 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] remove-localized-manpages: remove hook.

---
 .../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 cce30c1fa11733a7ab60bd2da4776d55ce9ae46c 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-l10n-4.1.0.

---
 srcpkgs/manpages-de            |  1 +
 srcpkgs/manpages-fr            |  1 +
 srcpkgs/manpages-l10n/template | 52 ++++++++++++++++++++++++++++++++++
 srcpkgs/manpages-nl            |  1 +
 srcpkgs/manpages-pl            |  1 +
 srcpkgs/manpages-pt-br         |  1 +
 srcpkgs/manpages-ro            |  1 +
 7 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/manpages-de
 create mode 120000 srcpkgs/manpages-fr
 create mode 100644 srcpkgs/manpages-l10n/template
 create mode 120000 srcpkgs/manpages-nl
 create mode 120000 srcpkgs/manpages-pl
 create mode 120000 srcpkgs/manpages-pt-br
 create mode 120000 srcpkgs/manpages-ro

diff --git a/srcpkgs/manpages-de b/srcpkgs/manpages-de
new file mode 120000
index 00000000000..5eb955f7668
--- /dev/null
+++ b/srcpkgs/manpages-de
@@ -0,0 +1 @@
+manpages-l10n
\ No newline at end of file
diff --git a/srcpkgs/manpages-fr b/srcpkgs/manpages-fr
new file mode 120000
index 00000000000..5eb955f7668
--- /dev/null
+++ b/srcpkgs/manpages-fr
@@ -0,0 +1 @@
+manpages-l10n
\ No newline at end of file
diff --git a/srcpkgs/manpages-l10n/template b/srcpkgs/manpages-l10n/template
new file mode 100644
index 00000000000..49d35a6a873
--- /dev/null
+++ b/srcpkgs/manpages-l10n/template
@@ -0,0 +1,52 @@
+# Template file for 'manpages-l10n'
+pkgname=manpages-l10n
+version=4.1.0
+revision=1
+wrksrc=${pkgname}-v${version}
+build_style=gnu-configure
+make_build_args="comp_extension= compressor=cat"
+hostmakedepends="po4a"
+makedepends=""
+depends=""
+short_desc="Translations of manpages"
+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/${pkgname}/-/archive/v${version}/${pkgname}-v${version}.tar.gz"
+checksum=c85ec2f74b6cbc29c6eb30b5787c02e58b8213283222ac19b05845ee6c7d0b02
+
+manpages-pt-br_package() {
+	pkg_install() {
+		vmove usr/share/man/pt_BR
+	}
+}
+
+manpages-nl_package() {
+	pkg_install() {
+		vmove usr/share/man/nl
+	}
+}
+
+manpages-fr_package() {
+	pkg_install() {
+		vmove usr/share/man/fr
+	}
+}
+
+manpages-de_package() {
+	pkg_install() {
+		vmove usr/share/man/de
+	}
+}
+
+manpages-pl_package() {
+	pkg_install() {
+		vmove usr/share/man/pl
+	}
+}
+
+manpages-ro_package() {
+	pkg_install() {
+		vmove usr/share/man/ro
+	}
+}
diff --git a/srcpkgs/manpages-nl b/srcpkgs/manpages-nl
new file mode 120000
index 00000000000..5eb955f7668
--- /dev/null
+++ b/srcpkgs/manpages-nl
@@ -0,0 +1 @@
+manpages-l10n
\ No newline at end of file
diff --git a/srcpkgs/manpages-pl b/srcpkgs/manpages-pl
new file mode 120000
index 00000000000..5eb955f7668
--- /dev/null
+++ b/srcpkgs/manpages-pl
@@ -0,0 +1 @@
+manpages-l10n
\ No newline at end of file
diff --git a/srcpkgs/manpages-pt-br b/srcpkgs/manpages-pt-br
new file mode 120000
index 00000000000..5eb955f7668
--- /dev/null
+++ b/srcpkgs/manpages-pt-br
@@ -0,0 +1 @@
+manpages-l10n
\ No newline at end of file
diff --git a/srcpkgs/manpages-ro b/srcpkgs/manpages-ro
new file mode 120000
index 00000000000..5eb955f7668
--- /dev/null
+++ b/srcpkgs/manpages-ro
@@ -0,0 +1 @@
+manpages-l10n
\ No newline at end of file

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-12-12  6:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-23 23:37 [PR PATCH] Add general localized man pages, remove hook that removes them ericonr
2020-08-24 23:44 ` fosslinux
2020-09-20 15:23 ` ericonr
2020-09-22 18:21 ` Chocimier
2020-10-23  6:02 ` [PR PATCH] [Updated] " ericonr
2020-10-23  6:03 ` ericonr
2020-10-23  6:03 ` ericonr
2020-12-12  6:58 ` [PR PATCH] [Merged]: " ericonr

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).