summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-07-03 00:30:05 +0200
committerDavid Seifert <soap@gentoo.org>2022-07-03 00:30:05 +0200
commit226c7a7cf501d82dad9d20c24222edfda2831685 (patch)
tree6307d8655ee5a4b8dcf13f9c5c1f6747157749e0 /net-mail/mhonarc-gentoo
parentapp-admin/ryzen_monitor: Stabilize 1.0.4-r1 amd64, #855998 (diff)
downloadgentoo-226c7a7cf501d82dad9d20c24222edfda2831685.tar.gz
gentoo-226c7a7cf501d82dad9d20c24222edfda2831685.tar.bz2
gentoo-226c7a7cf501d82dad9d20c24222edfda2831685.zip
net-mail/mhonarc-gentoo: update EAPI 6 -> 8
Closes: https://bugs.gentoo.org/554650 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-mail/mhonarc-gentoo')
-rw-r--r--net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch63
-rw-r--r--net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r3.ebuild (renamed from net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r2.ebuild)16
2 files changed, 36 insertions, 43 deletions
diff --git a/net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch b/net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch
index d67c63e4b95f..7f1f894882d5 100644
--- a/net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch
+++ b/net-mail/mhonarc-gentoo/files/mhonarc-gentoo-2.6.18-archives-gentoo.patch
@@ -1,6 +1,5 @@
-diff -Nuar a/lib/mhamain.pl b/lib/mhamain.pl
---- a/lib/mhamain.pl 2006-06-10 02:42:58.000000000 +0000
-+++ b/lib/mhamain.pl 2008-01-27 14:12:48.000000000 +0000
+--- a/lib/mhamain.pl
++++ b/lib/mhamain.pl
@@ -73,6 +73,8 @@
TERM TRAP USR1 USR2 VTALRM XCPU XFSZ
);
@@ -10,7 +9,7 @@ diff -Nuar a/lib/mhamain.pl b/lib/mhamain.pl
###############################################################################
## Public routines
###############################################################################
-@@ -934,6 +936,16 @@
+@@ -936,6 +938,16 @@
} else {
$ctype = 'text/plain';
}
@@ -26,8 +25,8 @@ diff -Nuar a/lib/mhamain.pl b/lib/mhamain.pl
+ }
## Insure uniqueness of index
- $index .= $X . sprintf('%d',(defined($msgnum)?$msgnum:($LastMsgNum+1)));
-@@ -955,6 +967,7 @@
+ my $t = $index;
+@@ -961,6 +973,7 @@
$Subject{$index} = $sub;
$MsgHead{$index} = htmlize_header($fields);
$ContentType{$index} = $ctype;
@@ -35,7 +34,7 @@ diff -Nuar a/lib/mhamain.pl b/lib/mhamain.pl
if ($msgid) {
$MsgId{$msgid} = $index;
$NewMsgId{$msgid} = $index; # Track new message-ids
-@@ -966,6 +979,7 @@
+@@ -972,6 +985,7 @@
} else {
$IndexNum{$index} = getNewMsgNum();
}
@@ -43,7 +42,7 @@ diff -Nuar a/lib/mhamain.pl b/lib/mhamain.pl
$Refs{$index} = [ @refs ] if (@refs);
-@@ -1102,7 +1116,7 @@
+@@ -1121,7 +1135,7 @@
my $adding = ($ADD && !$force && !$SINGLE);
my $i_p0 = fmt_msgnum($msgnum);
@@ -52,7 +51,7 @@ diff -Nuar a/lib/mhamain.pl b/lib/mhamain.pl
my $filepathname = join($DIRSEP, $OUTDIR, $filename);
my $tmppathname;
-@@ -1160,7 +1174,9 @@
+@@ -1179,7 +1193,9 @@
"<!--X-Message-Id: ",
commentize($Index2MsgId{$index}), " -->\n",
"<!--X-Content-Type: ",
@@ -63,7 +62,7 @@ diff -Nuar a/lib/mhamain.pl b/lib/mhamain.pl
if (defined($Refs{$index})) {
foreach (@{$Refs{$index}}) {
-@@ -1456,8 +1472,9 @@
+@@ -1475,8 +1491,9 @@
#&defineIndex2MsgId();
my $msgnum = $IndexNum{$key};
return (undef, undef) if ($msgnum eq '');
@@ -74,9 +73,8 @@ diff -Nuar a/lib/mhamain.pl b/lib/mhamain.pl
delete $ContentType{$key};
delete $Date{$key};
delete $From{$key};
-diff -Nuar a/lib/mhdb.pl b/lib/mhdb.pl
---- a/lib/mhdb.pl 2005-12-20 21:28:15.000000000 +0000
-+++ b/lib/mhdb.pl 2008-01-27 13:25:52.000000000 +0000
+--- a/lib/mhdb.pl
++++ b/lib/mhdb.pl
@@ -61,6 +61,7 @@
## Meta-data
@@ -85,10 +83,9 @@ diff -Nuar a/lib/mhdb.pl b/lib/mhdb.pl
print_var($db,'Date', \%Date);
print_var($db,'Derived', \%Derived);
print_var($db,'FollowOld', \%Follow);
-diff -Nuar a/lib/mhinit.pl b/lib/mhinit.pl
---- a/lib/mhinit.pl 2005-07-08 06:34:03.000000000 +0000
-+++ b/lib/mhinit.pl 2008-01-27 13:25:52.000000000 +0000
-@@ -247,6 +247,7 @@
+--- a/lib/mhinit.pl
++++ b/lib/mhinit.pl
+@@ -248,6 +248,7 @@
%Follow = (); # Index key to follow-ups
%FolCnt = (); # Index key to number of follow-ups
%ContentType = (); # Index key to base content-type of message
@@ -96,9 +93,8 @@ diff -Nuar a/lib/mhinit.pl b/lib/mhinit.pl
%Icons = (); # Index key to icon URL for content-type
%AddIndex = (); # Flags for messages that must be written
-diff -Nuar a/lib/mhmsgfile.pl b/lib/mhmsgfile.pl
---- a/lib/mhmsgfile.pl 2001-09-17 16:10:28.000000000 +0000
-+++ b/lib/mhmsgfile.pl 2008-01-27 14:12:16.000000000 +0000
+--- a/lib/mhmsgfile.pl
++++ b/lib/mhmsgfile.pl
@@ -123,6 +123,10 @@
if (defined($href->{'derived'})) {
$Derived{$index} = $href->{'derived'};
@@ -110,10 +106,9 @@ diff -Nuar a/lib/mhmsgfile.pl b/lib/mhmsgfile.pl
$IndexNum{$index} = int($msgnum);
-diff -Nuar a/lib/mhopt.pl b/lib/mhopt.pl
---- a/lib/mhopt.pl 2005-07-08 06:34:03.000000000 +0000
-+++ b/lib/mhopt.pl 2008-01-27 13:25:52.000000000 +0000
-@@ -764,6 +764,7 @@
+--- a/lib/mhopt.pl
++++ b/lib/mhopt.pl
+@@ -798,6 +798,7 @@
delete($MsgId{''});
delete($FollowOld{''});
delete($ContentType{''});
@@ -121,10 +116,9 @@ diff -Nuar a/lib/mhopt.pl b/lib/mhopt.pl
delete($Refs{''});
# update DOCURL if default old value
-diff -Nuar a/lib/mhrcvars.pl b/lib/mhrcvars.pl
---- a/lib/mhrcvars.pl 2005-07-08 05:27:52.000000000 +0000
-+++ b/lib/mhrcvars.pl 2008-01-27 14:11:19.000000000 +0000
-@@ -195,7 +195,7 @@
+--- a/lib/mhrcvars.pl
++++ b/lib/mhrcvars.pl
+@@ -225,7 +225,7 @@
}
if ($var eq 'MSG') { ## Filename of message page
($lref, $key, $pos) = compute_msg_pos($index, $var, $arg);
@@ -133,7 +127,7 @@ diff -Nuar a/lib/mhrcvars.pl b/lib/mhrcvars.pl
last REPLACESW;
}
if ($var eq 'MSGHFIELD') { ## Message header field
-@@ -417,7 +417,7 @@
+@@ -447,7 +447,7 @@
if (!defined($key)) { $tmp = ""; last REPLACESW; }
$tmp = qq/name="/ . &fmt_msgnum($IndexNum{$key}) .
qq/" href="/ .
@@ -142,7 +136,7 @@ diff -Nuar a/lib/mhrcvars.pl b/lib/mhrcvars.pl
qq/"/;
last REPLACESW;
}
-@@ -432,7 +432,7 @@
+@@ -462,7 +462,7 @@
$isurl = 0;
($lref, $key, $pos) = compute_msg_pos($index, $var, $arg);
if (!defined($key)) { $tmp = ""; last REPLACESW; }
@@ -151,7 +145,7 @@ diff -Nuar a/lib/mhrcvars.pl b/lib/mhrcvars.pl
last REPLACESW;
}
if ($var eq 'IDXFNAME') { ## Filename of index page
-@@ -730,7 +730,7 @@
+@@ -760,7 +760,7 @@
$ret = qq|<a name="| .
&fmt_msgnum($IndexNum{$index}) .
qq|" href="| .
@@ -160,9 +154,8 @@ diff -Nuar a/lib/mhrcvars.pl b/lib/mhrcvars.pl
qq|">$ret</a>|
if $var eq 'SUBJECT' && $arg eq "" && !$mailto;
-diff -Nuar a/lib/mhutil.pl b/lib/mhutil.pl
---- a/lib/mhutil.pl 2005-07-08 05:27:53.000000000 +0000
-+++ b/lib/mhutil.pl 2008-01-27 14:11:50.000000000 +0000
+--- a/lib/mhutil.pl
++++ b/lib/mhutil.pl
@@ -28,6 +28,7 @@
package mhonarc;
@@ -171,7 +164,7 @@ diff -Nuar a/lib/mhutil.pl b/lib/mhutil.pl
## RFC 2369 header fields to check for URLs
%HFieldsList = (
-@@ -304,16 +305,20 @@
+@@ -313,16 +314,20 @@
## Routine to get filename of a message number.
##
sub msgnum_filename {
diff --git a/net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r2.ebuild b/net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r3.ebuild
index 333911aff1b2..544922d5947e 100644
--- a/net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r2.ebuild
+++ b/net-mail/mhonarc-gentoo/mhonarc-gentoo-2.6.18-r3.ebuild
@@ -1,27 +1,27 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
inherit perl-module
+MY_P="${P/mhonarc-gentoo/MHonArc}"
+
DESCRIPTION="Perl Mail-to-HTML Converter, Gentoo fork"
HOMEPAGE="https://www.mhonarc.org/"
-LICENSE="GPL-2"
SRC_URI="https://www.mhonarc.org/release/MHonArc/tar/MHonArc-${PV}.tar.bz2"
+S="${WORKDIR}/${MY_P}"
+LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="!net-mail/mhonarc"
-MY_P="${P/mhonarc-gentoo/MHonArc}"
-S="${WORKDIR}/${MY_P}"
-
-PATCHES=( "${FILESDIR}/${P}-archives-gentoo.patch" )
+PATCHES=( "${FILESDIR}"/${P}-archives-gentoo.patch )
src_install() {
- sed -e "s|-prefix |-docpath '${D}/usr/share/doc/${PF}' -prefix '${D}'|g" -i Makefile || die "sed on Makefile failed"
+ sed -e "s|-prefix |-docpath '${ED}/usr/share/doc/${PF}' -prefix '${ED}'|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