Mercurial > gub
view gub/specs/libxml2.py @ 5658:e537c5665092
gupdate: fix updating urls with `+'. Use static url for gnome packages.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Sat, 26 Sep 2009 22:11:15 +0200 |
parents | 387483526bff |
children | 921cf70990c9 |
line wrap: on
line source
from gub import context from gub import gnome from gub import misc from gub import target from gub import tools class Libxml2 (target.AutoBuild): source = 'http://ftp.gnome.org/pub/GNOME/platform/2.18/2.18.1/sources/libxml2-2.6.27.tar.gz' dependencies = ['zlib'] configure_flags = (target.AutoBuild.configure_flags + misc.join_lines (''' --without-python ''')) @context.subst_method def config_script (self): return 'xml2-config' class Libxml2__mingw (Libxml2): configure_flags = (Libxml2.configure_flags + misc.join_lines (''' --without-threads ''')) def install (self): Libxml2.install (self) self.copy ('%(install_prefix)s/lib/libxml2.la', '%(install_prefix)s/lib/libxml2-2.la') self.copy ('%(install_prefix)s/lib/libxml2.dll.a', '%(install_prefix)s/lib/libxml2-2.dll.a') class Libxml2__tools (tools.AutoBuild, Libxml2): dependencies = Libxml2.dependencies + ['libtool'] configure_flags = (tools.AutoBuild.configure_flags + misc.join_lines (''' --without-python '''))