lib/pkgforge/components/cflags.rb in pkgforge-0.18.0 vs lib/pkgforge/components/cflags.rb in pkgforge-0.19.0

- old
+ new

@@ -20,10 +20,10 @@ # Add cflag options to Forge DSL class Forge Contract Maybe[ArrayOf[String]] => nil def cflags(value = nil) default = '-I%<dep>s/usr/include -L%<dep>s/usr/lib' - value ||= @forge.deps.map { |x, _| (default % { dep: dep(x) }).split } + value ||= @forge.deps.map { |x, _| format(default, dep: dep(x)).split } @forge.cflags += value.flatten nil end Contract Maybe[ArrayOf[String]] => nil