From 494e75cc323cedaaf3bce24ab0e02ab1df602bbf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matt=C3=A9o=20Rossillol=E2=80=91=E2=80=91Laruelle?= Date: Tue, 2 Jul 2019 22:59:53 +0200 Subject: [PATCH] app-i18n/man-pages-fr: revbump and adoption MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - change URI because the previous one is down: build from GitLab repo - adopt package: update metadata.xml - change LICENSE variable (sys-apps/man-pages) - ebuild handles unpacking Signed-off-by: Mattéo Rossillol‑‑Laruelle Package-Manager: Portage-2.3.66, Repoman-2.3.11 Closes: https://github.com/gentoo/gentoo/pull/12380 Signed-off-by: Michał Górny --- app-i18n/man-pages-fr/Manifest | 3 ++ .../man-pages-fr-3.70-r1-fix-unpack.patch | 26 ++++++++++ .../man-pages-fr/man-pages-fr-3.70-r1.ebuild | 50 +++++++++++++++++++ app-i18n/man-pages-fr/metadata.xml | 15 +++++- 4 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 app-i18n/man-pages-fr/files/man-pages-fr-3.70-r1-fix-unpack.patch create mode 100644 app-i18n/man-pages-fr/man-pages-fr-3.70-r1.ebuild diff --git a/app-i18n/man-pages-fr/Manifest b/app-i18n/man-pages-fr/Manifest index 3afa1e4b7255..b58e72b2c001 100644 --- a/app-i18n/man-pages-fr/Manifest +++ b/app-i18n/man-pages-fr/Manifest @@ -1 +1,4 @@ +DIST man-pages-3.70.tar.xz 1266044 BLAKE2B 00aa14ac7c9aafb9883713c4d13fe9318cf10cfe844663226bcd374b0a77b8b8a60cefeada7ca058f9d4e8b4e1056f4c8c6d762f46507f08f454bbe450f49fe3 SHA512 3e5590fe5181a914bb49531b7786eefc9d13d1ce1e3a80b09500dfc31a7fa01543f36c44484194613d2c87b840e4bdd9774eedc67251d3378014698078cb3ca3 +DIST man-pages-fr-3.70-1-r1.tar.gz 4669973 BLAKE2B 2fd32c5e922f8d74dbec74724c9acb8f5fdc0fd7a88f4687465713b22ddee5589b4a54383bdf14eb76076538e9d28a20ffdac2415c521b21e21f5186606121d6 SHA512 002ca3b7066437ce3a42f9c0396940ffc8593d2acdd05a3150c54b8d1f272ef6a448a18e6f3de0f90ac6eb4e616c132eb4e11e3e052b2e6f83a820a7d56f32d1 DIST man-pages-fr-3.70-1.tar.xz 1143156 BLAKE2B 09a86733caf03246e530e898688d0f93ef401a74cc66eb1f5ee05ded5dee0be45fc27fcbcf458f2c5a3286a6655c7b7302eb1b2759be6e0205e69db95ce989dc SHA512 7bb6991b2278c898d67d465ebe434dc3a969e9ec5c962ed6b6fdb41e66121a1924573f529d310adf30cd8494515888627b3226f26b906452a8882c4851c290d8 +DIST perkamon-man-pages-3.70.tar.gz 24292 BLAKE2B 60848a93d95c1eedc50b10a4b8cfd68c3847ae5e6d13de06058f1c89218d953f68f5428fe3d422c11078f80a5bcb678abd51388b6ee4ea20c2db2e9a87fc51e6 SHA512 648f16c958d1ed5933da1e971f94391761cad94414eb4d0d3eee612f9cabef3a56f07c5f83b72be3f98d49a9956d3ccceb1568ea76572f6d4a6fb8b50a8225a5 diff --git a/app-i18n/man-pages-fr/files/man-pages-fr-3.70-r1-fix-unpack.patch b/app-i18n/man-pages-fr/files/man-pages-fr-3.70-r1-fix-unpack.patch new file mode 100644 index 000000000000..8d24981fc260 --- /dev/null +++ b/app-i18n/man-pages-fr/files/man-pages-fr-3.70-r1-fix-unpack.patch @@ -0,0 +1,26 @@ +diff --git a/Makefile.old b/Makefile +index a4e4285..b3b3690 100644 +--- a/Makefile.old ++++ b/Makefile +@@ -39,7 +39,7 @@ stamp-unpack-git: + touch $@ + + setup: stamp-setup +-stamp-setup: stamp-unpack ++stamp-setup: + $(MAKE) -C perkamon setup + mv perkamon/build . + touch $@ +diff --git a/perkamon/Makefile.old b/perkamon/Makefile +index 3a3aa32..57e532c 100644 +--- a/perkamon/Makefile.old ++++ b/perkamon/Makefile +@@ -99,7 +99,7 @@ stamp-unpack-git: + # Prepare sources for being used by po4a. + # This target is called once after manual pages are unpacked. + setup: stamp-setup +-stamp-setup: stamp-unpack ++stamp-setup: + -rm -rf build + mkdir -p build/C + for i in $$(seq 8); do mkdir build/C/man$$i; done diff --git a/app-i18n/man-pages-fr/man-pages-fr-3.70-r1.ebuild b/app-i18n/man-pages-fr/man-pages-fr-3.70-r1.ebuild new file mode 100644 index 000000000000..b940c747c2c6 --- /dev/null +++ b/app-i18n/man-pages-fr/man-pages-fr-3.70-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PV="${PV}-1" +DESCRIPTION="A somewhat comprehensive collection of French Linux man pages" +HOMEPAGE="https://traduc.org/perkamon" + +SRC_URI=" + https://gitlab.com/perkamon/${PN}/-/archive/${MY_PV}/${PN}-${MY_PV}.tar.gz -> ${PN}-${MY_PV}-${PR}.tar.gz + https://gitlab.com/perkamon/man-pages/-/archive/${PV}/man-pages-${PV}.tar.gz -> perkamon-man-pages-${PV}.tar.gz + https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/Archive/man-pages-${PV}.tar.xz +" + +LICENSE="BSD GPL-2+ man-pages" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" + +BDEPEND="app-text/po4a" + +RDEPEND="virtual/man" + +S="${WORKDIR}/${PN}-${MY_PV}" + +PATCHES=( + "${FILESDIR}/${PF}-fix-unpack.patch" +) + +src_unpack() { + unpack "${PN}-${MY_PV}-${PR}.tar.gz" + + cd "${S}" || die + unpack "perkamon-man-pages-${PV}.tar.gz" + mv "man-pages-${PV}" "perkamon" || die + + cd "perkamon" || die + unpack "man-pages-${PV}.tar.xz" + mv "man-pages-${PV}" "man-pages" || die +} + +src_compile() { + emake translate +} + +src_install() { + einstalldocs + + doman -i18n=fr build/fr/man*/* +} diff --git a/app-i18n/man-pages-fr/metadata.xml b/app-i18n/man-pages-fr/metadata.xml index 6f49eba8f496..673d3ce10a31 100644 --- a/app-i18n/man-pages-fr/metadata.xml +++ b/app-i18n/man-pages-fr/metadata.xml @@ -1,5 +1,18 @@ - + + beatussum@protonmail.com + Mattéo Rossillol‑‑Laruelle + + + proxy-maint@gentoo.org + Proxy Maintainers + + + + perkamon + + perkamon/man-pages-fr + -- 2.26.2