From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-text/po4a/Manifest | 9 +++ .../po4a/files/po4a-0.45-614122-no-dot-inc.patch | 26 +++++++++ .../po4a-0.45-port-our-regex-to-perl-5.22.patch | 44 +++++++++++++++ app-text/po4a/metadata.xml | 12 ++++ app-text/po4a/po4a-0.45-r3.ebuild | 64 ++++++++++++++++++++++ app-text/po4a/po4a-0.47-r1.ebuild | 58 ++++++++++++++++++++ 6 files changed, 213 insertions(+) create mode 100644 app-text/po4a/Manifest create mode 100644 app-text/po4a/files/po4a-0.45-614122-no-dot-inc.patch create mode 100644 app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch create mode 100644 app-text/po4a/metadata.xml create mode 100644 app-text/po4a/po4a-0.45-r3.ebuild create mode 100644 app-text/po4a/po4a-0.47-r1.ebuild (limited to 'app-text/po4a') diff --git a/app-text/po4a/Manifest b/app-text/po4a/Manifest new file mode 100644 index 000000000000..c26aefc24a60 --- /dev/null +++ b/app-text/po4a/Manifest @@ -0,0 +1,9 @@ +AUX po4a-0.45-614122-no-dot-inc.patch 473 SHA256 16917d4dd4ce620431762f727efd83549276b1b014f8ba40b5600bfb62a9ecd5 SHA512 0a651b9de200b3ca08b3c849f24eba6cfbac93dd5f35911c9bf2aade174cbec27ad2c5a061a628db1b308dc9c576e2dad3db71da9a507d6337bed9ce620ad042 WHIRLPOOL 1f58420fec8361a7db9115dcaf8a3bb7ee3640f230a8349fe5907ae231023afc4962dfabc666cb818456c03b3cb3dd5932cddf23f389361ce44dc3574e04e098 +AUX po4a-0.45-port-our-regex-to-perl-5.22.patch 1779 SHA256 3f6e6ab17bfc62425e64a77dafafffd53a3eef4da4fbdc3eb7408aa8e8c54de4 SHA512 493e80b8ffff96ef4434fe268e96a305246ca5f492f4d24fa01752131aa6f2c88c6b484f7e8c536d268d3de4c0fb7b0b7a920bc2709108f66822b5e64b030576 WHIRLPOOL 2b1f5d8f9b7646c052297e41d241d59236376f9fff8a7a3daca030043c962f467a7af2c786757aac6d421d6bf82b3c619b1846755035fd80a6e26fcfa2b59790 +DIST po4a_0.45.orig.tar.gz 2208959 SHA256 f5f47db85b48893d87d921152c96082233975bd0e0a9ee14f58c07d7dff81678 SHA512 e67334b7a45d3c23b7226077e01e12b3c4f1202531596f02851b6a9e7249b2b8a0c37f37ebbaf591753f041a4c6ce42c062b4822e91ac75884dcd0994c27323f WHIRLPOOL 404bb45412fff4cec13304490e5f74ee4a4573d3c755491816cfe501c3e83dbdb58ae3c799516fe21c692c9de6fbc2dd5a261c8039eca2e2777365b27ac358cd +DIST po4a_0.47.orig.tar.gz 2389750 SHA256 5010e1b7df1115cbd475f46587fc05fefc97301f9bba0c2f15106005ca017507 SHA512 9c459a9795977a39aacc09cfb6ddbdc7dd2174e22896fa7bde90510a43ea833054aef558f7ca798991addc052a2c7f91ee11e5d49658a5c80a9ecb9c135ff97a WHIRLPOOL f6b52ffd39ebfc3ec71d5719fc7e01260acb4d4525d63209c69cc73aa5d18dec6f06e476d911591c8b6a89ab4d73747221320ae578835f2a2c1fb84c665480ab +EBUILD po4a-0.45-r3.ebuild 1980 SHA256 e0b955ec1818c33500dd0776b51d4d73402640fd131a475cfd253c0b5f210b1b SHA512 28547b542eb7ddc4125f9d6c1d1cd9efa3f0db8498beffde5ffe0f8ff9bd2223ff2e43d7b8f0d71571f6a91487c3259941cc1b5c217bcb8b01a443093cdde26e WHIRLPOOL a0eda856dba6177b2ec2e1fe7f91b5516026cfcc763fbe1d7ed82a385db33dcef5aa7aa9a14da2d9b5ac8d63a029eba8d60d82b3e33c7ce733e9fb42e9bb3bec +EBUILD po4a-0.47-r1.ebuild 1665 SHA256 95cafa81f2c63cf4ebe6cd419c6a96c0cbcd42baeb3c62d241fbddcc6289bfbc SHA512 59548632757f68e89e9b672b15cf5f3201ffdc022b912aeeb25dbe18b2a6da7bde8eadd9e079612ee9148034a14063211a0289f2801a2d3746fd70b1e591a141 WHIRLPOOL 69cf4b0b88169a378b0edac681298d388ff7fa584c3715d4a615cef149f5c8cdbec32904912369e3fa67495cf926ea87209bc739e397ab539b6e0d48fb5e9bd6 +MISC ChangeLog 4692 SHA256 4b395e8c30f49560a65fec8c98decf8b498e8a6de6ad02025fbf1c547c74b553 SHA512 eb6a6d0ede014120fb1011498597e23acd63c4e66d9d56ece62f76ebce0cfebbb3fed5f1a97d8ede60fd8be4127ab865dd1831317c35e9b2d65720b375ec9dc8 WHIRLPOOL 956b74de73f69ffb4101cf5b82bac10391b8a68230a90ff55f2f88bcaafc571b9cade9b732a09e10c328812bc292ecee616f2a4c3aa364e3643a4b9c9deb55cf +MISC ChangeLog-2015 11480 SHA256 9d59f488c56195844ec5e1b5075840236e6226594aa485335c9641f631f97645 SHA512 9ad3252fcf74a5f14151e657cf1af2e8724c3856bf970c8210cab56bdfc3734ea199666897d71769a9745714f7bd632a7349ce20dc111559cc7f848110d62832 WHIRLPOOL ac70db9c4732db13696b08f51f32e77b3817edfa5e1157b89a0d7bb76808ad86f50240312940289c602ea5883e78761cff84b0e9ac223b171db80e4077f66afc +MISC metadata.xml 359 SHA256 5f050aaa88c70c2c9e277cdd14c9deaf8a5d784562cb983193a5b0478ceb5d9a SHA512 aea1ab25da9b3d9c4b0080912a0260d642f91a4c58c608e7b091fdaaf40aa8bd9c7c0237f2cb90227826c1bda9931ab3d307a42354b5fd3172e07ea676e2f566 WHIRLPOOL c41493c1fca4cc086d0f87c7c023753419870f48aa77dc258d80ecfd1562a668682d72f16a9a40f9970d19e75d1008ad50b33db4a2f2e16b5dffe4784c247f9c diff --git a/app-text/po4a/files/po4a-0.45-614122-no-dot-inc.patch b/app-text/po4a/files/po4a-0.45-614122-no-dot-inc.patch new file mode 100644 index 000000000000..226fa0e9b6e2 --- /dev/null +++ b/app-text/po4a/files/po4a-0.45-614122-no-dot-inc.patch @@ -0,0 +1,26 @@ +From: Kent Fredric +Date: Tue, 13 Jun 2017 21:10:34 +1200 +Subject: [PATCH] Fix broken use of lib '.' + + "'.'" is not "." + +Bug: https://bugs.gentoo.org/614122 +--- + Build.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Build.PL b/Build.PL +index 43c6f80..9ee443b 100644 +--- a/Build.PL ++++ b/Build.PL +@@ -1,6 +1,6 @@ + #!/usr/bin/perl + +-use lib q('.'); ++use lib q(.); + use Po4aBuilder; + + my $build = Po4aBuilder->new +-- +2.13.1 + diff --git a/app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch b/app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch new file mode 100644 index 000000000000..a204d5e97217 --- /dev/null +++ b/app-text/po4a/files/po4a-0.45-port-our-regex-to-perl-5.22.patch @@ -0,0 +1,44 @@ +Fix sgml and tex regex against perl-5.22. See Gentoo-bug: 604428. +Based on a patch from upstream git. Original commit info: +From 44e5c2f02b3166536257bc9d6384d41dda386648 Mon Sep 17 00:00:00 2001 +From: Martin Quinson +Date: Fri, 28 Aug 2015 19:01:17 +0200 +Subject: [PATCH] Port our regex to Perl 5.22 (patch by Roderich Schupp) + +--- + lib/Locale/Po4a/Sgml.pm | 4 ++-- + lib/Locale/Po4a/TeX.pm | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/lib/Locale/Po4a/Sgml.pm b/lib/Locale/Po4a/Sgml.pm +index 742e003..3ad5e8d 100644 +--- a/lib/Locale/Po4a/Sgml.pm ++++ b/lib/Locale/Po4a/Sgml.pm +@@ -672,9 +672,9 @@ sub parse_file { + } + } + } +- $prolog =~ s///g; ++ $prolog =~ s///g; + # Unprotect undefined inclusions, and die of them +- $prolog =~ s/{PO4A-percent}/%/sg; ++ $prolog =~ s/\{PO4A-percent\}/%/sg; + if ($prolog =~ /%([^;\s]*);/) { + die wrap_mod("po4a::sgml", + dgettext("po4a", +diff --git a/lib/Locale/Po4a/TeX.pm b/lib/Locale/Po4a/TeX.pm +index a78f94b..0faa465 100644 +--- a/lib/Locale/Po4a/TeX.pm ++++ b/lib/Locale/Po4a/TeX.pm +@@ -1168,7 +1168,7 @@ sub parse { + # environment contains an un-closed bracket) + if ( ($closed and ($line =~ /^\s*$/ or + $line =~ /^\s*$RE_VERBATIM\s*$/)) +- or (in_verbatim(@env) and $line =~ /^\s*\Q$ESCAPE\Eend{$env[-1]}\s*$/) ++ or (in_verbatim(@env) and $line =~ /^\s*\Q$ESCAPE\Eend\{$env[-1]\}\s*$/) + ) { + # An empty line. This indicates the end of the current + # paragraph. +-- +2.10.2 + diff --git a/app-text/po4a/metadata.xml b/app-text/po4a/metadata.xml new file mode 100644 index 000000000000..4153ed21dbec --- /dev/null +++ b/app-text/po4a/metadata.xml @@ -0,0 +1,12 @@ + + + + + fatzer2@gmail.com + Alexander Golubev + + + proxy-maint@gentoo.org + Proxy Maintainers + + diff --git a/app-text/po4a/po4a-0.45-r3.ebuild b/app-text/po4a/po4a-0.45-r3.ebuild new file mode 100644 index 000000000000..3523e66bb77e --- /dev/null +++ b/app-text/po4a/po4a-0.45-r3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PLOCALES="af ca cs da de eo es et eu fr hr id it ja kn ko nb nl pl pt_BR pt ru sl sv uk vi zh_CN zh_HK" +PLOCALES_BACKUP="en" + +# Needed because this package also installs to vendor_perl +GENTOO_DEPEND_ON_PERL_SUBSLOT="yes" +inherit perl-app perl-module l10n + +DESCRIPTION="Tools for helping translation of documentation" +HOMEPAGE="http://po4a.alioth.debian.org" +SRC_URI="mirror://debian/pool/main/p/po4a/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" +IUSE="test" + +RDEPEND="dev-perl/SGMLSpm + >=sys-devel/gettext-0.13 + app-text/openjade + dev-libs/libxslt + dev-perl/Locale-gettext + dev-perl/TermReadKey + dev-perl/Text-WrapI18N" +DEPEND="${RDEPEND} + >=dev-perl/Module-Build-0.380.0 + app-text/docbook-xsl-stylesheets + app-text/docbook-xml-dtd:4.1.2 + test? ( app-text/docbook-sgml-dtd + app-text/docbook-sgml-utils + virtual/tex-base )" + +SRC_TEST="do" + +src_prepare() { + # Check against locale files in ${S}/pod/bin for mismatches + # with languages listed in PLOCALES + local locales_path="$S/po/bin" + l10n_find_plocales_changes "$locales_path" "" ".po" + + # Array containing locale files to remove + local locales_to_remove=( ) + + # Get rid of disabled locales + my_get_disabled_locales() { + locales_to_remove=( "${locales_to_remove[@]}" "po/bin/${1}.po" "po/pod/${1}.po" ) + } + + l10n_for_each_disabled_locale_do my_get_disabled_locales + + einfo "Your LINGUAS lists the following languages: $LINGUAS" + einfo "Removing locale files not listed in it ..." + + # Fix bad escaping of '.' in @INC modification + epatch "${FILESDIR}/${P}-614122-no-dot-inc.patch" + + # perl_rm_files also updates the Manifest file + # and therefore silences Perl as to .po files we're about to clean + perl_rm_files "${locales_to_remove[@]}" +} diff --git a/app-text/po4a/po4a-0.47-r1.ebuild b/app-text/po4a/po4a-0.47-r1.ebuild new file mode 100644 index 000000000000..f08c52407590 --- /dev/null +++ b/app-text/po4a/po4a-0.47-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PLOCALES="af ca cs da de eo es et eu fr hr id it ja kn ko nb nl pl pt_BR pt ru sl sv uk vi zh_CN zh_HK" +PLOCALES_BACKUP="en" + +inherit perl-module l10n + +DESCRIPTION="Tools for helping translation of documentation" +HOMEPAGE="http://po4a.alioth.debian.org" +SRC_URI="mirror://debian/pool/main/p/po4a/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" +IUSE="test" + +RDEPEND="dev-perl/SGMLSpm + >=sys-devel/gettext-0.13 + app-text/openjade + dev-libs/libxslt + dev-perl/Locale-gettext + dev-perl/TermReadKey + dev-perl/Text-WrapI18N" +DEPEND="${RDEPEND} + >=dev-perl/Module-Build-0.380.0 + app-text/docbook-xsl-stylesheets + app-text/docbook-xml-dtd:4.1.2 + test? ( app-text/docbook-sgml-dtd + app-text/docbook-sgml-utils + virtual/tex-base )" + +# Running tests in parallel fails +DIST_TEST="do" + +PATCHES=( + # Fix bad escaping of '.' in @INC modification + "${FILESDIR}/${PN}-0.45-614122-no-dot-inc.patch" +) +src_prepare() { + # Check against locale files in ${S}/pod/bin for mismatches + # with languages listed in PLOCALES + local locales_path="${S}/po/bin" + l10n_find_plocales_changes "${locales_path}" "" ".po" + + # Get rid of disabled locales + my_get_disabled_locales() { + PERL_RM_FILES=( "${PERL_RM_FILES[@]}" "po/bin/${1}.po" "po/pod/${1}.po" ) + } + + l10n_for_each_disabled_locale_do my_get_disabled_locales + + einfo "Your LINGUAS lists the following languages: ${LINGUAS}" + + perl-module_src_prepare +} -- cgit v1.2.3