I usually forget to update pma on a regular basis, so I finally decided to port it. (It's been a year on my agenda :P) The ebuild is basically ecopied. I had to strip ${EPREFIX} from ${MY_HTDOCSDIR} (else it would not be installed) because it gets appended in the webapp.eclass and as a result the default output messages are prefixed-stripped. On the other hand ${FILESDIR} needed to keep the prefix*. *Imho the eclass is inconsistent in its inner calls to webapp_checkfileexists (sometimes with ${ED}, sometimes not) but I don't really want to mess with it because I don't know if it'll break anything. Nevertheless I will include a diff so you/somebody can test it.
Created attachment 246980 [details] phpmyadmin-3.3.7 ebuild As mentioned in the first post: * ecopied * eprefixed-stripped ${MY_HTDOCSDIR} * untouched ${FILESDIR}
Created attachment 246981 [details, diff] proposed patch for the webapp.eclass As mentioned above the webapp.eclass is not consistent in its calls to webapp_checkfileexists, eg webapp_configfile calls it with ${ED}, webapp_postinst_txt without. As a result it is not clear when ${EPREFIX} has to be stripped from a variable. I don't think that breakage in the main tree could occur with that patch, but I'm pretty sure some prefixified ebuilds using webapp (and some of the currently not ${ED} postfixed calls) will break.
(In reply to comment #0) > I usually forget to update pma on a regular basis, so I finally decided to port > it. (It's been a year on my agenda :P) Yeah thank you, I also moved on because of this bug. Almost two years I hadn't updated pma. I'll add it's an import request for x64-macos since you didn't mentioned it directly (only in the ebuild and your other related bugs: 336922 336924)
the calls without ED, are actually intended (see gx86), they do a local lookup
ok, added to prefix, we need to sort out the eclasses first before moving it to gx86