2012-10-24 09:09:23 +00:00
|
|
|
class Libopkele < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "C++ implementation of OpenID decentralized identity system"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://kin.klever.net/libopkele/"
|
2014-03-17 02:35:20 +00:00
|
|
|
|
|
|
|
stable do
|
|
|
|
url "http://kin.klever.net/dist/libopkele-2.0.4.tar.bz2"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "102e22431e4ec6f1f0baacb6b1b036476f5e5a83400f2174807a090a14f4dc67"
|
2014-03-17 02:35:20 +00:00
|
|
|
|
|
|
|
patch do
|
2014-04-11 23:07:51 +00:00
|
|
|
url "https://github.com/hacker/libopkele/commit/9ff6244998b0d41e71f7cc7351403ad590e990e4.diff"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "381b5533a2704a96f0be9ddec16afbc2b853240084168ff40c04dcb34417b9a3"
|
2014-03-17 02:35:20 +00:00
|
|
|
end
|
|
|
|
end
|
2012-10-24 09:09:23 +00:00
|
|
|
|
2014-10-21 13:18:18 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "7f83e74f921f023c804c0b6956e384289a52ac6a" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2013-09-22 02:06:10 +00:00
|
|
|
head do
|
2015-08-03 12:55:31 +00:00
|
|
|
url "https://github.com/hacker/libopkele.git"
|
2013-09-22 01:47:13 +00:00
|
|
|
|
2014-12-04 17:01:24 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2013-09-22 01:47:13 +00:00
|
|
|
end
|
2012-10-24 09:09:23 +00:00
|
|
|
|
2014-04-15 14:32:59 +00:00
|
|
|
option "with-docs", "Build and install documentation"
|
|
|
|
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "doxygen" => :build if build.with? "docs"
|
2012-10-24 09:09:23 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./autogen.bash" if build.head?
|
|
|
|
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2014-04-15 14:32:59 +00:00
|
|
|
system "make", "install"
|
|
|
|
|
|
|
|
if build.with? "docs"
|
|
|
|
system "make", "dox"
|
|
|
|
doc.install "doxydox/html"
|
|
|
|
end
|
2012-10-24 09:09:23 +00:00
|
|
|
end
|
|
|
|
end
|