This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [ITP] p7zip
Yaakov (Cygwin Ports) wrote:
3) Put this in src_install() ???
D'oh. You're right. It's when I need to go the *other* way that it
must be done in a post-hook. Here,
/usr/share/doc/${PN} --> /usr/share/doc/${PN}-${PV}
works fine, because the target dir is the one cygport "likes". In
rxvt-unicode, the build package was "rxvt-unicode-X" so the directory
cygport "likes" is /usr/share/doc/rxvt-unicode-X-${PV}.
However, I wanted to share the documentation between -X and -W versions,
so I wanted to use /usr/share/doc/rxvt-unicode-${PV}. That is,
/usr/share/doc/rxvt-unicode-X-${PV} -->
/usr/share/doc/rxvt-unicode-${PV}
goes from cygport's preferred directory to some other dir.
If I did that inside src_install, __src_postinst will come along and put
stuff into the directory it likes, instead of the one I carefully
created -- and there is currently no way to override that.
So, I needed the hook for rxvt-unicode-X, but I was wrong in thinking I
needed it here. Sorry for the noise.
--
Chuck