code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gtk3</Name>
        <Homepage>http://www.gtk.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        The GIMP Toolkit version 3
        <Description>GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites.</Description>
        <Archive sha1sum="7895255a8e65a2590553ad28b8911dc815d74a1d" type="tarxz">mirrors://gnome/gtk+/3.22/gtk+-3.22.8.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>atk-devel</Dependency>

            <Dependency>at-spi2-atk-devel</Dependency>
            <Dependency>pango-devel</Dependency>
            <Dependency>json-glib-devel</Dependency>
            <Dependency>libXi-devel</Dependency>
            <Dependency>cairo-devel</Dependency>
            <Dependency>gobject-introspection-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>libXrandr-devel</Dependency>
            <Dependency>libXfixes-devel</Dependency>
            <Dependency>gdk-pixbuf-devel</Dependency>
            <Dependency>fontconfig-devel</Dependency>
            <Dependency>libXcursor-devel</Dependency>
            <Dependency>libXdamage-devel</Dependency>
            <Dependency>libXinerama-devel</Dependency>
            <Dependency>libXcomposite-devel</Dependency>
            <Dependency>at-spi2-core-devel</Dependency>
            <Dependency>libepoxy-devel</Dependency>
            <Dependency>gtk-doc</Dependency>
            <Dependency>graphite2-devel</Dependency>

        </BuildDependencies>
        <Patches>

        </Patches>
    </Source>

    <Package>
        <Name>gtk3</Name>
        <RuntimeDependencies>
            <Dependency>glib2</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libepoxy</Dependency>
            <Dependency>atk</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>libXi</Dependency>

            <Dependency>cairo</Dependency>

            <Dependency>libXext</Dependency>
            <Dependency>libXrandr</Dependency>
            <Dependency>libXfixes</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
            <Dependency>fontconfig</Dependency>
            <Dependency>libXcursor</Dependency>
            <Dependency>libXdamage</Dependency>
            <Dependency>libXinerama</Dependency>
            <Dependency>at-spi2-atk</Dependency>
            <Dependency>libXcomposite</Dependency>
            <Dependency>dejavu-fonts</Dependency>
            <Dependency>graphite2</Dependency>
            <Dependency>icon-theme-adwaita</Dependency>

        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share/themes</Path>
            <Path fileType="data">/usr/share/gtk-3.0</Path>
            <Path fileType="data">/usr/share/</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
        </Files>

        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/gtk-3.0/settings.ini">settings.ini</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="pakhandler.py">System.PackageHandler</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>gtk3-demo</Name>
        <IsA>app:gui</IsA>
        GTK demo application
        <RuntimeDependencies>
            <Dependency release="current">gtk3</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>libepoxy</Dependency>
            <Dependency>cairo</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/gtk3-demo</Path>
            <Path fileType="executable">/usr/bin/gtk3-demo-application</Path>
        </Files>
    </Package>

    <Package>
        <Name>gtk3-docs</Name>
        <IsA>data:doc</IsA>
        GTK reference documents
        <Files>
            <Path fileType="data">/usr/share/doc/gtk3</Path>
        </Files>
    </Package>

    <Package>
        <Name>gtk3-devel</Name>
        Development files for gtk3
        <RuntimeDependencies>
            <Dependency release="current">gtk3</Dependency>
            <Dependency>atk-devel</Dependency>
            <Dependency>pango-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libXi-devel</Dependency>
            <Dependency>cairo-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>libepoxy-devel</Dependency>
            <Dependency>libXfixes-devel</Dependency>
            <Dependency>libXrandr-devel</Dependency>
            <Dependency>gdk-pixbuf-devel</Dependency>
            <Dependency>fontconfig-devel</Dependency>
            <Dependency>libXdamage-devel</Dependency>
            <Dependency>libXcursor-devel</Dependency>
            <Dependency>libXinerama-devel</Dependency>
            <Dependency>at-spi2-atk-devel</Dependency>
            <Dependency>libXcomposite-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <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/aclocal</Path>
            <Path fileType="data">/usr/share/gir-1.0</Path>
        </Files>
    </Package>

    <History>
        <Update release="6">
            <Date>2017-05-08</Date>
            <Version>3.22.8</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2017-02-16</Date>
            <Version>3.22.8</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2016-08-19</Date>
            <Version>3.20.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
         <Update release="3">
            <Date>2016-06-06</Date>
            <Version>3.20.4</Version>
            <Comment>Version bump</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-04-30</Date>
            <Version>3.18.6</Version>
            <Comment>Release bump</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-25</Date>
            <Version>3.18.6</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>gtk3</Name>
        GTK grafik arayüz kitaplığı versiyon 3
        <Description xml:lang="tr">GTK+, grafik kullanıcı arayüzü oluşturma amaçlı araçlardan oluşur. GTK+ hem küçük, hem de büyük uygulamalar için ideal olan, eksiksiz bir araçtır.</Description>
        <Description xml:lang="fr">GTK+ est une boîte à outil multi-plateforme servant à créer des interfaces graphiques. Offrant un ensemble complet de widgets (objets graphiques), GTK+ convient aussi bien pour les petits projets que pour les suites complètes d'applications.</Description>
        <Description xml:lang="pl">Wersja 3 bibliotek przeznaczonych do tworzenia interfejsów graficznych programów — GTK+. Interfejs GTK+ znany jest z takich programów, jak GIMP i Inkscape, oraz środowisk graficznych GNOME i Xfce.</Description>
    </Source>

    <Package>
        <Name>gtk3-demo</Name>
        GTK demo uyulaması
    </Package>

    <Package>
        <Name>gtk3-docs</Name>
        GTK referans dökümanları
    </Package>

    <Package>
        <Name>gtk3-devel</Name>
        gtk3 için geliştirme dosyaları
        Pliki nagłówkowe do gtk3
    </Package>

    <Package>
        <Name>gtk3-32bit</Name>
        gtk3 için 32-bit paylaşımlı kitaplıklar
    </Package>
</PISI>

repo_name: ayhanyalcinsoy/main


code:
#!/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 autotools
from pisi.actionsapi import pisitools

def setup():
    autotools.configure("--disable-demos \
                         --disable-docs")
    pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
    pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
    pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")

def build():
    autotools.make()

