libsecret: general cleanup.
parent
041698c0b5
commit
7bb8897d0f
|
@ -11,25 +11,25 @@ class Libsecret < Formula
|
||||||
sha1 "f107bba883485f8ffc18aabd8d6c4e063be0aff0" => :lion
|
sha1 "f107bba883485f8ffc18aabd8d6c4e063be0aff0" => :lion
|
||||||
end
|
end
|
||||||
|
|
||||||
depends_on 'pkg-config' => :build
|
depends_on "pkg-config" => :build
|
||||||
depends_on 'gnu-sed' => :build
|
depends_on "gnu-sed" => :build
|
||||||
depends_on 'intltool' => :build
|
depends_on "intltool" => :build
|
||||||
depends_on 'gettext' => :build
|
depends_on "gettext" => :build
|
||||||
depends_on 'glib'
|
depends_on "glib"
|
||||||
depends_on 'libgcrypt'
|
depends_on "libgcrypt"
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "./configure", "--disable-debug",
|
system "./configure", "--disable-debug",
|
||||||
"--disable-dependency-tracking",
|
"--disable-dependency-tracking",
|
||||||
"--disable-silent-rules",
|
"--disable-silent-rules",
|
||||||
"--prefix=#{prefix}"
|
"--prefix=#{prefix}"
|
||||||
inreplace "Makefile", 'sed', 'gsed'
|
inreplace "Makefile", "sed", "gsed"
|
||||||
inreplace "Makefile", '--nonet', ''
|
inreplace "Makefile", "--nonet", ""
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
(testpath/'test.c').write <<-EOS.undent
|
(testpath/"test.c").write <<-EOS.undent
|
||||||
#include <libsecret/secret.h>
|
#include <libsecret/secret.h>
|
||||||
|
|
||||||
const SecretSchema * example_get_schema (void) G_GNUC_CONST;
|
const SecretSchema * example_get_schema (void) G_GNUC_CONST;
|
||||||
|
@ -61,7 +61,7 @@ class Libsecret < Formula
|
||||||
"-I#{HOMEBREW_PREFIX}/lib/glib-2.0/include"
|
"-I#{HOMEBREW_PREFIX}/lib/glib-2.0/include"
|
||||||
]
|
]
|
||||||
|
|
||||||
system ENV.cc, 'test.c', '-o', 'test', *flags
|
system ENV.cc, "test.c", "-o", "test", *flags
|
||||||
system './test'
|
system "./test"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue