# -*- 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
# $Id: Portfile 103656 2013-03-03 22:39:58Z larryv@macports.org $

PortSystem          1.0
PortGroup           perl5 1.0

perl5.branches      5.8 5.10 5.12 5.14 5.16
perl5.setup         ExtUtils-MakeMaker 6.64
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         Create a module Makefile
long_description    This utility is designed to write a Makefile for an \
                    extension module from a Makefile.PL.

platforms           darwin

checksums           rmd160  892c09f09b071a8aa3217b2e5f2ef9cc3998097b \
                    sha256  1cbfa2aee5e82fa885b841d2be8b2ce7334e06276d32f8fea6da392b28d37fbb

configure.env BUILDING_AS_PACKAGE=1

supported_archs noarch

perl5.link_binaries no
if {${perl5.major} != ""} {
depends_lib-append	port:p${perl5.major}-cpan-meta \
			port:p${perl5.major}-cpan-meta-yaml \
			port:p${perl5.major}-extutils-command \
			port:p${perl5.major}-extutils-install \
			port:p${perl5.major}-extutils-manifest \
			port:p${perl5.major}-file-temp \
			port:p${perl5.major}-parse-cpan-meta \
			port:p${perl5.major}-scalar-list-utils \
			port:p${perl5.major}-version

	if {[vercmp ${perl5.major} 5.14] < 0} {
	#JSON::PP is in core as of 5.14
	depends_lib-append      port:p${perl5.major}-json-pp
	}
}