def install():
    autotools.install()

    #pisitools.removeDir("/usr/share/gtkmm-2.4")
    pisitools.removeDir("/usr/share/devhelp")

    pisitools.dodoc("ChangeLog","COPYING", "PORTING", "NEWS", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gtkmm</Name>
        <Homepage>http://gtkmm.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        C++ binding for GTK+
        <Description>gtkmm is the official C++ interface for the popular GUI library GTK+. Highlights include typesafe callbacks, and a comprehensive set of widgets that are easily extensible via inheritance.</Description>
        <Archive sha1sum="dcb41b487577594a5ecf0dee3c4993ff9a2ade26" type="tarxz">mirrors://gnome/gtkmm/2.24/gtkmm-2.24.5.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>atkmm-devel</Dependency>
            <Dependency>glibmm-devel</Dependency>
            <Dependency>cairomm-devel</Dependency>
            <Dependency>pangomm-devel</Dependency>
            <Dependency>libsigc++-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>gtkmm</Name>
        <RuntimeDependencies>
            <Dependency>gtk2</Dependency>
            <Dependency>atkmm</Dependency>
            <Dependency>glibmm</Dependency>
            <Dependency>cairomm</Dependency>
            <Dependency>pangomm</Dependency>
            <Dependency>libsigc++</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="doc">/usr/share</Path>
        </Files>
    </Package>

    <Package>
        <Name>gtkmm-devel</Name>
        Development files for gtkmm
        <RuntimeDependencies>
            <Dependency release="current">gtkmm</Dependency>
            <Dependency>atkmm-devel</Dependency>
            <Dependency>pangomm-devel</Dependency>
            <Dependency>glibmm-devel</Dependency>
            <Dependency>gtk2-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-21</Date>
            <Version>2.24.5</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.24.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-18</Date>
            <Version>2.24.4</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>gtkmm</Name>
        GTK+ için C++ bağlamı
        <Description xml:lang="tr">gtkmm, grafik kullanıcı arayüzü kitaplığı GTK+'nın resmi C++ arayüzüdür. Tip-güvenli geri çağırmalar ve mirasla genişleyebilen tutarlı parçacıklardan oluşması, en önemli özelliklerini oluşturur.</Description>
        <Description xml:lang="fr">gtkmm est l'interface C++ officiel de la librairie d'IHM GTK+. Au menu des callbacks (rappels) typesafe (avec vérification de type à la compilation) ainsi qu'un ensemble large et complet de widgets (objets graphiques) facilement extensible via héritage.</Description>
    </Source>

    <Package>
        <Name>gtkmm-devel</Name>
        gtkmm için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools

def setup():
    #autotools.autoreconf('-fi')
    autotools.configure("--disable-static")

    #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")

def build():
    autotools.make()

def install():
    autotools.install()

    # Empty files: NEWS,
    pisitools.dodoc("ABOUT-NLS", "COPYING", "README", "AUTHORS", "ChangeLog")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gtkspell</Name>
        <Homepage>http://gtkspell.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        Spell checking widget for GTK+
        <Description>GtkSpell provides MSWord / MacOSX-style highlighting of misspelled words in a GtkTextView widget. Right-clicking a misspelled word pops up a menu of suggested replacements.</Description>
        <Archive sha1sum="49a3eaff850d119a94fc929635270f01e87cdca1" type="targz">mirrors://sourceforge/gtkspell/gtkspell-2.0.16.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>enchant-devel</Dependency>
            <Dependency>intltool</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>gtkspell</Name>
        <RuntimeDependencies>
            <Dependency>atk</Dependency>
            <Dependency>gtk2</Dependency>
            <Dependency>cairo</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>enchant</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>fontconfig</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>gtkspell-devel</Name>
        Development files for gtkspell
        <RuntimeDependencies>
            <Dependency release="current">gtkspell</Dependency>
            <Dependency>gtk2-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-11</Date>
            <Version>2.0.16</Version>
            <Comment>Release Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.0.16</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-11-20</Date>
            <Version>2.0.16</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>gtkspell</Name>
        GTK+ için yazım denetimi eklentisi
        <Description xml:lang="tr">GtkSpell, MSWord / MacOSX işletim sistemlerinde olduğu gibi, GTK+ metin gösterme zımbırtılarında yanlış yazılmış kelimeleri vurgular ve yanlış yazılmış kelimelere sağ tıkladığınızda, size yeni kelimeler önerir.</Description>
    </Source>

    <Package>
        <Name>gtkspell-devel</Name>
        gtkspell için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/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 autotools
from pisi.actionsapi import pisitools

def setup():
    autotools.autoreconf("-vif")
    autotools.configure()

    pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")

def build():
    autotools.make()

def install():
    autotools.install()

    pisitools.dodoc("AUTHORS","ChangeLog", "COPYING", "NEWS", "README")


code:
#!/usr/bin/python

import os

def postInstall(fromVersion, fromRelease, toVersion, toRelease):
    os.system("xmlcatalog --noout --add \
              \"system\" \"http://glade.gnome.org/glade-2.0.dtd\" /usr/share/xml/libglade/glade-2.0.dtd")

def preRemove():
    os.system("xmlcatalog --noout --del /usr/share/xml/libglade/glade-2.0.dtd /etc/xml/catalog")


code:
--- a/Makefile.am	2004-11-11 18:56:13.000000000 +0800
+++ b/Makefile.am	2004-12-06 11:00:24.501734048 +0800
@@ -24,7 +24,7 @@

 if HAVE_XMLCATALOG
 install-data-local:
-	-$(XMLCATALOG) --noout --add "system" "http://glade.gnome.org/glade-2.0.dtd" $(xmldir)/glade-2.0.dtd $(XML_CATALOG_FILE)
+#	-$(XMLCATALOG) --noout --add "system" "http://glade.gnome.org/glade-2.0.dtd" $(xmldir)/glade-2.0.dtd $(XML_CATALOG_FILE)
 uninstall-local:
 	-$(XMLCATALOG) --noout --del $(xmldir)/glade-2.0.dtd $(XML_CATALOG_FILE)
 endif
--- a/Makefile.in	2004-11-11 19:21:38.000000000 +0800
+++ b/Makefile.in	2004-12-06 11:00:49.786890120 +0800
@@ -819,7 +819,7 @@

 @HAVE_XMLCATALOG_TRUE@install-data-local:
-@HAVE_XMLCATALOG_TRUE@	-$(XMLCATALOG) --noout --add "system" "http://glade.gnome.org/glade-2.0.dtd" $(xmldir)/glade-2.0.dtd $(XML_CATALOG_FILE)
+@HAVE_XMLCATALOG_TRUE@#	-$(XMLCATALOG) --noout --add "system" "http://glade.gnome.org/glade-2.0.dtd" $(xmldir)/glade-2.0.dtd $(XML_CATALOG_FILE)
 @HAVE_XMLCATALOG_TRUE@uninstall-local:
 @HAVE_XMLCATALOG_TRUE@	-$(XMLCATALOG) --noout --del $(xmldir)/glade-2.0.dtd $(XML_CATALOG_FILE)


code:
--- libglade-2.0.1/glade/glade-gtk.c.nowarning	2003-08-29 14:50:10.000000000 -0400
+++ libglade-2.0.1/glade/glade-gtk.c	2003-08-29 14:58:41.000000000 -0400
@@ -639,9 +639,8 @@
 		if (!strcmp (childinfo->properties[j].name, "label")) {
 		    label = childinfo->properties[j].value;
 		    break;
-		} else {
-		    g_warning ("Unknown CList child property: %s", childinfo->properties[j].name);
 		}
+		/* Ignore all other properties */
 	    }

 	    if (label) {
@@ -683,6 +682,7 @@
 	    char *icon = NULL;
 	    gboolean use_stock = FALSE, active = FALSE, new_group = FALSE;
 	    gboolean use_underline = FALSE;
+	    gboolean sensitive = TRUE;
 	    GtkWidget *iconw = NULL;
 	    int j;

@@ -708,6 +708,8 @@
 		    group_name = value;
 		} else if (!strcmp (name, "new_group")) {
 		    new_group = BOOL (value);
+		} else if (!strcmp (name, "sensitive")) {
+		    sensitive = BOOL (value);
 		} else if (!strcmp (name, "visible")) {
 		    /* ignore for now */
 		} else if (!strcmp (name, "tooltip")) {
@@ -785,6 +787,8 @@
 		gtk_label_set_use_underline (GTK_LABEL (toolbar_child->label),
 					     TRUE);
 	    }
+
+	    gtk_widget_set_sensitive (child, sensitive);

 	    glade_xml_set_common_params (xml, child, childinfo->child);
 	} else {


code:
--- a/tests/test-libglade-gtk.glade	2008-09-27 16:50:40.164242312 +0300
+++ b/tests/test-libglade-gtk.glade	2008-09-27 16:50:43.460908927 +0300
@@ -470,7 +470,7 @@
 	  <upper>100</upper>
 	  <step>1</step>
 	  <page>10</page>
-	  <page_size>10</page_size>
+	  <page_size>0</page_size>
 	  <child>
 	    <left_attach>1</left_attach>
 	    <right_attach>2</right_attach>


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libglade</Name>
        <Homepage>http://www.gnome.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        Glade interface builder
        <Description>Libglade is a library that performs a similar job to the C source output routines in the GLADE user interface builder. Whereas GLADE's output routines create C code that can then be compiled, libglade builds the interface from an XML file (GLADE's save format) at runtime. This way you can change the look of a program without needing to recompile.</Description>
        <Archive sha1sum="8465851733b8a0efbe57c43efc0f140d8e2d2edb" type="tarbz2">mirrors://gnome/libglade/2.6/libglade-2.6.4.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>atk-devel</Dependency>
            <Dependency>pango-devel</Dependency>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>python-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">Makefile.in.am-2.4.2-xmlcatalog.patch</Patch>
            <Patch level="1">libglade-2.6.3-fix_tests-page_size.patch</Patch>
            <Patch level="1">libglade-2.0.1-nowarning.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>libglade</Name>
        <RuntimeDependencies>
            <Dependency>glib2</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>atk</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>python</Dependency>
            <Dependency>gtk2</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/xml</Path>
        </Files>
        <Provides>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>libglade-docs</Name>
        <IsA>data:doc</IsA>
        Libglade reference documents
        <RuntimeDependencies>
            <Dependency>libglade</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libglade-devel</Name>
        Development files for libglade
        <RuntimeDependencies>
            <Dependency release="current">libglade</Dependency>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-16</Date>
            <Version>2.6.4</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.6.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-03</Date>
            <Version>2.6.4</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libglade</Name>
        Glade arayüz oluşturucu
        <Description xml:lang="tr">Libglade, GLADE kullanıcı arayüzü yapıcısındaki C kaynak çıkışı yöntemine benzer iş yapan bir kitaplıktır. GLADE'in çıkış yöntemi derlenebilir C kodu oluştururken, libglade arayüzü bir XML dosyasında oluşturur. Böylece yeniden derlenmeye gerek kalmadan arayüz değiştirilebilir.</Description>
        <Description xml:lang="fr">Libglade est une librairie effectuant un travail similaire aux routines de génération de source C dans le constructeur d'interface graphique GLADE. Là ou les routines de génération de GLADE génerent du code C à compiler, libglade construit l interface depuis un fichier XML (le format de sauvegarde de GLADE) à l'exécution. De cette manière, vous pouvez changer l'apparence de votre programme sans avoir à le recompiler.</Description>
    </Source>

    <Package>
        <Name>libglade-docs</Name>
        Libglade referans belgeleri
    </Package>

    <Package>
        <Name>libglade-devel</Name>
        libglade için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    #autotools.autoreconf("-vif")
    autotools.configure("--disable-static --enable-introspection")

    pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.remove("/usr/bin/wnck-urgency-monitor")
    pisitools.remove("/usr/bin/wnckprop")

    pisitools.removeDir("/usr/share/gtk-doc")
    pisitools.removeDir("/usr/bin")

    pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "MAINTAINERS")


code:
diff -urN libwnck-2.16.3/libwnck/window.c libwnck/libwnck/window.c
--- libwnck-2.16.3/libwnck/window.c     2007-01-29 15:56:52.000000000 -0600
+++ libwnck/libwnck/window.c    2007-01-30 05:54:39.000000000 -0600
@@ -2204,6 +2204,12 @@
     window->priv->actions |=
         WNCK_WINDOW_ACTION_MAXIMIZE   |
         WNCK_WINDOW_ACTION_UNMAXIMIZE;
