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

gtk_doc -> 1.33.2, use meson, lto (#4966)

parent c2ae645d
require 'package' require 'package'
# There are alot of patches to grab here ~ They've all come from Void-Packages (xbps-src)
class Gtk_doc < Package class Gtk_doc < Package
description 'Documentation tool for public library API' description 'Documentation tool for public library API'
homepage 'https://www.gtk.org/gtk-doc/' homepage 'https://www.gtk.org/gtk-doc/'
version '1.32' version '1.33.2'
compatibility 'all' compatibility 'all'
source_url 'https://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.32/gtk-doc-1.32.tar.xz' source_url 'https://download.gnome.org/sources/gtk-doc/1.33/gtk-doc-1.33.2.tar.xz'
source_sha256 'de0ef034fb17cb21ab0c635ec730d19746bce52984a6706e7bbec6fb5e0b907c' source_sha256 'cc1b709a20eb030a278a1f9842a362e00402b7f834ae1df4c1998a723152bf43'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk_doc-1.32-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk_doc-1.33.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gtk_doc-1.32-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gtk_doc-1.33.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gtk_doc-1.32-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/gtk_doc-1.33.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk_doc-1.32-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk_doc-1.33.2-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '49133e1cd655aab18ea109fde3d5496f76e5e4443f5a11e2241bfc4256d782f8', aarch64: 'ba73551a108866ced64b4eeb9604aa611516f425332f3783f92c74019a690e4e',
armv7l: '49133e1cd655aab18ea109fde3d5496f76e5e4443f5a11e2241bfc4256d782f8', armv7l: 'ba73551a108866ced64b4eeb9604aa611516f425332f3783f92c74019a690e4e',
i686: '4a925e816c2c222ea973525be6dab5ee90d1524f541b30166ca57b07b5e99eec', i686: '1c3b409bc74cfa802f2ac07431637a6442a2177f9502b921ef627e7a22218142',
x86_64: 'cabae34fc1c371a929052a3611be30164d2961eb0b203f5239c91d8cb5480a96', x86_64: 'd3bbd486349bf83fbf9103e219fa0abb533968c8753b6c278ceb14c6d61e1258',
}) })
depends_on 'docbook_xml' depends_on 'docbook_xml'
depends_on 'fop' depends_on 'fop'
depends_on 'itstool' depends_on 'itstool'
depends_on 'libxslt' depends_on 'libxslt'
depends_on 'pygments' => :build
def self.patch #def self.patch
puts # There are alot of patches to grab here ~ They've all come from Void-Packages (xbps-src)
puts 'Grabbing patches'.lightblue #puts
system 'curl --ssl -L -o "output-reproducible.patch" "https://git.io/JUlWD" --progress-bar' #puts 'Grabbing patches'.lightblue
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('output-reproducible.patch') ) == '701fe4124a94b124e943e9220f4ea42de7fe191379f41c349cc2f69ece37af24' #system 'curl --ssl -L -o "output-reproducible.patch" "https://git.io/JUlWD" --progress-bar'
system 'curl --ssl -L -o "tree-structure-without-using-anytree.patch" "https://git.io/JUlOD" --progress-bar' #abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('output-reproducible.patch') ) == '701fe4124a94b124e943e9220f4ea42de7fe191379f41c349cc2f69ece37af24'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('tree-structure-without-using-anytree.patch') ) == '8423045330d66f119d1a1caab6d08b1121230d3103de405840be1743af71c8b3' #system 'curl --ssl -L -o "tree-structure-without-using-anytree.patch" "https://git.io/JUlOD" --progress-bar'
system 'curl --ssl -L -o "support-deprecated-struct-members.patch" "https://git.io/JUl3O" --progress-bar' #abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('tree-structure-without-using-anytree.patch') ) == '8423045330d66f119d1a1caab6d08b1121230d3103de405840be1743af71c8b3'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('support-deprecated-struct-members.patch') ) == '3f9c3c68640c76c10d9262e0678828374d8dbbb9cd9d30b64f2aed7a78277d1f' #system 'curl --ssl -L -o "support-deprecated-struct-members.patch" "https://git.io/JUl3O" --progress-bar'
system 'curl --ssl -L -o "typedef-can-be-followed-by-decorator.patch" "https://git.io/JUl3C" --progress-bar' #abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('support-deprecated-struct-members.patch') ) == '3f9c3c68640c76c10d9262e0678828374d8dbbb9cd9d30b64f2aed7a78277d1f'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('typedef-can-be-followed-by-decorator.patch') ) == '16c4d633ddf0e72a7146cf6427b15c9a3780d5b6e36185baaead2e529741da2c' #system 'curl --ssl -L -o "typedef-can-be-followed-by-decorator.patch" "https://git.io/JUl3C" --progress-bar'
system 'curl --ssl -L -o "IGNORE_DEPRECATIONS-lines.patch" "https://git.io/JUl3o" --progress-bar' #abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('typedef-can-be-followed-by-decorator.patch') ) == '16c4d633ddf0e72a7146cf6427b15c9a3780d5b6e36185baaead2e529741da2c'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('IGNORE_DEPRECATIONS-lines.patch') ) == '7b4703006fa03a58faa72287e043f31893f8bbb2ea69ee15a2c5b29e5ff56534' #system 'curl --ssl -L -o "IGNORE_DEPRECATIONS-lines.patch" "https://git.io/JUl3o" --progress-bar'
system 'curl --ssl -L -o "revert_fix_build.patch" "https://git.io/JUl3H" --progress-bar' #abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('IGNORE_DEPRECATIONS-lines.patch') ) == '7b4703006fa03a58faa72287e043f31893f8bbb2ea69ee15a2c5b29e5ff56534'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('revert_fix_build.patch') ) == 'e1520094c3cc110767f840f7a710ce56cdaae4650316a5407337425dd37969c4' #system 'curl --ssl -L -o "revert_fix_build.patch" "https://git.io/JUl3H" --progress-bar'
puts #abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('revert_fix_build.patch') ) == 'e1520094c3cc110767f840f7a710ce56cdaae4650316a5407337425dd37969c4'
puts 'Applying patches'.lightblue #puts
system 'patch -Np1 -i revert_fix_build.patch' #puts 'Applying patches'.lightblue
system 'patch -Np1 -i IGNORE_DEPRECATIONS-lines.patch' #system 'patch -Np1 -i revert_fix_build.patch'
system 'patch -Np1 -i typedef-can-be-followed-by-decorator.patch' #system 'patch -Np1 -i IGNORE_DEPRECATIONS-lines.patch'
system 'patch -Np1 -i support-deprecated-struct-members.patch' #system 'patch -Np1 -i typedef-can-be-followed-by-decorator.patch'
system 'patch -Np1 -i tree-structure-without-using-anytree.patch' #system 'patch -Np1 -i support-deprecated-struct-members.patch'
system 'patch -Np1 -i output-reproducible.patch' #system 'patch -Np1 -i tree-structure-without-using-anytree.patch'
puts #system 'patch -Np1 -i output-reproducible.patch'
end #puts
#end
def self.build def self.build
system "./configure #{CREW_OPTIONS} --with-xml-catalog=#{CREW_PREFIX}/etc/xml/catalog.xml" system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system 'make' system "meson configure builddir"
system "ninja -C builddir"
end end
def self.install def self.install
system "make install DESTDIR=#{CREW_DEST_DIR}" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end end
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