From 572b0369a5c872e457c80417fe62d232804291a1 Mon Sep 17 00:00:00 2001 From: Rmys Date: Fri, 17 Nov 2023 10:48:17 +0300 Subject: [PATCH] xxhash-0.8.2 --- programming/library/xxhash/actions.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/programming/library/xxhash/actions.py b/programming/library/xxhash/actions.py index d29c1c9c0f..a5dda51e3f 100644 --- a/programming/library/xxhash/actions.py +++ b/programming/library/xxhash/actions.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. @@ -6,23 +6,23 @@ from pisi.actionsapi import get from pisi.actionsapi import autotools -from pisi.actionsapi import pisitools, shelltools, cmaketools +from pisi.actionsapi import pisitools, shelltools +# WorkDir="xxHash-%s" % get.srcVERSION() def setup(): - shelltools.system("cmake -B build -S cmake_unofficial \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=/usr/lib") + shelltools.system("export CFLAGS='$CFLAGS -DXXH_FORCE_MEMORY_ACCESS=1 -flto=auto -O2'") + # shelltools.cd("%s" % get.workDIR()) + # shelltools.move("xxHash-*", "xxhash-%s" % get.srcVERSION()) + + # shelltools.cd("boost-%s" % get.srcVERSION()) def build(): - shelltools.cd("build") - cmaketools.make() + autotools.make("PREFIX=/usr DISPATCH=1") + def install(): - shelltools.cd("build") - cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) - # pisitools.remove('/usr/lib/libxxhash.a') - - shelltools.cd("..") + # shelltools.system("make PREFIX=/usr DISPATCH=1 DESTDIR=%s install" % get.installDIR()) + autotools.install("PREFIX=/usr DISPATCH=1 DESTDIR=%s" % get.installDIR()), 0755 + pisitools.remove('/usr/lib/libxxhash.a') pisitools.dodoc("LICENSE", "doc/*")