aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMatthias Votisky2014-08-14 09:01:15 +0200
committerJack Nagel2014-11-28 14:51:12 -0500
commit86f946833b1add643044ef645ec0acaac3857a29 (patch)
treebf4d958eb523414576a6937aeb17991c0c25c3f5 /Library/Formula
parent69b7b83c9fd1e987c152a33fcaeb747a524eac0b (diff)
downloadhomebrew-86f946833b1add643044ef645ec0acaac3857a29.tar.bz2
ebook-tools 0.2.2 (new formula)
Closes #31590. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ebook-tools.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/ebook-tools.rb b/Library/Formula/ebook-tools.rb
new file mode 100644
index 000000000..5054b0cec
--- /dev/null
+++ b/Library/Formula/ebook-tools.rb
@@ -0,0 +1,21 @@
+require "formula"
+
+class EbookTools < Formula
+ homepage "http://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"
+ sha1 "1f10bef62c9125cf804366134e486a58308f07ff"
+
+ depends_on "libzip"
+ depends_on "cmake" => :build
+
+ 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