+
+  /* There's no _NET_WM_ACTION_ABOVE hint so always add it if
+     window manager claims to support_NET_WM_STATE_ABOVE */
+  if (wnck_screen_net_wm_supports (wnck_window_get_screen (window),
+                                   "_NET_WM_STATE_ABOVE"))
+      window->priv->actions |= WNCK_WINDOW_ACTION_ABOVE;
 }

 static void


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libwnck2</Name>
        <Homepage>http://www.gnome.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        A window navigation construction kit
        <Description>libwnck (pronounced "libwink") is used to implement pagers, tasklists, and other such things. It allows applications to monitor information about open windows, workspaces, their names/icons, and so forth.</Description>
        <Archive sha1sum="964861e1213fbd04cd7999f855064cfa4888f5bf" type="tarxz">https://download.gnome.org/sources/libwnck/2.31/libwnck-2.31.0.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>startup-notification-devel</Dependency>
            <Dependency>gobject-introspection-devel</Dependency>
            <Dependency>libXres-devel</Dependency>
            <Dependency>pango-devel</Dependency>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>intltool</Dependency>
            <Dependency>libXt-devel</Dependency>
            <Dependency>gettext</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">libwnck-2.18.0-above.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>libwnck2</Name>
        <RuntimeDependencies>
            <Dependency>startup-notification</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
            <Dependency>libXres</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>cairo</Dependency>
            <Dependency>gtk2</Dependency>
            <Dependency>atk</Dependency>
            <Dependency>glib2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libwnck2-devel</Name>
        Development files for libwnck2
        <RuntimeDependencies>
            <Dependency release="current">libwnck2</Dependency>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>cairo-devel</Dependency>
            <Dependency>pango-devel</Dependency>
            <Dependency>libXres-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>startup-notification-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/girepository-1.0</Path>
            <Path fileType="data">/usr/share/gir-1.0</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-04-11</Date>
            <Version>2.31.0</Version>
            <Comment>Version bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-18</Date>
            <Version>2.30.7</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libwnck</Name>
        Pencere gezinti geliştirme kiti
        <Description xml:lang="tr">libwnck sayfalayıcı, görev listesi ve benzeri birimleri gerçeklemek için kullanılır ve uygulamalara açık pencereler, çalışma alanları, simgeler hakkında bilgi sunar.</Description>
        <Description xml:lang="fr">Ce paquet contient les librairies statiques et les fichier d'entête nécessaires pour développer des applications utilisant libwnck.</Description>
    </Source>

    <Package>
        <Name>libwnck-devel</Name>
        libwnck için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/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 \
                         --disable-gtk-doc \
                         --%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")


code:
#!/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()


code:
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


code:
<?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>
        Text rendering and layout library
        <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="3a3073b79b07f92476276e2457842c92d8374064" type="tarxz">mirrors://gnome/pango/1.40/pango-1.40.14.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>libX11-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>cairo-devel</Dependency>
            <Dependency>libXft-devel</Dependency>
            <Dependency>harfbuzz-devel</Dependency>
            <Dependency>graphite2-devel</Dependency>
            <Dependency>fontconfig-devel</Dependency>
            <Dependency>libXrender-devel</Dependency>
            <Dependency>gtk-doc</Dependency>
            <Dependency>python-six</Dependency>
            <Dependency>gobject-introspection-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
        </BuildDependencies>
    </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>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>
        Development files for pango
        <RuntimeDependencies>
            <Dependency release="current">pango</Dependency>
            <Dependency>cairo-devel</Dependency>
            <Dependency>libXft-devel</Dependency>
            <Dependency>harfbuzz-devel</Dependency>
            <Dependency>fontconfig-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>glib2-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>
        Pango reference documents
        <Files>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>pango-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for pango
        <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="5">
            <Date>2018-01-18</Date>
            <Version>1.40.14</Version>
            <Comment>Version Bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2017-04-18</Date>
            <Version>1.40.3</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>1.38.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
         <Update release="2">
            <Date>2016-05-27</Date>
            <Version>1.38.1</Version>
            <Comment>Release bump</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-25</Date>
            <Version>1.38.1</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>pango</Name>
        Metin görüntüleme kitaplığı
        Outil de positionnement et de rendu de texte.
        <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>
        Pango referans dokümanları
    </Package>

    <Package>
        <Name>pango-devel</Name>
        pango için geliştirme dosyaları
    </Package>

    <Package>
        <Name>pango-32bit</Name>
        pango için 32-bit paylaşımlı kitaplıklar
    </Package>
</PISI>


code:
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    autotools.configure("--disable-static")
    pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
    pisitools.dosed("libtool", "^(hardcode_libdir_flag_spec=).*", '\\1""')
    pisitools.dosed("libtool", "^(runpath_var=)LD_RUN_PATH", "\\1DIE_RPATH_DIE")

def build():
    autotools.make()

def install():
    autotools.install()

    dirs = ["/usr/share/doc", "/usr/share/devhelp"]
    for dir in dirs:
        pisitools.removeDir(dir)

    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>pangomm</Name>
        <Homepage>http://www.gtkmm.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        C++ interface for Pango
        <Description>Pangomm is a library that provides pango based C++ interface for object-oriented gtkmm applications.</Description>
        <Archive sha1sum="2b3904e635d6cf3b8088f7a8c6e2f8a5034f6516" type="tarxz">mirrors://gnome/pangomm/2.40/pangomm-2.40.1.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>grep</Dependency>
            <Dependency>libtool</Dependency>
            <Dependency>doxygen</Dependency>
            <Dependency>boost-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>pango-devel</Dependency>
            <Dependency>glibmm-devel</Dependency>
            <Dependency>cairomm-devel</Dependency>
            <Dependency>libsigc++-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>pangomm</Name>
        <RuntimeDependencies>
            <Dependency>pango</Dependency>
            <Dependency>glibmm</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>cairomm</Dependency>
            <Dependency>libsigc++</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>pangomm-devel</Name>
        Development files for pangomm
        <RuntimeDependencies>
            <Dependency release="current">pangomm</Dependency>
            <Dependency>cairomm-devel</Dependency>
            <Dependency>glibmm-devel</Dependency>
            <Dependency>pango-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/lib/pangomm-1.4</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-21</Date>
            <Version>2.40.1</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.34.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-18</Date>
            <Version>2.34.0</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>pangomm</Name>
        Pango için C++ arayüzü
        <Description xml:lang="tr">Pangomm, nesne tabanlı gtkmm uygulamaları için C++ tabanlı pango arayüzü sağlayan bir kitaplıktır.</Description>
    </Source>

    <Package>
        <Name>pangomm-devel</Name>
        pangomm için geliştirme dosyaları
    </Package>
</PISI>


code:
<PISI>
    <Name>desktop.toolkit.motif</Name>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "motif-2.3.7"

mwmlibdir = "/usr/lib/X11"
mwmconfigdir = "/etc/X11/mwm"

def setup():
    # add X.Org vendor string to aliases for virtual bindings
    shelltools.echo("bindings/xmbind.alias", '"The X.Org Foundation"\t\t\t\t\tpc')

    # libXp will be deprecated
    pisitools.dosed("lib/Xm/Makefile.am", " -lXp ", " -ldeprecatedXp ")

    shelltools.export("LANG", "C") # guess why this is here...
    shelltools.export("LC_ALL", "C") # guess why this is here...
    shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())
    shelltools.export("CXXFLAGS", "%s -fno-strict-aliasing" % get.CXXFLAGS())
    shelltools.export("AT_M4DIR", ".")

    for f in ["NEWS", "AUTHORS"]:
        shelltools.touch(f)

    autotools.autoreconf("-vfi")

    options = "--with-x \
              --disable-static \
              --enable-utf8 \
              --enable-xft \
              --enable-jpeg \
              --enable-png"

    if get.buildTYPE() == "emul32":
        options += " --prefix=/emul32 \
                     --libdir=/usr/lib32 \
                     --bindir=/emul32/bin \
                     --mandir=/emul32/man"

        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
        shelltools.export("CFLAGS", "%s -I/usr/include/freetype2 -fno-strict-aliasing -m32" % get.CFLAGS())
        shelltools.export("CXXFLAGS", "%s -I/usr/include/freetype2 -fno-strict-aliasing -m32" % get.CXXFLAGS())
        shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())

    autotools.configure(options)

def build():
    autotools.make('-j1 MWMRCDIR="/etc/X11/mwm"')

def install():
    autotools.rawInstall('DESTDIR=%s -j1 MWMRCDIR="/etc/X11/mwm"' % get.installDIR())

    # these are just demos
    if not get.buildTYPE() == "emul32":
        pisitools.removeDir("/usr/share/Xm")

    pisitools.dodoc("ChangeLog", "README*", "BUGREPORT", "RELEASE", "RELNOTES", "TODO")

    #if get.buildTYPE() == "emul32":
        #pisitools.removeDir("/emul32")


code:
Mwm*fontList:			variable
Mwm*iconClick:			False
Mwm*iconPlacement:		top left
Mwm*moveOpaque:			True
Mwm*rootButtonClick:		True
Mwm*foreground:			#000000
Mwm*background:			#B8B8C0
Mwm*enableThinThickness:	True
Mwm*enableEtchedInMenu:		True
Mwm*menu*fontList:		-adobe-helvetica-medium-r-*--*-120-*-*-*-*-*-*
Mwm*client*title*fontList:	-adobe-helvetica-bold-r-*--*-100-*-*-*-*-*-*
Mwm*icon*fontList:		-adobe-helvetica-bold-r-*--*-80-*-*-*-*-*-*
Mwm*feedback*fontList:		-adobe-helvetica-bold-r-*--*-100-*-*-*-*-*-*
Mwm*multiClickTime:		300


code:
diff -up openmotif-2.3.3/configure.ac.bindings openmotif-2.3.3/configure.ac
--- openmotif-2.3.3/configure.ac.bindings	2009-10-27 17:10:23.000000000 +0100
+++ openmotif-2.3.3/configure.ac	2010-03-19 11:12:39.000000000 +0100
@@ -185,7 +185,7 @@ AC_SUBST(MWMRCDIR)
 INCDIR="${includedir}/X11"
 AC_SUBST(INCDIR)

-XMBINDDIR_FALLBACK="${libdir}/X11/bindings"
+XMBINDDIR_FALLBACK="${datadir}/X11/bindings"
 AC_SUBST(XMBINDDIR_FALLBACK)

 RM="rm -f"
