template-glib: Generate vapi for glib-template

By adding `vala` to the build dependencies it is possible
to generate the Vala API bindings called `vapi`, which
were deactived before. Having them generated by default
makes using this library for Vala / Genie developers much easier.

Closes #119425.

Signed-off-by: Michka Popoff <3406519+iMichka@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Stefan Graupner 2022-12-30 19:33:52 +01:00 committed by BrewTestBot
parent f54fc98440
commit 340e68d237
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 2 additions and 1 deletions

View File

@ -20,13 +20,14 @@ class TemplateGlib < Formula
depends_on "meson" => :build depends_on "meson" => :build
depends_on "ninja" => :build depends_on "ninja" => :build
depends_on "pkg-config" => :build depends_on "pkg-config" => :build
depends_on "vala" => :build
depends_on "glib" depends_on "glib"
depends_on "gobject-introspection" depends_on "gobject-introspection"
uses_from_macos "flex" uses_from_macos "flex"
def install def install
system "meson", "setup", "build", "-Dvapi=false", "-Dintrospection=enabled", *std_meson_args system "meson", "setup", "build", "-Dvapi=true", "-Dintrospection=enabled", *std_meson_args
system "meson", "compile", "-C", "build", "--verbose" system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build" system "meson", "install", "-C", "build"
end end