6bdd276d05
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
20 lines
633 B
Python
20 lines
633 B
Python
class LibXmlPackage (Package):
|
|
|
|
def __init__(self):
|
|
Package.__init__(self,
|
|
'libxml2',
|
|
'2.9.1',
|
|
configure_flags=['--with-python=no'],
|
|
sources=[
|
|
'ftp://xmlsoft.org/%{name}/%{name}-%{version}.tar.gz',
|
|
]
|
|
)
|
|
|
|
def prep(self):
|
|
Package.prep(self)
|
|
if Package.profile.name == 'darwin':
|
|
for p in range(1, len(self.local_sources)):
|
|
self.sh('patch -p1 < "%{local_sources[' + str(p) + ']}"')
|
|
|
|
LibXmlPackage()
|