diff -up openmotif-2.3.3/doc/man/man3/VirtualBindings.3.bindings openmotif-2.3.3/doc/man/man3/VirtualBindings.3
--- openmotif-2.3.3/doc/man/man3/VirtualBindings.3.bindings	2005-07-20 13:47:21.000000000 +0200
+++ openmotif-2.3.3/doc/man/man3/VirtualBindings.3	2010-03-19 11:11:42.000000000 +0100
@@ -90,7 +90,7 @@ bindings contained in that file\&.
 If it has found no bindings, Motif next looks for the file
 \fBxmbind\&.alias\fP in the directory specified by the environment
 variable \fBXMBINDDIR\fP, if \fBXMBINDDIR\fP is set, or in the directory
-\fB/usr/lib/Xm/bindings\fP if \fBXMBINDDIR\fP is not set\&.
+\fB/usr/share/X11/bindings\fP if \fBXMBINDDIR\fP is not set\&.
 If this file exists Motif searches it for a pathname associated with the
 vendor string or with the vendor string and vendor release\&.
 If it finds such a pathname and if that file exists, Motif loads the
diff -up openmotif-2.3.3/lib/Xm/XmosP.h.bindings openmotif-2.3.3/lib/Xm/XmosP.h
--- openmotif-2.3.3/lib/Xm/XmosP.h.bindings	2002-06-17 22:36:30.000000000 +0200
+++ openmotif-2.3.3/lib/Xm/XmosP.h	2010-03-19 11:11:42.000000000 +0100
@@ -188,7 +188,7 @@ extern "C" {

 #define XMBINDDIR "XMBINDDIR"
 #ifndef XMBINDDIR_FALLBACK
-#define XMBINDDIR_FALLBACK "/usr/lib/Xm/bindings"
+#define XMBINDDIR_FALLBACK "/usr/share/X11/bindings"
 #endif
 #define XMBINDFILE "xmbind.alias"
 #define MOTIFBIND ".motifbind"


code:
diff -up openmotif-2.3.3/clients/mwm/WmResParse.c.mwmrc_dir openmotif-2.3.3/clients/mwm/WmResParse.c
--- openmotif-2.3.3/clients/mwm/WmResParse.c.mwmrc_dir	2009-06-22 23:51:51.000000000 +0200
+++ openmotif-2.3.3/clients/mwm/WmResParse.c	2010-03-23 13:37:03.000000000 +0100
@@ -2403,7 +2403,7 @@ FILE *FopenConfigFile (void)
 #endif /* PANELIST */

 #ifndef MWMRCDIR
-#define MWMRCDIR "/usr/lib/X11"
+#define MWMRCDIR "/etc/X11/mwm"
 #endif
     if (LANG != NULL)
     {
diff -up openmotif-2.3.3/configure.ac.mwmrc_dir openmotif-2.3.3/configure.ac
--- openmotif-2.3.3/configure.ac.mwmrc_dir	2009-10-27 17:10:23.000000000 +0100
+++ openmotif-2.3.3/configure.ac	2010-03-23 13:38:33.000000000 +0100
@@ -179,7 +179,7 @@ AC_SUBST(CDE_CONFIGURATION_TOP)
 LIBDIR="${libdir}/X11"
 AC_SUBST(LIBDIR)

-MWMRCDIR="${libdir}/X11"
+MWMRCDIR="/etc/X11/mwm"
 AC_SUBST(MWMRCDIR)

 INCDIR="${includedir}/X11"
diff -up openmotif-2.3.3/doc/man/man1/mwm.1.mwmrc_dir openmotif-2.3.3/doc/man/man1/mwm.1
--- openmotif-2.3.3/doc/man/man1/mwm.1.mwmrc_dir	2002-01-05 16:21:11.000000000 +0100
+++ openmotif-2.3.3/doc/man/man1/mwm.1	2010-03-23 13:37:03.000000000 +0100
@@ -678,8 +678,8 @@ is set, \fBmwm\fP looks for \fI$HOME/$LA
 \fB$HOME\fP/\fBconfigFile\fP\&. If the \fIconfigFile\fP pathname does not begin with "~/" or "/", \fBmwm\fP considers it to be relative to the current working directory\&. If
 the \fIconfigFile\fP resource is not specified
 or if that file does not exist, \fBmwm\fP uses several default
-paths to find a configuration file\&. The order of the search is shown below: \fB/usr/X11R6/lib/X11/$LANG/system\&.mwmrc\fP\(dg
-\fB/usr/X11R6/lib/X11/system\&.mwmrc\fP\(dg Paths marked with \&'\(dg\&' are
+paths to find a configuration file\&. The order of the search is shown below: \fB/etc/X11/mwm/$LANG/system\&.mwmrc\fP\(dg
+\fB/etc/X11/mwm/system\&.mwmrc\fP\(dg Paths marked with \&'\(dg\&' are
 implementation dependent\&.
 .IP "\fIdeiconifyKeyFocus\fP\ (class\  \fIDeiconifyKeyFocus\fP)" 10
 This resource applies only when the keyboard input focus policy is explicit\&.
@@ -1344,9 +1344,9 @@ the shell to use when executing commands
 function\&.
 .SS "Files"
 .PP
-\fB/usr/X11R6/lib/X11/$LANG/system\&.mwmrc\fP
+\fB/etc/X11/mwm/$LANG/system\&.mwmrc\fP
 .PP
-\fB/usr/X11R6/lib/X11/system\&.mwmrc\fP
+\fB/etc/X11/mwm/system\&.mwmrc\fP
 .PP
 \fB/usr/X11R6/lib/X11/app-defaults/Mwm\fP
 .PP
diff -up openmotif-2.3.3/doc/man/man4/mwmrc.4.mwmrc_dir openmotif-2.3.3/doc/man/man4/mwmrc.4
--- openmotif-2.3.3/doc/man/man4/mwmrc.4.mwmrc_dir	2002-01-05 16:21:12.000000000 +0100
+++ openmotif-2.3.3/doc/man/man4/mwmrc.4	2010-03-23 13:37:03.000000000 +0100
@@ -57,7 +57,7 @@ file that controls much of the behavior
 It contains descriptions of resources that cannot easily be
 written using standard X Window System, Version 11 resource syntax\&. The resource
 description file contains entries that are referred to by X resources in
-defaults files (for example, \fB/usr/X11R6/lib/X11/app-defaults/Mwm\fP)
+defaults files (for example, \fB/usr/share/X11/app-defaults/Mwm\fP)
 or in the \fBRESOURCE_MANAGER\fP property on the
 root window\&. For example, the resource description file enables you to specify
 different types of window menus; however, an X resource is used to specify
@@ -72,8 +72,8 @@ on a per-user basis:
 .nf
 \f(CW$HOME/$LANG/\&.mwmrc
 $HOME/\&.mwmrc
-/usr/X11R6/lib/X11/$LANG/system\&.mwmrc
-/usr/X11R6/lib/X11/system\&.mwmrc\fR
+/etc/X11/mwm/$LANG/system\&.mwmrc
+/etc/X11/mwm/system\&.mwmrc\fR
 .fi
 .PP
 .PP
@@ -84,7 +84,7 @@ resource\&. The following shows how a di
 be specified from the command line:
 .PP
 .nf
-\f(CW/usr/X11R6/bin/X11/mwm -xrm "mwm*configFile: mymwmrc"\fR
+\f(CW/usr/bin/mwm -xrm "mwm*configFile: mymwmrc"\fR
 .fi
 .PP
 .SS "Resource Types"
@@ -626,8 +626,8 @@ is not what you expect\&.
 .nf
 \fB$HOME/$LANG/\&.mwmrc
 $HOME/\&.mwmrc
-/usr/X11R6/lib/X11/$LANG/system\&.mwmrc
-/usr/X11R6/lib/X11/system\&.mwmrc\fP
+/etc/X11/mwm/$LANG/system\&.mwmrc
+/etc/X11/mwm/system\&.mwmrc\fP
 .fi
 .SH "RELATED INFORMATION"
 .PP


code:
--- openmotif-2.3.0/doc/man/man1/mwm.1.no_X11R6	2005-12-09 15:08:21.000000000 +0100
+++ openmotif-2.3.0/doc/man/man1/mwm.1	2005-12-09 15:09:06.000000000 +0100
@@ -366,7 +366,7 @@
 database\&. This database is built from the following sources\&. They are listed
 in order of precedence, low to high:
 .PP
-\fB/usr/X11R6/lib/X11/app-defaults/Mwm\fP
+\fB/usr/share/X11/app-defaults/Mwm\fP
 .PP
 \fB$HOME/Mwm\fP
 .PP
@@ -376,7 +376,7 @@
 .PP
 \fBmwm\fP command line options
 .PP
-The file names \fB/usr/X11R6/lib/X11/app-defaults/Mwm\fP and \fB$HOME/Mwm\fP represent customary locations for these files\&. The actual
+The file names \fB/usr/share/X11/app-defaults/Mwm\fP and \fB$HOME/Mwm\fP represent customary locations for these files\&. The actual
 location of the system-wide class resource file may depend on the \fBXFILESEARCHPATH\fP environment variable and the
 current language environment\&. The actual location of the user-specific class
 resource file may depend on the \fBXUSERFILESEARCHPATH\fP and \fBXAPPLRESDIR\fP
@@ -595,7 +595,7 @@
 NameClassValue TypeDefault
 autoKeyFocusAutoKeyFocusT/FT
 autoRaiseDelayAutoRaiseDelaymillisec500
-bitmap-Bitmap-directory/usr/X11R6/include-
+bitmap-Bitmap-directory/usr/include-
 DirectoryDirectory/X11/bitmaps
 clientAutoPlaceClientAutoPlaceT/FT
 colormapFocus-ColormapFocus-stringkeyboard
@@ -650,7 +650,7 @@
 This resource identifies a directory to be searched for bitmaps referenced
 by \fBmwm\fP resources\&. This directory is searched if a bitmap
 is specified without an absolute pathname\&. The default value for this resource
-is \fB/usr/X11R6/include/X11/bitmaps\fP\&. The directory \fB/usr/X11R6/include/X11/bitmaps\fP
+is \fB/usr/include/X11/bitmaps\fP\&. The directory \fB/usr/include/X11/bitmaps\fP
 represents the customary locations for this directory\&. The actual
 location of this directory may vary on some systems\&. If the bitmap is not
 found in the specified directory, \fBXBMLANGPATH\fP is searched\&.
@@ -1348,7 +1348,7 @@
 .PP
 \fB/etc/X11/mwm/system\&.mwmrc\fP
 .PP
-\fB/usr/X11R6/lib/X11/app-defaults/Mwm\fP
+\fB/usr/share/X11/app-defaults/Mwm\fP
 .PP
 \fB$HOME/Mwm\fP
 .PP


code:
* don't do automagic guessing of paths

--- configure.ac
+++ configure.ac
@@ -183,21 +183,8 @@

 case "$host_os" in
     freebsd*) CFLAGS="$CFLAGS -DCSRG_BASED -DXNO_MTSAFE_API -DXNO_MTSAFE_PWDAPI";
-        LDFLAGS="$LDFLAGS -L/usr/local/lib";;
+        ;;
     cygwin*) CFLAGS="$CFLAGS -DXNO_MTSAFE_DIRENTDAPI";;
-    solaris* | sunos*) X_LIBS="$X_LIBS -L/usr/X/lib" &&
-        if test x$enable_motif22_compatibility = x
-        then
-            enable_motif22_compatibility="no"
-        fi;
-        if test x$enable_utf8 = x
-        then
-            enable_utf8="no"
-        fi;
-        if test x$enable_xft = x
-        then
-            enable_xft="no"
-        fi;;
 esac

 if test x$enable_motif22_compatibility = x


code:
---
 clients/uil/UilDiags.c  |   26 ++++++++++++++------------
 clients/uil/UilIODef.h  |    2 +-
 clients/uil/UilSrcSrc.c |   18 +++++++++++-------
 tools/wml/Makefile.am   |    6 ++++--
 tools/wml/Uil.y         |    2 +-
 5 files changed, 31 insertions(+), 23 deletions(-)

--- a/clients/uil/UilDiags.c
+++ b/clients/uil/UilDiags.c
@@ -207,9 +207,9 @@ void	diag_issue_diagnostic
     va_list	ap;			/* ptr to variable length parameter */
     int		severity;		/* severity of message */
     int		message_number;		/* message number */
-    char	msg_buffer[132];	/* buffer to construct message */
+    char	*msg_buffer = 0;	/* buffer to construct message */
     char	ptr_buffer[buf_size];	/* buffer to construct pointer */
-    char	loc_buffer[132];	/* buffer to construct location */
+    char	*loc_buffer = 0;	/* buffer to construct location */
     char	src_buffer[buf_size];	/* buffer to hold source line */

     /*
@@ -293,19 +293,18 @@ void	diag_issue_diagnostic
     va_start(ap, l_start_column);

 #ifndef NO_MESSAGE_CATALOG
-    vsnprintf( msg_buffer, sizeof(msg_buffer),
+    vasprintf(&msg_buffer,
 	      catgets(uil_catd, UIL_SET1, msg_cat_table[ message_number ],
 		      diag_rz_msg_table[ message_number ].ac_text),
 	     ap );
 #else
-    vsnprintf( msg_buffer, sizeof(msg_buffer),
+    vasprintf(&msg_buffer,
 	      diag_rz_msg_table[ message_number ].ac_text,
 	      ap );
 #endif
     va_end(ap);

     src_buffer[ 0 ] = 0;
-    loc_buffer[ 0 ] = 0;
     ptr_buffer[ 0 ] = 0;

     if (az_src_rec != diag_k_no_source)
@@ -317,13 +316,13 @@ void	diag_issue_diagnostic
 	    */

 #ifndef NO_MESSAGE_CATALOG
-	    sprintf( loc_buffer,
+	    asprintf(&loc_buffer,
 		     catgets(uil_catd, UIL_SET_MISC,
 			     UIL_MISC_0, "\t\t line: %d  file: %s"),
 		     az_src_rec->w_line_number,
 		     src_get_file_name( az_src_rec ) );
 #else
-	    sprintf( loc_buffer,
+	    asprintf(&loc_buffer,
 		     "\t\t line: %d  file: %s",
 		     az_src_rec->w_line_number,
 		     src_get_file_name( az_src_rec ) );
@@ -371,7 +370,7 @@ void	diag_issue_diagnostic

 	    if (l_start_column != diag_k_no_column)
 #ifndef NO_MESSAGE_CATALOG
-	      sprintf(loc_buffer,
+	      asprintf(&loc_buffer,
 		      catgets(uil_catd, UIL_SET_MISC,
 			      UIL_MISC_1,
 			      "\t\t line: %d  position: %d  file: %s"),
@@ -379,7 +378,7 @@ void	diag_issue_diagnostic
 		      l_start_column + 1,
 		      src_get_file_name( az_src_rec ) );
 #else
-	      sprintf(loc_buffer,
+	      asprintf(&loc_buffer,
 		      "\t\t line: %d  position: %d  file: %s",
 		      az_src_rec->w_line_number,
 		      l_start_column + 1,
@@ -387,13 +386,13 @@ void	diag_issue_diagnostic
 #endif
 	    else
 #ifndef NO_MESSAGE_CATALOG
-		sprintf( loc_buffer, catgets(uil_catd, UIL_SET_MISC,
+		asprintf(&loc_buffer, catgets(uil_catd, UIL_SET_MISC,
 					     UIL_MISC_0,
 					     "\t\t line: %d  file: %s"),
 			 az_src_rec->w_line_number,
 			 src_get_file_name( az_src_rec ) );
 #else
-		sprintf( loc_buffer,
+		asprintf(&loc_buffer,
 			 "\t\t line: %d  file: %s",
 			 az_src_rec->w_line_number,
 			 src_get_file_name( az_src_rec ) );
@@ -406,7 +405,8 @@ void	diag_issue_diagnostic
     */

     write_msg_to_standard_error
-	( message_number, src_buffer, ptr_buffer, msg_buffer, loc_buffer );
+	( message_number, src_buffer, ptr_buffer, msg_buffer,
+	  loc_buffer ? loc_buffer : "");

     /*
     **	if we have a listing, place message in the source structure
@@ -428,6 +428,8 @@ void	diag_issue_diagnostic
 	uil_exit( uil_k_severe_status );
     }

+    free (loc_buffer);
+    free (msg_buffer);
 }

 /*
--- a/clients/uil/UilIODef.h
+++ b/clients/uil/UilIODef.h
@@ -75,7 +75,7 @@ typedef struct
     char	*c_buffer;
     boolean	v_position_before_get;
     z_key	last_key;
-    char	expanded_name[ 256 ];
+    char	*expanded_name;
 } uil_fcb_type;

 #endif /* UilIODef_h */
--- a/clients/uil/UilSrcSrc.c
+++ b/clients/uil/UilSrcSrc.c
@@ -271,6 +271,7 @@ Uil_src_cleanup_source(void)
 				   diag_k_no_source, diag_k_no_column,
 				   src_az_source_file_table[i]->expanded_name);
 	    }
+	_free_memory (src_az_source_file_table[i]->expanded_name);
 	_free_memory ((char*)src_az_source_file_table [i]);
 	src_az_source_file_table[i] = NULL;
 	}
@@ -626,13 +627,13 @@ open_source_file( XmConst char
     static unsigned short	main_dir_len = 0;
     boolean			main_file;
     int				i;  /* loop index through include files */
-    char			buffer[256];
+    char			*buffer;

     /* place the file name in the expanded_name buffer */

-    strncpy(buffer, c_file_name, sizeof(buffer));
-    buffer[sizeof(buffer)-1] = '\0';
+    buffer = _get_memory (strlen (c_file_name) + 1);
+    strcpy (buffer, c_file_name);

 /*    Determine if this is the main file or an include file.  */

@@ -674,11 +675,10 @@ open_source_file( XmConst char
 	    }

 	if (!specific_directory) {
+	    buffer = XtRealloc (buffer, main_dir_len + strlen (c_file_name) + 1);
 	    _move (buffer, main_fcb -> expanded_name, main_dir_len);
 	    _move (& buffer [main_dir_len],
 		   c_file_name, strlen (c_file_name) + 1);  /* + NULL */
-	} else {
-	    strcpy (buffer, c_file_name);
 	}

 /*    Open the include file.    */
@@ -701,6 +701,7 @@ open_source_file( XmConst char
 	    if (inc_dir_len == 0) {
 		search_user_include = False;
 		}
+	    buffer = XtRealloc (buffer, inc_dir_len + strlen (c_file_name) + 1);
 	    _move (buffer, Uil_cmd_z_command.ac_include_dir[i], inc_dir_len);

 	/*  Add '/' if not specified at end of directory  */
@@ -724,6 +725,7 @@ open_source_file( XmConst char

 /*    Look in the default include directory.    */
 	if (search_user_include) {
+	  buffer = XtRealloc (buffer, sizeof c_include_dir - 1 + strlen (c_file_name) + 1);
 	  _move(buffer, c_include_dir, sizeof c_include_dir - 1); /* no NULL */
 	  _move(&buffer[sizeof c_include_dir - 1],
 		c_file_name, strlen (c_file_name) + 1);  /* + NULL */
@@ -737,14 +739,16 @@ open_label:

     /* check the open status. */

-    if (az_fcb->az_file_ptr == NULL)
+    if (az_fcb->az_file_ptr == NULL) {
+        _free_memory (buffer);
 	return src_k_open_error;
+    }

     /* open succeeded - place buffer address in fcb */

     az_fcb->c_buffer = az_source_buffer->c_text;
     az_fcb->c_buffer[ src_k_max_source_line_length ] = 0;
-    strcpy(az_fcb->expanded_name, buffer);
+    az_fcb->expanded_name = buffer;

     return src_k_open_normal;
 }
--- a/tools/wml/Makefile.am
+++ b/tools/wml/Makefile.am
@@ -43,10 +43,12 @@ wmllex.c: wmllex.l

 $(srcdir)/wmldbcreate.c: $(WMLTARGETS) UilLexPars.h

-UilLexPars.h: UilLexPars.c
+UilLexPars.h: Uil.h
+	rm -f $@
+	$(LN_S) Uil.h UilLexPars.h

 UilLexPars.c: Uil.c
-	$(LN_S) Uil.h UilLexPars.h
+	rm -f $@
 	$(LN_S) Uil.c UilLexPars.c

 $(WMLTARGETS): wmluiltok wml UilLexPars.c $(TABLE)
--- a/tools/wml/Uil.y
+++ b/tools/wml/Uil.y
@@ -559,7 +559,7 @@ control_object_definition

 object_specification
     : CLASS_NAME
-	{ sar_set_object_class (&$1); }
+	{ sar_set_object_class (&$1); $$ = gz_yynullval; }
       opt_create_proc_ref
       opt_variant
       object_spec


code:
---
 lib/Xm/TextF.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/lib/Xm/TextF.c
+++ b/lib/Xm/TextF.c
@@ -3919,7 +3919,7 @@ InsertChar(Widget w,
 					    nextPos, insert_string,
 					    insert_length, True);
     } else {
-      char stack_cache[100];
+      wchar_t stack_cache[100];
       insert_string[insert_length] = '\0'; /* NULL terminate for mbstowcs */
       wc_insert_string = (wchar_t*)XmStackAlloc((Cardinal)(insert_length+1) *
 						sizeof(wchar_t), stack_cache);
@@ -6981,7 +6981,7 @@ ValidateString(XmTextFieldWidget tf,

   int str_len = 0;
   int i, j;
-  char stack_cache[400];
+  wchar_t stack_cache[400];

   if (!is_wchar) {
     char *temp_str, *curr_str, *start_temp;


code:
---
 clients/mwm/WmFunction.c                   |    8 ++++----
 demos/lib/Xmd/onHelp.c                     |    2 +-
 demos/programs/Exm/simple_app/simpleDemo.c |    2 +-
 demos/programs/filemanager/actions.c       |    2 +-
 demos/programs/fileview/text.c             |    2 +-
 demos/programs/popups/autopopups.c         |    2 +-
 6 files changed, 9 insertions(+), 9 deletions(-)

--- a/clients/mwm/WmFunction.c
+++ b/clients/mwm/WmFunction.c
@@ -1126,12 +1126,12 @@ Boolean F_Exec (String args, ClientData
 		directory, then we must call execlp and not execl
 		*/
 		shellname = shell;
-		execlp (shell, shellname, "-c", args, 0);
+		execlp (shell, shellname, "-c", args, (char *) 0);
 	    }
 	    else
 	    {
 		shellname++;
-		execl (shell, shellname, "-c", args, 0);
+		execl (shell, shellname, "-c", args, (char *) 0);
 	    }
 	}

@@ -1140,9 +1140,9 @@ Boolean F_Exec (String args, ClientData
 	 * Try /bin/sh .
 	 */
 #ifdef SVR4
-        execl ("/usr/bin/sh", "sh", "-c", args, 0);
+        execl ("/usr/bin/sh", "sh", "-c", args, (char *) 0);
 #else
-        execl ("/bin/sh", "sh", "-c", args, 0);
+        execl ("/bin/sh", "sh", "-c", args, (char *) 0);
 #endif

--- a/demos/lib/Xmd/onHelp.c
+++ b/demos/lib/Xmd/onHelp.c
@@ -66,7 +66,7 @@ int main(int argc, String argv[])
   Widget dismiss;

   toplevel = XtVaAppInitialize(&app_context, "HelpOnHelp", NULL, 0,
-			       &argc, argv, NULL, 0);
+			       &argc, argv, NULL, NULL);
   n = 0;
   XtSetArg(args[n], XmdNhelpFile, "helpOn"); n++;
   help = XmdCreateHelp(toplevel, "help", args, n);
--- a/demos/programs/Exm/simple_app/simpleDemo.c
+++ b/demos/programs/Exm/simple_app/simpleDemo.c
@@ -162,7 +162,7 @@ main (int argc, char **argv)

   menu = XmCreatePulldownMenu(menuBar, "FileMenu", NULL, 0);

-  XtVaSetValues(cascade, XmNsubMenuId, menu, 0);
+  XtVaSetValues(cascade, XmNsubMenuId, menu, NULL);

   str = XmStringCreateLocalized("Quit");
   menuitem = XtVaCreateManagedWidget("item", xmPushButtonWidgetClass,
--- a/demos/programs/filemanager/actions.c
+++ b/demos/programs/filemanager/actions.c
@@ -91,7 +91,7 @@ viewCB(Widget widget, char   *type, XtPo
   XtVaSetValues(fileviewer,
 		XmNlayoutType, spatial,
 		XmNentryViewType, size,
-		0, 0);
+		NULL);

   fixViewerSize(XtParent(fileviewer), NULL, NULL);

--- a/demos/programs/fileview/text.c
+++ b/demos/programs/fileview/text.c
@@ -160,7 +160,7 @@ void NewPaneCallback(Widget widget, View
       XtSetValues(XtParent(new->text), args, n);
       XmTextSetTopCharacter(new->text,
 			    XmTextGetTopCharacter(this->current_pane->text));
-      XtVaSetValues(target, XmNheight, (Dimension) height/2);
+      XtVaSetValues(target, XmNheight, (Dimension) height/2, NULL);
    }
    printf("source text set\n");
    XtManageChild(new->text);
--- a/demos/programs/popups/autopopups.c
+++ b/demos/programs/popups/autopopups.c
@@ -83,7 +83,7 @@ int main(int argc, char **argv)
   XmString	str, tmp1, tmp2;

   shell     = XtVaAppInitialize(&context, APP_CLASS, NULL, 0, &argc, argv,
-				NULL, 0);
+				NULL, NULL);

   frame1 = XmCreateFrame(shell, "outerframe", NULL, 0);
   XtManageChild(frame1);


code:
---
 lib/Xm/Xpms_popen.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/lib/Xm/Xpms_popen.c
+++ b/lib/Xm/Xpms_popen.c
@@ -56,7 +56,7 @@ FILE *Xpms_popen(char *cmd, const char *
   char *cmdcpy;

-  if(cmd == NULL || cmd == "")
+  if(cmd == NULL || cmd[0] == '\0')
     return(NULL);

   if(type[0] != 'r' && type[0] != 'w')


code:
---
 demos/programs/ColorSel/util-c.c  |    4 ++++
 demos/programs/Ext18List/util-c.c |    4 ++++
 demos/programs/FontSel/fontsel.c  |    1 +
 demos/programs/IconB/misc.c       |    4 ++++
 demos/programs/Tree/bxutil-c.c    |    2 ++
 lib/Xm/XmString.c                 |    6 ++----
 tools/wml/wmlresolve.c            |    1 +
 7 files changed, 18 insertions(+), 4 deletions(-)

--- a/demos/programs/ColorSel/util-c.c
+++ b/demos/programs/ColorSel/util-c.c
@@ -3468,6 +3468,8 @@ GRA(xpmData *, mdata)
             c = xpmGetC(mdata);
         }
         return (c);
+    default:
+	abort();
     }
 }

@@ -3489,6 +3491,8 @@ GRA(xpmData *, mdata)
             /* if not natural XPM2 */
             mdata->InsideString = !mdata->InsideString;
         return (ungetc(c, mdata->stream.file));
+    default:
+	abort();
     }
 }

--- a/demos/programs/Ext18List/util-c.c
+++ b/demos/programs/Ext18List/util-c.c
@@ -3468,6 +3468,8 @@ GRA(xpmData *, mdata)
             c = xpmGetC(mdata);
         }
         return (c);
+    default:
+	abort();
     }
 }

@@ -3489,6 +3491,8 @@ GRA(xpmData *, mdata)
             /* if not natural XPM2 */
             mdata->InsideString = !mdata->InsideString;
         return (ungetc(c, mdata->stream.file));
+    default:
+	abort();
     }
 }

--- a/demos/programs/FontSel/fontsel.c
+++ b/demos/programs/FontSel/fontsel.c
@@ -121,5 +121,6 @@ char **argv;
     XtRealizeWidget(top);

     XtAppMainLoop(app);
+    return 0;
 }

--- a/demos/programs/IconB/misc.c
+++ b/demos/programs/IconB/misc.c
@@ -3440,6 +3440,8 @@ GRA(xpmData *, mdata)
             c = xpmGetC(mdata);
         }
         return (c);
+    default:
+	abort();
     }
 }

@@ -3461,6 +3463,8 @@ GRA(xpmData *, mdata)
             /* if not natural XPM2 */
             mdata->InsideString = !mdata->InsideString;
         return (ungetc(c, mdata->stream.file));
+    default:
+	abort();
     }
 }

