Commit b3df3157 authored by Ed Reel's avatar Ed Reel Committed by Chris Thurber

Update xdg_utils from 1.1.3 to 1.1.3_1 (#3352)

Fix to generate manpages

Add elinks and xmlto dependencies

Add pre-built binaries
parent 9c04f8b2
......@@ -3,34 +3,37 @@ require 'package'
class Xdg_utils < Package
description 'xdg-utils is a set of tools that allows applications to easily integrate with the desktop environment of the user, regardless of the specific desktop environment that the user runs.'
homepage 'https://www.freedesktop.org/wiki/Software/xdg-utils/'
version '1.1.3'
source_url 'https://portland.freedesktop.org/download/xdg-utils-1.1.3.tar.gz'
source_sha256 'd798b08af8a8e2063ddde6c9fa3398ca81484f27dec642c5627ffcaa0d4051d9'
version '1.1.3-1'
source_url 'https://gitlab.freedesktop.org/xdg/xdg-utils/-/archive/v1.1.3/xdg-utils-v1.1.3.tar.bz2'
source_sha256 'deac55c48aa2902023c96a4bea2f1778441ce9c59e60ed52c6ce5d8b3e90ba64'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/xdg_utils-1.1.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/xdg_utils-1.1.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/xdg_utils-1.1.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/xdg_utils-1.1.3-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/xdg_utils-1.1.3-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/xdg_utils-1.1.3-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/xdg_utils-1.1.3-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/xdg_utils-1.1.3-1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '047179b2eed1133b4694e22ccf3bdec32840162ec267db88e7f2b4f72b7cb757',
armv7l: '047179b2eed1133b4694e22ccf3bdec32840162ec267db88e7f2b4f72b7cb757',
i686: '4e362f4e1f5d0425b8f51188bf2800125cd7e8c395bbb41f529111a6c8795235',
x86_64: '2cf6a0564337993c470a8fcbaf9a9f588a0b1171ddd8fcfe42d3568625bca7b4',
aarch64: '5d39a96a61b59eed8219727da0a6197c7b7f941b40a75eece77c9a0215e8559e',
armv7l: '5d39a96a61b59eed8219727da0a6197c7b7f941b40a75eece77c9a0215e8559e',
i686: 'dc89bcf110e5d20900dea98271739fe2a43b914ae2ba93cc16782265b0323ab0',
x86_64: 'b76c87093c24193d0010ad125573cc48259339eae4709f0733f825b45bba79de',
})
depends_on 'help2man' => :build
depends_on 'elinks' => :build
depends_on 'libxslt' => :build
depends_on 'xmlto' => :build
def self.patch
system "find -name '*.xml' -exec sed -i 's,http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd,file://#{CREW_PREFIX}/share/xml/docbook/xml-dtd-4.3/docbookx.dtd,' {} \\;"
end
def self.build
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/man/man1"
system "./configure --prefix=#{CREW_PREFIX}"
system "sed -i 's,html man scripts,scripts,' scripts/Makefile"
system "sed -i '65,71d' scripts/Makefile"
system "sed -i '63imv \$\$x.in \$\$x; \\\\' scripts/Makefile"
system "sed -i '64ihelp2man -N --no-discard-stderr \$\$x > \$\$x.1; \\\\' scripts/Makefile"
system "sed -i '65igzip -9 \$\$x.1; \\\\' scripts/Makefile"
system "sed -i '66iinstall -Dm755 \$\$x.1.gz #{CREW_DEST_PREFIX}/share/man/man1/\$\$x.1.gz; \\\\' scripts/Makefile"
system "sed -i 's,\$(XMLTO) man,#{CREW_PREFIX}/bin/xmlto -x #{CREW_PREFIX}/docbook/manpages/docbook.xsl man,' scripts/Makefile"
system "sed -i 's,\$(XMLTO) html,#{CREW_PREFIX}/bin/xmlto -x #{CREW_PREFIX}/docbook/html/docbook.xsl html,' scripts/Makefile"
system "sed -i 's,\$(XMLTO) txt,#{CREW_PREFIX}/bin/xmlto -x #{CREW_PREFIX}/docbook/html/docbook.xsl txt,' scripts/Makefile"
system 'make'
end
def self.install
......
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