#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 16 years ago by mww@…
comment:3 Changed 16 years ago by (none)
Milestone: | Port Enhancements |
---|
Milestone Port Enhancements deleted
Note: See
TracTickets for help on using
tickets.
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);