homebrew-core/Formula/ebook-tools.rb
2017-06-23 00:12:08 -04:00

28 lines
943 B
Ruby

class EbookTools < Formula
desc "Access and convert several ebook formats"
homepage "https://sourceforge.net/projects/ebook-tools/"
url "https://downloads.sourceforge.net/project/ebook-tools/ebook-tools/0.2.2/ebook-tools-0.2.2.tar.gz"
sha256 "cbc35996e911144fa62925366ad6a6212d6af2588f1e39075954973bbee627ae"
revision 2
bottle do
cellar :any
sha256 "c6e286e88e063821bec84c5d7589e24da162568abee86c7a14a3c49a47fdcfee" => :sierra
sha256 "3da2cbaf77b390a4c5fdc216483e15ce38d87c151e6365fbc9f9a4b1c501d7b1" => :el_capitan
sha256 "0d90d2e7ff07b4dc30f40fe769f9e8805b8dee163f44ecc9d7a529064d37c70d" => :yosemite
end
depends_on "cmake" => :build
depends_on "libzip"
def install
system "cmake", ".",
"-DLIBZIP_INCLUDE_DIR=#{Formula["libzip"].lib}/libzip/include",
*std_cmake_args
system "make", "install"
end
test do
system "#{bin}/einfo", "-help"
end
end