--- a/demos/programs/Tree/bxutil-c.c
+++ b/demos/programs/Tree/bxutil-c.c
@@ -3469,6 +3469,7 @@ GRA(xpmData *, mdata)
         }
         return (c);
     }
+    abort();
 }

@@ -3490,6 +3491,7 @@ GRA(xpmData *, mdata)
             mdata->InsideString = !mdata->InsideString;
         return (ungetc(c, mdata->stream.file));
     }
+    abort();
 }

 /*
--- a/lib/Xm/XmString.c
+++ b/lib/Xm/XmString.c
@@ -7969,8 +7969,7 @@ XmStringParseText(XtPointer    text,
     case XmMULTIBYTE_TEXT:
       /* Non-NULL values (except _MOTIF_DEFAULT_LOCALE)
          are not accepted in Motif 2.0. */
-      if (tag != NULL && !(tag == _MOTIF_DEFAULT_LOCALE ||
-			   strcmp(tag, _MOTIF_DEFAULT_LOCALE) == 0))
+      if (tag != NULL && !(strcmp(tag, _MOTIF_DEFAULT_LOCALE) == 0))
       {
 	_XmProcessUnlock();
 	return NULL;
@@ -8583,8 +8582,7 @@ XmStringComponentCreate(XmStringComponen
 	_XmProcessUnlock();
 	return NULL;
       }
-      if ((value != _MOTIF_DEFAULT_LOCALE) &&
-	  (strcmp((char*) value, _MOTIF_DEFAULT_LOCALE) != 0)) {
+      if ((strcmp((char*) value, _MOTIF_DEFAULT_LOCALE) != 0)) {
 	_XmProcessUnlock();
 	return NULL;
       }
--- a/tools/wml/wmlresolve.c
+++ b/tools/wml/wmlresolve.c
@@ -69,6 +69,7 @@ static char rcsid[] = "$XConsortium: wml

 #if defined(__STDC__)
 #include <stdlib.h>
+#include <string.h>
 #endif
 #include <stdio.h>


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>openmotif</Name>
        <Homepage>http://www.motifzone.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MOTIF</License>
        <IsA>library</IsA>
        <IsA>app</IsA>
        Open Motif implementation
        <Description>Freely available version of the well known Motif user interface toolkit for Open Source operating systems.</Description>
        <Archive sha1sum="be3e5a7e488f56cebfe3258c51938834effbbb6c" type="targz">mirrors://sourceforge/motif/motif-2.3.7.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libXmu-devel</Dependency>
            <Dependency>libXft-devel</Dependency>
            <Dependency>xbitmaps</Dependency>
            <Dependency>fontconfig-devel</Dependency>
            <Dependency>libXt-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
        </BuildDependencies>
        <Patches>

            <Patch>openmotif-2.3.2-sanitise-paths.patch</Patch>
            <Patch level="0">0003_fix_ftbfs_binutils-gold.patch</Patch>

            <Patch level="1">openmotif-uil.patch</Patch>
            <Patch level="1">openmotif-unaligned.patch</Patch>

            <Patch level="1">openMotif-2.3.0-no_X11R6.patch</Patch>
            <Patch level="1">motif-2.3.4-bindings.patch</Patch>
            <Patch level="1">motif-2.3.4-mwmrc_dir.patch</Patch>
            <Patch level="1">wmluiltok_fake_lex_main.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>openmotif</Name>
        <RuntimeDependencies>
            <Dependency>libXmu</Dependency>
            <Dependency>libXft</Dependency>
            <Dependency>libXp</Dependency>
            <Dependency>libSM</Dependency>
            <Dependency>libICE</Dependency>
            <Dependency>fontconfig</Dependency>
            <Dependency>libXt</Dependency>
            <Dependency>libXext</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>freetype</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share/X11/app-defaults</Path>
            <Path fileType="data">/usr/share/X11/bindings</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/X11/app-defaults/Mwm">Mwm.defaults</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>openmotif-devel</Name>
        Development files for openmotif
        <RuntimeDependencies>
            <Dependency release="current">openmotif</Dependency>
            <Dependency>libXft-devel</Dependency>
            <Dependency>libXt-devel</Dependency>
            <Dependency>libXmu-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <Package>
        <Name>openmotif-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for openmotif
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>libSM-32bit</Dependency>
            <Dependency>libXt-32bit</Dependency>
            <Dependency>libXp-32bit</Dependency>
            <Dependency>libXmu-32bit</Dependency>
            <Dependency>libpng-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libICE-32bit</Dependency>
            <Dependency>libXft-32bit</Dependency>
            <Dependency>libXext-32bit</Dependency>
            <Dependency>fontconfig-32bit</Dependency>
            <Dependency>libjpeg-turbo-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">openmotif</Dependency>
            <Dependency>libSM-32bit</Dependency>
            <Dependency>libXt-32bit</Dependency>
            <Dependency>libXp-32bit</Dependency>
            <Dependency>libXmu-32bit</Dependency>
            <Dependency>libpng-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libICE-32bit</Dependency>
            <Dependency>libXft-32bit</Dependency>
            <Dependency>libXext-32bit</Dependency>
            <Dependency>fontconfig-32bit</Dependency>
            <Dependency>freetype-32bit</Dependency>
            <Dependency>libjpeg-turbo-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-11</Date>
            <Version>2.3.7</Version>
            <Comment>Version Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.3.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2013-08-17</Date>
            <Version>2.3.4</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>openmotif</Name>
        Özgür Motif kitaplığı
        <Description xml:lang="tr">Açık kaynak kodlu işletim sistemleri için yaygın olarak tanına Motif kullanıcı arabirimi araçlarının özgürce kullanılabilen sürümü.</Description>
    </Source>

    <Package>
        <Name>openmotif-devel</Name>
        openmotif için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def setup():
    # use python2.x
    pisitools.dosed("configure", "(\/usr\/include\/)python\*", r"\1python2*")
    # fix unused direct dependency
    pisitools.dosed("Makefile.in", "(PLFLAGS=)`\$\$pyconfig --libs`", r"\1'-lpython2.7'")
    pisitools.dosed("Makefile.in", "(PLDFLAGS=)`\$\$pyconfig --ldflags`", r"\1'-lpython2.7 -Xlinker -export-dynamic'")

    shelltools.echo("config.h.in", "#define USE_INTERP_RESULT 1")
    shelltools.export("PYTHON", "/usr/bin/python2.7")
    autotools.configure("\
                         --with-gpm-support \
                        ")

def build():
    autotools.make()

def install():
    autotools.install()

    # remove static lib
    pisitools.remove("/usr/lib/libnewt.a")

    pisitools.dodoc("CHANGES", "COPYING")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>newt</Name>
        <Homepage>https://fedorahosted.org/newt/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        A windowing toolkit for text mode
        <Description>newt is a windowing toolkit for text mode, which provides many widgets and stackable windows.</Description>
        <Archive sha1sum="d0fc04b08e687b9ec2ee12a269e31145bacc47ef" type="targz">https://releases.pagure.org/newt/newt-0.52.19.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>tcl-devel</Dependency>
            <Dependency>slang-devel</Dependency>
            <Dependency>popt-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>newt</Name>
        <RuntimeDependencies>
            <Dependency>tcl</Dependency>
            <Dependency>slang</Dependency>
            <Dependency>popt</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>newt-devel</Name>
        Development files for newt
        <RuntimeDependencies>
            <Dependency release="current">newt</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-26</Date>
            <Version>0.52.19</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.52.17</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-07-05</Date>
            <Version>0.52.17</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>newt</Name>
        Metin tabanlı bir pencere araç seti.
        <Description xml:lang="tr">Newt, metin tabanlı bir pencere araç setidir. Pek çok alet ve istiflenebilir pencere sağlar.</Description>
    </Source>

    <Package>
        <Name>newt-devel</Name>
        newt için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get
from pisi.actionsapi import qt5

WorkDir = "QScintilla_gpl-%s" % get.srcVERSION()
NoStrip = ["/usr/share/doc"]

def setup():
    shelltools.cd("Qt4Qt5")
    shelltools.system("qmake-qt5 qscintilla.pro")

    # Change C/XXFLAGS
    pisitools.dosed("Makefile", "^CFLAGS.*\\$\\(DEFINES\\)", "CFLAGS   = %s -fPIC $(DEFINES)" % get.CFLAGS())
    pisitools.dosed("Makefile", "^CXXFLAGS.*\\$\\(DEFINES\\)", "CXXFLAGS   = %s -fPIC $(DEFINES)" % get.CXXFLAGS())

    # Get designer plugin's Makefile
    shelltools.cd("../designer-Qt4Qt5/")
    shelltools.system("qmake-qt5 designer.pro INCLUDEPATH+=../Qt4Qt5 QMAKE_LIBDIR+=../Qt4Qt5")

    # Change C/XXFLAGS of designer plugin's makefile
    pisitools.dosed("Makefile", "^CFLAGS.*\\$\\(DEFINES\\)", "CFLAGS   = %s -fPIC $(DEFINES)" % get.CFLAGS())
    pisitools.dosed("Makefile", "^CXXFLAGS.*\\$\\(DEFINES\\)", "CXXFLAGS   = %s -fPIC $(DEFINES)" % get.CXXFLAGS())

def build():
    shelltools.system("cp -rf Python Python3")
    shelltools.cd("Qt4Qt5")
    qt5.make()

    shelltools.cd("../designer-Qt4Qt5/")
    qt5.make()

    # Get Makefile of qscintilla-python via sip
    shelltools.cd("../Python")
    pythonmodules.run("configure.py -n ../Qt4Qt5 -o ../Qt4Qt5 -c --pyqt=PyQt5 --pyqt-sipdir=/usr/share/sip/Py2Qt5 --qsci-sipdir=/usr/share/sip/Py2Qt5 --sip-incdir=/usr/lib/python2.7/site-packages --qmake /usr/bin/qmake-qt5")
    pisitools.dosed("Makefile", "/usr/include/qt/QtPrintSupport", "/usr/include/qt5/QtPrintSupport")
    pisitools.dosed("Makefile", "/usr/include/qt/QtWidgets", "/usr/include/qt5/QtWidgets")
    autotools.make()

    shelltools.cd("../Python3")
    pythonmodules.run("configure.py -n ../Qt4Qt5 -o ../Qt4Qt5 -c --pyqt=PyQt5 --qmake /usr/bin/qmake-qt5", pyVer = "3")
    pisitools.dosed("Makefile", "/usr/include/qt/QtPrintSupport", "/usr/include/qt5/QtPrintSupport")
    pisitools.dosed("Makefile", "/usr/include/qt/QtWidgets", "/usr/include/qt5/QtWidgets")
    autotools.make()

def install():
    shelltools.cd("Qt4Qt5")
    qt5.install("INSTALL_ROOT=%s" % get.installDIR())

    shelltools.cd("../designer-Qt4Qt5/")
    qt5.install("INSTALL_ROOT=%s" % get.installDIR())

    #build and install qscintilla-python
    shelltools.cd("../Python3")
    #autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    qt5.install("INSTALL_ROOT=%s" % get.installDIR())
    #pisitools.insinto("/usr/lib/python3.6/site-packages/PyQt5", "Qsci.so")
    shelltools.cd("../Python")
    #autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    qt5.install("INSTALL_ROOT=%s" % get.installDIR())
    #pisitools.insinto("/usr/lib/python2.7/site-packages/PyQt5", "Qsci.so")

    shelltools.cd("..")
    pisitools.dohtml("doc/html-Qt4Qt5/")
    pisitools.insinto("/usr/share/doc/%s/Scintilla" % get.srcNAME(), "doc/Scintilla/*")

    pisitools.dodoc("LICENSE*", "NEWS", "README")


code:
--- QScintilla-gpl-2.9/Python/configure.py.orig	2015-04-20 17:38:24.000000000 +0300
+++ QScintilla-gpl-2.9/Python/configure.py	2015-04-26 21:54:18.000000000 +0300
@@ -31,6 +31,7 @@
 import os
 import optparse
 import sys
+src_dir = os.path.dirname(os.path.abspath(__file__))

 ###############################################################################
@@ -1411,6 +1414,7 @@
     includepath = qmake_config.get('INCLUDEPATH')
     if includepath:
         pro.write('INCLUDEPATH += %s\n' % includepath)
+        pro.write('INCLUDEPATH += %s\n' % '/usr/include/qt5/QtWidgets /usr/include/qt5/QtPrintSupport')

     # Make sure the SIP include directory is searched before the Python include
     # directory if they are different.


code:
--- QScintilla-gpl-2.8.3/Qt4Qt5/features/qscintilla2.prf~	2014-07-03 14:15:46.000000000 +0400
+++ QScintilla-gpl-2.8.3/Qt4Qt5/features/qscintilla2.prf	2014-08-11 18:04:44.371414609 +0400
@@ -17,9 +17,18 @@
         win32: {
             LIBS += -lqscintilla2d
         } else {
-            LIBS += -lqscintilla2
+            greaterThan(QT_MAJOR_VERSION, 4) {
+                LIBS += -lqt5scintilla2
+            } else {
+                LIBS += -lqscintilla2
+            }
         }
     }
 } else {
+    greaterThan(QT_MAJOR_VERSION, 4) {
+        LIBS += -lqt5scintilla2
+        }
+        else {
     LIBS += -lqscintilla2
+        }
 }
