I'm working on a package for Apple's mDNSResponder package and their "install" is a rather crude hand written makefile that uses the cp command. They do define all uses of the cp command via a CP variable. If there was a "docp" helper script in /usr/lib/portage/bin that acted just like cp but adjusted the last parameter to be in the ${D} directory that would be helpful. This would let me call: `make CP=docp install` such that the makefile ran: docp ../mDNSShared/dns_sd.h /usr/include/dns_sd.h
It would be nice if there was a matching `doln` and a `dochmod` also
Err... why? do* scripts typically do a bit more then just cp "$1" "${D}/${2}". I'd suggest fixing the makefile. As for adding a doln, that would be a pita, since the symlink likely needs to be relative and tacking on ${D} to the src will break the link (it'll be absolute, not relative). I don't see the point in a dochmod either; chmod mode "${D}/blar" suffices. Keep in mind each of those scripts are basically wrappers- w/ the dochmod example, nothing is gained except for an extra process started up. Doing this as bash functions, yeah, I spose. Not much of a fan of that though, since ebuilds thus far have always done it on their own.