blob: 2ce0a38fe920f3d6a4ed34ad14bc37344422f046 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
class GnuBarcode < Formula
homepage "http://www.gnu.org/software/barcode/"
url "http://ftpmirror.gnu.org/barcode/barcode-0.98.tar.gz"
mirror "http://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz"
sha1 "15b9598bcaa67bcff1f63309d1a18840b9a12899"
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
|