ccache:First release

This commit is contained in:
Rmys
2018-09-13 13:09:17 +03:00
parent cf378abb54
commit 9c64c337b2
7 changed files with 479 additions and 51 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/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 shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
if shelltools.isDirectory("zlib"):
shelltools.unlinkDir("zlib")
autotools.configure("--prefix=/usr")
def build():
autotools.make()
def check():
autotools.make("check")
def install():
autotools.install()
# Create symlinks
for cc in ("gcc", "g++", "cc", "c++"): # , "clang" , "clang++"
pisitools.dosym("../../../bin/ccache", "/usr/lib/ccache/bin/%s" % cc)
#pisitools.dosym("../../../bin/ccache", "/usr/lib/ccache/bin/%s-%s" % (get.HOST(), cc))
#pisitools.dodoc("LICENSE.txt", "README.txt")