moved into main repo for pisi 2.0
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
|
||||
WorkDir="icu/source"
|
||||
|
||||
def setup():
|
||||
autotools.autoconf("-f")
|
||||
options = "--with-data-packaging=library \
|
||||
--disable-samples \
|
||||
--disable-silent-rules"
|
||||
if get.buildTYPE() == "_emul32":
|
||||
options += " --libdir=/usr/lib32 \
|
||||
--bindir=/_emul32/bin \
|
||||
--sbindir=/_emul32/sbin"
|
||||
shelltools.export("CC", "%s -m32" % get.CC())
|
||||
shelltools.export("CXX", "%s -m32" % get.CXX())
|
||||
autotools.configure(options)
|
||||
pisitools.dosed("config/mh-linux", "-nodefaultlibs -nostdlib")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def check():
|
||||
autotools.make("check")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall('-j1 DESTDIR="%s"' % get.installDIR())
|
||||
if get.buildTYPE() == "_emul32":
|
||||
pisitools.domove("/_emul32/bin/icu-config", "/usr/bin", "icu-config-32")
|
||||
pisitools.removeDir("/_emul32")
|
||||
for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()):
|
||||
pisitools.dosed("%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "_emul32", "usr")
|
||||
return
|
||||
|
||||
pisitools.dohtml("../*.html")
|
||||
Reference in New Issue
Block a user