libxml2.rb 781 Bytes
Newer Older
1 2 3
require 'package'

class Libxml2 < Package
4 5
  description 'Libxml2 is the XML C parser and toolkit developed for the Gnome project.'
  homepage 'http://xmlsoft.org/'
6 7 8
  version '2.9.4'
  source_url 'ftp://xmlsoft.org/libxml2/libxml2-2.9.4.tar.gz'
  source_sha1 '958ae70baf186263a4bd801a81dd5d682aedd1db'
9 10

  def self.build
11
    system "./configure", "--libdir=#{CREW_LIB_PREFIX}", "--enable-shared", "--disable-static", "--with-pic", "--without-python"
12 13 14 15
    system "make"
  end

  def self.install
16
    system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
17
  end
18 19 20 21 22 23 24 25

  def self.check
    # Remove EBCDIC test since it fails.
    # Check https://mail.gnome.org/archives/xml/2010-April/msg00010.html for details.
    system "rm", "test/ebcdic_566012.xml"

    system "make", "check"
  end
26
end