--- QScintilla-gpl-2.8.3/Qt4Qt5/qscintilla.pro~	2014-07-03 14:15:46.000000000 +0400
+++ QScintilla-gpl-2.8.3/Qt4Qt5/qscintilla.pro	2014-08-11 18:00:05.598079386 +0400
@@ -41,6 +41,7 @@

 greaterThan(QT_MAJOR_VERSION, 4) {
 	QT += widgets printsupport
+	TARGET = qt5scintilla2

     greaterThan(QT_MINOR_VERSION, 1) {
 	    macx:QT += macextras
--- QScintilla-gpl-2.8.3/Qt4Qt5/designer-Qt4Qt5/designer.pro~	2014-07-03 14:15:46.000000000 +0400
+++ QScintilla-gpl-2.8.3/designer-Qt4Qt5/designer.pro	2014-08-11 18:00:05.598079386 +0400
@@ -8,11 +8,14 @@

 greaterThan(QT_MAJOR_VERSION, 4) {
     QT += designer
+    TARGET = qt5scintillaplugin
+    LIBS += -lqt5scintilla2

     # Work around QTBUG-39300.
     CONFIG -= android_install
 } else {
     CONFIG += designer
+    LIBS += -lqscintilla2
 }

 macx {


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>qscintilla2</Name>
        <Homepage>http://www.riverbankcomputing.co.uk/qscintilla/</Homepage>
        <Packager>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>GPLv3</License>
        <IsA>library</IsA>
        Qt port of Scintilla
        <Description>QScintilla2 is a port to Qt4 of Neil Hodgson's Scintilla C++ editor class.</Description>
        <Archive type="targz" sha1sum="922d1cb4378738fa5ecfc4c248fe19a5bb28b27b">https://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-2.10/QScintilla_gpl-2.10.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python-qt5-devel</Dependency>
            <Dependency>python3-qt5-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>python3-devel</Dependency>
            <Dependency>python3-sip</Dependency>
            <Dependency>python-sip</Dependency>
            <Dependency versionFrom="5.7.1">qt5-base-devel</Dependency>
            <Dependency versionFrom="5.7.1">qt5-designer-devel</Dependency>
            <Dependency>chrpath</Dependency>
            <Dependency versionFrom="5.7.1">qt5-script-devel</Dependency>
            <Dependency versionFrom="5.7.1">qt5-xmlpatterns-devel</Dependency>
            <Dependency versionFrom="13.0.4">mesa-devel</Dependency>
            <Dependency>qscintilla2-python-common</Dependency>
        </BuildDependencies>
        <Patches>

        </Patches>
    </Source>

    <Package>
        <Name>qscintilla2</Name>
        <RuntimeDependencies>
            <Dependency versionFrom="5.7.1">qt5-base</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="library">/usr/lib/qt5/plugins</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/qt5/mkspecs</Path>
            <Path fileType="localedata">/usr/share/qt5/translations</Path>
        </Files>
    </Package>

    <Package>
        <Name>qscintilla2-python-common</Name>
        Common python qscintilla bindings files shared between qscintilla2-python and qscintilla2-python3
        <RuntimeDependencies>
            <Dependency version="current">qscintilla2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/usr/share/qt5/qsci</Path>
            <Path fileType="data">/usr/share/sip</Path>
        </Files>
    </Package>

    <Package>
        <Name>qscintilla2-python</Name>
        Python 2.x bindings for qscintilla2
        <RuntimeDependencies>
            <Dependency version="current">qscintilla2</Dependency>
            <Dependency version="current">qscintilla2-python-common</Dependency>
            <Dependency>qt5-base</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/python2*</Path>
        </Files>
    </Package>

    <Package>
        <Name>qscintilla2-python3</Name>
        Python 3.x bindings for qscintilla2
        <RuntimeDependencies>
            <Dependency>python3</Dependency>
            <Dependency version="current">qscintilla2</Dependency>
            <Dependency version="current">qscintilla2-python-common</Dependency>
            <Dependency>qt5-base</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/python3*</Path>
        </Files>
    </Package>

    <Package>
        <Name>qscintilla2-doc</Name>
        HTML documentation for qscintilla2
        <Files>
            <Path fileType="doc">/usr/share/doc/qscintilla2/Scintilla</Path>
            <Path fileType="doc">/usr/share/doc/qscintilla2/html</Path>
        </Files>
    </Package>

    <Package>
        <Name>qscintilla2-devel</Name>
        Development files for qscintilla2
        <RuntimeDependencies>
            <Dependency release="current">qscintilla2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/qt5/Qsci</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-06-04</Date>
            <Version>2.10</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.9.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-05-28</Date>
            <Version>2.9.1</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<PISI>
    <Source>
        <Name>qscintilla2</Name>
        QScintilla2, Neil Hodgson'un Scintilla C++ editör sınıfının bir Qt4 uyarlamasıdır.
        Port do Qt klas C++ edytora Scintilla autorstwa Neila Hodgsona.
        <Description xml:lang="tr">QScintilla2, Neil Hodgson'un Scintilla C++ editör sınıfının bir Qt4 uyarlamasıdır.</Description>
        <Description xml:lang="pl">QScintilla jest portem do Qt klas C++ edytora Scintilla autorstwa Neila Hodgsona.</Description>
    </Source>
    <Package>
        <Name>qscintilla2-python-common</Name>
    </Package>
    <Package>
        <Name>qscintilla2-python</Name>
        qscintilla2 için Python bağlayıcıları
    </Package>
    <Package>
        <Name>qscintilla2-python3</Name>
    </Package>
    <Package>
        <Name>qscintilla2-doc</Name>
        qscintilla2 için HTML belgeleri
    </Package>
    <Package>
        <Name>qscintilla2-devel</Name>
        qscintilla2 için geliştirme dosyaları
        Pliki nagłówkowe dla QScintilla
    </Package>
</PISI>


code:
<PISI>
    <Name>desktop.toolkit.qt5</Name>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import cmaketools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")
    cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
                          -DCMAKE_INSTALL_PREFIX=/usr \
                          -DLIB_DESTINATION=/usr/lib", sourceDir="..")

def build():
    shelltools.cd("build")
    cmaketools.make()

def install():
    shelltools.cd("build")
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
    shelltools.cd("..")
    pisitools.dodoc("AUTHORS", "COPYING")