homebrew-core/Formula/gnu-barcode.rb
sillage 749c003715 gnu-barcode: https, sha256
Closes .

Signed-off-by: Brett Koonce <koonce@gmail.com>
2015-03-29 22:18:04 -07:00

23 lines
800 B
Ruby

class GnuBarcode < Formula
homepage "https://www.gnu.org/software/barcode/"
url "http://ftpmirror.gnu.org/barcode/barcode-0.98.tar.gz"
mirror "https://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz"
sha256 "4229e19279b9787ac7e98852fa0bfd93986dce93b9cb07d93a017d68d409b635"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make", "MAN1DIR=#{man1}",
"MAN3DIR=#{man3}",
"INFODIR=#{info}",
"install"
end
test do
(testpath/"test.txt").write("12345")
system "#{bin}/barcode", "-e", "CODE39", "-i", "test.txt", "-o", "test.ps"
assert File.read("test.ps").start_with?("")
end
end