24 lines
652 B
Ruby
24 lines
652 B
Ruby
|
class Pdftoipe < Formula
|
||
|
desc "Reads arbitrary PDF files and generates an XML file readable by Ipe"
|
||
|
homepage "https://github.com/otfried/ipe-tools"
|
||
|
url "https://github.com/otfried/ipe-tools/archive/v7.2.7.tar.gz"
|
||
|
sha256 "889cb31bd8769ba111f541ba795cf53fad474aeeafbc87b7cd37c8a24b2dc6f6"
|
||
|
|
||
|
depends_on "pkg-config" => :build
|
||
|
depends_on "poppler"
|
||
|
|
||
|
def install
|
||
|
cd "pdftoipe" do
|
||
|
system "make"
|
||
|
bin.install "pdftoipe"
|
||
|
man1.install "pdftoipe.1"
|
||
|
end
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
cp test_fixtures("test.pdf"), testpath
|
||
|
system bin/"pdftoipe", "test.pdf"
|
||
|
assert_match "Homebrew test.</text>", File.read("test.ipe")
|
||
|
end
|
||
|
end
|