moved into main repo for pisi 2.0

This commit is contained in:
ayhanyalcinsoy
2015-06-19 13:37:07 +03:00
parent 487859c59e
commit 9050f3df88
36 changed files with 2094 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
# -*- 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 libtools
from pisi.actionsapi import get
def setup():
# Do not rebuild docs
shelltools.export("HASDOCBOOK", "no")
libtools.libtoolize("-f")
autotools.autoreconf("-fi")
autotools.configure("--disable-static \
--disable-docs \
--with-cache-dir=/var/cache/fontconfig \
--with-default-fonts=/usr/share/fonts \
--with-add-fonts=/usr/local/share/fonts")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32": return
pisitools.insinto("/etc/fonts", "fonts.conf", "fonts.conf.new")
enabled_configs = ("10-sub-pixel-rgb.conf", "70-yes-bitmaps.conf")
disabled_configs = ("10-no-sub-pixel.conf",)
for cfg in enabled_configs:
pisitools.dosym("../conf.avail/%s" % cfg, "/etc/fonts/conf.d/%s" % cfg)
for cfg in disabled_configs:
pisitools.remove("/usr/share/fontconfig/conf.avail/%s" % cfg)
for i in ["fc-cat", "fc-list", "fc-match", "fc-cache"]:
pisitools.doman("%s/*.1" % i)
pisitools.doman("doc/*.3")
pisitools.dodoc("AUTHORS", "COPYING", "README", "doc/*.txt")