summaryrefslogtreecommitdiff
path: root/net-mail/mhonarc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-11-03 16:06:58 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-11-03 16:06:58 +0000
commitbd4aeefe33e63f613512604e47bfca7b2187697d (patch)
treeadb35b5a9a00ee7ea591ab0c987f70167c23b597 /net-mail/mhonarc
parent48ece6662cbd443015f5a57ae6d8cbdbd69ef37c (diff)
gentoo resync : 03.11.2019
Diffstat (limited to 'net-mail/mhonarc')
-rw-r--r--net-mail/mhonarc/Manifest3
-rw-r--r--net-mail/mhonarc/files/mhonarc-fix-perl-defined-bugs.diff26
-rw-r--r--net-mail/mhonarc/mhonarc-2.6.19.ebuild33
3 files changed, 62 insertions, 0 deletions
diff --git a/net-mail/mhonarc/Manifest b/net-mail/mhonarc/Manifest
index b273828b75c7..0d45a00b99d9 100644
--- a/net-mail/mhonarc/Manifest
+++ b/net-mail/mhonarc/Manifest
@@ -1,3 +1,6 @@
+AUX mhonarc-fix-perl-defined-bugs.diff 817 BLAKE2B ae5c93dd4368b3ae228ec10797abf9510c4e17870002d35a5c9d21f461521c3087b4b3b84ec1ccc12d2a1b4e8699bf14fcffde856b28168127d1a7622cc4a9ae SHA512 c1946ab6175b8ab1f5121908f7c9e4185fd98a9f817934436230499567fb02f204c1a237e8558dbeda5a0217a64d612674b8ff7083b0a16711fd67a3bc370f0d
DIST MHonArc-2.6.18.tar.bz2 1546854 BLAKE2B dd403ef742ee3cf2ce3d4490a489d88fb4ba8814456d0ecfae347c4dfd5fc5a61593b9def93edcafadae5e32e9afd5853ac0bf584b8f0060962d1b6b3fb1f04f SHA512 816acfd5c68db274848859ea60c8fb47a12daadea5d8dc8acd12018b72c8ff22133ef7e366edb005ef309f7a74f2b4dfdb7ad5fe9256eb850bebaeb165be5511
+DIST MHonArc-2.6.19.tar.bz2 1577790 BLAKE2B 07c207c9684fd4a4f53a26ea18dc52c3136e7a5dc9623b121a8ef87b22fd19061d3fe91a48c691ba0776d7783dd3b80155e5c64518aa3050c0f0156537aa298b SHA512 17d9db58bf0a312ede435acba11a24ca73538f2031f24913fba28c8232b51b252e64a9bb55321aef26e3a2833a95939bdccaba51cb221fa1bc83d1980e60e7e0
EBUILD mhonarc-2.6.18-r2.ebuild 918 BLAKE2B 0922076a4ad11dea1c4be3641871df17781424206fb416fb761a48393b2c172c3508ab4fb02119e4ac066b5aca65d75f4b5f36277ad42bc63b355a6b4c21bd97 SHA512 cbc1343f4ee336847aa0db5084d0b81a9dac92ed54efce5b53da0e8efdb33f7fff473593bf1cc60474bc618d669669916185f0bae82aa53ff5fced349d38e046
+EBUILD mhonarc-2.6.19.ebuild 1028 BLAKE2B 9da32fd6385f91cc3b553f8296cf9331b4876a17c53db1ab8413d5809795a5ae7e474000a62b942275f3d404fc2c85cf385712b4ef1c14b72c093e73315ab864 SHA512 3e96b335ae3c7633fad2625b2d259cc57d73b350395e47cdfca7c393e3497cc34cd6da048d563d331a7e4cc32df697bd5c8340b1c8577c610bf50ac809cd5688
MISC metadata.xml 167 BLAKE2B e4dadf27fd344484f2bccb5b904909c89aac568c32e5b3c44bdf139eacefd4b4fae74419f503d2b7da0dccc1b68ba05d777d11292c0f89270d1ac5c9c703e8ca SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33
diff --git a/net-mail/mhonarc/files/mhonarc-fix-perl-defined-bugs.diff b/net-mail/mhonarc/files/mhonarc-fix-perl-defined-bugs.diff
new file mode 100644
index 000000000000..d3ab30623b20
--- /dev/null
+++ b/net-mail/mhonarc/files/mhonarc-fix-perl-defined-bugs.diff
@@ -0,0 +1,26 @@
+diff --git a/lib/mhamain.pl b/lib/mhamain.pl
+index 80980a2..d04dcc6 100644
+--- a/lib/mhamain.pl
++++ b/lib/mhamain.pl
+@@ -1562,7 +1562,7 @@ sub signal_catch {
+ ##
+ sub defineIndex2MsgId {
+ no warnings qw(deprecated);
+- if (!defined(%Index2MsgId)) {
++ if (!%Index2MsgId) {
+ foreach (keys %MsgId) {
+ $Index2MsgId{$MsgId{$_}} = $_;
+ }
+diff --git a/lib/mhopt.pl b/lib/mhopt.pl
+index 02fb05e..939109b 100644
+--- a/lib/mhopt.pl
++++ b/lib/mhopt.pl
+@@ -865,7 +865,7 @@ sub update_data_1_to_2 {
+ sub update_data_2_1_to_later {
+ no warnings qw(deprecated);
+ # we can preserve filter arguments
+- if (defined(%main::MIMEFiltersArgs)) {
++ if (%main::MIMEFiltersArgs) {
+ warn qq/ preserving MIMEARGS...\n/;
+ %readmail::MIMEFiltersArgs = %main::MIMEFiltersArgs;
+ $IsDefault{'MIMEARGS'} = 0;
diff --git a/net-mail/mhonarc/mhonarc-2.6.19.ebuild b/net-mail/mhonarc/mhonarc-2.6.19.ebuild
new file mode 100644
index 000000000000..927fad6c59b0
--- /dev/null
+++ b/net-mail/mhonarc/mhonarc-2.6.19.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit perl-module
+
+DESCRIPTION="Perl Mail-to-HTML Converter"
+HOMEPAGE="https://www.mhonarc.org/"
+SRC_URI="https://www.mhonarc.org/release/MHonArc/tar/MHonArc-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~x86"
+# Warrants IUSE examples, and here it is + ? IUSE doc; see also extras folder with html docs
+IUSE="examples"
+
+S="${WORKDIR}/${P/mhonarc/MHonArc}"
+mydoc="README.txt"
+
+# From upstream bugtracker: https://savannah.nongnu.org/bugs/?49997
+PATCHES=( "${FILESDIR}/mhonarc-fix-perl-defined-bugs.diff" )
+
+src_install() {
+ sed -e "s|-prefix |-docpath '${D}/usr/share/doc/${PF}/html' -prefix '${D}'|g" -i Makefile || die 'sed on Makefile failed'
+ sed -e "s|installsitelib|installvendorlib|g" -i install.me || die 'sed on install.me failed'
+ perl-module_src_install
+ if use examples; then
+ docompress -x usr/share/doc/${PF}/examples
+ insinto usr/share/doc/${PF}/
+ doins -r examples/
+ fi
+}