port ${name}

Mark Brethen mark.brethen at gmail.com
Mon Oct 13 07:44:52 PDT 2014


On Oct 13, 2014, at 7:41 AM, Brandon Allbery <allbery.b at gmail.com> wrote:

> On Mon, Oct 13, 2014 at 8:33 AM, Mark Brethen <mark.brethen at gmail.com> wrote:
> If a user tries to install port ${name} how should this be handled?
> 
> That depends on what exactly you're trying to do. Obvious possibilities include installing all subports or some common subset thereof, via dependencies possibly modified by variants: a classic metaport.
> 
> -- 
> brandon s allbery kf8nh                               sine nomine associates
> allbery.b at gmail.com                                  ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

How would you install all subports?

if {${name} == ${subport}} {
    depends_build-append    subport1 subport2 subport3
    configure                          no
    build {}
    destroot {}
}

like this?

Mark






More information about the macports-dev mailing list