New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #18373 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

create variant +with_default_names

Reported by: snc@… 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

Changed 3 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);

Changed 3 years ago by mww@…

  • status changed from new to closed
  • resolution set to fixed

added!

Changed 3 years ago by anonymous

  • milestone Port Enhancements deleted

Milestone Port Enhancements deleted

Note: See TracTickets for help on using tickets.