2013-04-16 16:03:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class DocbookXsl < Formula
|
|
|
|
homepage 'http://docbook.sourceforge.net/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/docbook/docbook-xsl/1.78.1/docbook-xsl-1.78.1.tar.bz2'
|
2013-05-30 13:23:33 +00:00
|
|
|
sha1 '1d668c845bb43c65115d1a1d9542f623801cfb6f'
|
2013-04-16 16:03:34 +00:00
|
|
|
|
2014-03-03 21:54:12 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "1e3f2c99e079fd558c388552c1844bde033e06f4" => :mavericks
|
|
|
|
sha1 "5e64aaef0b5e4efd37192fc8be39ed1388de5da4" => :mountain_lion
|
|
|
|
sha1 "4cc76192fcdc38b0d41177cb4263456c14d910f6" => :lion
|
|
|
|
end
|
|
|
|
|
2013-04-16 16:03:34 +00:00
|
|
|
depends_on 'docbook'
|
|
|
|
|
2013-08-07 05:30:05 +00:00
|
|
|
resource 'ns' do
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/docbook/docbook-xsl-ns/1.78.1/docbook-xsl-ns-1.78.1.tar.bz2'
|
2013-08-07 05:30:05 +00:00
|
|
|
sha1 '6a0823039b22ae0e0e9bc5ecc0dc325acdc3218f'
|
|
|
|
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]
|
|
|
|
(prefix/'docbook-xsl').install xsl_files + doc_files
|
2013-08-07 05:30:05 +00:00
|
|
|
resource('ns').stage do
|
2013-04-16 16:03:34 +00:00
|
|
|
(prefix/'docbook-xsl-ns').install xsl_files + doc_files + ['README.ns']
|
|
|
|
end
|
|
|
|
|
|
|
|
[prefix/'docbook-xsl/catalog.xml', prefix/'docbook-xsl-ns/catalog.xml'].each do |catalog|
|
|
|
|
system "xmlcatalog", "--noout", "--del", "file://#{catalog}", "#{etc}/xml/catalog"
|
|
|
|
system "xmlcatalog", "--noout", "--add", "nextCatalog", "", "file://#{catalog}", "#{etc}/xml/catalog"
|
|
|
|
end
|
|
|
|
|
2013-08-13 14:17:39 +00:00
|
|
|
bin.write_exec_script "#{prefix}/docbook-xsl/epub/bin/dbtoepub"
|
2013-04-16 16:03:34 +00:00
|
|
|
end
|
|
|
|
end
|