[MacPorts] #46029: port submission: qtchooser
MacPorts
noreply at macports.org
Thu Dec 11 13:23:52 PST 2014
#46029: port submission: qtchooser
--------------------------+--------------------------------
Reporter: rjvbertin@… | Owner: macports-tickets@…
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords:
Port: qtchooser |
--------------------------+--------------------------------
Comment (by larryv@…):
{{{
configure {
reinplace "s|prefix = /usr|prefix = ${prefix}|g"
${worksrcpath}/Makefile ${worksrcpath}/src/qtchooser/Makefile
reinplace "s|INSTALL_ROOT|DESTDIR|g" ${worksrcpath}/Makefile
${worksrcpath}/src/qtchooser/Makefile
# correct the hardcoded path to the xdg "root" directory
reinplace "s|\"/etc/xdg\"|\"${prefix}/etc/xdg\"|g"
${worksrcpath}/src/qtchooser/main.cpp
}
}}}
This is extremely unorthodox. This should be done with a patch that
replaces the hard-coded paths with a placeholder, a `post-patch` phase
that replaces the placeholder with the correct value, and `use_configure
no`.
The `DESTDIR` / `INSTALL_ROOT` swap should be done with `destroot.destdir-
strsed`, as [https://lists.macosforge.org/pipermail/macports-
users/2014-December/037563.html I mentioned on macports-users].
--
Ticket URL: <https://trac.macports.org/ticket/46029#comment:9>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list