[paketler-commits] r69670 - 2009/devel/desktop/kde/base/kdebase-runtime
paketler-commits at pardus.org.tr
paketler-commits at pardus.org.tr
4 Haz 2009 Per 17:43:01 EEST
Author: gokcen.eraslan
Date: Thu Jun 4 17:43:01 2009
New Revision: 69670
Modified:
2009/devel/desktop/kde/base/kdebase-runtime/actions.py
2009/devel/desktop/kde/base/kdebase-runtime/pspec.xml
Log:
Unzip SVG oxygen icons to compress them better in lzma archive.
Modified: 2009/devel/desktop/kde/base/kdebase-runtime/actions.py
=================================================================
--- 2009/devel/desktop/kde/base/kdebase-runtime/actions.py (original)
+++ 2009/devel/desktop/kde/base/kdebase-runtime/actions.py Thu Jun 4 17:43:01 2009
@@ -10,6 +10,9 @@
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
+import os
+import gzip
+
NoStrip = ["/usr/kde/4/share/", "/usr/share"]
shelltools.export("HOME", get.workDIR())
@@ -24,6 +27,15 @@
shelltools.cd("build")
cmaketools.make()
+def mygunzip(_file):
+ r_file = gzip.GzipFile(_file, "r")
+ write_file = _file.replace(".svgz", ".svg")
+ w_file = open(write_file, "w")
+ w_file.write(r_file.read())
+ w_file.close()
+ r_file.close()
+ os.unlink(_file)
+
def install():
shelltools.cd("build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
@@ -38,3 +50,11 @@
for icon in conflictingIcons:
pisitools.remove("%sscalable/apps/%s.svgz" % (prefix, icon))
+
+ #Unzip svgz icons to better compress them with lzma (in install.tar.lzma)
+ for root, dirs, files in os.walk("%s/%s/scalable" % (get.installDIR(), prefix)):
+ for name in files:
+ if name.endswith(".svgz"):
+ f = os.path.join(root, name)
+ mygunzip(f)
+
Modified: 2009/devel/desktop/kde/base/kdebase-runtime/pspec.xml
=================================================================
--- 2009/devel/desktop/kde/base/kdebase-runtime/pspec.xml (original)
+++ 2009/devel/desktop/kde/base/kdebase-runtime/pspec.xml Thu Jun 4 17:43:01 2009
@@ -153,6 +153,13 @@
</Package>
<History>
+ <Update release="36">
+ <Date>2009-06-04</Date>
+ <Version>4.2.4</Version>
+ <Comment>Unzip SVG oxygen icons to compress them better in lzma archive.</Comment>
+ <Name>Gökçen Eraslan</Name>
+ <Email>gokcen at pardus.org.tr</Email>
+ </Update>
<Update release="35">
<Date>2009-06-03</Date>
<Version>4.2.4</Version>
Paketler-commits mesaj listesiyle ilgili
daha fazla bilgi