how to: meta-package port

Lawrence Velázquez larryv at macports.org
Thu May 28 09:27:19 PDT 2015


On May 28, 2015, at 11:48 AM, René J.V. Bertin <rjvbertin at gmail.com> wrote:

> What was the magic formula again to use in a meta-package port that only exists to pull in (depend on) a number of other ports? Just supported_archs noarch together with an error message in the pre-fetch?

Install some dummy files instead of failing. Something like this:

    PortSystem 1.0
    name foo
    supported_archs noarch
    archive_sites
    distfiles
    use_configure no
    build {}
    destroot {
        system "echo $name is a stub port >${destroot}${prefix}/share/doc/${name}/README"
    }

vq


More information about the macports-dev mailing list