Commit 373cf38b authored by satmandu's avatar satmandu Committed by GitHub

libxml2_python: Install BOTH python2 & python3 modules (#5061)

* Install python2 & python3 modules
parent 1b50b609
......@@ -3,33 +3,39 @@ require 'package'
class Libxml2_python < Package
description 'Libxml2 (python module) is the XML C parser and toolkit developed for the Gnome project.'
homepage 'http://xmlsoft.org/'
version '2.9.10'
version '2.9.10-f93c'
compatibility 'all'
source_url 'ftp://xmlsoft.org/libxml2/libxml2-2.9.10.tar.gz'
source_sha256 'aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f'
source_url 'https://github.com/GNOME/libxml2/archive/f93ca3e140a371b26366f747a408588c631e0fd1.zip'
source_sha256 '0faa7455354a724e3d07c37177cbf125b3e04da91073fa0858806cb5376f2c55'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-f93c-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-f93c-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-f93c-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libxml2_python-2.9.10-f93c-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'e4e0785991911d9a84fc6023345fb5bf1195b14ecff7ab32e2f5fc7e03301569',
armv7l: 'e4e0785991911d9a84fc6023345fb5bf1195b14ecff7ab32e2f5fc7e03301569',
i686: 'cd4f6ebe11023d88de1e9809fbfd4f1e85d4513cb34450dd9d67fa2f55d96f45',
x86_64: 'a4e7d5428a898c545a2f97d41454d711224341b93782cc7e1a435c442b952ade',
aarch64: 'a9a5e98c5efbaa2640f4d6b89c5bbe790c1f4b76c5eb27796c3f3fed4746f4d1',
armv7l: 'a9a5e98c5efbaa2640f4d6b89c5bbe790c1f4b76c5eb27796c3f3fed4746f4d1',
i686: 'e33618cc4ec9f4a0a6ee1f2a27de1a137981bb2beb6158fd6dc988bd2821d0be',
x86_64: '1cdba7d1e69a31876eabab8f84f61a883486140a9acc09f57c2f9ed27a3f912f',
})
depends_on 'libxslt'
def self.build
system "autoreconf -fi"
system "./configure #{CREW_OPTIONS}"
Dir.chdir("python") do
system "LDFLAGS=-L#{CREW_LIB_PREFIX} python2 setup.py build"
system "LDFLAGS=-L#{CREW_LIB_PREFIX} python3 setup.py build"
end
end
def self.install
Dir.chdir("python") do
system "python2 setup.py install --prefix=#{CREW_PREFIX} --root=#{CREW_DEST_DIR}"
system "python3 setup.py install --prefix=#{CREW_PREFIX} --root=#{CREW_DEST_DIR}"
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