This commit is contained in:
Ertuğrul Erata
2015-07-04 00:34:05 +03:00
parent c4d868ed55
commit 9cdbed4879
12 changed files with 695 additions and 5 deletions
+37
View File
@@ -0,0 +1,37 @@
#!/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
from pisi.actionsapi import shelltools
def setup():
if get.buildTYPE()=="emul32":
pisitools.dosed("pango/modules.c", "(pango\.modules)", r"\1-32")
autotools.autoreconf("-fiv")
autotools.configure("--disable-static \
--sysconfdir=/etc \
--with-included-modules=basic-fc \
--%sable-introspection" % ("dis" if get.buildTYPE()=="emul32" else "en"))
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE()=="emul32":
shelltools.move("pango/.libs/pango-querymodules", "pango/.libs/pango-querymodules-32")
pisitools.dobin("pango/.libs/pango-querymodules-32")
return
pisitools.dodir("/etc/pango")
shelltools.touch(get.installDIR() +"/etc/pango/pango.modules")
pisitools.dodoc("AUTHORS", "ChangeLog*", "COPYING", "README", "NEWS")
@@ -0,0 +1,10 @@
#!/usr/bin/python
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
f = open("/etc/pango/pango.modules", "w")
p = os.popen("/usr/bin/pango-querymodules", "r")
f.writelines(p.readlines())
f.close()
p.close()
@@ -0,0 +1,44 @@
From c41144ce0d72cb19d347a46ef9386f257f14fb58 Mon Sep 17 00:00:00 2001
From: Gilles Dartiguelongue <eva@gentoo.org>
Date: Sun, 28 Oct 2012 23:19:39 +0100
Subject: [PATCH] Add multilib support
pango.modules list modules specific to a host architecture.
Add host triplet in path so that machine able to run multiple
triplet have a proper file per pango library.
---
pango/Makefile.am | 1 +
pango/pango-utils.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pango/Makefile.am b/pango/Makefile.am
index ab092c9..558108b 100644
--- a/pango/Makefile.am
+++ b/pango/Makefile.am
@@ -17,6 +17,7 @@ INCLUDES = \
-DPANGO_ENABLE_BACKEND \
-DPANGO_ENABLE_ENGINE \
-DSYSCONFDIR=\"$(sysconfdir)\" \
+ -DHOST=\"$(host_triplet)\" \
-DLIBDIR=\"$(libdir)\" \
-I$(top_srcdir) \
-I$(top_builddir) \
diff --git a/pango/pango-utils.c b/pango/pango-utils.c
index 18ffa26..3b88f15 100644
--- a/pango/pango-utils.c
+++ b/pango/pango-utils.c
@@ -738,9 +738,9 @@ pango_get_sysconf_subdirectory (void)
#else
const char *sysconfdir = g_getenv ("PANGO_SYSCONFDIR");
if (sysconfdir != NULL)
- tmp_result = g_build_filename (sysconfdir, "pango", NULL);
+ tmp_result = g_build_filename (sysconfdir, "pango", HOST, NULL);
else
- tmp_result = SYSCONFDIR "/pango";
+ tmp_result = SYSCONFDIR "/pango/" HOST;
#endif
g_once_init_leave((gsize*)&result, (gsize)tmp_result);
}
--
1.7.12.4
+202
View File
@@ -0,0 +1,202 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>pango</Name>
<Homepage>http://www.pango.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>LGPLv2.1</License>
<License>FTL</License>
<IsA>library</IsA>
<Summary>Text rendering and layout library</Summary>
<Description>Pango is a library for laying out and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is needed, though most of the work on Pango so far has been done in the context of the GTK+ widget toolkit. Pango forms the core of text and font handling for GTK+-2.x.</Description>
<Archive sha1sum="c6ba02ee8f9d8b22b7cfd74c4b6ae170bebc8d2b" type="tarxz">mirrors://gnome/pango/1.36/pango-1.36.8.tar.xz</Archive>
<BuildDependencies>
<Dependency versionFrom="1.20">gtk-doc</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>libX11-devel</Dependency>
<Dependency>freetype-devel</Dependency>
<Dependency>cairo-devel</Dependency>
<Dependency>libXft-devel</Dependency>
<Dependency>harfbuzz-devel</Dependency>
<Dependency>fontconfig-devel</Dependency>
<Dependency>libXrender-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">pango-1.32.1-lib64.patch</Patch>
</Patches>
</Source>
<Package>
<Name>pango</Name>
<RuntimeDependencies>
<Dependency>glib2</Dependency>
<Dependency>libX11</Dependency>
<Dependency>freetype</Dependency>
<Dependency>cairo</Dependency>
<Dependency>libXft</Dependency>
<Dependency>harfbuzz</Dependency>
<!--<Dependency>graphite2</Dependency>-->
<Dependency>fontconfig</Dependency>
<Dependency>libXrender</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/pango</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib/libpango*</Path>
<Path fileType="library">/usr/lib/girepository-1.0</Path>
<Path fileType="library">/usr/lib/pango</Path>
<Path fileType="data">/usr/share/gir-1.0</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
<Provides>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<Package>
<Name>pango-devel</Name>
<Summary>Development files for pango</Summary>
<RuntimeDependencies>
<Dependency release="current">pango</Dependency>
<Dependency>cairo-devel</Dependency>
<Dependency>libXft-devel</Dependency>
<Dependency>harfbuzz-devel</Dependency>
<Dependency>fontconfig-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/pkgconfig</Path>
<Path fileType="library">/usr/lib32/pkgconfig</Path>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<Package>
<Name>pango-docs</Name>
<IsA>data:doc</IsA>
<Summary>Pango reference documents</Summary>
<Files>
<Path fileType="doc">/usr/share/gtk-doc</Path>
</Files>
</Package>
<Package>
<Name>pango-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for pango</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>cairo-32bit</Dependency>
<Dependency>glib2-32bit</Dependency>
<Dependency>libX11-32bit</Dependency>
<Dependency>libXft-32bit</Dependency>
<Dependency>freetype-32bit</Dependency>
<Dependency>libXrender-32bit</Dependency>
<Dependency>fontconfig-32bit</Dependency>
<Dependency>libffi-32bit</Dependency>
<Dependency>harfbuzz-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="current">pango</Dependency>
<Dependency>cairo-32bit</Dependency>
<Dependency>glib2-32bit</Dependency>
<Dependency>libX11-32bit</Dependency>
<Dependency>libXft-32bit</Dependency>
<Dependency>freetype-32bit</Dependency>
<Dependency>libXrender-32bit</Dependency>
<Dependency>fontconfig-32bit</Dependency>
<Dependency>libffi-32bit</Dependency>
<Dependency>harfbuzz-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/pango-querymodules-32</Path>
<Path fileType="library">/usr/lib32/libpango*</Path>
<Path fileType="library">/usr/lib32/girepository-1.0</Path>
<Path fileType="library">/usr/lib32/pango</Path>
</Files>
</Package>
<History>
<Update release="11">
<Date>2015-03-18</Date>
<Version>1.36.8</Version>
<Comment>Version bump.</Comment>
<Name>Hakan Yıldız</Name>
<Email>hknyldz93@gmail.com</Email>
</Update>
<Update release="10">
<Date>2014-07-07</Date>
<Version>1.36.5</Version>
<Comment>Version Bump.</Comment>
<Name>Vedat Demir</Name>
<Email>vedat@pisilinux.org</Email>
</Update>
<Update release="9">
<Date>2014-05-17</Date>
<Version>1.36.3</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>1.36.3</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="7">
<Date>2014-02-05</Date>
<Version>1.36.2</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2013-10-10</Date>
<Version>1.36.0</Version>
<Comment>Version bump, cleanup.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2013-08-17</Date>
<Version>1.34.0</Version>
<Comment>Release bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-04-20</Date>
<Version>1.34.0</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-04-07</Date>
<Version>1.32.6</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-01-22</Date>
<Version>1.32.5</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2011-07-07</Date>
<Version>1.30.1</Version>
<Comment>First release</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,24 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>pango</Name>
<Summary xml:lang="tr">Metin görüntüleme kitaplığı</Summary>
<Summary xml:lang="fr">Outil de positionnement et de rendu de texte.</Summary>
<Description xml:lang="tr">Pango, özellikle yerelleştirme ile birlikte metin düzenlemek ve biçimlendirmek için bir kitaplıktır. Pango metin biçimlendirmenin gerekli olduğu her yerde kullanılabilir ama şimdiye kadar ki birçok Pango çalışması GTK+ araç takımının parçası ile tamamlandı. Pango formları, GTK+-2.x. için temel metin ve yazı tipini yönetir.</Description>
</Source>
<Package>
<Name>pango-docs</Name>
<Summary xml:lang="tr">Pango referans dokümanları</Summary>
</Package>
<Package>
<Name>pango-devel</Name>
<Summary xml:lang="tr">pango için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>pango-32bit</Name>
<Summary xml:lang="tr">pango için 32-bit paylaşımlı kitaplıklar</Summary>
</Package>
</PISI>