jbigkit: use pkgshare (#11692)

This commit is contained in:
ilovezfs 2017-03-27 15:37:53 -07:00 committed by GitHub
parent 1e948aefaf
commit f8141de9ff

View file

@ -40,11 +40,11 @@ class Jbigkit < Formula
(prefix/"src").install Dir["j*.c", "j*.txt"]
include.install Dir["j*.h"]
end
(share/"jbigkit").install "examples", "contrib"
pkgshare.install "examples", "contrib"
end
test do
system "#{bin}/jbgtopbm #{share}/jbigkit/examples/ccitt7.jbg | #{bin}/pbmtojbg - testoutput.jbg"
system "/usr/bin/cmp", share/"jbigkit/examples/ccitt7.jbg", "testoutput.jbg"
system "#{bin}/jbgtopbm #{pkgshare}/examples/ccitt7.jbg | #{bin}/pbmtojbg - testoutput.jbg"
system "/usr/bin/cmp", pkgshare/"examples/ccitt7.jbg", "testoutput.jbg"
end
end