source: trunk/dports/mail/mb2md/Portfile

Last change on this file was 151891, checked in by mojca@…, 11 months ago

mb2md: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 151891 2016-08-23 21:33:46Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                mb2md
8version             3.20
9revision            4
10categories          mail
11license             public-domain
12maintainers         nomaintainer
13description         Script for converting Mbox mailboxes to Maildir format
14long_description    Perl script that takes one or more Mbox format \
15                    mailbox files in a directory and convert them to \
16                    Maildir format mailboxes.  It also converts the \
17                    mailspool file.  It is smart enough to not transfer \
18                    a dummy message such as the UW IMAPD puts at the \
19                    start of Mbox mailboxes - and you could add your own \
20                    search terms into the script to make it ignore other \
21                    forms of dummy first message.
22homepage            http://batleth.sapienti-sat.org/projects/${name}
23master_sites        ${homepage}
24distfiles           ${name}-${version}.pl.gz
25
26checksums           rmd160  03ee1e543ba070c222aa7e20624aaf5fa390785c \
27                    sha256  af45a9b5413a9fe49be0092e560485bf17efc50a4eb4a90744e380c4869f732f
28
29platforms           darwin
30supported_archs     noarch
31
32perl5.branches      5.24
33
34depends_run         port:perl${perl5.major} \
35                    port:p${perl5.major}-timedate
36
37pre-extract {
38    file mkdir ${worksrcpath}
39}
40
41extract.post_args   ">${worksrcpath}/${name}-${version}.pl"
42
43patchfiles          patch-${name}
44
45use_configure       no
46
47build {
48    file copy ${worksrcpath}/${name}-${version}.pl ${worksrcpath}/${name}
49    reinplace "s|^#!.*perl|#!${perl5.bin}|" ${worksrcpath}/${name}
50}
51
52destroot {
53    xinstall -d -m 0755 ${destroot}${prefix}/bin
54    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
55}
Note: See TracBrowser for help on using the repository browser.