Commit f4dd04fc authored by satmandu's avatar satmandu Committed by GitHub

Docbook Updates (#5113)

* update metapackage

* Only moreutils uses this.

* working

* add

* Update docbook_xml42.rb

* Update docbook_xml43.rb

* Update docbook_xml44.rb

* Update docbook_xml45.rb

* Update docbook_xml50.rb

* Update docbook_xml50.rb

* Update docbook_xml51.rb

* Create dookbook_xml412.rb

* Changed docbook location, update version

* Add binaries

* move compatibility 'all'
parent 88b14f1f
......@@ -3,26 +3,13 @@ require 'package'
class Docbook < Package
description 'DocBook is an XML vocabulary that lets you create documents in a presentation-neutral form that captures the logical structure of your content.'
homepage 'http://docbook.sourceforge.net/'
version '1.79.1-1'
version '1.79.1-2'
compatibility 'all'
source_url 'https://prdownloads.sourceforge.net/project/docbook/docbook-xsl/1.79.1/docbook-xsl-1.79.1.tar.bz2'
source_sha256 '725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968'
is_fake
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook-1.79.1-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/docbook-1.79.1-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/docbook-1.79.1-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook-1.79.1-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '478699b1b1daf061aa64cb71ae22c504d4901aac407525574d48d36cd4f085e4',
armv7l: '478699b1b1daf061aa64cb71ae22c504d4901aac407525574d48d36cd4f085e4',
i686: 'bbea3f2d4dbfff96e903d4ba085d1b7242e490b415f6ce629abd1f9046852596',
x86_64: 'dd7a1d8bee46badac46d233176bc660d47c56cb9e3b4488b6107661bda90e83e',
})
def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/docbook"
system "cp -r . #{CREW_DEST_PREFIX}/docbook"
end
depends_on 'docbook_xml'
depends_on 'docbook_xsl'
depends_on 'docbook_xsl_nons'
end
......@@ -4,15 +4,31 @@ class Docbook_xml < Package
description 'Meta package for all versions of docbook_xml'
compatibility 'all'
homepage 'http://www.docbook.org'
version '5.1-1'
depends_on 'docbook_xml51'
depends_on 'docbook_xml50'
depends_on 'docbook_xml45'
depends_on 'docbook_xml44'
depends_on 'docbook_xml43'
depends_on 'docbook_xml42'
version '5.1-2'
is_fake
# Docbook common postinstall block
ENV['XML_CATALOG_FILES'] = "#{CREW_PREFIX}/etc/xml/catalog"
xml_catalog_files_in_bashrc = `grep -c "XML_CATALOG_FILES" ~/.bashrc || true`
unless xml_catalog_files_in_bashrc.to_i.positive?
puts "Putting \"export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog\" in ~/.bashrc".lightblue
system "echo 'export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog' >> ~/.bashrc"
puts 'To complete the installation, execute the following:'.orange
puts 'source ~/.bashrc'.orange
end
# End Docbook common postinstall block
depends_on 'xmlcatmgr'
depends_on 'docbook_xml412'
depends_on 'docbook_xml42'
depends_on 'docbook_xml43'
depends_on 'docbook_xml44'
depends_on 'docbook_xml45'
depends_on 'docbook_xml50'
depends_on 'docbook_xml51'
# These are probably needed at the same time too.
depends_on 'docbook_xsl'
depends_on 'docbook_xsl_nons'
end
require 'package'
class Docbook_xml42 < Package
description 'Version 4.2 - document type definitions for verification of XML data files against the DocBook rule set'
description 'A widely used XML scheme for writing documentation and help'
homepage 'https://www.oasis-open.org/docbook/'
@_ver = '4.2'
version "#{@_ver}-1"
compatibility 'all'
homepage 'http://www.docbook.org'
version '4.2'
source_url 'http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip'
source_url "https://docbook.org/xml/#{@_ver}/docbook-xml-#{@_ver}.zip"
source_sha256 'acc4601e4f97a196076b7e64b368d9248b07c7abf26b34a02cca40eeebe60fa2'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml42-4.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml42-4.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml42-4.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml42-4.2-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml42-4.2-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml42-4.2-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml42-4.2-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml42-4.2-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '3f0deabad453e1c61893206ec60921ec1a1fbb2ea76f22bd144a9bfa932a40a1',
armv7l: '3f0deabad453e1c61893206ec60921ec1a1fbb2ea76f22bd144a9bfa932a40a1',
i686: '6166d954c4ae7d0832213fa924e2c17b2b211c8b3a95caab6f708219a114bc7b',
x86_64: '6864f9733627d85e8088c87dc098a74ad3d1d6503c28e3b6c2ed78f3ac57dde6',
binary_sha256({
aarch64: '05fe3d73273b67a566e9ac769ddbb88e63a5b9f20abf9483fd3374e3c815a9c9',
armv7l: '05fe3d73273b67a566e9ac769ddbb88e63a5b9f20abf9483fd3374e3c815a9c9',
i686: 'fe49fe7837f831e821c118ba9df5e1ab3551f95de51f1933e3ce41624852fcf9',
x86_64: '9485891895d1a7004f62350a9eb8d806bea66d40fa19274c5b8e69e130ba0fe1'
})
depends_on 'docbook_xml51'
depends_on 'docbook_xsl' # Requires the catalog.xml created within this package
def self.prebuild
system "cat << EOF > ./remove_add.sh
sed -i -e 's,<!-- .* -->,,g' #{CREW_PREFIX}/etc/xml/catalog.xml
xmlcatmgr -c #{CREW_PREFIX}/etc/xml/docbook.xml remove public '-//OASIS//DTD DocBook XML V4.2//EN'
xmlcatmgr -c #{CREW_PREFIX}/etc/xml/docbook.xml remove public '-//OASIS//DTD DocBook XML V4.1.2//EN'
xmlcatmgr -c #{CREW_PREFIX}/etc/xml/docbook.xml add public '-//OASIS//DTD DocBook XML V4.2//EN' 'file://#{CREW_PREFIX}/share/xml/docbook/4.2/catalog.xml'
xmlcatmgr -c #{CREW_PREFIX}/etc/xml/docbook.xml add public '-//OASIS//DTD DocBook XML V4.1.2//EN' 'file://#{CREW_PREFIX}/share/xml/docbook/4.2/catalog.xml'
EOF"
system 'bash ./remove_add.sh'
end
depends_on 'libxml2'
depends_on 'xmlcatmgr'
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/xml/docbook/#{version}/"
FileUtils.cp_r '.', "#{CREW_DEST_PREFIX}/share/xml/docbook/#{version}/"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver}"
system "cp -dr docbook.cat *.dtd ent/ *.mod #{CREW_DEST_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver}"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/xml"
end
end
def self.preinstall
# Docbook common preinstall block
FileUtils.mkdir_p "#{CREW_PREFIX}/etc/xml"
if File.exist?("#{CREW_PREFIX}/etc/xml/catalog") && !File.zero?("#{CREW_PREFIX}/etc/xml/catalog")
puts "#{CREW_PREFIX}/etc/xml/catalog exists"
else
puts "Creating #{CREW_PREFIX}/etc/xml/catalog"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/catalog"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/catalog"
end
if File.exist?("#{CREW_PREFIX}/etc/xml/docbook-xml") && !File.zero?("#{CREW_PREFIX}/etc/xml/docbook-xml")
puts "#{CREW_PREFIX}/etc/xml/docbook-xml not empty"
else
puts "Creating #{CREW_PREFIX}/etc/xml/docbook-xml"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/docbook-xml"
end
# End Docbook common preinstall block
end
def self.postinstall
# Docbook common postinstall block
ENV['XML_CATALOG_FILES'] = "#{CREW_PREFIX}/etc/xml/catalog"
xml_catalog_files_in_bashrc = `grep -c "XML_CATALOG_FILES" ~/.bashrc || true`
unless xml_catalog_files_in_bashrc.to_i.positive?
puts "Putting \"export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog\" in ~/.bashrc".lightblue
system "echo 'export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog' >> ~/.bashrc"
puts 'To complete the installation, execute the following:'.orange
puts 'source ~/.bashrc'.orange
end
# End Docbook common postinstall block
system "xmlcatalog --noout --add rewriteSystem \
http://www.oasis-open.org/docbook/xml/#{@_ver} \
#{CREW_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver} \
#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --add rewriteURI \
http://www.oasis-open.org/docbook/xml/#{@_ver} \
#{CREW_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver} \
#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//DTD DocBook XML V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/docbookx.dtd' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add delegatePublic \
\"-//OASIS//ENTITIES DocBook XML\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegatePublic\" \
\"-//OASIS//DTD DocBook XML\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegateSystem\" \
\"http://www.oasis-open.org/docbook/\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegateURI\" \
\"http://www.oasis-open.org/docbook/\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
end
end
require 'package'
class Docbook_xml43 < Package
description 'document type definitions for verification of XML data files against the DocBook rule set'
description 'A widely used XML scheme for writing documentation and help'
homepage 'https://www.oasis-open.org/docbook/'
@_ver = '4.3'
version "#{@_ver}-1"
compatibility 'all'
homepage 'http://www.docbook.org'
version '4.3'
source_url 'http://www.oasis-open.org/docbook/xml/4.3/docbook-xml-4.3.zip'
source_url "https://docbook.org/xml/#{@_ver}/docbook-xml-#{@_ver}.zip"
source_sha256 '23068a94ea6fd484b004c5a73ec36a66aa47ea8f0d6b62cc1695931f5c143464'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml43-4.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml43-4.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml43-4.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml43-4.3-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml43-4.3-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml43-4.3-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml43-4.3-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml43-4.3-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '7c4339228b5d7840b588aa434e3bfaf22830a3479e1f8edb166384a1ec61d8c4',
armv7l: '7c4339228b5d7840b588aa434e3bfaf22830a3479e1f8edb166384a1ec61d8c4',
i686: '7dd4c1bc19666b1932f451e1ca90c7e13820149b0ff4b80c31bb850128bfdb9c',
x86_64: '56826d7a6b5abde5b17f1df6f32d6b97222f6e00c4f8fc0b50bfb1467489a208',
binary_sha256({
aarch64: '16ed890cc5e2e95597cd7d160e074dbc195448a2e5cfc579846877a5d4cb521a',
armv7l: '16ed890cc5e2e95597cd7d160e074dbc195448a2e5cfc579846877a5d4cb521a',
i686: '15f2467c23c7f284d227551c896745be966a1cd4c5c526fb635b03602e6224e2',
x86_64: 'b61ffe4d472085897c3d1fa991d260f50afae7d8c97a73318b19444a66d817e9'
})
depends_on 'docbook'
depends_on 'libxml2'
depends_on 'xmlcatmgr'
depends_on 'docbook_xml'
depends_on 'docbook_xsl'
def self.prebuild
system "cat << EOF > ./remove_add.sh
sed -i -e 's,<!-- .* -->,,g' #{CREW_PREFIX}/etc/xml/catalog.xml
xmlcatmgr -c #{CREW_PREFIX}/etc/xml/docbook.xml remove public '-//OASIS//DTD DocBook XML V4.3//EN'
xmlcatmgr -c #{CREW_PREFIX}/etc/xml/docbook.xml add public '-//OASIS//DTD DocBook XML V4.3//EN' 'file://#{CREW_PREFIX}/share/xml/docbook/4.3/catalog.xml'
EOF"
system 'bash ./remove_add.sh'
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/xml/docbook/4.3/"
FileUtils.cp_r '.', "#{CREW_DEST_PREFIX}/share/xml/docbook/4.3/"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver}"
system "cp -dr docbook.cat *.dtd ent/ *.mod #{CREW_DEST_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver}"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/xml"
end
end
def self.preinstall
# Docbook common preinstall block
FileUtils.mkdir_p "#{CREW_PREFIX}/etc/xml"
if File.exist?("#{CREW_PREFIX}/etc/xml/catalog") && !File.zero?("#{CREW_PREFIX}/etc/xml/catalog")
puts "#{CREW_PREFIX}/etc/xml/catalog exists"
else
puts "Creating #{CREW_PREFIX}/etc/xml/catalog"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/catalog"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/catalog"
end
if File.exist?("#{CREW_PREFIX}/etc/xml/docbook-xml") && !File.zero?("#{CREW_PREFIX}/etc/xml/docbook-xml")
puts "#{CREW_PREFIX}/etc/xml/docbook-xml not empty"
else
puts "Creating #{CREW_PREFIX}/etc/xml/docbook-xml"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/docbook-xml"
end
# End Docbook common preinstall block
end
def self.postinstall
# Docbook common postinstall block
ENV['XML_CATALOG_FILES'] = "#{CREW_PREFIX}/etc/xml/catalog"
xml_catalog_files_in_bashrc = `grep -c "XML_CATALOG_FILES" ~/.bashrc || true`
unless xml_catalog_files_in_bashrc.to_i.positive?
puts "Putting \"export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog\" in ~/.bashrc".lightblue
system "echo 'export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog' >> ~/.bashrc"
puts 'To complete the installation, execute the following:'.orange
puts 'source ~/.bashrc'.orange
end
# End Docbook common postinstall block
system "xmlcatalog --noout --add rewriteSystem \
http://www.oasis-open.org/docbook/xml/#{@_ver} \
#{CREW_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver} \
#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --add rewriteURI \
http://www.oasis-open.org/docbook/xml/#{@_ver} \
#{CREW_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver} \
#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//DTD DocBook XML V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/docbookx.dtd' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add \"delegatePublic\" \
\"-//OASIS//ENTITIES DocBook XML\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegatePublic\" \
\"-//OASIS//DTD DocBook XML\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegateSystem\" \
\"http://www.oasis-open.org/docbook/\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegateURI\" \
\"http://www.oasis-open.org/docbook/\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
end
end
require 'package'
class Docbook_xml44 < Package
description 'Version 4.4 - document type definitions for verification of XML data files against the DocBook rule set'
description 'A widely used XML scheme for writing documentation and help'
homepage 'https://www.oasis-open.org/docbook/'
@_ver = '4.4'
version "#{@_ver}-1"
compatibility 'all'
homepage 'http://www.docbook.org'
version '4.4'
source_url 'http://www.oasis-open.org/docbook/xml/4.4/docbook-xml-4.4.zip'
source_url "https://docbook.org/xml/#{@_ver}/docbook-xml-#{@_ver}.zip"
source_sha256 '02f159eb88c4254d95e831c51c144b1863b216d909b5ff45743a1ce6f5273090'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml44-4.4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml44-4.4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml44-4.4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml44-4.4-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml44-4.4-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml44-4.4-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml44-4.4-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml44-4.4-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'f56b6c50394ce4ba7cc71097954872461835a2f4502c133b6ca9d815821caa0c',
armv7l: 'f56b6c50394ce4ba7cc71097954872461835a2f4502c133b6ca9d815821caa0c',
i686: 'c285506ebd3e12e15c03907e6d289f5a8d60e98e76175119960c9b9c78c687b3',
x86_64: 'bce18b425d7180f3cf1d1f3b4a1b4aba30916ed0743bc38b126857d9e92ea45a',
binary_sha256({
aarch64: '0781dda33ce4845ca3f18d533469ca888c5823f8b1c5b41fa9c633e25569d971',
armv7l: '0781dda33ce4845ca3f18d533469ca888c5823f8b1c5b41fa9c633e25569d971',
i686: 'f681134f0aa6bee29744c33612c5d5b71d52601777a00af170fc3528d9af9474',
x86_64: '46f1158d117549d339ace891d87e2ac27a0cc5d778f75991c462201e57f11e0b'
})
depends_on 'docbook_xml51'
depends_on 'docbook_xsl'
depends_on 'libxml2'
depends_on 'xmlcatmgr'
def self.prebuild
system "cat << EOF > ./remove_add.sh
sed -i -e 's,<!-- .* -->,,g' #{CREW_PREFIX}/etc/xml/catalog.xml
xmlcatmgr -c #{CREW_PREFIX}/etc/xml/docbook.xml remove public '-//OASIS//DTD DocBook XML V4.4//EN'
xmlcatmgr -c #{CREW_PREFIX}/etc/xml/docbook.xml add public '-//OASIS//DTD DocBook XML V4.4//EN' 'file://#{CREW_PREFIX}/share/xml/docbook/4.4/catalog.xml'
EOF"
system 'bash ./remove_add.sh'
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver}"
system "cp -dr docbook.cat *.dtd ent/ *.mod #{CREW_DEST_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver}"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/xml"
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/xml/docbook/#{version}/"
FileUtils.cp_r '.', "#{CREW_DEST_PREFIX}/share/xml/docbook/#{version}/"
def self.preinstall
# Docbook common preinstall block
FileUtils.mkdir_p "#{CREW_PREFIX}/etc/xml"
if File.exist?("#{CREW_PREFIX}/etc/xml/catalog") && !File.zero?("#{CREW_PREFIX}/etc/xml/catalog")
puts "#{CREW_PREFIX}/etc/xml/catalog exists"
else
puts "Creating #{CREW_PREFIX}/etc/xml/catalog"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/catalog"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/catalog"
end
if File.exist?("#{CREW_PREFIX}/etc/xml/docbook-xml") && !File.zero?("#{CREW_PREFIX}/etc/xml/docbook-xml")
puts "#{CREW_PREFIX}/etc/xml/docbook-xml not empty"
else
puts "Creating #{CREW_PREFIX}/etc/xml/docbook-xml"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/docbook-xml"
end
# End Docbook common preinstall block
end
def self.postinstall
# Docbook common postinstall block
ENV['XML_CATALOG_FILES'] = "#{CREW_PREFIX}/etc/xml/catalog"
xml_catalog_files_in_bashrc = `grep -c "XML_CATALOG_FILES" ~/.bashrc || true`
unless xml_catalog_files_in_bashrc.to_i.positive?
puts "Putting \"export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog\" in ~/.bashrc".lightblue
system "echo 'export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog' >> ~/.bashrc"
puts 'To complete the installation, execute the following:'.orange
puts 'source ~/.bashrc'.orange
end
# End Docbook common postinstall block
system "xmlcatalog --noout --add 'public' \
'-//OASIS//ELEMENTS DocBook XML HTML Tables V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/htmltblx.mod' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add rewriteSystem \
http://www.oasis-open.org/docbook/xml/#{@_ver} \
#{CREW_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver} \
#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --add rewriteURI \
http://www.oasis-open.org/docbook/xml/#{@_ver} \
#{CREW_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver} \
#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//DTD DocBook XML V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/docbookx.dtd' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add \"delegatePublic\" \
\"-//OASIS//ENTITIES DocBook XML\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegatePublic\" \
\"-//OASIS//DTD DocBook XML\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegateSystem\" \
\"http://www.oasis-open.org/docbook/\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegateURI\" \
\"http://www.oasis-open.org/docbook/\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
end
end
require 'package'
class Docbook_xml45 < Package
description 'Version 4.5 -document type definitions for verification of XML data files against the DocBook rule set'
description 'A widely used XML scheme for writing documentation and help'
homepage 'https://www.oasis-open.org/docbook/'
@_ver = '4.5'
version "#{@_ver}-1"
compatibility 'all'
homepage 'http://www.docbook.org'
version '4.5'
source_url 'http://www.oasis-open.org/docbook/xml/4.5/docbook-xml-4.5.zip'
source_url "https://docbook.org/xml/#{@_ver}/docbook-xml-#{@_ver}.zip"
source_sha256 '4e4e037a2b83c98c6c94818390d4bdd3f6e10f6ec62dd79188594e26190dc7b4'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml45-4.5-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml45-4.5-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml45-4.5-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml45-4.5-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml45-4.5-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml45-4.5-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml45-4.5-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml45-4.5-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'b328c89d8af6d6230a1d6e336601fa85f78486e28e9e4afdc085c38b94196857',
armv7l: 'b328c89d8af6d6230a1d6e336601fa85f78486e28e9e4afdc085c38b94196857',
i686: 'a79e4186e7f8bbe0f9d09cf8f7ad2116c4f3a07f654c968b303b0f307c0bb439',
x86_64: 'a6330711188580cae005ed58e79b7c4eb39532f20cbd8e847d7ba4299b32533f',
binary_sha256({
aarch64: 'e7463d14aad6712597f6eff575042128392a6783da2c471b36fb61395405cb1b',
armv7l: 'e7463d14aad6712597f6eff575042128392a6783da2c471b36fb61395405cb1b',
i686: '168de1189b9d953c7a8e09196af78867dc73f3e16931c6f2bb4f2f8d3c0fc747',
x86_64: '715699ab3ffddc03de0b8d950c129a6f79b062b82983f9e1e795dc6b9ad5c42c'
})
depends_on 'docbook_xml51'
depends_on 'docbook_xsl'
depends_on 'libxml2'
depends_on 'xmlcatmgr'
def self.prebuild
system "cat << EOF > ./remove_add.sh
sed -i -e 's,<!-- .* -->,,g' #{CREW_PREFIX}/etc/xml/catalog.xml
xmlcatmgr -c #{CREW_PREFIX}/etc/xml/docbook.xml remove public '-//OASIS//DTD DocBook XML V4.5//EN'
xmlcatmgr -c #{CREW_PREFIX}/etc/xml/docbook.xml add public '-//OASIS//DTD DocBook XML V4.5//EN' 'file://#{CREW_PREFIX}/share/xml/docbook/4.5/catalog.xml'
EOF"
system 'bash ./remove_add.sh'
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver}"
system "cp -dr docbook.cat *.dtd ent/ *.mod #{CREW_DEST_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver}"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/xml"
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/xml/docbook/#{version}/"
FileUtils.cp_r '.', "#{CREW_DEST_PREFIX}/share/xml/docbook/#{version}/"
def self.preinstall
# Docbook common preinstall block
FileUtils.mkdir_p "#{CREW_PREFIX}/etc/xml"
if File.exist?("#{CREW_PREFIX}/etc/xml/catalog") && !File.zero?("#{CREW_PREFIX}/etc/xml/catalog")
puts "#{CREW_PREFIX}/etc/xml/catalog exists"
else
puts "Creating #{CREW_PREFIX}/etc/xml/catalog"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/catalog"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/catalog"
end
if File.exist?("#{CREW_PREFIX}/etc/xml/docbook-xml") && !File.zero?("#{CREW_PREFIX}/etc/xml/docbook-xml")
puts "#{CREW_PREFIX}/etc/xml/docbook-xml not empty"
else
puts "Creating #{CREW_PREFIX}/etc/xml/docbook-xml"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/docbook-xml"
end
# End Docbook common preinstall block
end
end
def self.postinstall
# Docbook common postinstall block
ENV['XML_CATALOG_FILES'] = "#{CREW_PREFIX}/etc/xml/catalog"
xml_catalog_files_in_bashrc = `grep -c "XML_CATALOG_FILES" ~/.bashrc || true`
unless xml_catalog_files_in_bashrc.to_i.positive?
puts "Putting \"export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog\" in ~/.bashrc".lightblue
system "echo 'export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog' >> ~/.bashrc"
puts 'To complete the installation, execute the following:'.orange
puts 'source ~/.bashrc'.orange
end
# End Docbook common postinstall block
system "xmlcatalog --noout --add 'public' \
'-//OASIS//ELEMENTS DocBook XML HTML Tables V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/htmltblx.mod' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add rewriteSystem \
http://www.oasis-open.org/docbook/xml/#{@_ver} \
#{CREW_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver} \
#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --add rewriteURI \
http://www.oasis-open.org/docbook/xml/#{@_ver} \
#{CREW_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver} \
#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//DTD DocBook XML V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/docbookx.dtd' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add \"delegatePublic\" \
\"-//OASIS//ENTITIES DocBook XML\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegatePublic\" \
\"-//OASIS//DTD DocBook XML\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegateSystem\" \
\"http://www.oasis-open.org/docbook/\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add \"delegateURI\" \
\"http://www.oasis-open.org/docbook/\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
'#{CREW_PREFIX}/etc/xml/catalog'"
end
end
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
require 'package'
class Docbook_xsl_nons < Package
description 'The DocBook XSL Stylesheets package contains XSL stylesheets. These are useful for performing transformations on XML DocBook files.'
homepage 'https://github.com/docbook/xslt10-stylesheets'
@_ver = '1.79.2'
version @_ver
compatibility 'all'
source_url "https://github.com/docbook/xslt10-stylesheets/releases/download/release/#{@_ver}/docbook-xsl-nons-#{@_ver}.zip"
source_sha256 'ba41126fbf4021e38952f3074dc87cdf1e50f3981280c7a619f88acf31456822'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xsl_nons-1.79.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xsl_nons-1.79.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xsl_nons-1.79.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xsl_nons-1.79.2-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '591c6a68855b291d26463cb039b72b6100a10b02f29e4b61a8177df9ffc7694c',
armv7l: '591c6a68855b291d26463cb039b72b6100a10b02f29e4b61a8177df9ffc7694c',
i686: '96082d7311387dddc7e9751f5d4458168a782be88eacf4789cebd1962406fba7',
x86_64: '358b905b77951ab9e81272628b87e4f43152869f1a7a894e2e1139309f0ff4b1'
})
depends_on 'xmlcatmgr'
depends_on 'bash'
def self.patch
system 'curl -OLf "https://github.com/archlinux/svntogit-packages/raw/packages/docbook-xsl/trunk/765567_non-recursive_string_subst.patch"'
unless Digest::SHA256.hexdigest(File.read('765567_non-recursive_string_subst.patch')) == '193ec26dcb37bdf12037ed4ea98d68bd550500c8e96b719685d76d7096c3f9b3'
abort 'Checksum mismatch. :/ Try again.'.lightred
end
system 'patch -Np2 -i 765567_non-recursive_string_subst.patch'
end
def self.install
ENV['XML_CATALOG_FILES'] = "#{CREW_DEST_PREFIX}/etc/xml/catalog"
@pkgroot = "#{CREW_DEST_PREFIX}/share/xml/docbook/xsl-stylesheets-#{@_ver}-nons"
@ADDFILES_SH = <<~ADDFILES_HEREDOC
install -Dt @pkgroot -m644 VERSION{,.xsl}
(
shopt -s nullglob # ignore missing files
echo "ignore missing files"
for fn in 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
do
install -Dt "#{@pkgroot}"/"$fn" -m644 "$fn"/*.{xml,xsl,dtd,ent}
done
)
ADDFILES_HEREDOC
IO.write('add_files.sh', @ADDFILES_SH, perm: 0o755)
system "#{CREW_PREFIX}/bin/bash ./add_files.sh || true"
end
def self.preinstall
# Docbook common preinstall block
FileUtils.mkdir_p "#{CREW_PREFIX}/etc/xml"
if File.exist?("#{CREW_PREFIX}/etc/xml/catalog") && !File.zero?("#{CREW_PREFIX}/etc/xml/catalog")
puts "#{CREW_PREFIX}/etc/xml/catalog exists"
else
puts "Creating #{CREW_PREFIX}/etc/xml/catalog"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/catalog"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/catalog"
end
if File.exist?("#{CREW_PREFIX}/etc/xml/docbook-xml") && !File.zero?("#{CREW_PREFIX}/etc/xml/docbook-xml")
puts "#{CREW_PREFIX}/etc/xml/docbook-xml not empty"
else
puts "Creating #{CREW_PREFIX}/etc/xml/docbook-xml"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/docbook-xml"
end
# End Docbook common preinstall block
end
def self.postinstall
# Docbook common postinstall block
ENV['XML_CATALOG_FILES'] = "#{CREW_PREFIX}/etc/xml/catalog"
xml_catalog_files_in_bashrc = `grep -c "XML_CATALOG_FILES" ~/.bashrc || true`
unless xml_catalog_files_in_bashrc.to_i.positive?
puts "Putting \"export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog\" in ~/.bashrc".lightblue
system "echo 'export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog' >> ~/.bashrc"
puts 'To complete the installation, execute the following:'.orange
puts 'source ~/.bashrc'.orange
end
# End Docbook common postinstall block
system "xmlcatalog --noout --add rewriteSystem https://cdn.docbook.org/release/xsl-nons/#{@_ver} #{CREW_PREFIX}/share/xml/docbook/xsl-stylesheets-#{@_ver}-nons '#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add rewriteURI https://cdn.docbook.org/release/xsl-nons/#{@_ver} #{CREW_PREFIX}/share/xml/docbook/xsl-stylesheets-#{@_ver}-nons '#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add rewriteSystem https://cdn.docbook.org/release/xsl-nons/current #{CREW_PREFIX}/share/xml/docbook/xsl-stylesheets-#{@_ver}-nons '#{CREW_PREFIX}/etc/xml/catalog'"
system "xmlcatalog --noout --add rewriteURI https://cdn.docbook.org/release/xsl-nons/current #{CREW_PREFIX}/share/xml/docbook/xsl-stylesheets-#{@_ver}-nons '#{CREW_PREFIX}/etc/xml/catalog'"
# Check:
system 'xmlcatalog', "#{CREW_PREFIX}/etc/xml/catalog", 'https://cdn.docbook.org/release/xsl-nons/current/'
system 'xmlcatalog', "#{CREW_PREFIX}/etc/xml/catalog", "https://cdn.docbook.org/release/xsl-nons/#{@_ver}/"
end
end
require 'package'
class Docbook_xml412 < Package
description 'A widely used XML scheme for writing documentation and help'
homepage 'https://www.oasis-open.org/docbook/'
@_ver = '4.1.2'
version @_ver
compatibility 'all'
source_url 'https://docbook.org/xml/4.1.2/docbkx412.zip'
source_sha256 '30f0644064e0ea71751438251940b1431f46acada814a062870f486c772e7772'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml412-4.1.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml412-4.1.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml412-4.1.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/docbook_xml412-4.1.2-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '7a71988ef51b7480522c314559f76c3c9334c1a55f6981dcea536badafe3ffd9',
armv7l: '7a71988ef51b7480522c314559f76c3c9334c1a55f6981dcea536badafe3ffd9',
i686: 'a760d0c0a67601560012cc48bd88c5e45b853d6f8636a20ab8532729cbcfeb5b',
x86_64: 'e61afc55e0d7d2e4b09df2185f64edb55e0cbea828fed2ac682906589911cfaf'
})
depends_on 'libxml2'
depends_on 'xmlcatmgr'
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver}"
system "cp -dr docbook.cat *.dtd ent/ *.mod #{CREW_DEST_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver}"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/xml"
end
def self.preinstall
# Docbook common preinstall block
FileUtils.mkdir_p "#{CREW_PREFIX}/etc/xml"
if File.exist?("#{CREW_PREFIX}/etc/xml/catalog") && !File.zero?("#{CREW_PREFIX}/etc/xml/catalog")
puts "#{CREW_PREFIX}/etc/xml/catalog exists"
else
puts "Creating #{CREW_PREFIX}/etc/xml/catalog"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/catalog"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/catalog"
end
if File.exist?("#{CREW_PREFIX}/etc/xml/docbook-xml") && !File.zero?("#{CREW_PREFIX}/etc/xml/docbook-xml")
puts "#{CREW_PREFIX}/etc/xml/docbook-xml not empty"
else
puts "Creating #{CREW_PREFIX}/etc/xml/docbook-xml"
FileUtils.rm_f "#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --create #{CREW_PREFIX}/etc/xml/docbook-xml"
end
# End Docbook common preinstall block
end
def self.postinstall
# Docbook common postinstall block
ENV['XML_CATALOG_FILES'] = "#{CREW_PREFIX}/etc/xml/catalog"
xml_catalog_files_in_bashrc = `grep -c "XML_CATALOG_FILES" ~/.bashrc || true`
unless xml_catalog_files_in_bashrc.to_i.positive?
puts "Putting \"export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog\" in ~/.bashrc".lightblue
system "echo 'export XML_CATALOG_FILES=#{CREW_PREFIX}/etc/xml/catalog' >> ~/.bashrc"
puts 'To complete the installation, execute the following:'.orange
puts 'source ~/.bashrc'.orange
end
# End Docbook common postinstall block
system "xmlcatalog --noout --add 'public' \
'-//OASIS//DTD DocBook XML V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/docbookx.dtd' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//DTD DocBookXML CALS Table Model V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/calstblx.dtd' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//DTD XML Exchange Table Model 19990315//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/soextblx.dtd' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//ELEMENTS DocBookXML Information Pool V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/dbpoolx.mod' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//ELEMENTS DocBookXML Document Hierarchy V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/dbhierx.mod' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//ENTITIES DocBookXML Additional General Entities V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/dbgenent.mod' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//ENTITIES DocBookXML Notations V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/dbnotnx.mod' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//ENTITIES DocBookXML Character Entities V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/dbcentx.mod' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add rewriteSystem \
http://www.oasis-open.org/docbook/xml/#{@_ver} \
#{CREW_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver} \
#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --add rewriteURI \
http://www.oasis-open.org/docbook/xml/#{@_ver} \
#{CREW_PREFIX}/share/xml/docbook/xml-dtd-#{@_ver} \
#{CREW_PREFIX}/etc/xml/docbook-xml"
system "xmlcatalog --noout --add 'public' \
'-//OASIS//DTD DocBook XML V#{@_ver}//EN' \
'http://www.oasis-open.org/docbook/xml/#{@_ver}/docbookx.dtd' \
'#{CREW_PREFIX}/etc/xml/docbook-xml'"
system "xmlcatalog --noout --add \"delegatePublic\" \
\"-//OASIS//ENTITIES DocBook XML\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
#{CREW_PREFIX}/etc/xml/catalog"
system "xmlcatalog --noout --add \"delegatePublic\" \
\"-//OASIS//DTD DocBook XML\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
#{CREW_PREFIX}/etc/xml/catalog"
system "xmlcatalog --noout --add \"delegateSystem\" \
\"http://www.oasis-open.org/docbook/\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
#{CREW_PREFIX}/etc/xml/catalog"
system "xmlcatalog --noout --add \"delegateURI\" \
\"http://www.oasis-open.org/docbook/\" \
\"file://#{CREW_PREFIX}/etc/xml/docbook-xml\" \
#{CREW_PREFIX}/etc/xml/catalog"
end
end
......@@ -3,35 +3,37 @@ require 'package'
class Moreutils < Package
description 'moreutils is a growing collection of the unix tools that nobody thought to write long ago when unix was young.'
homepage 'https://joeyh.name/code/moreutils/'
version '0.60'
@_ver = '0.65'
version @_ver
compatibility 'all'
source_url 'http://http.debian.net/debian/pool/main/m/moreutils/moreutils_0.60.orig.tar.xz'
source_sha256 'e42d18bacbd2d003779a55fb3542befa5d1d217ee37c1874e8c497581ebc17c5'
source_url "http://http.debian.net/debian/pool/main/m/moreutils/moreutils_#{@_ver}.orig.tar.xz"
source_sha256 'ba0cfaa1ff6ead2b15c62a67292de66a366f9b815a09697b54677f7e15f5a2b2'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/moreutils-0.60-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/moreutils-0.60-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/moreutils-0.60-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/moreutils-0.60-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/moreutils-0.65-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/moreutils-0.65-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/moreutils-0.65-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/moreutils-0.65-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '0c7f2b822e06c806969e5666069933e9d97932320d9759713217e700ad3b1d4d',
armv7l: '0c7f2b822e06c806969e5666069933e9d97932320d9759713217e700ad3b1d4d',
i686: '63f39101b144273c158aa38e88aa3af2ca84925c52793fdd9beed85da865aa6b',
x86_64: 'dea55d855398f5b88d255ab185f44446acb57ae0d1108057755278f68dc1f4f8',
aarch64: 'af2d40444fb74ae8e2151b76d61417ddee993b69b8e6b6b30a65218612a8f523',
armv7l: 'af2d40444fb74ae8e2151b76d61417ddee993b69b8e6b6b30a65218612a8f523',
i686: '5bb54745aa76aa985f0cc0a6dd2a7c6efdcd314774df9d535183b657247c9540',
x86_64: '55222b8e4293e548f812542fa7447e5420c1b7098c0ae481e1f0a0357dd84ed9',
})
depends_on 'docbook'
depends_on 'docbook_xml'
depends_on 'libxslt'
def self.build
system "sed -i 's,PREFIX?=/usr,PREFIX?=#{CREW_PREFIX},' Makefile"
system "sed -i 's,DOCBOOKXSL?=/usr/share/xml/docbook/stylesheet/docbook-xsl,DOCBOOKXSL?=#{CREW_PREFIX}/docbook,' Makefile"
system "sed -i 's,DOCBOOKXSL?=/usr/share/xml/docbook/stylesheet/docbook-xsl,DOCBOOKXSL?=#{CREW_PREFIX}/share/xml/docbook/stylesheet/docbook-xsl,' Makefile"
system "sed -i 's,share/man,man,g' Makefile"
system 'make'
system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' LDFLAGS='-flto=auto' \
make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment