create core package

This commit is contained in:
aydemir
2015-02-24 11:18:35 +02:00
parent 0e4b743b82
commit 70b25d0f95
1098 changed files with 169545 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
# fix for glibc 2.16
#pisitools.dosed("src/base/linuxthreads.cc", "siginfo_t", "siginfo")
shelltools.chmod("autogen.sh", 0755)
shelltools.system("./autogen.sh")
autotools.configure("--disable-static \
--disable-dependency-tracking \
--enable-fast-install \
--enable-debugalloc \
%s" % ("--enable-frame-pointers" if get.ARCH() == "x86_64" else ""))
# Disable rpath
pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")
def build():
autotools.make("noinst_PROGRAMS=' '")
def install():
autotools.rawInstall("DESTDIR=%s docdir=/usr/share/doc/gperftools" % get.installDIR())
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README", "TODO")