In short, to add prefix support we need to change the following things: 1.) $ sed -i 's/base gtk2/& mac/' wxwidgets.eselect I have commit rights for eselect.git and can do that change and make a new release 2.) $ sed -i 's@/\(var\|usr\)/lib@${EPREFIX}&@' wx{rc,-config} We could do this using sed in the ebuild or eprefixify with a version having @GENTOO_PORTAGE_EPREFIX@ in there. Any preference? One a side note, wx{rc,-config} contains a hard-coded /usr/lib, which should be /usr/$(get_libdir) instead. I think the cleanest would be to something like in the recent ccache builds: $ sed -e "/^LIBDIR=/s:lib:$(get_libdir):" -e "/^EPREFIX=/s:'':'${EPREFIX}':" And define LIBDIR and EPREFIX somewhere in the the top of wx{rc,-config}.
> In short, to add prefix support we need to change the following things: > > 1.) > $ sed -i 's/base gtk2/& mac/' wxwidgets.eselect > I have commit rights for eselect.git and can do that change and make a new > release Okay. I need to add gtk3 one of these days but I won't hold you up, so go ahead. > 2.) > $ sed -i 's@/\(var\|usr\)/lib@${EPREFIX}&@' wx{rc,-config} > We could do this using sed in the ebuild or eprefixify with a version having > @GENTOO_PORTAGE_EPREFIX@ in there. Any preference? sed please. > One a side note, wx{rc,-config} contains a hard-coded /usr/lib, which should > be /usr/$(get_libdir) instead. > > I think the cleanest would be to something like in the recent ccache builds: > $ sed -e "/^LIBDIR=/s:lib:$(get_libdir):" -e "/^EPREFIX=/s:'':'${EPREFIX}':" > > And define LIBDIR and EPREFIX somewhere in the the top of wx{rc,-config}. This sounds good to me.
+*eselect-wxwidgets-20140423 (23 Apr 2014) + + 23 Apr 2014; Christoph Junghans <ottxor@gentoo.org> + +eselect-wxwidgets-20140423.ebuild, +files/wx-config-1.4, +files/wxrc-1.4: + add prefix support (bug #508438) +