Permalink
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (41 sloc) 1.94 KB
# -*- 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
PortSystem 1.0
PortGroup github 1.0
PortGroup perl5 1.0
github.setup macports macports-contrib 4207b227800b8ce6ba7db02641a1b1a66b3218de
set git_date 20180228
name cpan2port
version 0.1.1_${git_date}
categories sysutils macports perl
platforms darwin
maintainers {gwmail.gwu.edu:egall @cooljeanius} openmaintainer
license WTFPL-2 permissive
supported_archs noarch
description A perl script to generate MacPorts portfiles
long_description ${description} from CPAN modules.
homepage https://trac.macports.org/wiki/howto/${name}
checksums rmd160 01bba5817f02fef13cbec6a87e10008a4b491e81 \
sha256 50b1a7df150f0f2e0f8bba35912e2921d687a23da1e7aa110c05775aaf093608
perl5.branches 5.26
depends_run-append port:p${perl5.major}-carp-clan \
port:p${perl5.major}-cpan-meta-yaml \
port:p${perl5.major}-file-path \
port:p${perl5.major}-getopt-simple \
port:p${perl5.major}-list-moreutils \
port:p${perl5.major}-module-depends \
port:p${perl5.major}-cpan-meta \
port:p${perl5.major}-pod-simple \
port:p${perl5.major}-yaml
dist_subdir macports-contrib
worksrcdir ${worksrcdir}/${name}
configure {
reinplace "s|#! /usr/bin/env perl|#!${prefix}/bin/perl${perl5.major}|g" ${worksrcpath}/${name}
}
# should be implied by overriding configure:
configure.ccache no
build {}
destroot {
xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}/COPYING
}