[MacPorts] #50547: port suggestion : clazy
MacPorts
noreply at macports.org
Thu Feb 4 06:37:51 PST 2016
#50547: port suggestion : clazy
-------------------------+--------------------------------
Reporter: rjvbertin@… | Owner: macports-tickets@…
Type: submission | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: clazy
-------------------------+--------------------------------
This is a prototype port for `clazy`, a plugin and wrapper for clang that
implements a static analyser with a number of predefined checks for
typical coding errors. The provided checks are oriented to development
using Qt (and KDE); some of them are actually able to correct the source
code.
I've run into an issue writing the Portfile (again, in fact). The code
below creates a reinplace command in which `${lv}=3.8` (i.e. the last
value of the loop variable) for all subports. Is that a bug in "base", or
simply an inevitable shortcoming?
{{{
foreach lv {3.6 3.7 3.8} {
subport ${name}-${lv} {
# snip
post-patch {
reinplace
"s|@LLVM_INSTALL_PREFIX@|${prefix}/libexec/llvm-${lv}/lib|g"
${worksrcpath}/CMakeLists.txt
}
}
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/50547>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list