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

WorkDir = "yaml-%s" % get.srcVERSION()

def setup():
    autotools.configure("--disable-static")

def build():
    autotools.make()

def install():
    autotools.install()

    pisitools.dohtml("doc/html/*")
    pisitools.dodoc("LICENSE", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libyaml</Name>
        <Homepage>http://pyyaml.org/wiki/LibYAML</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        YAML 1.1 parser and emitter written in C
        <Description>libyaml is a YAML 1.1 parser and emitter written in C.</Description>
        <Archive sha1sum="3590cbf092ef4c71bc0a9b404c00a626b1e04dee" type="targz">http://pyyaml.org/download/libyaml/yaml-0.1.7.tar.gz</Archive>
    </Source>

    <Package>
        <Name>libyaml</Name>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libyaml-devel</Name>
        Development headers for libyaml
        <Description>libyaml-devel provides development headers for libyaml.</Description>
        <RuntimeDependencies>
            <Dependency release="current">libyaml</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="doc">/usr/share/doc/libyaml/html/</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-09-20</Date>
            <Version>0.1.7</Version>
            <Comment>Version Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.1.5</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-07-22</Date>
            <Version>0.1.5</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>

repo_name: ayhanyalcinsoy/main


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libyaml</Name>
        C ile yazılmış YAML 1.1 ayrıştırıcısı
        <Description xml:lang="tr">libyaml C ile yazılmış bir YAML 1.1 ayrıştırıcısıdır.</Description>
    </Source>

    <Package>
        <Name>libyaml-devel</Name>
        libyaml için başlık dosyaları
        <Description xml:lang="tr">libyaml-devel, libyaml için başlık dosyalarını içerir.</Description>
    </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 \
                         --prefix=/usr \
                         --enable-maintainer-mode")

def build():
    autotools.make()

def check():
    autotools.make("check")

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>npth</Name>
        <Homepage>http://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        New portable threads library
        <Description>is a non-preemptive threads implementation using an API very similar to the one known from GNU Pth.  It has been designed as a replacement of GNU Pth for non-ancient operating systems.</Description>
        <Archive sha1sum="1b21507cfa3f58bdd19ef2f6800ab4cb67729972" type="tarbz2">ftp://ftp.gnupg.org/gcrypt/npth/npth-1.3.tar.bz2</Archive>
    </Source>

    <Package>
        <Name>npth</Name>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>npth-devel</Name>
        Development files for pth
        <RuntimeDependencies>
            <Dependency release="current">npth</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/npth-config</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-05</Date>
            <Version>1.3</Version>
            <Comment>Version Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-04-12</Date>
            <Version>1.2</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>npth</Name>
        Yeni GNU Taşınabilir iş parçacıkları kitaplığı
        <Description xml:lang="tr">Pth Unix platformları için derlenmiş taşınabilir kitaplığıdır. Bir çok iç sunucu uygulamalarının yerine getirilmesi işlerinin öncelikli olmayan planlamasını yapar.</Description>
        <Description xml:lang="fr">Un librairie de threads portable pour les plateformes Unix. Elle permet la synchronisation non-préemptive pour l'exécution de threads ("multithreading") au sein d'applications serveur.</Description>
    </Source>

    <Package>
        <Name>npth-devel</Name>
        npth 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 cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    cmaketools.configure("-DPHYSFS_BUILD_STATIC=OFF \
                          -DPHYSFS_BUILD_SHARED=ON \
                          -DPHYSFS_ARCHIVE_7Z=OFF \
                          -DPHYSFS_BUILD_TEST=OFF \
                          -DPHYSFS_BUILD_WX_TEST=OFF \
                          -DPHYSFS_INTERNAL_ZLIB=OFF \
                          -DCMAKE_BUILD_TYPE=Release \
                          -DCMAKE_INSTALL_PREFIX=/usr ")

def build():
    cmaketools.make()

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

    pisitools.dodoc("CHANGELOG.txt", "CREDITS.txt", "TODO.txt")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>physfs</Name>
        <Homepage>http://icculus.org/physfs/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>ZLIB</License>
        <IsA>library</IsA>
        Filesystem library
        <Description>Abstraction layer for filesystems.</Description>
        <Archive sha1sum="327308c777009a41bbabb9159b18c4c0ac069537" type="tarbz2">http://icculus.org/physfs/downloads/physfs-2.0.3.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
             <Dependency>zlib</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>physfs</Name>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-04-08</Date>
            <Version>2.0.3</Version>
            <Comment>Rebuild.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.0.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-11</Date>
            <Version>2.0.3</Version>
            <Comment>First release</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>physfs</Name>
        Dosya sistemi kitaplığı
        Warstwa abstrakcji plików dla gier
        <Description xml:lang="tr">physfs dosya sistemi katmanı kitaplığıdır.</Description>
        <Description xml:lang="fr">Couche d'abstraction pour les systèmes de fichier, généralement utilisée par les jeux.</Description>
        <Description xml:lang="es">Capa de abstracción para sistemas de archivos, comúnmente utilizado en juegos</Description>
        <Description xml:lang="pl">PhysicsFS to biblioteka udostępniająca abstrakcyjny dostęp do różnych archiwów.</Description>
    </Source>

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


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

def setup():
    autotools.autoreconf("-vif")
    shelltools.system("./autogen.sh")

    autotools.configure("--with-tests")

def build():
    autotools.make()

def check():
    shelltools.cd("tests")
    shelltools.system("./test_all.sh")

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>qrencode</Name>
        <Homepage>http://fukuchi.org/works/qrencode/index.en.html</Homepage>
        <Packager>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        A C library for encoding data in a QR code symbol
        <Description>qrencode is a C library for encoding data in a QR Code symbol, a kind of 2D symbology that can be scanned by handy terminals such as a mobile phone with CCD. The capacity of QR Code is up to 7000 digits or 4000 characters, and is highly robust.</Description>
        <Archive sha1sum="644054a76c8b593acb66a8c8b7dcf1b987c3d0b2" type="targz">http://fukuchi.org/works/qrencode/qrencode-3.4.4.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libsdl-devel</Dependency>
            <Dependency>m4</Dependency>
            <Dependency>gettext-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>qrencode</Name>
        <RuntimeDependencies>
            <Dependency>libpng</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="library">/usr/bin/qrencode</Path>
            <Path fileType="man">/usr/share/man/man1</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-05-01</Date>
            <Version>3.4.4</Version>
            <Comment>Rebuild for new Toolchain</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-22</Date>
            <Version>3.4.4</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2015-02-22</Date>
            <Version>3.4.4</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>qrencode</Name>
        QR kod sembolüne veri gömmek için bir kitaplık
        <Description xml:lang="tr">qrencode, cep telefonları gibi mobil cihazlar tarafından kolaylıkla taranabilen, 2 boyutlu bir sembol olan QR kod içerisinde veri gömmek için kullanılan bir kitaplıktır.</Description>
    </Source>

    <Package>
        <Name>qrencode-devel</Name>
        qrencode 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.configure()

def build():
    autotools.make()

def install():
    autotools.install()

    pisitools.insinto("/usr/share/vim/vimfiles/syntax/", "ragel.vim")

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ragel</Name>
        <Homepage>http://www.complang.org/ragel/</Homepage>
        <Packager>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <Summary>Ragel compiles executable finite state machines from regular languages.</Summary>
        <Description>Ragel compiles executable finite state machines from regular languages. Ragel targets C, C++, Obj-C, C#, D, Java, Go and Ruby.</Description>
        <Archive sha1sum="946162090fb58b794ed53173fac13398d565b794" type="targz">http://www.colm.net/files/ragel/ragel-6.10.tar.gz</Archive>
    </Source>

    <Package>
        <Name>ragel</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share/vim/</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-30</Date>
            <Version>6.10</Version>
            <Comment>Version Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>6.9</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-11-19</Date>
            <Version>6.9</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>ragel</Name>
        <Summary xml:lang="en">Ragel compiles executable finite state machines from regular languages.</Summary>
        <Description xml:lang="en">Ragel compiles executable finite state machines from regular languages. Ragel targets C, C++, Obj-C, C#, D, Java, Go and Ruby.</Description>
    </Source>
</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

docdir = "/%s/%s" % (get.docDIR(), get.srcNAME())

def setup():
    autotools.configure("--with-www=curl \
                         --disable-gtk-doc \
                         --with-yajl=no \
                         --with-html-dir=%s/html\
                         --with-icu-config=/usr/bin/icu-config \
                         --disable-static" % docdir)

    # for fix unused dependency
    pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")

def build():
    autotools.make()

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

    pisitools.dosym("raptor2/raptor.h", "/usr/include/raptor.h")
    pisitools.dosym("raptor2/raptor2.h", "/usr/include/raptor2.h")
    pisitools.insinto("%s/html" % docdir, "%s/%s/html/raptor2/*" % (get.installDIR(), docdir))
    pisitools.removeDir("%s/html/raptor2" % docdir)
    pisitools.dohtml("*.html")
    pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>raptor2</Name>
        <Homepage>http://librdf.org/raptor</Homepage>
        <Packager>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        The RDF Parser Toolkit
        <Description>Raptor2 is the RDF Parser Toolkit for Redland that provides a set of Resource Description Framework (RDF) parsers and serializers.</Description>
        <Archive sha1sum="504231f87024df9aceb90eb957196b557b4b8e38" type="targz">http://download.librdf.org/source/raptor2-2.0.15.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>curl-devel</Dependency>
            <Dependency>gtk-doc</Dependency>
            <Dependency>libxslt-devel</Dependency>
            <Dependency>icu4c-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>raptor2</Name>
        <IsA>library</IsA>
        <RuntimeDependencies>
            <Dependency>curl</Dependency>
            <Dependency>icu4c</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>libxslt</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man/man1</Path>
        </Files>
    </Package>

    <Package>
        <Name>raptor2-devel</Name>
        <IsA>library</IsA>
        Development headers for raptor2
        <RuntimeDependencies>
            <Dependency release="current">raptor2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
            <Path fileType="executable">/usr/bin/raptor-config</Path>
            <Path fileType="man">/usr/share/man/man1/raptor-config.1</Path>
        </Files>
    </Package>

    <Package>
        <Name>raptor2-docs</Name>
        <IsA>data:doc</IsA>
        Documentation files for raptor
        <RuntimeDependencies>
            <Dependency release="current">raptor2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc/raptor2/html</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-03-03</Date>
            <Version>2.0.15</Version>
            <Comment>First Release</Comment>
            <Name>ayhanyalcinsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>raptor2</Name>
        RDF ayrıştırıcı araç kiti
        <Description xml:lang="tr">librdf, RDF ayrıştırıcılar ve yorumlayıcılar için gerekli kitaplığı ve araçları içerir.</Description>
        <Description xml:lang="fr">Raptor est une boîte à outils d'analyse RDF pour Redland fournissant un ensemble d'analyseurs et de sérialiseurs (serializers)  pour Resource Description Framework (RDF - Cadre de Développement pour description de ressource).</Description>
    </Source>

    <Package>
        <Name>raptor2-devel</Name>
        Raptor için başlık dosyaları
        <Description xml:lang="tr">raptor2-devel raptor2 için başlık dosyalarını içerir.</Description>
    </Package>

    <Package>
        <Name>raptor2-docs</Name>
        Raptor için belgelendirme dosyaları
        <Description xml:lang="tr">raptor2-docs raptor2 için belgelendirme dosyalarını içerir.</Description>
    </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

docdir = "/%s/%s" % (get.docDIR(), get.srcNAME())

def setup():
    autotools.configure("--disable-static \
                         --enable-pcre \
                         --enable-xml2 \
                         --with-regex-library=pcre \
                         --disable-gtk-doc \
                         --with-html-dir=%s" % docdir)

def build():
    autotools.make()

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

    pisitools.dosym("rasqal/rasqal.h", "/usr/include/rasqal.h")
    pisitools.insinto("%s/html" % docdir, "%s/%s/rasqal/*" % (get.installDIR(), docdir))
    pisitools.removeDir("%s/rasqal" % docdir)
    pisitools.dohtml("*.html")
    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>rasqal</Name>
        <Homepage>http://librdf.org/rasqal</Homepage>
        <Packager>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <License>Apache-2.0</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        Library that handles Resource Description Framework (RDF)
        <Description>Rasqal is a C library that handles Resource Description Framework (RDF) query syntaxes, query construction and query execution returning result bindings. The supported query languages are SPARQL and RDQL.</Description>
        <Archive sha1sum="281c2e0a352c53ef1656bfe778c380226d61726f" type="targz">http://download.librdf.org/source/rasqal-0.9.33.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>raptor2-devel</Dependency>
            <Dependency>libpcre-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>mpfr-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>rasqal</Name>
        <RuntimeDependencies>
            <Dependency>raptor2</Dependency>
            <Dependency>libpcre</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>rasqal-devel</Name>
        <IsA>library</IsA>
        Development files for rasqal
        <RuntimeDependencies>
            <Dependency release="current">rasqal</Dependency>
            <Dependency>raptor2-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/rasqal-config</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
            <Path fileType="man">/usr/share/man/man1/rasqal-config*</Path>
        </Files>
    </Package>

    <Package>
        <Name>rasqal-docs</Name>
        <IsA>data:doc</IsA>
        Development documents for rasqal in HTML format
        <Files>
            <Path fileType="doc">/usr/share/doc/rasqal/html</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-03-03</Date>
            <Version>0.9.33</Version>
            <Comment>First Release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>rasqal</Name>
        RDF (Resource Description Framework) işleme kitaplığı
        <Description xml:lang="tr">Rasqal RDF (Resource Description Framework) sözdizimindeki sorguları işleyebilen bir C kitaplığıdır. SPARQL ve RDQL biçimlerini destekler.</Description>
    </Source>

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

    <Package>
        <Name>rasqal-docs</Name>
        rasqal için HTML formatında geliştirme belgeleri
    </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 pisitools
from pisi.actionsapi import autotools

def setup():
    autotools.rawConfigure()

def build():
    autotools.make()

def install():
    autotools.install()


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>re2c</Name>
        <Homepage>https://github.com/skvadrik/re2c</Homepage>
        <Packager>
            <Name>Ergün Salman</Name>
            <Email>Poyraz76@pisilinux.org</Email>
        </Packager>
        <License>GPL</License>
        <Icon>re2c</Icon>
        <IsA>Libry</IsA>
        <Summary>A tool for generating C-based recognizers from regular expressions</Summary>
        <Description>ACM Letters on Programming Languages and Systems (LOPLAS)</Description>
        <Archive sha1sum="cf41da098dda3d6e6848d23ffaa0b9aadaaf15fc" type="targz">https://github.com/skvadrik/re2c/releases/download/0.16/re2c-0.16.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>gcc</Dependency>
        </BuildDependencies>
    </Source>
    <Package>
        <Name>re2c</Name>
        <Files>
            <Path fileType="executable">/usr/bin/</Path>
            <Path fileType="library">/usr/lib/</Path>
            <Path fileType="data">/usr/include/re2c/*</Path>
            <Path fileType="data">/usr/lib/pkgconfig/</Path>
            <Path fileType="doc">/usr/share/man/*</Path>
        </Files>
    </Package>
    <History>
        <Update release="2">
            <Date>2017-04-23</Date>
            <Version>0.16</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-07-09</Date>
            <Version>0.16</Version>
            <Comment>First release</Comment>
            <Name>Ergün Salman</Name>
            <Email>Poyraz76@pisilinux.org</Email>
        </Update>
    </History>
</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

docdir = "/%s/%s" % (get.docDIR(), get.srcNAME())

def setup():
    pisitools.cflags.add("-fno-strict-aliasing")
    pisitools.cxxflags.add("-fno-strict-aliasing")

    autotools.configure("--disable-static \
                         --disable-gtk-doc \
                         --with-raptor=system \
                         --with-rasqal=system ")

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

def build():
    autotools.make()

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

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


code:
diff -Nuar redland-1.0.10.orig/src/rdf_digest.c redland-1.0.10/src/rdf_digest.c
--- redland-1.0.10.orig/src/rdf_digest.c	2010-03-07 01:30:22.588657802 +0200
+++ redland-1.0.10/src/rdf_digest.c	2010-03-07 01:37:17.716408728 +0200
@@ -209,6 +209,9 @@
 {
   librdf_digest* d;

+  if (!factory)
+      return NULL;
+
   librdf_world_open(world);

   d=(librdf_digest*)LIBRDF_CALLOC(librdf_digest, 1, sizeof(librdf_digest));


code:
diff -Naur redland-1.0.9-orig/configure.ac redland-1.0.9/configure.ac
--- redland-1.0.9-orig/configure.ac	2009-07-28 14:59:04.361703816 +0300
+++ redland-1.0.9/configure.ac	2009-07-28 14:59:16.608454149 +0300
@@ -977,8 +977,6 @@

 AC_CONFIG_FILES([Makefile
 redland.rdf
-docs/Makefile
-docs/version.xml
 examples/Makefile
 src/Makefile
 src/redland.spec
@@ -990,9 +988,6 @@
 AC_CONFIG_FILES([redland-config], [chmod +x redland-config])
 AC_CONFIG_FILES([redland-src-config], [chmod +x redland-src-config])

-dnl Check for gtk-doc and docbook
-GTK_DOC_CHECK([1.3])
-
 AC_OUTPUT

 AC_MSG_RESULT([
diff -Naur redland-1.0.9-orig/Makefile.am redland-1.0.9/Makefile.am
--- redland-1.0.9-orig/Makefile.am	2009-07-28 14:59:04.365626697 +0300
+++ redland-1.0.9/Makefile.am	2009-07-28 14:59:24.224454025 +0300
@@ -34,7 +34,7 @@
 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc

 # Subdirectories to build/install/distribute etc.
-SUBDIRS=$(subdirs) src examples utils demos docs data
+SUBDIRS=$(subdirs) src examples utils demos data

 EXTRA_DIST=ChangeLog ChangeLog.1 ChangeLog.2 ChangeLog.3 ChangeLog.4 \
 ChangeLog.5 ChangeLog.6 ChangeLog.7 \


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>redland</Name>
        <Homepage>http://librdf.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <License>Apache-2.0</License>
        <IsA>library</IsA>
        High-level interface for the Resource Description Framework
        <Description>Redland is a set of free software C libraries that provide support for the Resource Description Framework (RDF).</Description>
        <Archive sha1sum="a47a7e98f934d17d60a241db90be407a0abe3c5d" type="targz">http://download.librdf.org/source/redland-1.0.17.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>rasqal-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>redland</Name>
        <RuntimeDependencies>
            <Dependency>rasqal</Dependency>
            <Dependency>raptor2</Dependency>
            <Dependency>libtool-ltdl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="doc">/usr/share/gtk-doc/html/redland/</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/redland</Path>
        </Files>
    </Package>

    <Package>
        <Name>redland-devel</Name>
        Development files for redland
        <RuntimeDependencies>
            <Dependency release="current">redland</Dependency>

            <Dependency>raptor2-devel</Dependency>
            <Dependency>rasqal-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="executable">/usr/bin/redland-config</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="man">/usr/share/man/man1/redland-config*</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-03-04</Date>
            <Version>1.0.17</Version>
            <Comment>First Relase</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>redland</Name>
        RDF (Resource Description Framework) için üst seviye katman kitaplıkları
        <Description xml:lang="tr">Redland, RDF (Resource Description Framework) desteği sağlayan C kitaplıklarından oluşur.</Description>
    </Source>

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


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

def setup():
    cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
                          -DCMAKE_INSTALL_LIBDIR=lib \
                          -DCMAKE_BUILD_TYPE=Release")

def build():
    cmaketools.make()

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

    pisitools.dodoc("readme.md")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>tinyxml2</Name>
        <Homepage>http://www.grinninglizard.com/tinyxml2/</Homepage>
        <Packager>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>zlib</License>
        <IsA>library</IsA>
        Simple XML parser made for easy integration
        <Description>Simple XML parser made for easy integration</Description>
        <Archive sha1sum="b9b5569343f5829345b1bdfe5d0c08c079286495" type="targz">https://github.com/leethomason/tinyxml2/archive/5.0.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
        </BuildDependencies>
    </Source>
    <Package>
        <Name>tinyxml2</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <Package>
        <Name>tinyxml2-devel</Name>
        Development files for tinyxml2
        <RuntimeDependencies>
            <Dependency release="current">tinyxml2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/lib/cmake</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-10-18</Date>
            <Version>5.0.1</Version>
            <Comment>First release</Comment>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>tinyxml2</Name>
        <Summary xml:lang="tr">Simple XML parser made for easy integration</Summary>
        <Description xml:lang="tr">Simple XML parser made for easy integration</Description>
    </Source>
</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 libtools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

def setup():
    # Use system libtool instead of bundled one
    shelltools.unlinkDir("libltdl")
    libtools.libtoolize("-c -f --ltdl")
    autotools.autoreconf("-fi")

    autotools.configure("--sysconfdir=/etc/unixODBC \
                         --disable-dependency-tracking \
                         --disable-gui \
                         --enable-threads \
                         --enable-drivers \
                         --enable-driver-conf \
                         --disable-stats ")

def build():
    autotools.make()

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

    pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")
    pisitools.dohtml("doc/*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>unixODBC</Name>
        <Homepage>http://www.unixodbc.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>LGPLv2.1</License>
        <IsA>app:console</IsA>
        ODBC Interface for Linux
        <Description>The unixODBC Project goals are to develop and promote unixODBC to be the definitive standard for ODBC on non MS Windows platforms.</Description>
        <Archive sha1sum="df3578b080fb67da544d4c83424a770729ef25fb" type="targz">ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.4.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libtool-ltdl</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>unixODBC</Name>
        <RuntimeDependencies>
            <Dependency>libtool-ltdl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc/unixODBC/AUTHORS</Path>
            <Path fileType="doc">/usr/share/doc/unixODBC/README</Path>
        </Files>
    </Package>

    <Package>
        <Name>unixODBC-devel</Name>
        Development files for unixODBC
        <RuntimeDependencies>
            <Dependency release="current">unixODBC</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/odbc_config</Path>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <Package>
        <Name>unixODBC-docs</Name>
        <IsA>data:doc</IsA>
        Documentation for unixODBC
        <Files>
            <Path fileType="doc">/usr/share/doc/unixODBC</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-15</Date>
            <Version>2.3.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@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>2016-03-27</Date>
            <Version>2.3.4</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>unixodbc</Name>
        Linux için ODBC arayüzü
        <Description xml:lang="tr">unixODBC Projesinin amacı, unixODBC'yi geliştirip ilerleterek MS Windows harici platformlarda ODBC için kesin bir standart haline getirmektir.</Description>
        <Description xml:lang="fr">Les objectifs du projet unixODBC sont de développer et promouvoir unixODBC pour en faire le standard définitif pour ODBC sur les plateformes non MS Windows.</Description>
        <Description xml:lang="es">El proyecto unixODBC apunta a desarollar y promocio.</Description>
    </Source>

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

    <Package>
        <Name>unixODBC-docs</Name>
        unixODBC için belgelendirme 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 cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

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

def setup():
    cmaketools.configure("-DWITH_VIGRANUMPY=1 \
                          -DWITH_OPENEXR=1 \
                          -DDOXYGEN_FOUND=0")

def build():
    cmaketools.make()

def install():
    cmaketools.install()

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


code:
diff -Nuar vigra-Version-1-10-0.orig/CMakeLists.txt vigra-Version-1-10-0/CMakeLists.txt
--- vigra-Version-1-10-0.orig/CMakeLists.txt	2013-11-18 18:48:16.000000000 +0200
+++ vigra-Version-1-10-0/CMakeLists.txt	2014-05-30 20:08:32.469162810 +0300
@@ -128,7 +128,6 @@
 #
 ##################################################

-ADD_CUSTOM_TARGET(doc)

 # Automatically push the latest documentation to github's gh-pages.
 # This only works when ${DOCDIR} refers to a VIGRA repository that is
@@ -163,7 +162,6 @@

 ADD_SUBDIRECTORY(src)
 ADD_SUBDIRECTORY(test)
-ADD_SUBDIRECTORY(docsrc)

 IF(WITH_VIGRANUMPY)
     ADD_SUBDIRECTORY(vigranumpy)
diff -Nuar vigra-Version-1-10-0.orig/vigranumpy/CMakeLists.txt vigra-Version-1-10-0/vigranumpy/CMakeLists.txt
--- vigra-Version-1-10-0.orig/vigranumpy/CMakeLists.txt	2013-11-18 18:48:16.000000000 +0200
+++ vigra-Version-1-10-0/vigranumpy/CMakeLists.txt	2014-05-30 20:13:22.309173635 +0300
@@ -30,7 +30,6 @@
     ADD_SUBDIRECTORY(src)
     ADD_SUBDIRECTORY(lib)
     ADD_SUBDIRECTORY(test)
-    ADD_SUBDIRECTORY(docsrc)

     IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/private/CMakeLists.txt)
         ADD_SUBDIRECTORY(private EXCLUDE_FROM_ALL)


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>vigra</Name>
        <Homepage>http://ukoethe.github.io/vigra</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>library</IsA>
        Generic programming library for computer vision
        <Description>vigra stands for "Vision with Generic Algorithms". It's a novel computer vision library that puts its main emphasis on customizable algorithms and data structures.</Description>
        <Archive sha1sum="67788d181e759e625769bf0678887718d3dc02e2" type="targz">https://github.com/ukoethe/vigra/archive/Version-1-11-0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>doxygen</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>hdf5-devel</Dependency>
            <Dependency>fftw3-devel</Dependency>
            <Dependency>boost-devel</Dependency>
            <Dependency>python-nose</Dependency>
            <Dependency>python-sphinx</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>python-numpy</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>openexr-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>docutils</Dependency>
            <Dependency>mesa-glu-devel</Dependency>
            <Dependency>python-Pygments</Dependency>
            <Dependency>python-Jinja2</Dependency>
            <Dependency>blas-devel</Dependency>
            <Dependency>lapack-devel</Dependency>
            <Dependency>ilmbase-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">disable-doc.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>vigra</Name>
        <RuntimeDependencies>
            <Dependency>hdf5</Dependency>
            <Dependency>tiff</Dependency>
            <Dependency>boost</Dependency>
            <Dependency>fftw3</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>python</Dependency>
            <Dependency>ilmbase</Dependency>
            <Dependency>openexr-libs</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-04-17</Date>
            <Version>1.11.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.10.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-02-03</Date>
            <Version>1.10.0</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>vigra</Name>
        Bilgisayarlı görü (computer vision) için genel programlama kitaplığı
        <Description xml:lang="tr">vigra, "Genel Algoritmalarla Görü (Vision with Generic Algorithms)" anlamına gelir. Özelleştirilebilir algoritma ve veri yapılarını vurgulayan yeni bir bilgisayarlı görü kitaplığıdır.</Description>
    </Source>

    <Package>
        <Name>vigra-devel</Name>
        vigra 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.configure("--prefix=/usr \
                         --disable-static")

def build():
    autotools.make()

def install():
    autotools.install()

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>xapian-core</Name>
        <Homepage>http://www.oligarchy.co.uk/xapian</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        Probabilistic Information Retrieval library
        <Description>Xapian is an Open Source Probabilistic Information Retrieval Library. It offers a highly adaptable toolkit that allows developers to easily add advanced indexing and search facilities to applications.</Description>
        <Archive sha1sum="77d8af79cf77fc700298e6e542844c69aed33cf9" type="tarxz">https://oligarchy.co.uk/xapian/1.4.3/xapian-core-1.4.3.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libutil-linux-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>xapian-core</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>libutil-linux</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>xapian-core-devel</Name>
        <IsA>library</IsA>
        Development headers for xapian-core
        <Description>xapian-core-devel provides development headers for xapian-core.</Description>
        <RuntimeDependencies>
            <Dependency release="current">xapian-core</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/xapian-config*</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="library">/usr/lib/cmake/xapian</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
        </Files>
    </Package>

    <Package>
        <Name>xapian-core-docs</Name>
        <IsA>data:doc</IsA>
        Documentation files for xapian-core
        <Description>xapian-core-docs provides documentation files for xapian-core.</Description>
        <RuntimeDependencies>
            <Dependency release="current">xapian-core</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc/xapian-core/*html</Path>
            <Path fileType="doc">/usr/share/doc/xapian-core/apidoc.pdf</Path>
            <Path fileType="doc">/usr/share/doc/xapian-core/apidoc/</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-09-20</Date>
            <Version>1.4.3</Version>
            <Comment>Release bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-03-03</Date>
            <Version>1.12.18</Version>
            <Comment>Rebuild for new Toolchain.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.12.18</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-09-02</Date>
            <Version>1.12.18</Version>
            <Comment>First release</Comment>
            <Type package="xapian-core">critical</Type>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>xapian-core</Name>
        İstatistiksel Bilgi Çıkarma kitaplığı
        <Description xml:lang="tr">Xapian, Açık Kaynak Kodlu bir İstatistiksel Bilgi Çıkarma kitaplığıdır. Geliştiricilerin uygulamalara kolaylıkla gelişmiş kataloglama ve arama becerileri eklemelerini sağlayan hayli uyumlu bir araç takımına sahiptir.</Description>
    </Source>

    <Package>
        <Name>xapian-core-devel</Name>
        xapian-core için geliştirme başlıkları
        <Description xml:lang="tr">xapian-core-devel, xapian-core için geliştirme başlıklarını içerir.</Description>
    </Package>

    <Package>
        <Name>xapian-core-docs</Name>
        xapian-core için belgelendirme dosyaları
        <Description xml:lang="tr">xapian-core-docs, xapian-core için belgelendirme dosyalarını içerir.</Description>
    </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("-fi")
    autotools.configure("--disable-static")

def build():
    autotools.make()

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

    pisitools.dohtml("doc/html/*")
    pisitools.dodoc("CREDITS", "KEYS", "LICENSE*", "NOTICE", "README", "version.incl")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>xerces-c</Name>
        <Homepage>http://xml.apache.org/xerces-c</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>Apache-2.0</License>
        <IsA>library</IsA>
        Xerces-C++ is a validating XML parser written in a portable subset of C++
        <Description>Xerces-C++ is a validating XML parser written in a portable subset of C++.</Description>
        <Archive sha1sum="3f9ecc4956df069c1d95b885fc687eb4e474a4ad" type="targz">http://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>icu4c-devel</Dependency>
            <Dependency>curl-devel</Dependency>
            <Dependency>libgcc</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>xerces-c</Name>
        <RuntimeDependencies>
            <Dependency>icu4c</Dependency>
            <Dependency>curl</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

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

    <Package>
        <Name>xerces-c-docs</Name>
        Document files for xerces-c
        <RuntimeDependencies>
            <Dependency release="current">xerces-c</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-17</Date>
            <Version>3.1.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.1.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-26</Date>
            <Version>3.1.2</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>xerces-c</Name>
        C++ dilinin taşınabilir bir altkümesi ile yazılmış, XML sentaks doğrulaması yapabilen bir ayrıştırıcı
        <Description xml:lang="tr">Xerces-C++, C++ dilinin taşınabilir bir altkümesi ile yazılmış, XML sentaks doğrulaması yapabilen bir ayrıştırıcıdır.</Description>
        <Description xml:lang="fr">Xerces-C++ est un analyseur XML validant écrit dans un sous-ensemble portable du C++.</Description>
        <Description xml:lang="es">Xerces-C++ es un analizador XML con validación, escrito con un subconjunto portable de C++</Description>
    </Source>

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

    <Package>
        <Name>xerces-c-docs</Name>
        xerces-c için yardım dosyaları ve API belgeleri
    </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 build():
    autotools.make('verbose=1 CXXFLAGS="%s"' % get.CXXFLAGS())

def install():
    autotools.rawInstall("install_prefix=%s/usr" % get.installDIR())

    # Fix conflicts with mono
    pisitools.rename("/usr/bin/xsd", "xsdcxx")
    pisitools.rename("/usr/share/man/man1/xsd.1", "xsdcxx.1")


code:
--- xsd-4.0.0+dep/xsd/doc/xsd.1~	2014-09-14 12:25:36.862267587 +0000
+++ xsd-4.0.0+dep/xsd/doc/xsd.1	2014-09-14 12:28:25.728229892 +0000
@@ -1,16 +1,16 @@
 .\" Process this file with
-.\" groff -man -Tascii xsd.1
+.\" groff -man -Tascii xsdcxx.1
 .\"
 .TH XSD 1 "July 2014" "XSD 4.0.0"
 .SH NAME
-xsd \- W3C XML Schema to C++ Compiler
+xsdcxx \- W3C XML Schema to C++ Compiler
 .\"
 .\"
 .\"
 .\"--------------------------------------------------------------------
 .SH SYNOPSIS
 .\"--------------------------------------------------------------------
-.B xsd
+.B xsdcxx
 .I command
 .B [
 .I options
@@ -20,19 +20,19 @@
 .I file
 .B ...]
 .in
-.B xsd help
+.B xsdcxx help
 .B [
 .I command
 .B ]
 .in
-.B xsd version
+.B xsdcxx version
 .\"
 .\"
 .\"
 .\"--------------------------------------------------------------------
 .SH DESCRIPTION
 .\"--------------------------------------------------------------------
-.B xsd
+.B xsdcxx
 generates vocabulary-specific, statically-typed C++ mapping from W3C XML
 Schema definitions. Particular mapping to produce is selected by a
 .IR command .
@@ -96,7 +96,7 @@
 .PP
 .RS
 .RS 3
-.B xsd help
+.B xsdcxx help
 .I command
 .RE
 .PP
@@ -206,7 +206,7 @@
 \fIfilename\fP \fInamespace\fP

 For example, if you have file \fBhello\.xsd\fP with namespace
-\fBhttp://example\.com/hello\fP and you run \fBxsd\fP on this file, then the
+\fBhttp://example\.com/hello\fP and you run \fBxsdcxx\fP on this file, then the
 string in question will be:

 \fBhello\.xsd\. http://example\.com/hello\fP
@@ -1632,7 +1632,7 @@
 .\"
 .SH DIAGNOSTICS
 If the input file is not a valid W3C XML Schema definition,
-.B xsd
+.B xsdcxx
 will issue diagnostic messages to
 .B STDERR
 and exit with non-zero exit code.
--- xsd-4.0.0+dep/xsd/doc/xsd.xhtml~	2014-09-14 12:28:37.731513138 +0000
+++ xsd-4.0.0+dep/xsd/doc/xsd.xhtml	2014-09-14 12:30:11.277789610 +0000
@@ -50,19 +50,19 @@

NAME

-
xsd - W3C XML Schema to C++ Compiler

+
xsdcxx - W3C XML Schema to C++ Compiler

SYNOPSIS

-
xsd command [options] file [file ...]

-
xsd help [command]

-
xsd version

+
xsdcxx command [options] file [file ...]

+
xsdcxx help [command]

+
xsdcxx version

DESCRIPTION

-
xsd generates vocabulary-specific, statically-typed
+
xsdcxx generates vocabulary-specific, statically-typed
   C++ mapping from W3C XML Schema definitions. Particular mapping to
   produce is selected by a command. Each mapping has
   a number of mapping-specific options that should
@@ -104,7 +104,7 @@

help

Print usage information and exit. Use
-
xsd help command

+
xsdcxx help command

       for command-specific help.

@@ -219,7 +219,7 @@

For example, if you have file hello.xsd with
   namespace http://example.com/hello and you run
-  xsd on this file, then the string in question will
+  xsdcxx on this file, then the string in question will
   be:

hello.xsd. http://example.com/hello

@@ -1530,7 +1530,7 @@

DIAGNOSTICS

If the input file is not a valid W3C XML Schema definition,
-    xsd will issue diagnostic messages to STDERR
+    xsdcxx will issue diagnostic messages to STDERR
     and exit with non-zero exit code.

BUGS


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>xsd</Name>
        <Homepage>http://www.codesynthesis.com/products/xsd</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        An open-source, cross-platform W3C XML Schema to C++ data binding compiler
        <Description>CodeSynthesis XSD is an open-source, cross-platform W3C XML Schema to C++ data binding compiler. Provided with an XML instance specification (XML Schema), it generates C++ classes that represent the given vocabulary as well as parsing and serialization code. You can then access the data stored in XML using types and functions that semantically correspond to your application domain rather than dealing with intricacies of reading and writing XML.</Description>
        <Archive sha1sum="ad3de699eb140e747a0a214462d95fc81a21b494" type="tarbz2">http://codesynthesis.com/download/xsd/4.0/xsd-4.0.0+dep.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>xerces-c-devel</Dependency>
            <Dependency>boost-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">xsdcxx.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>xsd</Name>
        <RuntimeDependencies>
            <Dependency>xerces-c</Dependency>
            <Dependency>boost</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

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

    <Package>
        <Name>xsd-docs</Name>
        Document files for xsd
        <RuntimeDependencies>
            <Dependency release="current">xsd</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-17</Date>
            <Version>4.0.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>4.0.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-12-24</Date>
            <Version>4.0.0</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>xsd</Name>
        Kompilator schematów W3C XML do wiązań danych C++
        <Description xml:lang="pl">CodeSynthesis XSD to mający otwarte źródła wieloplatformowy kompilator schematów W3C XML do wiązań danych C++. Na podstawie specyfikacji instancji XML (schematu XML) generuje klasy C++ reprezentujące podany słownik, a także kod analizujący i serializujący. Następnie można odwoływać się do danych zapisanych w XML-u przy użyciu typów i funkcji semantycznie odpowiadających działaniu aplikacji, bez zajmowania się skomplikowaniem odczytu i zapisu XML-a.</Description>
    </Source>

    <Package>
        <Name>xsd-devel</Name>
        Pliki nagłówkowe xsd
        xsd 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 shelltools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

#WorkDir = "lloyd-yajl-f4b2b1a"

def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")
    cmaketools.configure(sourceDir="..")

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

#def check():
    #shelltools.cd("test")
    #shelltools.system("./run_tests.sh")

def install():
    shelltools.cd("build")
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.remove("/usr/lib/*.a")

    shelltools.cd("..")
    pisitools.dodoc("ChangeLog", "COPYING", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>yajl</Name>
        <Homepage>http://lloyd.github.com/yajl</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        Yet Another JSON Library (YAJL)
        <Description>yajl is a small event-driven (SAX-style) JSON parser written in ANSI C, and a small validating JSON generator.</Description>
        <Archive sha1sum="fe6b3c7439b26175aee59cabf8c4923b9eb3650d" type="targz">http://github.com/lloyd/yajl/tarball/2.1.0/lloyd-yajl-2.1.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>yajl</Name>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>yajl-devel</Name>
        Development headers for yajl
        <RuntimeDependencies>
            <Dependency>yajl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/share/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-21</Date>
            <Version>2.1.0</Version>
            <Comment>Release Bump.</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.1.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-12-31</Date>
            <Version>2.1.0</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>yajl</Name>
        JSON kitaplığı
        <Description xml:lang="tr">yajl, ANSI C ile yazılmış olay-tabanlı (SAX tarzı) ufak bir JSON ayıklayıcıdır.</Description>
    </Source>

    <Package>
        <Name>yajl-devel</Name>
        yajl kitaplığı için geliştirme başlıkları
    </Package>
</PISI>


code:
<PISI>
    <Name>programming.language.php</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/licenses/gpl.txt

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

def extensions():
    configure_disabled = []

    configure_enabled = [
        'exif', 'ftp', 'soap', 'sockets', 'bcmath',
        'dom', 'wddx', 'tokenizer', 'simplexml', 'mbstring', 'calendar',
        'gd-native-ttf'
    ]
    configure_shared = [
        'dba', 'embedded-mysqli', 'zip'
    ]
    configure_with = [
        'bz2', 'curl', 'iconv', 'mysql', 'mysqli', 'kerberos', 'sqlite3',
        'xsl', 'gdbm', 'db', 'ldap', 'gd', 'gettext',
        'regex=php', 'pic', 'pcre-regex', 'pgsql', 'pdo-mysql', 'pdo-pgsql',
        'openssl'
    ]
    configure_without = []

    conf = []
    for i in configure_disabled:
        conf.append("--disable-%s" % i)
    for i in configure_enabled:
        conf.append("--enable-%s " % i)
    for i in configure_shared:
        conf.append("--enable-%s=shared" % i)
    for i in configure_with:
        conf.append("--with-%s" % i)
    for i in configure_without:
        conf.append("--without-%s" % i)

    return ' '.join(conf)

def setup():
    shelltools.unlinkDir("ext/openssl")

    # create directories for apache, fcgi and fpm's Makefiles
    shelltools.makedirs("fcgi")
    shelltools.makedirs("apache")
    shelltools.makedirs("fpm")

    # link configure script
    shelltools.sym("../configure", "fcgi/configure")
    shelltools.sym("../configure", "apache/configure")
    shelltools.sym("../configure", "fpm/configure")

    shelltools.export("LC_ALL", "C")
    shelltools.export("CFLAGS", "%s -fwrapv -lkrb5 -lgssapi_krb5 -lpam" % get.CFLAGS())
    shelltools.export("NO_INTERACTION", "1")
    shelltools.export("EXTENSION_DIR", "/usr/lib/php/modules")

    shelltools.system("sed -i '/APACHE_THREADED_MPM=/d' sapi/apache2handler/config.m4")
    pisitools.dosed("ext/pgsql/config.m4", "include/postgresql", " include/postgresql/pgsql")

    # Don't touch apache.conf
    for i in pisitools.ls("sapi/*/config.m4"):
        pisitools.dosed(i, "\\-i \\-a \\-n php7", "-i -n php7")
        pisitools.dosed(i, "\\-i \\-A \\-n php7", "-i -n php7")

    autotools.autoconf()

    # workaround for pkg-config 0.28
    pisitools.dosed("configure", " && test -n \"\$OPENSSL_INCS\"")

    common_options = "--sysconfdir=/etc \
                      --cache-file=./config.cache \
                      --with-zlib-dir=/usr/lib \
                      --with-libxml-dir=/usr/lib \
                      --with-jpeg-dir=/usr/lib/ \
                      --with-png-dir=/usr/lib/ \
                      --with-freetype-dir=/usr \
                      --without-pear \
                      --with-zend-vm=GOTO \
                      --with-zend-vm=SWITCH \
                      --with-db4=/usr/lib \
                      --with-pic \
                      --with-libzip \
                      --with-gnu-ld \
                      --with-system-tzdata=/usr/share/zoneinfo \
                      --with-mcrypt=/usr/bin/mcrypt \
                      --with-imap=shared \
                      --with-openssl=shared \
                      --with-imap-ssl \
                      --with-mysql-sock=/run/mysqld/mysqld.sock \
                      --disable-rpath \
                     "

    # Enable FastCGI and CGI
    shelltools.cd("fcgi")
    autotools.configure("--enable-cgi \
                         --disable-cli \
                         --with-config-file-path=/etc/php/cli \
                         --with-config-file-scan-dir=/etc/php/cli/ext \
                         %s \
                         %s" % (common_options, extensions()))

    # Enable Apache
    shelltools.cd("../apache")
    autotools.configure("--with-apxs2=/usr/bin/apxs \
                         --disable-cli \
                         --with-config-file-path=/etc/php/apache2 \
                         --with-config-file-scan-dir=/etc/php/apache2/ext \
                         %s \
                         %s" % (common_options, extensions()))
    # Enable FPM
    shelltools.cd("../fpm")
    autotools.configure("--enable-fpm \
                         --disable-cli \
                         --with-fpm-user=apache \
                         --with-fpm-group=apache \
                         --with-config-file-path=/etc/php/apache2 \
                         --with-config-file-scan-dir=/etc/php/apache2/ext \
                         %s \
                         %s" % (common_options, extensions()))

def build():
    shelltools.cd("fcgi")
    shelltools.export("LC_ALL", "en_US.UTF-8")
    autotools.make()

    shelltools.cd("../apache")
    autotools.make()

    shelltools.cd("../fpm")
    autotools.make()

def check():
    shelltools.cd("apache")
    autotools.make("test")

def install():
    shelltools.cd("fcgi")
    autotools.rawInstall("INSTALL_ROOT=\"%s\"" % get.installDIR(), "install-cgi")
    autotools.rawInstall("INSTALL_ROOT=\"%s\"" % get.installDIR(), "install-sapi")

    shelltools.cd("../apache")
    autotools.rawInstall("INSTALL_ROOT=\"%s\"" % get.installDIR(), "install")

    shelltools.cd("../fpm")
    autotools.rawInstall("INSTALL_ROOT=\"%s\"" % get.installDIR(), "install-fpm")

    shelltools.cd("..")

    pisitools.insinto("/etc/php/apache2/", "php.ini-development", "php.ini")
    pisitools.insinto("/etc/php/cli/", "php.ini-development", "php.ini")

    pisitools.dosed("%s/etc/php/*/php.ini" % get.installDIR(), "(extension_dir = .*)", ";\\1")
    pisitools.dosed("%s/etc/php/*/php.ini" % get.installDIR(), r";include_path = \".:/php/includes\"",
                                                             "include_path = \".:/usr/share/php5/PEAR\"")

    pisitools.dodir("/etc/php/ext")
    pisitools.dodir("/etc/php/apache2/ext")
    pisitools.dodir("/etc/php/cli/ext")

    # Operations for php-zip package
    pisitools.dosym("/etc/php/ext/10-php-zip.ini", "/etc/php/cli/ext/10-php-zip.ini")

    # Operations for php-imap package
    pisitools.dosym("/etc/php/ext/11-php-imap.ini", "/etc/php/cli/ext/11-php-imap.ini")
    pisitools.dosym("/etc/php/ext/11-php-imap.ini", "/etc/php/apache2/ext/11-php-imap.ini")

    # Move /var/run to run
    pisitools.domove("/var/run", "/")

    pisitools.remove("/etc/php-fpm.conf.default")

    pisitools.dodir("/var/log/php-fpm/")


code:
from comar.service import *
import os

serviceType = "server"
serviceDesc = _({"en": "The PHP FastCGI Process Manager",
                 "tr": "The PHP FastCGI Süreç Yöneticisi"})

PIDFILE = "/run/php-fpm.pid"
CONFIG = "/etc/php/ext/php-fpm.conf"

@synchronized
def start():
    startService(command="/usr/sbin/php-fpm",
                 args="-D -y %s" % CONFIG,
                 pidfile=PIDFILE,
                 donotify=True)

@synchronized
def stop():
    stopService(pidfile=PIDFILE,
                donotify=True)

    try:
        os.unlink(PIDFILE)
    except OSError:
        pass

def status():
    return isServiceRunning(PIDFILE)


code:
; Comment the following line to disable php-zip extension
extension = zip.so


code:
; Comment the following line to disable php-imap extension
extension = imap.so


code:
LoadModule php5_module    modules/libphp5.so

AddHandler php5-script .php

# Set it to handle the files
<IfModule mod_mime.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .phtml
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php5
    AddType application/x-httpd-php-source .phps
</IfModule>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php index.phtml


code:
LoadModule php7_module    modules/libphp7.so

AddHandler php7-script .php

# Set it to handle the files
<IfModule mod_mime.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .phtml
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php5
    AddType application/x-httpd-php-source .phps
</IfModule>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php index.phtml


code:
diff -u --recursive php-5.6.6-vanilla/configure.in php-5.6.6/configure.in
--- php-5.6.6-vanilla/configure.in	2015-02-26 22:10:51.865487530 -0500
+++ php-5.6.6/configure.in	2015-02-26 22:29:59.043102135 -0500
@@ -453,7 +453,10 @@
 PHP_CHECK_FUNC(gethostbyaddr, nsl)
 PHP_CHECK_FUNC(yp_get_default_domain, nsl)

-PHP_CHECK_FUNC(dlopen, dl)
+PHP_ADD_LIBRARY(dl)
+PHP_DEF_HAVE(dlopen)
+PHP_DEF_HAVE(libdl)
+ac_cv_func_dlopen=yes
 if test "$ac_cv_func_dlopen" = "yes"; then
   AC_DEFINE(HAVE_LIBDL, 1, [ ])
 fi
diff -u --recursive php-5.6.6-vanilla/ext/fileinfo/config.m4 php-5.6.6/ext/fileinfo/config.m4
--- php-5.6.6-vanilla/ext/fileinfo/config.m4	2015-02-26 22:10:51.639487135 -0500
+++ php-5.6.6/ext/fileinfo/config.m4	2015-02-26 22:22:47.645609128 -0500
@@ -46,6 +46,10 @@
     AC_MSG_RESULT(no)
     AC_MSG_NOTICE(using libmagic strcasestr implementation)
     libmagic_sources="$libmagic_sources libmagic/strcasestr.c"
+  ],[
+    dnl cross-compiling; assume not present
+    AC_MSG_NOTICE(using libmagic strcasestr implementation)
+    libmagic_sources="$libmagic_sources libmagic/strcasestr.c"
   ])

   PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic)
