mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 16:08:08 -05:00
"pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} six" does not work. six packages not found.
Fix this error using normal installation of six in python
30 lines
1.0 KiB
Ruby
30 lines
1.0 KiB
Ruby
require 'package'
|
|
|
|
class Pango < Package
|
|
description 'Pango is a library for laying out and rendering of text, with an emphasis on internationalization.'
|
|
homepage 'http://www.pango.org/'
|
|
version '1.41-1'
|
|
source_url 'https://ftp.gnome.org/pub/gnome/sources/pango/1.41/pango-1.41.0.tar.xz'
|
|
source_sha256 '1f76ef95953dc58ee5d6a53e5f1cb6db913f3e0eb489713ee9266695cae580ba'
|
|
|
|
depends_on 'diffutils' => :build
|
|
depends_on 'harfbuzz'
|
|
depends_on 'cairo'
|
|
depends_on 'glib'
|
|
depends_on 'perl'
|
|
depends_on 'gobject_introspection' # add this package to build gtk+, avoid compilation error
|
|
depends_on 'python27' # need six package from python to install Pango
|
|
|
|
|
|
def self.build
|
|
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
|
|
system "make"
|
|
end
|
|
|
|
def self.install
|
|
system "pip install six" # fix installation error, "pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} six" does not work
|
|
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
|
system "pip uninstall --yes six"
|
|
end
|
|
end
|