42 lines
1.3 KiB
Ruby
42 lines
1.3 KiB
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.1.tar.gz"
|
|
sha256 "b45a7d6bec339e878717bd273c32c7957e2d4d87c57e117e772ee3dd3231d7aa"
|
|
revision 1
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "bb6c9f9614cb9d09cc3641118f627ce21dc4e4b35c22b139c3437e5e4231e917" => :mojave
|
|
sha256 "4b8af712c6d8bdae593f60b03dfc6abaa0205013b9470376c519b6552ebddf52" => :high_sierra
|
|
sha256 "89642035b0968b03bbac12d40a0b14b00caef43590e4f3f3311ca07715997a34" => :sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "poppler"
|
|
|
|
# https://github.com/otfried/ipe-tools/pull/30
|
|
# Should be safe to remove on next release but check if merged.
|
|
patch do
|
|
url "https://github.com/otfried/ipe-tools/pull/30.patch?full_index=1"
|
|
sha256 "ac7f9945f12ff11a3ae41e368cb439aeac1e9ff3e81907568b39c3752959288c"
|
|
end
|
|
|
|
needs :cxx11
|
|
|
|
def install
|
|
ENV.cxx11
|
|
|
|
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
|