2013-04-16 16:03:34 +00:00
|
|
|
class DocbookXsl < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "XML vocabulary to create presentation-neutral documents"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://docbook.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/docbook/docbook-xsl/1.78.1/docbook-xsl-1.78.1.tar.bz2"
|
|
|
|
sha256 "c98f7296ab5c8ccd2e0bc07634976a37f50847df2d8a59bdb1e157664700b467"
|
2013-04-16 16:03:34 +00:00
|
|
|
|
2014-03-03 21:54:12 +00:00
|
|
|
bottle do
|
2015-09-23 20:36:10 +00:00
|
|
|
cellar :any_skip_relocation
|
2014-10-22 14:41:51 +00:00
|
|
|
revision 1
|
2015-09-23 20:36:10 +00:00
|
|
|
sha256 "6d7607d66c0299b68914780d9e108634a250da29e1da20b7dc717eb4f0e25053" => :el_capitan
|
2014-10-22 14:41:51 +00:00
|
|
|
sha1 "2d71a5e24820de3f498f632b47ecaf7af7875312" => :yosemite
|
|
|
|
sha1 "236f05f3d22a6972eca770fcaf19063c6b0ec3aa" => :mavericks
|
|
|
|
sha1 "435ee69f4fc431bff00a973a70c5f24235f5392d" => :mountain_lion
|
2014-03-03 21:54:12 +00:00
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "docbook"
|
2013-04-16 16:03:34 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
resource "ns" do
|
|
|
|
url "https://downloads.sourceforge.net/project/docbook/docbook-xsl-ns/1.78.1/docbook-xsl-ns-1.78.1.tar.bz2"
|
|
|
|
sha256 "cf8ede7284d7f825c24b95ea273551439c55e9af9a4209ac89e3a7d915607af4"
|
2013-08-07 05:30:05 +00:00
|
|
|
end
|
|
|
|
|
2013-04-16 16:03:34 +00:00
|
|
|
def install
|
|
|
|
doc_files = %w[AUTHORS BUGS COPYING NEWS README RELEASE-NOTES.txt TODO VERSION VERSION.xsl]
|
|
|
|
xsl_files = %w[assembly catalog.xml common docsrc eclipse epub epub3 extensions
|
|
|
|
fo highlighting html htmlhelp images javahelp lib log manpages
|
|
|
|
params profiling roundtrip slides template tests tools webhelp
|
|
|
|
website xhtml xhtml-1_1 xhtml5]
|
2015-08-03 12:55:31 +00:00
|
|
|
(prefix/"docbook-xsl").install xsl_files + doc_files
|
|
|
|
resource("ns").stage do
|
|
|
|
(prefix/"docbook-xsl-ns").install xsl_files + doc_files + ["README.ns"]
|
2013-04-16 16:03:34 +00:00
|
|
|
end
|
|
|
|
|
2014-04-13 22:25:41 +00:00
|
|
|
bin.write_exec_script "#{prefix}/docbook-xsl/epub/bin/dbtoepub"
|
|
|
|
end
|
|
|
|
|
|
|
|
def post_install
|
2015-08-03 12:55:31 +00:00
|
|
|
[prefix/"docbook-xsl/catalog.xml", prefix/"docbook-xsl-ns/catalog.xml"].each do |catalog|
|
2013-04-16 16:03:34 +00:00
|
|
|
system "xmlcatalog", "--noout", "--del", "file://#{catalog}", "#{etc}/xml/catalog"
|
|
|
|
system "xmlcatalog", "--noout", "--add", "nextCatalog", "", "file://#{catalog}", "#{etc}/xml/catalog"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|