moved into main repo for pisi 2.0
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user