gdk-pixbuf:moved into main repo for pisi 2.0

This commit is contained in:
2015-07-05 01:58:47 +03:00
parent 8aca2fdf52
commit a84b053287
5 changed files with 289 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
#!/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 get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
options = "\
--disable-static \
--disable-silent-rules \
--with-libjasper \
--with-x11 \
--with-included-loaders=png \
"
options += "\
--bindir=/_emul32/bin \
--disable-introspection \
" if get.buildTYPE() == "emul32" else \
"\
--enable-introspection \
"
autotools.configure(options)
pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")
pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32":
pisitools.domove("/_emul32/bin/gdk-pixbuf-query-loaders", "/usr/bin", "gdk-pixbuf-query-loaders-32")
pisitools.removeDir("/_emul32")
return
pisitools.dosym("/usr/bin/gdk-pixbuf-query-loaders", "/usr/bin/gdk-pixbuf-query-loaders-64")
pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README")
@@ -0,0 +1,23 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import piksemel
import os
def updateData(filepath):
parse = piksemel.parse(filepath)
for icon in parse.tags("File"):
path = icon.getTagData("Path")
if path.startswith("usr/lib32/gdk-pixbuf-2.0/2.10.0/loaders"):
os.system("/usr/bin/gdk-pixbuf-query-loaders-32 --update-cache")
return
def setupPackage(metapath, filepath):
updateData(filepath)
def cleanupPackage(metapath, filepath):
pass
def postCleanupPackage(metapath, filepath):
updateData(filepath)
@@ -0,0 +1,23 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import piksemel
import os
def updateData(filepath):
parse = piksemel.parse(filepath)
for icon in parse.tags("File"):
path = icon.getTagData("Path")
if path.startswith("usr/lib/gdk-pixbuf-2.0/2.10.0/loaders"):
os.system("/usr/bin/gdk-pixbuf-query-loaders --update-cache")
return
def setupPackage(metapath, filepath):
updateData(filepath)
def cleanupPackage(metapath, filepath):
pass
def postCleanupPackage(metapath, filepath):
updateData(filepath)
+177
View File
@@ -0,0 +1,177 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>gdk-pixbuf</Name>
<Homepage>http://www.gnome.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>library</IsA>
<Summary>GDK pixbuf library</Summary>
<Description>gdk-pixbuf is a library that provides image loading and scaling support for gtk+ applications</Description>
<Archive sha1sum="78621344eb8b0a960d475f37a8dd1232cc0322b2" type="tarxz">mirrors://gnome/gdk-pixbuf/2.31/gdk-pixbuf-2.31.3.tar.xz</Archive>
<BuildDependencies>
<Dependency>gtk-doc</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>libX11-devel</Dependency>
<Dependency>tiff-devel</Dependency>
<Dependency>libjpeg-turbo-devel</Dependency>
<Dependency>libpng-devel</Dependency>
<Dependency>jasper-devel</Dependency>
<Dependency>gobject-introspection-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>gdk-pixbuf</Name>
<RuntimeDependencies>
<Dependency>tiff</Dependency>
<Dependency>jasper</Dependency>
<Dependency>libjpeg-turbo</Dependency>
</RuntimeDependencies>>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share</Path>
</Files>
<Provides>
<COMAR script="pakhandler.py">System.PackageHandler</COMAR>
</Provides>
</Package>
<Package>
<Name>gdk-pixbuf-devel</Name>
<Summary>Development files for gdk-pixbuf</Summary>
<RuntimeDependencies>
<Dependency release="current">gdk-pixbuf</Dependency>
<Dependency>libpng-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/gdk-pixbuf-csource</Path>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
<Path fileType="library">/usr/lib32/pkgconfig</Path>
<Path fileType="data">/usr/share/gir-1.0</Path>
</Files>
</Package>
<Package>
<Name>gdk-pixbuf-docs</Name>
<Summary>Reference documents for gdk-pixbuf</Summary>
<Files>
<Path fileType="data">/usr/share/gtk-doc</Path>
</Files>
</Package>
<Package>
<Name>gdk-pixbuf-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for gdk-pixbuf</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>tiff-32bit</Dependency>
<Dependency>libjpeg-turbo-32bit</Dependency>
<Dependency>glib2-32bit</Dependency>
<Dependency>libX11-32bit</Dependency>
<Dependency>libpng-32bit</Dependency>
<Dependency>jasper-32bit</Dependency>
<Dependency>libX11-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="current">gdk-pixbuf</Dependency>
<Dependency>tiff-32bit</Dependency>
<Dependency>glib2-32bit</Dependency>
<Dependency>libpng-32bit</Dependency>
<Dependency>libX11-32bit</Dependency>
<Dependency>jasper-32bit</Dependency>
<Dependency>libjpeg-turbo-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/gdk-pixbuf-query-loaders-32</Path>
<Path fileType="library">/usr/lib32</Path>
</Files>
<Provides>
<COMAR script="pakhandler-32.py">System.PackageHandler</COMAR>
</Provides>
</Package>
<History>
<Update release="10">
<Date>2015-04-27</Date>
<Version>2.31.3</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="9">
<Date>2014-05-17</Date>
<Version>2.30.7</Version>
<Comment>Release bump.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="8">
<Date>2014-03-30</Date>
<Version>2.30.7</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="7">
<Date>2013-10-10</Date>
<Version>2.30.0</Version>
<Comment>Add missing method and fix pakhandler.py</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2013-09-05</Date>
<Version>2.28.2</Version>
<Comment>Add missing method and fix pakhandler.py</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2013-08-20</Date>
<Version>2.28.2</Version>
<Comment>Fix build emul32.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-08-11</Date>
<Version>2.28.2</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-04-07</Date>
<Version>2.28.0</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-02-24</Date>
<Version>2.27.1</Version>
<Comment>V.Bump</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-11-25</Date>
<Version>2.26.5</Version>
<Comment>First release</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,23 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>gdk-pixbuf</Name>
<Summary xml:lang="tr">GDK pixbuf kitaplığı</Summary>
<Description xml:lang="tr">gdk-pixbuf, gtk+ uygulamalarına resim açma ve ölçeklendirme desteği sağlayan bir kitaplıktır.</Description>
</Source>
<Package>
<Name>gdk-pixbuf-devel</Name>
<Summary xml:lang="tr">gdk-pixbuf için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>gdk-pixbuf-docs</Name>
<Summary xml:lang="tr">gdk-pixbuf için başvuru belgeleri</Summary>
</Package>
<Package>
<Name>gdk-pixbuf-32bit</Name>
<Summary xml:lang="tr">gdk-pixbuf için 32-bit paylaşımlı kitaplıklar</Summary>
</Package>
</PISI>