From 6e34a642f47e30d66206306b8b64a46fbaf82da1 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Tue, 30 Jun 2020 10:01:58 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=99=BB=20=E2=80=94=20Use=20a=20more=20mo?= =?UTF-8?q?dern=20way=20of=20installing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - modern Makefile.PL - centralization of version number: just update it in lib/MHonArc.pm --- .gitignore | 9 + MANIFEST | 542 ++++++++++++++++++++++++++++++++++++++++ META.yml | 25 -- Makefile.PL | 126 ++++------ lib/MHonArc.pm | 40 +++ lib/MHonArc/Char.pm | 4 + lib/MHonArc/CharEnt.pm | 3 + lib/MHonArc/CharMaps.pm | 5 +- lib/MHonArc/Encode.pm | 3 + lib/MHonArc/RFC822.pm | 4 +- lib/MHonArc/UTF8.pm | 2 + lib/mhamain.pl | 3 +- 12 files changed, 655 insertions(+), 111 deletions(-) create mode 100644 .gitignore create mode 100644 MANIFEST delete mode 100644 META.yml create mode 100644 lib/MHonArc.pm diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ade913d --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +Makefile +Makefile.old +MYMETA.* +META.yml +blib/* +pm_to_blib +*.tar.gz +*.swp +*.bak diff --git a/MANIFEST b/MANIFEST new file mode 100644 index 0000000..ca7061f --- /dev/null +++ b/MANIFEST @@ -0,0 +1,542 @@ +.htaccess +ACKNOWLG +admin/images/mhaicon.png +admin/images/mhanote_s.png +admin/mhaadmin.cgi +admin/mhaadmin.html +admin/mhaadmin.rc +admin/README.txt +BUGS +CHANGES +contrib/mhastart.pl +contrib/mhn2mbox.pl +contrib/prsfrom.pl +contrib/README.txt +COPYING +doc/app-api.html +doc/app-bugs.html +doc/app-diagnos.html +doc/app-mimeconf.html +doc/app-rcfileexs.html +doc/app-rcidx.html +doc/app-utilsprg.html +doc/blank.png +doc/bug.png +doc/commontasks.html +doc/contacts.html +doc/COPYING +doc/docstyles.css +doc/faq.png +doc/faq/about.html +doc/faq/archives.html +doc/faq/envs.html +doc/faq/faq.html +doc/faq/general.html +doc/faq/indexpgs.html +doc/faq/mime.html +doc/faq/monicon.png +doc/faq/monsmall_t.png +doc/faq/msgpgs.html +doc/faq/security.html +doc/faq/threads.html +doc/faq/usage.html +doc/guides/performance.html +doc/home.png +doc/index.html +doc/install.html +doc/intro.html +doc/layout.html +doc/mhonarc.html +doc/monicon.png +doc/next.png +doc/prev.png +doc/quickstart.html +doc/rcfileexs/blog.mrc.html +doc/rcfileexs/date.mrc.html +doc/rcfileexs/def-mime.mrc.html +doc/rcfileexs/frames.mrc.html +doc/rcfileexs/icons.mrc.html +doc/rcfileexs/secure.mrc.html +doc/rcfileexs/subject.mrc.html +doc/rcfileexs/utf-8-encode.mrc.html +doc/rcfileexs/utf-8.mrc.html +doc/rcvars.html +doc/relnotes.html +doc/resources.html +doc/resources/add.html +doc/resources/addressmodifycode.html +doc/resources/afs.html +doc/resources/annotate.html +doc/resources/archive.html +doc/resources/attachmentdir.html +doc/resources/attachmenturl.html +doc/resources/authorbegin.html +doc/resources/authorend.html +doc/resources/authsort.html +doc/resources/botlinks.html +doc/resources/charsetaliases.html +doc/resources/charsetconverters.html +doc/resources/checknoarchive.html +doc/resources/conlen.html +doc/resources/datefields.html +doc/resources/daybegin.html +doc/resources/dayend.html +doc/resources/dbfile.html +doc/resources/dbfileperms.html +doc/resources/decodeheads.html +doc/resources/defcharset.html +doc/resources/definederived.html +doc/resources/definevar.html +doc/resources/defrcfile.html +doc/resources/defrcname.html +doc/resources/doc.html +doc/resources/docurl.html +doc/resources/editidx.html +doc/resources/excs.html +doc/resources/expireage.html +doc/resources/expiredate.html +doc/resources/fasttempfiles.html +doc/resources/fieldorder.html +doc/resources/fieldsbeg.html +doc/resources/fieldsend.html +doc/resources/fieldstore.html +doc/resources/fieldstyles.html +doc/resources/fileperms.html +doc/resources/firstpglink.html +doc/resources/fldbeg.html +doc/resources/fldend.html +doc/resources/followsymlinks.html +doc/resources/folrefs.html +doc/resources/folupbegin.html +doc/resources/folupend.html +doc/resources/foluplitxt.html +doc/resources/force.html +doc/resources/fromfields.html +doc/resources/genidx.html +doc/resources/gmtdatefmt.html +doc/resources/gzipexe.html +doc/resources/gzipfiles.html +doc/resources/gziplinks.html +doc/resources/headbodysep.html +doc/resources/htmlext.html +doc/resources/icons.html +doc/resources/iconurlprefix.html +doc/resources/idxfname.html +doc/resources/idxlabel.html +doc/resources/idxpgbegin.html +doc/resources/idxpgend.html +doc/resources/idxpgssmarkup.html +doc/resources/idxprefix.html +doc/resources/idxsize.html +doc/resources/include.html +doc/resources/keeponrmm.html +doc/resources/labelbeg.html +doc/resources/labelend.html +doc/resources/labelstyles.html +doc/resources/lang.html +doc/resources/lastpglink.html +doc/resources/listbegin.html +doc/resources/listend.html +doc/resources/litemplate.html +doc/resources/localdatefmt.html +doc/resources/lock.html +doc/resources/lockdelay.html +doc/resources/lockfile.html +doc/resources/lockmethod.html +doc/resources/locktries.html +doc/resources/mailto.html +doc/resources/mailtourl.html +doc/resources/main.html +doc/resources/maxsize.html +doc/resources/mhpattern.html +doc/resources/mimealtprefs.html +doc/resources/mimeargs.html +doc/resources/mimedecoders.html +doc/resources/mimeexcs.html +doc/resources/mimefilters.html +doc/resources/mimeincs.html +doc/resources/modifybodyaddresses.html +doc/resources/modtime.html +doc/resources/months.html +doc/resources/monthsabr.html +doc/resources/msgbodyend.html +doc/resources/msgexcfilter.html +doc/resources/msgfoot.html +doc/resources/msggmtdatefmt.html +doc/resources/msghead.html +doc/resources/msgidlink.html +doc/resources/msglocaldatefmt.html +doc/resources/msgpgbegin.html +doc/resources/msgpgend.html +doc/resources/msgpgs.html +doc/resources/msgpgssmarkup.html +doc/resources/msgprefix.html +doc/resources/msgsep.html +doc/resources/multipg.html +doc/resources/news.html +doc/resources/newsurl.html +doc/resources/nextbutton.html +doc/resources/nextbuttonia.html +doc/resources/nextlink.html +doc/resources/nextlinkia.html +doc/resources/nextpglink.html +doc/resources/nextpglinkia.html +doc/resources/nosubjecttxt.html +doc/resources/note.html +doc/resources/notedir.html +doc/resources/noteia.html +doc/resources/notetext.html +doc/resources/otherindexes.html +doc/resources/outdir.html +doc/resources/perlinc.html +doc/resources/posixstrftime.html +doc/resources/prevbutton.html +doc/resources/prevbuttonia.html +doc/resources/prevlink.html +doc/resources/prevlinkia.html +doc/resources/prevpglink.html +doc/resources/prevpglinkia.html +doc/resources/printxcomments.html +doc/resources/quiet.html +doc/resources/rcfile.html +doc/resources/reconvert.html +doc/resources/refsbegin.html +doc/resources/refsend.html +doc/resources/refslitxt.html +doc/resources/reverse.html +doc/resources/rmm.html +doc/resources/saveresources.html +doc/resources/scan.html +doc/resources/single.html +doc/resources/sort.html +doc/resources/spammode.html +doc/resources/ssmarkup.html +doc/resources/stderr.html +doc/resources/stdin.html +doc/resources/stdout.html +doc/resources/subjectarticlerxp.html +doc/resources/subjectbegin.html +doc/resources/subjectend.html +doc/resources/subjectheader.html +doc/resources/subjectreplyrxp.html +doc/resources/subjectstripcode.html +doc/resources/subjectthreads.html +doc/resources/subsort.html +doc/resources/tcontbegin.html +doc/resources/tcontend.html +doc/resources/tendbutton.html +doc/resources/tendbuttonia.html +doc/resources/tendlink.html +doc/resources/tendlinkia.html +doc/resources/textclipfunc.html +doc/resources/textencode.html +doc/resources/tfirstpglink.html +doc/resources/tfoot.html +doc/resources/thead.html +doc/resources/thread.html +doc/resources/tidxfname.html +doc/resources/tidxlabel.html +doc/resources/tidxpgbegin.html +doc/resources/tidxpgend.html +doc/resources/tidxpgssmarkup.html +doc/resources/tidxprefix.html +doc/resources/timezones.html +doc/resources/tindentbegin.html +doc/resources/tindentend.html +doc/resources/title.html +doc/resources/tlastpglink.html +doc/resources/tlevels.html +doc/resources/tliend.html +doc/resources/tlinone.html +doc/resources/tlinoneend.html +doc/resources/tlitxt.html +doc/resources/tnextbutton.html +doc/resources/tnextbuttonia.html +doc/resources/tnextinbutton.html +doc/resources/tnextinbuttonia.html +doc/resources/tnextinlink.html +doc/resources/tnextinlinkia.html +doc/resources/tnextlink.html +doc/resources/tnextlinkia.html +doc/resources/tnextpglink.html +doc/resources/tnextpglinkia.html +doc/resources/tnexttopbutton.html +doc/resources/tnexttopbuttonia.html +doc/resources/tnexttoplink.html +doc/resources/tnexttoplinkia.html +doc/resources/toplinks.html +doc/resources/tprevbutton.html +doc/resources/tprevbuttonia.html +doc/resources/tprevinbutton.html +doc/resources/tprevinbuttonia.html +doc/resources/tprevinlink.html +doc/resources/tprevinlinkia.html +doc/resources/tprevlink.html +doc/resources/tprevlinkia.html +doc/resources/tprevpglink.html +doc/resources/tprevpglinkia.html +doc/resources/tprevtopbutton.html +doc/resources/tprevtopbuttonia.html +doc/resources/tprevtoplink.html +doc/resources/tprevtoplinkia.html +doc/resources/treverse.html +doc/resources/tsingletxt.html +doc/resources/tslice.html +doc/resources/tslicebeg.html +doc/resources/tslicecontbeg.html +doc/resources/tslicecontend.html +doc/resources/tsliceend.html +doc/resources/tsliceindentbeg.html +doc/resources/tsliceindentend.html +doc/resources/tslicelevels.html +doc/resources/tsliceliend.html +doc/resources/tsliceliendcur.html +doc/resources/tslicelinone.html +doc/resources/tslicelinoneend.html +doc/resources/tslicelitxt.html +doc/resources/tslicelitxtcur.html +doc/resources/tslicesingletxt.html +doc/resources/tslicesingletxtcur.html +doc/resources/tslicesubjectbeg.html +doc/resources/tslicesubjectend.html +doc/resources/tslicesublistbeg.html +doc/resources/tslicesublistend.html +doc/resources/tslicetopbeg.html +doc/resources/tslicetopbegcur.html +doc/resources/tslicetopend.html +doc/resources/tslicetopendcur.html +doc/resources/tsort.html +doc/resources/tsubjectbeg.html +doc/resources/tsubjectend.html +doc/resources/tsublistbeg.html +doc/resources/tsublistend.html +doc/resources/tsubsort.html +doc/resources/ttitle.html +doc/resources/ttopbegin.html +doc/resources/ttopbutton.html +doc/resources/ttopbuttonia.html +doc/resources/ttopend.html +doc/resources/ttoplink.html +doc/resources/ttoplinkia.html +doc/resources/umask.html +doc/resources/uselocaltime.html +doc/resources/usinglastpg.html +doc/resources/varregex.html +doc/resources/weekdays.html +doc/resources/weekdaysabr.html +doc/ssbg75.jpg +doc/stampwb2.png +doc/up.png +doc/utils/mha-dbedit.html +doc/utils/mha-dbrecover.html +doc/utils/mha-decode.html +examples/blog.mrc +examples/date.mrc +examples/def-mime.mrc +examples/frames.mrc +examples/icons.mrc +examples/mha-p7m +examples/mha-preview +examples/mhasiteinit-p7m.pl +examples/mhasiteinit.pl +examples/mhonarc.vim +examples/secure.mrc +examples/subject.mrc +examples/utf-8-encode.mrc +examples/utf-8.mrc +extras/mha-mhedit/INSTALL +extras/mha-mhedit/mha-mhedit +extras/mha-mhedit/mha-mhedit.html +extras/mha-mhedit/mha-repl.mrc +extras/mha-mhedit/README.txt +extras/README.txt +FILELIST +INSTALL +install.me +lib/base64.pl +lib/ewhutil.pl +lib/iso2022jp.pl +lib/iso8859.pl +lib/mhamain.pl +lib/mhdb.pl +lib/mhdysub.pl +lib/mhexternal.pl +lib/mhfile.pl +lib/mhidxrc.pl +lib/mhindex.pl +lib/mhinit.pl +lib/mhlock.pl +lib/mhmimetypes.pl +lib/mhmsgextbody.pl +lib/mhmsgfile.pl +lib/mhnote.pl +lib/mhnull.pl +lib/MHonArc.pm +lib/MHonArc/Char.pm +lib/MHonArc/Char/JP.pm +lib/MHonArc/Char/KR.pm +lib/MHonArc/CharEnt.pm +lib/MHonArc/CharEnt/AppleArabic.pm +lib/MHonArc/CharEnt/AppleCenteuro.pm +lib/MHonArc/CharEnt/AppleCroatian.pm +lib/MHonArc/CharEnt/AppleCyrillic.pm +lib/MHonArc/CharEnt/AppleGreek.pm +lib/MHonArc/CharEnt/AppleHebrew.pm +lib/MHonArc/CharEnt/AppleIceland.pm +lib/MHonArc/CharEnt/AppleRoman.pm +lib/MHonArc/CharEnt/AppleRomanian.pm +lib/MHonArc/CharEnt/AppleThai.pm +lib/MHonArc/CharEnt/AppleTurkish.pm +lib/MHonArc/CharEnt/BIG5_ETEN.pm +lib/MHonArc/CharEnt/BIG5_HKSCS.pm +lib/MHonArc/CharEnt/CP1250.pm +lib/MHonArc/CharEnt/CP1251.pm +lib/MHonArc/CharEnt/CP1252.pm +lib/MHonArc/CharEnt/CP1253.pm +lib/MHonArc/CharEnt/CP1254.pm +lib/MHonArc/CharEnt/CP1255.pm +lib/MHonArc/CharEnt/CP1256.pm +lib/MHonArc/CharEnt/CP1257.pm +lib/MHonArc/CharEnt/CP1258.pm +lib/MHonArc/CharEnt/CP866.pm +lib/MHonArc/CharEnt/CP932.pm +lib/MHonArc/CharEnt/CP936.pm +lib/MHonArc/CharEnt/CP949.pm +lib/MHonArc/CharEnt/CP950.pm +lib/MHonArc/CharEnt/EUC_JP.pm +lib/MHonArc/CharEnt/GB2312.pm +lib/MHonArc/CharEnt/GOST19768_87.pm +lib/MHonArc/CharEnt/HP_ROMAN8.pm +lib/MHonArc/CharEnt/ISO8859_1.pm +lib/MHonArc/CharEnt/ISO8859_10.pm +lib/MHonArc/CharEnt/ISO8859_11.pm +lib/MHonArc/CharEnt/ISO8859_13.pm +lib/MHonArc/CharEnt/ISO8859_14.pm +lib/MHonArc/CharEnt/ISO8859_15.pm +lib/MHonArc/CharEnt/ISO8859_16.pm +lib/MHonArc/CharEnt/ISO8859_2.pm +lib/MHonArc/CharEnt/ISO8859_3.pm +lib/MHonArc/CharEnt/ISO8859_4.pm +lib/MHonArc/CharEnt/ISO8859_5.pm +lib/MHonArc/CharEnt/ISO8859_6.pm +lib/MHonArc/CharEnt/ISO8859_7.pm +lib/MHonArc/CharEnt/ISO8859_8.pm +lib/MHonArc/CharEnt/ISO8859_9.pm +lib/MHonArc/CharEnt/KOI8_A.pm +lib/MHonArc/CharEnt/KOI8_B.pm +lib/MHonArc/CharEnt/KOI8_E.pm +lib/MHonArc/CharEnt/KOI8_F.pm +lib/MHonArc/CharEnt/KOI8_R.pm +lib/MHonArc/CharEnt/KOI8_U.pm +lib/MHonArc/CharEnt/KOI_0.pm +lib/MHonArc/CharEnt/KOI_7.pm +lib/MHonArc/CharEnt/VISCII.pm +lib/MHonArc/CharMaps.pm +lib/MHonArc/Encode.pm +lib/MHonArc/RFC822.pm +lib/MHonArc/UTF8.pm +lib/MHonArc/UTF8/AppleArabic.pm +lib/MHonArc/UTF8/AppleCenteuro.pm +lib/MHonArc/UTF8/AppleCroatian.pm +lib/MHonArc/UTF8/AppleCyrillic.pm +lib/MHonArc/UTF8/AppleGreek.pm +lib/MHonArc/UTF8/AppleHebrew.pm +lib/MHonArc/UTF8/AppleIceland.pm +lib/MHonArc/UTF8/AppleRoman.pm +lib/MHonArc/UTF8/AppleRomanian.pm +lib/MHonArc/UTF8/AppleThai.pm +lib/MHonArc/UTF8/AppleTurkish.pm +lib/MHonArc/UTF8/BIG5_ETEN.pm +lib/MHonArc/UTF8/BIG5_HKSCS.pm +lib/MHonArc/UTF8/CP1250.pm +lib/MHonArc/UTF8/CP1251.pm +lib/MHonArc/UTF8/CP1252.pm +lib/MHonArc/UTF8/CP1253.pm +lib/MHonArc/UTF8/CP1254.pm +lib/MHonArc/UTF8/CP1255.pm +lib/MHonArc/UTF8/CP1256.pm +lib/MHonArc/UTF8/CP1257.pm +lib/MHonArc/UTF8/CP1258.pm +lib/MHonArc/UTF8/CP866.pm +lib/MHonArc/UTF8/CP932.pm +lib/MHonArc/UTF8/CP936.pm +lib/MHonArc/UTF8/CP949.pm +lib/MHonArc/UTF8/CP950.pm +lib/MHonArc/UTF8/Encode.pm +lib/MHonArc/UTF8/EUC_JP.pm +lib/MHonArc/UTF8/GB2312.pm +lib/MHonArc/UTF8/GOST19768_87.pm +lib/MHonArc/UTF8/HP_ROMAN8.pm +lib/MHonArc/UTF8/ISO8859_1.pm +lib/MHonArc/UTF8/ISO8859_10.pm +lib/MHonArc/UTF8/ISO8859_11.pm +lib/MHonArc/UTF8/ISO8859_13.pm +lib/MHonArc/UTF8/ISO8859_14.pm +lib/MHonArc/UTF8/ISO8859_15.pm +lib/MHonArc/UTF8/ISO8859_16.pm +lib/MHonArc/UTF8/ISO8859_2.pm +lib/MHonArc/UTF8/ISO8859_3.pm +lib/MHonArc/UTF8/ISO8859_4.pm +lib/MHonArc/UTF8/ISO8859_5.pm +lib/MHonArc/UTF8/ISO8859_6.pm +lib/MHonArc/UTF8/ISO8859_7.pm +lib/MHonArc/UTF8/ISO8859_8.pm +lib/MHonArc/UTF8/ISO8859_9.pm +lib/MHonArc/UTF8/KOI8_A.pm +lib/MHonArc/UTF8/KOI8_B.pm +lib/MHonArc/UTF8/KOI8_E.pm +lib/MHonArc/UTF8/KOI8_F.pm +lib/MHonArc/UTF8/KOI8_R.pm +lib/MHonArc/UTF8/KOI8_U.pm +lib/MHonArc/UTF8/KOI_0.pm +lib/MHonArc/UTF8/KOI_7.pm +lib/MHonArc/UTF8/MapUTF8.pm +lib/MHonArc/UTF8/MhaEncode.pm +lib/MHonArc/UTF8/VISCII.pm +lib/mhopt.pl +lib/mhrcfile.pl +lib/mhrcvars.pl +lib/mhrmm.pl +lib/mhscan.pl +lib/mhsingle.pl +lib/mhthread.pl +lib/mhtime.pl +lib/mhtxtenrich.pl +lib/mhtxthtml.pl +lib/mhtxtplain.pl +lib/mhtxttsv.pl +lib/mhusage.pl +lib/mhutil.pl +lib/osinit.pl +lib/qprint.pl +lib/readmail.pl +logo/index.html +logo/mhaicon.bmp +logo/mhassbg75.jpg +logo/mhastampw_t.png +logo/mhatitle.png +logo/mhonarc.png +logo/mhonarc16x16.ico +logo/mhonarc16x16.xpm +logo/mhonarc32x32.ico +logo/mhonarc32x32.xpm +logo/mhonarc_t.png +logo/monicon.png +logo/monsmall.png +logo/monsmall_t.png +logo/monstamp.png +logo/monstamp_t.png +logo/pbmhonarc.png +Makefile.PL +man/mha-dbedit.1 +man/mha-dbrecover.1 +man/mha-decode.1 +man/mhonarc.1 +MANIFEST This list of files +mha-dbedit +mha-dbrecover +mha-decode +mhonarc +README.txt +RELNOTES +TODO diff --git a/META.yml b/META.yml deleted file mode 100644 index 802a4bb..0000000 --- a/META.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- #YAML:1.0 -name: MHonArc -abstract: Create HTML archives of mail/news messages -version: 2.6.19 -authored_by: - - Earl Hood -license: gpl -distribution_type: module -requires: - Fcntl: 0 - File::Basename: 0 - Getopt::Long: 0 - Symbol: 0 - Time::Local: 0 -recommends: - Digest::MD5: 0 - Encode: 0 - File::Temp: 0 - MIME::Base64: 0 - POSIX: 0 -keywords: - - MIME - - Mail - - HTML -generated-by: Earl Hood version 2.00 diff --git a/Makefile.PL b/Makefile.PL index 91f0c32..9f4f471 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,83 +1,43 @@ -#!/usr/bin/perl -# $Id: Makefile.PL,v 1.15 2011/01/01 00:56:12 ehood Exp $ -# Pseudo Makefile.PL: Since MHonArc's history goes back to Perl 4 days, -# it has its own installation process. This file generates a simple -# Makefile to (paritally) satisfy the standard Perl 5 way to install -# software. - -use Config; - -open(MAKEFILE, ">Makefile") || - die "Unable to create Makefile: $!\n"; - -## Map variable settings to install.me options -%vars = ( ); -foreach (@ARGV) { - # make sure to only process arguments that look like variables - if (/=/) { - ($var, $value) = split(/=/, $_, 2); - $vars{$var} = $value; - } -} -my $opt_prefix = defined($vars{'PREFIX'}) ? - "-prefix $vars{'PREFIX'}" : ""; -my $opt_binpath = defined($vars{'INSTALLSCRIPT'}) ? - "-binpath $vars{'INSTALLSCRIPT'}" : ""; -my $opt_libpath = defined($vars{'LIB'}) ? - "-libpath $vars{'LIB'}" : - defined($vars{'INSTALLSITELIB'}) ? - "-libpath $vars{'INSTALLSITELIB'}" : - defined($vars{'INSTALLPRIVLIB'}) ? - "-libpath $vars{'INSTALLPRIVLIB'}" : ""; -my $opt_manpath = defined($vars{'INSTALLMAN1DIR'}) ? - "-manpath $vars{'INSTALLMAN1DIR'}" : ""; - $opt_manpath =~ s/man1$//; - -my $instme_args = "$opt_prefix $opt_binpath $opt_libpath $opt_manpath"; - -## Determine which perl should be used -my $perl = $Config{'perlpath'}; -unless (-x $perl) { - $perl = join('/', $Config{'installbin'}, $Config{'perl'}); -} -unless (-x $perl) { - $perl = 'perl'; -} -## Determine other commands that will be used -my $chmod = $Config{'chmod'} || '/bin/chmod'; -my $mkdir = $Config{'mkdir'} || '/bin/mkdir'; -my $rm = $Config{'rm'} || '/bin/rm'; - -## Print Makefile -print MAKEFILE < 'MHonArc', + 'VERSION_FROM' => 'lib/MHonArc.pm', + 'AUTHOR' => ['Earl Hood '], + 'ABSTRACT' => 'Convert mail/news messages to HTML', + 'EXE_FILES' => [ + 'mha-dbedit', + 'mha-dbrecover', + 'mha-decode', + 'mhonarc' + ], + 'LICENSE' => 'gpl_2', + 'PREREQ_PM' => { + 'Fcntl' => 0, + 'File::Basename' => 0, + 'Getopt::Long' => 0, + 'Symbol' => 0, + 'Time::Local' => 0 + }, + 'META_MERGE' => { + "meta-spec" => { version => 2 }, + resources => { + repository => { + type => 'git', + url => 'https://github.com/sympa-community/mhonarc.git', + web => 'https://github.com/sympa-community/mhonarc' + } + }, + prereqs => { + runtime => { + recommends => { + 'Digest::MD5' => 0, + 'Encode' => 0, + 'File::Temp' => 0, + 'MIME::Base64' => 0, + 'POSIX' => 0 + } + } + } + } +); diff --git a/lib/MHonArc.pm b/lib/MHonArc.pm new file mode 100644 index 0000000..4de6b1a --- /dev/null +++ b/lib/MHonArc.pm @@ -0,0 +1,40 @@ +##---------------------------------------------------------------------------## +## File: +## $Id: MHonArc.pm,v 2.6.19 2020/06/29 21:40:15 ldidry Exp $ +## Author: +## Luc Didry for Framasoft and Sympa community +## Description: +## POD after __END__. +##---------------------------------------------------------------------------## +## Copyright (C) 2020 Sympa community +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +## 02111-1307, USA +##---------------------------------------------------------------------------## + +package MHonArc; + +use strict; + +BEGIN { + use Exporter (); + our $VERSION = '2.6.19'; + our @ISA = qw(Exporter); + #Give a hoot don't pollute, do not export more than needed by default + our @EXPORT = qw($VERSION); + our @EXPORT_OK = qw(); + our %EXPORT_TAGS = (); +} +1; diff --git a/lib/MHonArc/Char.pm b/lib/MHonArc/Char.pm index ed871c3..b745732 100644 --- a/lib/MHonArc/Char.pm +++ b/lib/MHonArc/Char.pm @@ -26,6 +26,10 @@ package MHonArc::Char; +use MHonArc; + +$VERSION = $MHonArc::VERSION; + ############################################################################### ## Routines ############################################################################### diff --git a/lib/MHonArc/CharEnt.pm b/lib/MHonArc/CharEnt.pm index 38645ad..792ec9e 100644 --- a/lib/MHonArc/CharEnt.pm +++ b/lib/MHonArc/CharEnt.pm @@ -29,6 +29,9 @@ package MHonArc::CharEnt; use strict; use MHonArc::CharMaps; use MHonArc::Char; +use MHonArc; + +our $VERSION = $MHonArc::VERSION; ##--------------------------------------------------------------------------- ## Charset specification to mapping diff --git a/lib/MHonArc/CharMaps.pm b/lib/MHonArc/CharMaps.pm index 1de03a9..fbae495 100644 --- a/lib/MHonArc/CharMaps.pm +++ b/lib/MHonArc/CharMaps.pm @@ -27,10 +27,13 @@ package MHonArc::CharMaps; use strict; -use vars qw( @ISA @EXPORT %HTMLSpecials $HTMLSpecials ); +use vars qw( $VERSION @ISA @EXPORT %HTMLSpecials $HTMLSpecials ); use Carp; use Exporter (); +use MHonArc; + +$VERSION = $MHonArc::VERSION; @ISA = qw( Exporter ); @EXPORT = qw( $HTMLSpecials %HTMLSpecials ); diff --git a/lib/MHonArc/Encode.pm b/lib/MHonArc/Encode.pm index 15a636d..3cb94a5 100644 --- a/lib/MHonArc/Encode.pm +++ b/lib/MHonArc/Encode.pm @@ -29,6 +29,9 @@ package MHonArc::Encode; use strict; BEGIN { + use MHonArc; + our $VERSION = $MHonArc::VERSION; + # If the Encode module is available, we use it, otherwise, we # try to use Unicode::MapUTF8. eval { diff --git a/lib/MHonArc/RFC822.pm b/lib/MHonArc/RFC822.pm index 92d71e5..7c3fbc0 100644 --- a/lib/MHonArc/RFC822.pm +++ b/lib/MHonArc/RFC822.pm @@ -34,9 +34,11 @@ package MHonArc::RFC822; use strict; use Exporter (); +use MHonArc; use vars qw( @ISA @EXPORT @EXPORT_OK $VERSION ); + @ISA = qw ( Exporter ); -$VERSION = "0.01"; +$VERSION = $MHonArc::VERSION; @EXPORT = (); @EXPORT_OK = qw( diff --git a/lib/MHonArc/UTF8.pm b/lib/MHonArc/UTF8.pm index 349b0ce..84a2475 100644 --- a/lib/MHonArc/UTF8.pm +++ b/lib/MHonArc/UTF8.pm @@ -30,6 +30,8 @@ use strict; use MHonArc::CharMaps; BEGIN { + use MHonArc; + our $VERSION = $MHonArc::VERSION; eval { require MHonArc::UTF8::Encode; }; diff --git a/lib/mhamain.pl b/lib/mhamain.pl index c1259ce..eb661f0 100644 --- a/lib/mhamain.pl +++ b/lib/mhamain.pl @@ -26,10 +26,11 @@ ##---------------------------------------------------------------------------## package mhonarc; +use MHonArc; require 5; -$VERSION = '2.6.19'; +$VERSION = $MHonArc::VERSION; $VINFO =< Date: Tue, 30 Jun 2020 08:47:36 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=B7=20=E2=80=94=20Add=20CI=20(Gitl?= =?UTF-8?q?ab=20CI=20and=20Travis=20CI)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ .travis.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 .travis.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..90795ab --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,37 @@ +.job-template: &job + image: "hatsoftwares/sympa-perl-${CI_JOB_NAME}:latest" + retry: 2 + before_script: + - . ~/.bash_profile + - perl -v + script: + - for i in lib/*.pl lib/*.pm lib/*/*.pm; do perl -Ilib -c $i; done + - perl Makefile.PL + - make + - make install + - make tardist + - cpanm -L local MHonArc-*.tar.gz + - make clean + +"5.10": + <<: *job +"5.12": + <<: *job +"5.14": + <<: *job +"5.16": + <<: *job +"5.18": + <<: *job +"5.20": + <<: *job +"5.22": + <<: *job +"5.24": + <<: *job +"5.26": + <<: *job +"5.28": + <<: *job +"5.30": + <<: *job diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1f1e666 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +language: perl + +perl: + - "5.30" + - "5.28" + - "5.26" + - "5.24" + - "5.22" + - "5.20" + - "5.18" + - "5.16" + - "5.14" + - "5.12" + - "5.10" + +before_script: + - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers + - source ~/travis-perl-helpers/init + - build-perl + - perl -V + +script: + - for i in lib/*.pl lib/*.pm lib/*/*.pm; do perl -Ilib -c $i || exit 1; done + - perl Makefile.PL + - make + - make install + - make tardist + - cpanm -L local MHonArc-*.tar.gz + - make clean