github.setup macports macports-base 2.6.2 v
categories sysutils macports
maintainers lists.macports.org:macports-mgr
description The MacPorts Infrastructure
MacPorts provides the infrastructure that allows easy installation and \
management of freely available software on Mac OS X 10.4 or newer systems.
notes "This port cannot directly be used to upgrade MacPorts; use 'port\
homepage https://www.macports.org
distname ${name}-${version}
github.tarball_from releases
# testing subdir is for non-final releases only
#dist_subdir ${name}/testing
checksums rmd160 1400db2449d50e77d5d30e5f0820bb339dc3b080 \
sha256 1b58ccbb1cd6c6fab5e1f15b959208ef5233802fc9ac9585037d21c8e42e2b70
variant keep_prefix description "Use configured prefix instead of enforcing /opt/local" {}
if {![variant_isset keep_prefix]} {
# Readline is disabled by default to avoid support issues with people who
# have a readline in /usr/local. Since this portfile is presumably used in a
# clean environment, enable it here.
configure.args --enable-readline
# We don't want to use anything supplied by ports when building MacPorts itself.
configure.env PATH=/usr/bin:/bin:/usr/sbin:/sbin
# Some of MacPorts' default flags don't play well when we're building MacPorts
# MacPorts' configure removes ${prefix}/bin from $PATH,
# so better do not use ccache, to avoid problems.
# Only install .default versions of config files.
delete ${destroot}${prefix}/etc/macports/archive_sites.conf
delete ${destroot}${prefix}/etc/macports/macports.conf
delete ${destroot}${prefix}/etc/macports/pubkeys.conf
delete ${destroot}${prefix}/etc/macports/sources.conf