Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#18373 closed enhancement (fixed)

create variant +with_default_names

Reported by: nerdling (Jeremy Lavergne) Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: gnutar

Description

It might be useful to have gnutar install without the "gnu" in front of the binary name.

Coreutils has accomplished this feat:

variant with_default_names description {Install files without 'g' prefix} {
    post-destroot {
        foreach {d} {bin share/man/man1} {
            foreach {f} [glob -tails -directory ${destroot}${prefix}/${d} g*] {
                ln -sf ${f} ${destroot}${prefix}/${d}/[string range ${f} 1 end]
            }
        }
    }
}

Change History (3)

comment:1 Changed 15 years ago by mww@…

do we have a standardized name for this kind of variant? "with_default_names" is rather confusing, it should rather be named "no_gnu_names" or "with_conflicting_names" or "gnu_style"; for someone who has no idea of what a variant does "with_default_names" sounds much too optimistic imho... especially since using this variant can mess up the build process of other ports (not for gnutar as tar on OS X is gnutar, but for coreutils);

comment:2 Changed 15 years ago by mww@…

Resolution: fixed
Status: newclosed

added!

comment:3 Changed 15 years ago by (none)

Milestone: Port Enhancements

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.