diff -u --recursive php-5.6.6-vanilla/ext/opcache/config.m4 php-5.6.6/ext/opcache/config.m4
--- php-5.6.6-vanilla/ext/opcache/config.m4	2015-02-26 22:10:51.790487399 -0500
+++ php-5.6.6/ext/opcache/config.m4	2015-02-26 22:34:19.240414394 -0500
@@ -341,7 +341,14 @@
 	flock_type=linux
     AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type])
     AC_MSG_RESULT("yes")
-], AC_MSG_RESULT("no") )
+], [
+    AC_MSG_RESULT("no")
+], [
+    dnl cross-compiling; assume Linux
+	flock_type=linux
+    AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type])
+    AC_MSG_RESULT("yes")
+])

 AC_MSG_CHECKING("whether flock struct is BSD ordered")
 AC_TRY_RUN([
@@ -357,7 +364,12 @@
 	flock_type=bsd
     AC_DEFINE([HAVE_FLOCK_BSD], [], [Struct flock is BSD-type])
     AC_MSG_RESULT("yes")
-], AC_MSG_RESULT("no") )
+], [
+    AC_MSG_RESULT("no")
+], [
+    dnl cross-compiling; assume Linux
+    AC_MSG_RESULT("no")
+])

 if test "$flock_type" == "unknown"; then
 	AC_MSG_ERROR([Don't know how to define struct flock on this system[,] set --enable-opcache=no])


code:
Description: Disable configure parameters on phpinfo() output
 .
 Patch needs to be discussed with upstream and the issues that lead to
 its addition re-checked.  Quoting changelog entry:
 .
 Add [...], which disables the display of our "Configure Command" in
 phpinfo(), which was the source of many bogus bug reports over the
 years, due to people misinterpreting its meaning.
Origin: vendor
Forwarded: no
Last-Update: 2010-01-18

--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -704,7 +704,7 @@ PHPAPI void php_print_info(int flag TSRM
 #ifdef ARCHITECTURE
 		php_info_print_table_row(2, "Architecture", ARCHITECTURE);
 #endif
-#ifdef CONFIGURE_COMMAND
+#if 0
 		php_info_print_table_row(2, "Configure Command", CONFIGURE_COMMAND );
 #endif

--- a/ext/standard/tests/general_functions/phpinfo.phpt
+++ b/ext/standard/tests/general_functions/phpinfo.phpt
@@ -20,7 +20,6 @@ PHP Version => %s

 System => %s
 Build Date => %s%a
-Configure Command => %s
 Server API => Command Line Interface
 Virtual Directory Support => %s
 Configuration File (php.ini) Path => %s


code:
--- php-5.2.14.orig/ext/zip/php_zip.c	2011-01-14 16:12:17.886000067 +0200
+++ php-5.2.14/ext/zip/php_zip.c	2011-01-14 16:14:50.233000067 +0200
@@ -1954,6 +1954,9 @@

 	PHP_ZIP_STAT_INDEX(intern, index, 0, sb);
 	comment = zip_get_file_comment(intern, index, &comment_len, (int)flags);
+   if(comment==NULL) {
+       RETURN_FALSE;
+   }
 	RETURN_STRINGL((char *)comment, (long)comment_len, 1);
 }
 /* }}} */


code:
--- php-5.2.14.orig/ext/standard/rand.c	2011-02-07 14:44:55.975000003 +0200
+++ php-5.2.14/ext/standard/rand.c	2011-02-07 16:24:24.017000004 +0200
@@ -322,6 +322,11 @@
 		php_mt_srand(GENERATE_SEED() TSRMLS_CC);
 	}

+    if (max < min) {
+        php_error_docref(NULL TSRMLS_CC, E_WARNING, "max(%d) is smaller than min(%d)", max, min);
+        RETURN_FALSE;
+    }
+
 	/*
 	 * Melo: hmms.. randomMT() returns 32 random bits...
 	 * Yet, the previous php_rand only returns 31 at most.