code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python3-six</Name>
        <Homepage>http://pypi.python.org/pypi/six/</Homepage>
        <Packager>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>app:console</IsA>
        <Summary>Python 2 and 3 compatibility utilities.</Summary>
        <Description>python-six provides simple utilities for wrapping over differences between Python 2 and Python 3.</Description>
        <Archive sha1sum="3647372a0e104e7b53bd477762392024e1083ac0" type="targz">https://pypi.python.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python3-devel</Dependency>
            <Dependency>python3-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python3-six</Name>
        <RuntimeDependencies>
            <Dependency>python3</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="6">
            <Date>2017-08-24</Date>
            <Version>1.11.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2017-08-22</Date>
            <Version>1.10.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2017-02-01</Date>
            <Version>1.10.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>1.9.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-06</Date>
            <Version>1.9.0</Version>
            <Comment>Rebuild</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2016-05-08</Date>
            <Version>1.9.0</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<PISI>
    <Source>
        <Name>python3-six</Name>
        <Summary xml:lang="tr">Python2 ve python3 uyumluluk programı.</Summary>
        <Description xml:lang="tr">python3-six, python2 ile python3 arasındaki farklılıkların aşılmasına yardımcı olan basit araçlar sağlar.</Description>
    </Source>
</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/copyleft/gpl.txt

from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools

def build():
    pythonmodules.compile(pyVer="3")

def install():
    pythonmodules.install(pyVer="3")

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


code:
<PISI>
    <Source>
        <Name>python3-websocket-client</Name>
        <Homepage>https://github.com/liris/websocket-client</Homepage>
        <Packager>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <IsA>app:console</IsA>
        WebSocket client library for Python
        <Description>websocket-client module is WebSocket client for python. This provide the low level APIs for WebSocket. All APIs are the synchronous functions.</Description>
        <Archive sha1sum="4d3e3d413aefe28864f8e8c416640c4a42c5a0d6" type="targz">https://github.com/liris/websocket-client/archive/v0.40.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency versionFrom="3.6.0">python3-devel</Dependency>
            <Dependency>python3-setuptools</Dependency>
        </BuildDependencies>
    </Source>
    <Package>
        <Name>python3-websocket-client</Name>
        WebSocket client library for Python
        <RuntimeDependencies>
            <Dependency versionFrom="3.6.0">python3</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <History>
        <Update release="3">
            <Date>2017-02-01</Date>
            <Version>0.40.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>0.37.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-06-06</Date>
            <Version>0.37.0</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</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 pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
import glob

def install():
    pythonmodules.install(pyVer = "3")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python3-youtube_dl</Name>
        <Homepage>http://rg3.github.io/youtube-dl</Homepage>
        <Packager>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <Icon>youtube_dl</Icon>
        <IsA>app:console</IsA>
        <Summary>Youtube Video Downloader</Summary>
        <Description>Youtube Video Downloader</Description>
        <Archive sha1sum="ab63291ad2c0afacbfd7ea550d8216acaff57036" type="targz">https://github.com/rg3/youtube-dl/releases/download/2017.01.31/youtube-dl-2017.01.31.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python3-setuptools</Dependency>
            <Dependency versionFrom="3.6.0">python3-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python3-youtube_dl</Name>
        <RuntimeDependencies>
            <Dependency versionFrom="3.6.0">python3</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/etc</Path>
            <Path fileType="data">/usr/lib/python3.6/site-packages</Path>
            <Path fileType="data">/usr/share/applications</Path>
            <Path fileType="data">/usr/share/man/man1</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-01</Date>
            <Version>2017.01.31</Version>
            <Comment>version bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-08-26</Date>
            <Version>2016.08.24.1</Version>
            <Comment>version bump</Comment>
            <Name>Metehan Özbek</Name>
            <Email>mthnzbk@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-08-06</Date>
            <Version>2016.08.06</Version>
            <Comment>version bump</Comment>
            <Name>Metehan Özbek</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-07-21</Date>
            <Version>2016.07.17</Version>
            <Comment>First release</Comment>
            <Name>Metehan Özbek</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>python3-youtube_dl</Name>
        <Summary xml:lang="tr">Youtube video indirici.</Summary>
        <Description xml:lang="tr">Youtube'dan video indirmeyi sağlayan bir uygulama.</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 pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

shelltools.export("PYTHONDONTWRITEBYTECODE", "1")

def build():
    pythonmodules.compile(pyVer="3")

def install():
    pythonmodules.install(pyVer="3")

    pisitools.dodoc("README*","PKG-INFO","MANIFEST*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM 'http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd'>
<PISI>
    <Source>
        <Name>python3-zappa</Name>
        <Homepage>https://github.com/Miserlou/Zappa</Homepage>
        <Packager>
            <Name>Ismet Sezer Simsek</Name>
            <Email>ismetsezer1996@gmail.com</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        <Summary>Zappa - Serverless Python</Summary>
        <Description>Server-less Python Web Services for AWS Lambda and API Gateway</Description>
        <Archive sha1sum="dae82fd04acc4425476f4c8c7f9a878da1a23b7c" type="targz">https://pypi.python.org/packages/ef/e6/9ce58a86924a320b213f082c7a9d2b5c15d71aeb2df7b5bfdcb0fecc20f3/zappa-0.43.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency versionFrom="3.6.0">python3-devel</Dependency>
            <Dependency versionFrom="19.6.1">python3-setuptools</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>python3-zappa</Name>
        <RuntimeDependencies>
            <Dependency versionFrom="3.6.0">python3</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-08-15</Date>
            <Version>0.43.2</Version>
            <Comment>First Release</Comment>
            <Name>Ismet Sezer Simsek</Name>
            <Email>ismetsezer1996@gmail.com</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/copyleft/gpl.txt

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

def setup():
    pisitools.flags.add("-fwrapv")

    pisitools.dosed("Lib/cgi.py","^#.* /usr/local/bin/python","#!/usr/bin/python")

    shelltools.unlinkDir("Modules/expat")
    shelltools.unlinkDir("Modules/zlib")
    shelltools.unlinkDir("Modules/_ctypes/darwin")
    shelltools.unlinkDir("Modules/_ctypes/libffi")
    shelltools.unlinkDir("Modules/_ctypes/libffi_msvc")
    shelltools.unlinkDir("Modules/_ctypes/libffi_osx")
    shelltools.unlinkDir("Modules/_decimal/libmpdec")

    autotools.rawConfigure("\
                            --prefix=/usr \
                            --enable-shared \
                            --with-threads \
                            --with-computed-gotos \
                            --enable-ipv6 \
                            --with-system-expat \
                            --with-dbmliborder=gdbm:ndbm \
                            --with-system-ffi \
                            --with-system-libmpdec \
                            --enable-loadable-sqlite-extensions \
                            --without-ensurepip")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.remove("/usr/bin/2to3")
    pisitools.dodoc("LICENSE", "README")


code:
diff --git a/Makefile.pre.in b/Makefile.pre.in
index ce2c0aa..7d6dcf7 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -60,7 +60,7 @@ INSTALL_DATA=	@INSTALL_DATA@
 # Shared libraries must be installed with executable mode on some systems;
 # rather than figuring out exactly which, we always give them executable mode.
 # Also, making them read-only seems to be a good idea...
-INSTALL_SHARED= ${INSTALL} -m 555
+INSTALL_SHARED= ${INSTALL} -m 755

 MKDIR_P=	@MKDIR_P@


code:
[Desktop Entry]
Encoding=UTF-8
Exec=idle3
Icon=idle3
Name=IDLE Integrated Development Environment
Name[tr]=IDLE3 Tümleşik Geliştirme Ortamı
StartupNotify=false
Terminal=false
Type=Application
Categories=Application;Development;
MimeType=application/x-python;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>python3</Name>
        <Homepage>http://www.python.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>custom</License>
        <PartOf>programming.language</PartOf>
        Next generation of the python high-level scripting language
        <Description>Next generation of the python high-level scripting language</Description>
        <Archive sha1sum="18ebf7d726782967d967dc00e3aa08b334fbdd5c" type="tarxz">https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz</Archive>
        <BuildDependencies>

            <Dependency>tcltk-devel</Dependency>
            <Dependency>tcl-devel</Dependency>
            <Dependency>xz-devel</Dependency>
            <Dependency>gdbm-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>expat-devel</Dependency>
            <Dependency>libffi-devel</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>readline-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">dont-make-libpython-readonly.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>python3</Name>
        <RuntimeDependencies>
            <Dependency>xz</Dependency>
            <Dependency>gdbm</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>expat</Dependency>
            <Dependency>libffi</Dependency>
            <Dependency>sqlite</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>readline</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable" permanent="0">/usr/bin/p*</Path>
            <Path fileType="executable" permanent="0">/usr/bin/2to3*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/a*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/c*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/d*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/e*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/h*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/imp*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/j*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib2*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/log*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/m*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/p*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/s*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/te*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/u*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/v*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/w*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/x*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/*.py</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/*.txt</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_a*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/a*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/b*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_b*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/c*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_c*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_d*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_e*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/f*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/g*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_g*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_h*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_j*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_l*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/m*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_m*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/n*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/o*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_o*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_p*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/p*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/r*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_r*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_s*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/s*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/te*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/_te*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/ti*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/u*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/x*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/lib-dynload/z*</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/__pycache__</Path>
            <Path fileType="library" permanent="0">/usr/lib/*.so</Path>
            <Path fileType="library" permanent="0">/usr/lib/libpython3.6m.so.1.0</Path>
            <Path fileType="man" permanent="0">/usr/share/man/man1/*</Path>
            <Path fileType="doc" permanent="0">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>python3-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">python3</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header" permanent="0">/usr/include/python3.6m/*</Path>
            <Path fileType="library" permanent="0">/usr/lib/pkgconfig/*</Path>
        </Files>
    </Package>

    <Package>
        <Name>python3-tk</Name>
        <IsA>library</IsA>
        <PartOf>programming.language.python</PartOf>
        Python modules for Tk
        <RuntimeDependencies>
            <Dependency release="current">python3</Dependency>
            <Dependency>tcl</Dependency>
            <Dependency>tcltk</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/python3*/tkinter</Path>
            <Path fileType="library">/usr/lib/python3*/lib-dynload/_tkinter.cpython-36m-x86_64-linux-gnu.so</Path>
            <Path fileType="library" permanent="0">/usr/lib/python3.6/turtledemo</Path>
        </Files>
    </Package>

    <Package>
        <Name>idle3</Name>
        <Icon>idle</Icon>
        <IsA>app:gui</IsA>
        <PartOf>programming.environment</PartOf>
        An Integrated Development Environment for Python
        <RuntimeDependencies>
            <Dependency>python3-tk</Dependency>
            <Dependency>python3</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/idle3*</Path>
            <Path fileType="library">/usr/lib/python*/idlelib</Path>
            <Path fileType="data">/usr/share/applications</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile permission="0644" target="/usr/share/pixmaps/idle3.png">python-logo.png</AdditionalFile>
            <AdditionalFile permission="0644" target="/usr/share/applications/idle3.desktop">idle.desktop</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-06-07</Date>
            <Version>3.6.0</Version>
            <Comment>Rebuild</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>3.4.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-08</Date>
            <Version>3.4.3</Version>
            <Comment>Rebuild.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-13</Date>
            <Version>3.4.3</Version>
            <Comment>First release</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<PISI>
    <Name>programming.language.ruby</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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

#WorkDir="ruby-%s" % get.srcVERSION().replace("_","-")

def setup():
    autotools.configure("--enable-shared \
                         --enable-pthread \
                         --disable-rpath \
                         --with-sitedir=/usr/lib/ruby/site_ruby")

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ruby</Name>
        <Homepage>http://www.ruby-lang.org/en/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>Ruby</License>
        <IsA>app:console</IsA>
        An object-oriented scripting language
        <Description>Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.</Description>
        <Archive sha1sum="944d2588308391b20a89642472454d1dfe7b2360" type="tarbz2">ftp://ftp.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>tcltk-devel</Dependency>
            <Dependency>gmp-devel</Dependency>
            <Dependency>tcl-devel</Dependency>
            <Dependency>gdbm-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libffi-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>libyaml-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>ruby</Name>
        <RuntimeDependencies>
            <Dependency>gmp</Dependency>
            <Dependency>tcl</Dependency>
            <Dependency>gdbm</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>tcltk</Dependency>
            <Dependency>libffi</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libyaml</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib/ruby/2.4.0/</Path>
            <Path fileType="library">/usr/lib/ruby/site_ruby/</Path>
            <Path fileType="library">/usr/lib/ruby/vendor_ruby/</Path>
            <Path fileType="library">/usr/lib/ruby/libruby-static.a</Path>
            <Path fileType="library">/usr/lib/libruby.so.2.4</Path>
            <Path fileType="library">/usr/lib/libruby.so.2.4.0</Path>
            <Path fileType="library">/usr/lib/libruby-static.a</Path>
            <Path fileType="library">/usr/lib/libruby.so</Path>
            <Path fileType="doc">/usr/share/ri</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>rubygems</Name>
        rubygems, The Ruby standard for packaging ruby libraries
        <RuntimeDependencies>
            <Dependency>ruby</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/gem</Path>
            <Path fileType="library">/usr/lib/ruby/gems</Path>
            <Path fileType="data">/usr/share/ri/2.4.0/system/Gem</Path>
        </Files>
    </Package>

    <Package>
        <Name>ruby-devel</Name>
        ruby için geliştirme dosyaları
        <RuntimeDependencies>
            <Dependency release="current">ruby</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="header">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
          <Date>2017-02-02</Date>
          <Version>2.4.0</Version>
          <Comment>Release Bump</Comment>
          <Name>Muhammet Dilmaç</Name>
          <Email>m.dilmac@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.2.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-04</Date>
            <Version>2.2.2</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>ruby</Name>
        Nesneye dayalı bir dil
        <Description xml:lang="tr">Ruby, basitlik ve üretkenliğe odaklanan açık kaynaklı, dinamik bir betik dilidir. Okuması ve yazması kolay, şık bir sözdizime sahiptir.</Description>
        <Description xml:lang="fr">Ruby est un langage de programmation dynamique, open source mettant l'accent sur la simplicité et la productivité. Il a une syntaxe élégante qui est naturelle à lire et facile à écrire.</Description>
        <Description xml:lang="es">Ruby es un lenguaje dinámico, de código abierto, y con enfoque en simplicidad y productividad. Tiene una sintaxis elegante que permite leer naturalmente y escribirlo de manera fácil.</Description>
    </Source>

    <Package>
        <Name>ruby-devel</Name>
        ruby 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 pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

def build():
    shelltools.system("python ./x.py --verbose")

def install():
    pisitools.insinto("/", "build/x86_64-unknown-linux-gnu/stage0/etc")
    pisitools.insinto("/usr", "build/x86_64-unknown-linux-gnu/stage0/bin")
    pisitools.insinto("/usr", "build/x86_64-unknown-linux-gnu/stage0/lib")
    pisitools.insinto("/usr", "build/x86_64-unknown-linux-gnu/stage0/share")
    #pisitools.insinto("/usr", "build/x86_64-unknown-linux-gnu/stage0/manifest.in")

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


code:
From 5dbc650a60ddb230f59e5a18ffd298b033566945 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= <johannes@kyriasis.com>
Date: Thu, 20 Jul 2017 23:07:01 +0200
Subject: [PATCH] librustc_llvm/build: Force link against libffi
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

`llvm-config --libs` doesn't output libffi in many cases.  Fixing it
turned out to take quite a bit of effort, so force libffi linking in
here for now.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
---
 src/librustc_llvm/build.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs
index 3f0f536960..7dc0c40c9d 100644
--- a/src/librustc_llvm/build.rs
+++ b/src/librustc_llvm/build.rs
@@ -220,6 +220,7 @@ fn main() {
         };
         println!("cargo:rustc-link-lib={}={}", kind, name);
     }
+    println!("cargo:rustc-link-lib=dylib=ffi");

     // LLVM ldflags
     //
--
2.13.3


code:
[build]
python = "python2.7"
extended = true
# Verbosity level: 0 == not verbose, 1 == verbose, 2 == very verbose
verbose = 0
# Build the sanitizer runtimes
#sanitizers = false

[install]
prefix = "/usr"

[rust]
codegen-units = 0
debuginfo = true

# Whether or not line number debug information is emitted
#debuginfo-lines = false

channel = "stable"

[target.x86_64-unknown-linux-gnu]
llvm-config = "/usr/bin/llvm-config"

[target.i686-unknown-linux-gnu]
llvm-config = "/usr/bin/llvm-config"


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>rust</Name>
        <Homepage>https://www.rust-lang.org/en-US/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>app</IsA>
        <Summary>Systems programming language focused on safety, speed and concurrency</Summary>
        <Description>Systems programming language focused on safety, speed and concurrency</Description>
        <Archive sha1sum="f835d72bc26ee6f25f6e5d6783b424fc9b904c9e" type="targz">https://static.rust-lang.org/dist/rustc-1.21.0-src.tar.gz</Archive>
        <AdditionalFiles>
            <AdditionalFile target="config.toml">bootstrap-config.toml</AdditionalFile>
        </AdditionalFiles>
        <Patches>
            <Patch>0001-librustc_llvm-build-Force-link-against-libffi.patch</Patch>
        </Patches>

    </Source>

    <Package>
        <Name>rust</Name>

        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>

        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="config">/etc</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/zsh</Path>
        </Files>

    </Package>

    <History>
        <Update release="2">
            <Date>2017-11-13</Date>
            <Version>1.21.0</Version>
            <Comment>Version Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2017-09-26</Date>
            <Version>1.20.0</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>Lynx</Name>
        Lynx is the text web browser.
        Przeglądarka WWW z interfejsem tekstowym
        <Description xml:lang="en">This is the top level page for the Lynx software distribution site hosted by the Internet Software Consortium.</Description>
        <Description xml:lang="pl">Lynx – przeglądarka internetowa pracująca w trybie tekstowym.</Description>
    </Source>
</PISI>


code:
<PISI>
    <Name>programming.language.tcl</Name>
</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 autotools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def setup():
    shelltools.unlinkDir("%s/tcl8.6.6/pkgs/sqlite3.13.0" % get.workDIR())
    shelltools.cd("unix")

    autotools.autoreconf("-fi")
    autotools.configure("--with-encoding=utf-8 \
                         --enable-threads \
                         --enable-man-compression=gzip \
                         --mandir=/usr/share/man \
                         --enable-man-symlinks \
                         --enable-shared \
                         --enable-64bit")

def build():
    shelltools.cd("unix")
    autotools.make()

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

    # Collect private headers, 3rd party apps like Tile depends on this
    shelltools.cd("..")
    pisitools.dodir("/usr/include/tcl-private/generic")
    pisitools.dodir("/usr/include/tcl-private/unix")
    shelltools.copy("unix/*.h","%s/usr/include/tcl-private/unix" % get.installDIR())
    shelltools.copy("generic/*.h", "%s/usr/include/tcl-private/generic" % get.installDIR())

    # Remove duplicated headers
    pisitools.remove("/usr/include/tcl-private/generic/tcl.h")
    pisitools.remove("/usr/include/tcl-private/generic/tclDecls.h")
    pisitools.remove("/usr/include/tcl-private/generic/tclPlatDecls.h")

    # Remove man file sqlite paket çakışması için silindi.
    #pisitools.remove("/usr/share/man/mann/sqlite3.n")

    # Expect package needs these symlinks
    pisitools.dosym("/usr/include/tcl-private/unix/tclUnixPort.h","/usr/include/tcl-private/generic/tclUnixPort.h")
    pisitools.dosym("/usr/include/tcl-private/unix/tclUnixThrd.h","/usr/include/tcl-private/generic/tclUnixThrd.h")

    # Remove tmp path from tclConfig.sh
    pisitools.dosed("%s/usr/lib/tclConfig.sh" % get.installDIR(),"%s/unix" % get.curDIR() ,"/usr/lib/")
    pisitools.dosed("%s/usr/lib/tclConfig.sh" % get.installDIR(),"%s" % get.curDIR() ,"/usr/include/tcl-private")

    # Some apps need compat headers
    pisitools.dodir("/usr/include/tcl-private/compat")
    shelltools.copy("compat/*.h", "%s/usr/include/tcl-private/compat" % get.installDIR())

    pisitools.dosym("/usr/bin/tclsh8.6","/usr/bin/tclsh")

    pisitools.dodoc("ChangeLog","changes","license.terms","README")


code:
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 194cf90..76773f3 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1415,12 +1415,12 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
 	    # get rid of the warnings.
 	    #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"

-	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS} -fPIC -Wl,-soname,${@}'
 	    DL_OBJS="tclLoadDl.o"
 	    DL_LIBS="-ldl"
 	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
 	    AS_IF([test $doRpath = yes], [
-		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'])
+		CC_SEARCH_FLAGS=''])
 	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
 	    AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"])
 	    AS_IF([test $do64bit = yes], [


code:
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 380284f..7bb5eb9 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -3160,7 +3160,7 @@ MODULE_SCOPE void	TclClockInit(Tcl_Interp *interp);
 MODULE_SCOPE int	TclClockOldscanObjCmd(
 			    ClientData clientData, Tcl_Interp *interp,
 			    int objc, Tcl_Obj *const objv[]);
-MODULE_SCOPE int	Tcl_CloseObjCmd(ClientData clientData,
+extern int	Tcl_CloseObjCmd(ClientData clientData,
 			    Tcl_Interp *interp, int objc,
 			    Tcl_Obj *const objv[]);
 MODULE_SCOPE int	Tcl_ConcatObjCmd(ClientData clientData,
@@ -3343,7 +3343,7 @@ MODULE_SCOPE int	Tcl_RenameObjCmd(ClientData clientData,
 MODULE_SCOPE int	Tcl_RepresentationCmd(ClientData clientData,
 			    Tcl_Interp *interp, int objc,
 			    Tcl_Obj *const objv[]);
-MODULE_SCOPE int	Tcl_ReturnObjCmd(ClientData clientData,
+extern int	Tcl_ReturnObjCmd(ClientData clientData,
 			    Tcl_Interp *interp, int objc,
 			    Tcl_Obj *const objv[]);
 MODULE_SCOPE int	Tcl_ScanObjCmd(ClientData clientData,
diff --git a/generic/tclPort.h b/generic/tclPort.h
index 12a60db..d817154 100644
--- a/generic/tclPort.h
+++ b/generic/tclPort.h
@@ -20,7 +20,7 @@
 #if defined(_WIN32)
 #   include "tclWinPort.h"
 #else
-#   include "tclUnixPort.h"
+#   include "../unix/tclUnixPort.h"
 #endif
 #include "tcl.h"


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>tcl</Name>
        <Homepage>http://www.tcl.tk</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>app:console</IsA>
        Tcl programming language
        <Description>Tcl provides a powerful platform for creating integration applications that tie together diverse applications, protocols, devices, and frameworks.</Description>
        <Archive sha1sum="169dd1589cad62c9fac4257c113db245da502cd0" type="targz">mirrors://sourceforge/tcl/tcl8.6.6-src.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>tcl</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/lib/tcl8.6</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>tcl-devel</Name>
        Development files for tcl
        <RuntimeDependencies>
            <Dependency release="current">tcl</Dependency>
            <Dependency>zlib-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/*.a</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/lib/tclConfig.sh</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>
    <Package>
        <Name>sqlite-tcl</Name>
        files for sqlite-tcl
        <RuntimeDependencies>
            <Dependency release="current">tcl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/sqlite3.13.0/libsqlite*</Path>
            <Path fileType="data">/usr/lib/tcl8/8.6/tdbc/sqlite3-1.0.4.tm</Path>
            <Path fileType="man">/usr/share/man/mann/tdbc_sqlite3.n</Path>
            <Path fileType="man">/usr/share/man/mann/sqlite3.n</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-26</Date>
            <Version>8.6.6</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>8.6.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-06-11</Date>
            <Version>8.6.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>tcl</Name>
        Tcl programlama dili
        <Description xml:lang="tr">Tcl, çeşitli uygulamalar geliştirmek için kullanılabilen bir programlama dilidir. </Description>
        <Description xml:lang="es">Tcl provee una plataforma potente para crear aplicaciones de integración de diversos aplicaciones, protocolos, dispositivos y frameworks</Description>
    </Source>

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

WorkDir="tk%s" % get.srcVERSION()

def setup():
    shelltools.cd("unix")
    autotools.autoconf()
    autotools.configure("--enable-threads \
                         --enable-man-compression=gzip \
                         --enable-man-symlinks \
                         --enable-64bit \
                         --with-x \
                         --enable-xft")

def build():
    autotools.make("-C unix")

def install():
    shelltools.system("make -C unix DESTDIR=%s install" % get.installDIR())

    # Collect private headers, 3rd party apps like Tile depends on this
    pisitools.dodir("/usr/include/tk-private/generic")
    pisitools.dodir("/usr/include/tk-private/unix")
    shelltools.copy("unix/*.h", "%s/usr/include/tk-private/unix" % get.installDIR())
    shelltools.copy("generic/*.h", "%s/usr/include/tk-private/generic" % get.installDIR())

    # Remove duplicated headers
    pisitools.remove("/usr/include/tk-private/generic/tk.h")
    pisitools.remove("/usr/include/tk-private/generic/tkDecls.h")
    pisitools.remove("/usr/include/tk-private/generic/tkPlatDecls.h")

    # Remove tmp path from tclConfig.sh
    pisitools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(), "%s/unix" % get.curDIR(), "/usr/lib/")
    pisitools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(), get.curDIR(), "/usr/include/tk-private")

    pisitools.dosym("/usr/bin/wish8.6", "/usr/bin/wish")

    pisitools.dodoc("ChangeLog", "changes", "license.terms", "README")


code:
diff -Nuar tk8.5.10.orig/unix/tcl.m4 tk8.5.10/unix/tcl.m4
--- tk8.5.10.orig/unix/tcl.m4	2011-08-01 14:24:06.823000004 +0300
+++ tk8.5.10/unix/tcl.m4	2011-08-01 14:43:01.760000005 +0300
@@ -1399,12 +1399,12 @@
 	    # get rid of the warnings.
 	    #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"

-	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS} -Wl,-soname,${@}'
 	    DL_OBJS="tclLoadDl.o"
 	    DL_LIBS="-ldl"
 	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
 	    AS_IF([test $doRpath = yes], [
-		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'])
+		CC_SEARCH_FLAGS=''])
 	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
 	    AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"])
 	    AS_IF([test $do64bit = yes], [
@@ -1431,7 +1431,7 @@
 	    SHLIB_CFLAGS="-fPIC"
 	    SHLIB_SUFFIX=".so"

-	    SHLIB_LD='${CC} -shared'
+	    SHLIB_LD='${CC} ${CFLAGS} -shared'
 	    DL_OBJS=""
 	    DL_LIBS="-ldl"
 	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"


code:
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 194cf90..c470e36 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1415,12 +1415,12 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
 	    # get rid of the warnings.
 	    #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"

-	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS} -Wl,-soname,${@}'
 	    DL_OBJS="tclLoadDl.o"
 	    DL_LIBS="-ldl"
 	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
 	    AS_IF([test $doRpath = yes], [
-		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'])
+		CC_SEARCH_FLAGS=''])
 	    LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
 	    AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"])
 	    AS_IF([test $do64bit = yes], [


code:
diff --git a/unix/configure.in b/unix/configure.in
index e7bf023..7d12f41 100755
--- a/unix/configure.in
+++ b/unix/configure.in
@@ -485,8 +485,8 @@ if test $tk_aqua = no; then
 	XFT_LIBS=`xft-config --libs 2>/dev/null` || found_xft="no"
 	if test "$found_xft" = "no" ; then
 	    found_xft=yes
-	    XFT_CFLAGS=`pkg-config --cflags xft 2>/dev/null` || found_xft="no"
-	    XFT_LIBS=`pkg-config --libs xft 2>/dev/null` || found_xft="no"
+	    XFT_CFLAGS=`pkg-config --cflags xft freetype2 2>/dev/null` || found_xft="no"
+	    XFT_LIBS=`pkg-config --libs xft freetype2 2>/dev/null` || found_xft="no"
 	fi
 	AC_MSG_RESULT([$found_xft])
 	dnl make sure that compiling against Xft header file doesn't bomb


code:
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 3914940..a69df0e 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -743,7 +743,7 @@ install-binaries: $(TK_LIB_FILE) $(TK_STUB_LIB_FILE) ${WISH_EXE}
 	    fi
 	@echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
 	@@INSTALL_LIB@
-	@chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
+	@chmod 755 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
 	@if test -f "tk${MAJOR_VERSION}${MINOR_VERSION}.dll"; then \
 	    $(INSTALL_LIBRARY) "tk${MAJOR_VERSION}${MINOR_VERSION}.dll" "$(DLL_INSTALL_DIR)";\
 	    chmod 555 "$(DLL_INSTALL_DIR)/tk${MAJOR_VERSION}${MINOR_VERSION}.dll";\


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>tcltk</Name>
        <Homepage>http://www.tcl.tk</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>library</IsA>
        An X11 toolkit implemented with the Tcl scripting language
        <Description>Tk is an X Windows widget set designed to work closely with the tcl scripting language. It allows you to write simple programs with full featured GUIs in only a little more time then it takes to write a text based interface.</Description>
        <Archive sha1sum="34d546496c05014349cf5edad6696c125ad4f9ea" type="targz">mirrors://sourceforge/tcl/tk8.6.6-src.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>tcl-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libXft-devel</Dependency>

            <Dependency>fontconfig-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">tk-8.6.1-conf.patch</Patch>
            <Patch level="1">tk-8.6.1-fix-xft.patch</Patch>
            <Patch level="1">tk-8.6.1-make.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>tcltk</Name>
        <RuntimeDependencies>
            <Dependency>tcl</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libXft</Dependency>

            <Dependency>fontconfig</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/lib/tk8.5</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>tcltk-devel</Name>
        Development files for tcltk
        <RuntimeDependencies>
            <Dependency release="current">tcltk</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>tcl-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/*.a</Path>
            <Path fileType="data">/usr/lib/tkConfig.sh</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-31</Date>
            <Version>8.6.6</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>8.6.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-12-14</Date>
            <Version>8.6.3</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>tcltk</Name>
        Tcl betik dili ile yazılmış X11 araç ve kitaplıkları
        Tk est une boîte à outils X11 implémentée avec le langage de script Tcl.
        <Description xml:lang="tr">Tk, tcl betik dili ile birlikte kullanılması için tasarlanmış bir X Windows araç setidir. Metin tabanlı arayüzlere oranla daha kısa sürede tam özellikli grafik arayüzlere sahip basit programlar yazmanızı sağlar.</Description>
    </Source>

    <Package>
        <Name>tcltk-devel</Name>
        tcltk 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("-vfi")
    autotools.configure("--enable-vapigen \
                         --with-pic")

def build():
    autotools.make()

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

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

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


code:
autocmd BufNewFile,BufRead *.vala set ft=vala
autocmd BufNewFile,BufRead *.vapi set ft=vala


code:
" Vim syntax file
" Language: Vala
" Maintainers: Emmanuele Bassi <ebassi@gnome.org>
"              Hans Vercammen <hveso3@gmail.com>
"              pancake <pancake@nopcode.org>
" Filenames: *.vala *.vapi
"
" REFERENCES:
" [1] http://live.gnome.org/Vala
"
" TODO: Possibly when reaching vala 1.0 release
"         - validate code attributes
"         - better error checking for known errors
"         - full support for valadoc

if exists("b:current_syntax")
    finish
endif

let s:vala_cpo_save = &cpo
set cpo&vim

" Types
syn keyword valaType                 bool char double float size_t ssize_t string unichar void
syn keyword valaType                 int int8 int16 int32 int64 long short
syn keyword valaType                 uint uint8 uint16 uint32 uint64 ulong ushort
" Storage keyword
syn keyword valaStorage              class delegate enum errordomain interface namespace struct
" repeat / condition / label
syn keyword valaRepeat               break continue do for foreach return while
syn keyword valaConditional          else if switch assert
" User Labels
syn keyword valaLabel                case default

" Modifiers
syn keyword valaModifier             abstract const dynamic ensures extern inline internal override
syn keyword valaModifier             private protected public requires signal static virtual volatile weak
syn keyword valaModifier             async owned unowned
" Constants
syn keyword valaConstant             false null true
" Exceptions
syn keyword valaException	     try catch finally throw
" Unspecified Statements
syn keyword valaUnspecifiedStatement as base construct delete get in is lock new out params ref sizeof set this throws typeof using value var yield

" Comments
syn cluster valaCommentGroup contains=valaTodo
syn keyword valaTodo contained TODO FIXME XXX NOTE

" valadoc Comments (ported from javadoc comments in java.vim)
" TODO: need to verify valadoc syntax
if !exists("vala_ignore_valadoc")
  syn cluster valaDocCommentGroup contains=valaDocTags,valaDocSeeTag
  syn region valaDocTags          contained start="{@\(link\|linkplain\|inherit[Dd]oc\|doc[rR]oot\|value\)" end="}"
  syn match valaDocTags           contained "@\(param\|exception\|throws\|since\)\s\+\S\+" contains=valaDocParam
  syn match valaDocParam          contained "\s\S\+"
  syn match valaDocTags           contained "@\(author\|brief\|version\|return\|deprecated\)\>"
  syn region valaDocSeeTag        contained matchgroup=valaDocTags start="@see\s\+" matchgroup=NONE end="\_."re=e-1 contains=valaDocSeeTagParam
  syn match valaDocSeeTagParam    contained @"\_[^"]\+"\|<a\s\+\_.\{-}</a>\|\(\k\|\.\)*\(#\k\+\((\_[^)]\+)\)\=\)\=@ extend
endif

" Comment Strings (ported from c.vim)
if exists("vala_comment_strings")
  syn match valaCommentSkip          contained "^\s*\*\($\|\s\+\)"
  syn region valaCommentString       contained start=+L\=\\\@<!"+ skip=+\\\\\|\\"+ end=+"+ end=+\*/+me=s-1 contains=valaSpecialChar,valaCommentSkip
  syn region valaComment2String      contained start=+L\=\\\@<!"+ skip=+\\\\\|\\"+ end=+"+ end="$" contains=valaSpecialChar
  syn cluster valaCommentStringGroup contains=valaCommentString,valaCharacter,valaNumber

  syn region valaCommentL            start="//" end="$" keepend contains=@valaCommentGroup,valaComment2String,valaCharacter,valaNumber,valaSpaceError,@Spell
  syn region valaComment             matchgroup=valaCommentStart start="/\*" end="\*/" contains=@valaCommentGroup,@valaCommentStringGroup,valaCommentStartError,valaSpaceError,@Spell extend
  if !exists("vala_ignore_valadoc")
    syn region valaDocComment        matchgroup=valaCommentStart start="/\*\*" end="\*/" keepend contains=@valaCommentGroup,@valaDocCommentGroup,@valaCommentStringGroup,valaCommentStartError,valaSpaceError,@Spell
  endif
else
  syn region valaCommentL start="//" end="$" keepend contains=@valaCommentGroup,valaSpaceError,@Spell
  syn region valaComment matchgroup=valaCommentStart start="/\*" end="\*/" contains=@valaCommentGroup,valaCommentStartError,valaSpaceError,@Spell
  if !exists("vala_ignore_valadoc")
    syn region valaDocComment 		matchgroup=valaCommentStart start="/\*\*" end="\*/" keepend contains=@valaCommentGroup,@valaDocCommentGroup,valaCommentStartError,valaSpaceError,@Spell
  endif
endif
" match comment errors
syntax match valaCommentError display "\*/"
syntax match valaCommentStartError display "/\*"me=e-1 contained
" match the special comment /**/
syn match valaComment "/\*\*/"

" Vala Code Attributes
syn region valaAttribute start="^\s*\[" end="\]$" contains=valaComment,valaString keepend
syn region valaAttribute start="\[CCode" end="\]" contains=valaComment,valaString

" Avoid escaped keyword matching
syn match valaUserContent display "@\I*"

" Strings and constants
syn match valaSpecialError     contained "\\."
syn match valaSpecialCharError contained "[^']"
syn match valaSpecialChar      contained +\\["\\'0abfnrtvx]+
syn region valaString          start=+"+ end=+"+ end=+$+ contains=valaSpecialChar,valaSpecialError,valaUnicodeNumber,@Spell
syn region valaVerbatimString  start=+"""+ end=+"""+ contains=@Spell
syn match valaUnicodeNumber    +\\\(u\x\{4}\|U\x\{8}\)+ contained contains=valaUnicodeSpecifier
syn match valaUnicodeSpecifier +\\[uU]+ contained
syn match valaCharacter        "'[^']*'" contains=valaSpecialChar,valaSpecialCharError
syn match valaCharacter        "'\\''" contains=valaSpecialChar
syn match valaCharacter        "'[^\\]'"
syn match valaNumber           display "\<\(0[0-7]*\|0[xX]\x\+\|\d\+\)[lL]\=\>"
syn match valaNumber           display "\(\<\d\+\.\d*\|\.\d\+\)\([eE][-+]\=\d\+\)\=[fFdD]\="
syn match valaNumber           display "\<\d\+[eE][-+]\=\d\+[fFdD]\=\>"
syn match valaNumber           display "\<\d\+\([eE][-+]\=\d\+\)\=[fFdD]\>"

" when wanted, highlight trailing white space
if exists("vala_space_errors")
  if !exists("vala_no_trail_space_error")
    syn match valaSpaceError display excludenl "\s\+$"
  endif
  if !exists("vala_no_tab_space_error")
    syn match valaSpaceError display " \+\t"me=e-1
  endif
endif

" when wanted, set minimum lines for comment syntax syncing
if exists("vala_minlines")
  let b:vala_minlines = vala_minlines
else
  let b:vala_minlines = 50
endif
exec "syn sync ccomment valaComment minlines=" . b:vala_minlines

" The default highlighting.
hi def link valaType                 Type
hi def link valaStorage              StorageClass
hi def link valaRepeat               Repeat
hi def link valaConditional          Conditional
hi def link valaLabel                Label
hi def link valaModifier             StorageClass
hi def link valaConstant             Constant
hi def link valaException            Exception
hi def link valaUnspecifiedStatement Statement
hi def link valaUnspecifiedKeyword   Keyword
hi def link valaContextualStatement  Statement

hi def link valaCommentError      Error
hi def link valaCommentStartError Error
hi def link valaSpecialError      Error
hi def link valaSpecialCharError  Error
hi def link valaSpaceError        Error

hi def link valaTodo           Todo
hi def link valaCommentL       valaComment
hi def link valaCommentStart   valaComment
hi def link valaCommentSkip    valaComment
hi def link valaComment        Comment
hi def link valaDocComment     Comment
hi def link valaDocTags        Special
hi def link valaDocParam       Function
hi def link valaDocSeeTagParam Function
hi def link valaAttribute      PreCondit

hi def link valaCommentString    valaString
hi def link valaComment2String   valaString
hi def link valaString           String
hi def link valaVerbatimString   String
hi def link valaCharacter        Character
hi def link valaSpecialChar      SpecialChar
hi def link valaNumber           Number
hi def link valaUnicodeNumber    SpecialChar
hi def link valaUnicodeSpecifier SpecialChar

let b:current_syntax = "vala"

let &cpo = s:vala_cpo_save
unlet s:vala_cpo_save


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>vala</Name>
        <Homepage>http://live.gnome.org/Vala</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2+</License>
        <License>BSD</License>
        A modern programming language for GNOME
        <Description>Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C.</Description>
        <Archive sha1sum="c0d7e742e60d601e42acabda9d8b722d1a244802" type="tarxz">mirrors://gnome/vala/0.34/vala-0.34.4.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>glib2-devel</Dependency>
	    <Dependency>gobject-introspection-devel</Dependency>
            <Dependency>libxslt</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>vala</Name>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <RuntimeDependencies>
            <Dependency>glib2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/lib/vala</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/vala-*/vapi</Path>
            <Path fileType="data">/usr/share/vim/vimfiles</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/vim/vimfiles/syntax/vala.vim">vim/vala.syntax</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/vim/vimfiles/ftdetect/vala.vim">vim/vala.ftdetect</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>vala-docs</Name>
        <IsA>data:doc</IsA>
        GNOME devhelp documentation for Vala
        <Files>
            <Path fileType="doc">/usr/share/devhelp</Path>
        </Files>
    </Package>

    <Package>
        <Name>vala-devel</Name>
        Development files for vala
        <RuntimeDependencies>
            <Dependency release="current">vala</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/share/pkgconfig</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
            <Path fileType="data">/usr/share/vala/Makefile.vapigen</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-19</Date>
            <Version>0.34.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.28.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-05-22</Date>
            <Version>0.28.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>vala</Name>
        GNOME için modern bir programlama dili
        Kompilator języka opartego na bibliotece GObject
        <Description xml:lang="tr">Vala, ek bir çalışma zamanı bağımlılığı olmayan ve C kitaplıklarının olduğu gibi kullanılabilmesini sağlayan modern bir programlama dilidir.</Description>
        <Description xml:lang="pl">Vala to nowy język programowania, którego celem jest udostępnienie cech nowoczesnych języków programowania programistom GNOME bez wymuszania dodatkowych wymagań co do środowiska uruchomieniowego i używania API innego niż w aplikacjach i bibliotekach napisanych w C.</Description>
    </Source>

    <Package>
        <Name>vala-docs</Name>
        Vala için GNOME devhelp kitabı
        Pliki dokumentacji dla kompilatora vala
    </Package>

    <Package>
        <Name>vala-devel</Name>
        vala için geliştirme dosyaları
        Pliki nagłówkowe dla kompilatora vala
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2017 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# 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

def setup():
    autotools.configure("--disable-rpm \
                         --disable-stemmer \
                         --disable-dep11 \
                         --enable-fonts \
                         --disable-static \
                         --enable-builder \
                         --enable-firmware")

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>appstream-glib</Name>
        <Homepage>https://people.freedesktop.org/~hughsient/appstream-glib/</Homepage>
        <Packager>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Provides GObjects and helper methods to read and write AppStream metadata</Summary>
        <Description>Provides GObjects and helper methods to read and write AppStream metadata</Description>
        <Archive sha1sum="8ea53f80fa5dbdf9fa39cb743a285f7dd41b5490" type="tarxz">https://people.freedesktop.org/~hughsient/appstream-glib/releases/appstream-glib-0.7.4.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>meson</Dependency>
            <Dependency>autoconf-archive</Dependency>
            <Dependency>gperf</Dependency>
            <Dependency>gcap-devel</Dependency>
            <Dependency>libxslt-devel</Dependency>
            <Dependency>docbook-xsl</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libarchive-devel</Dependency>
            <Dependency>libsoup-devel</Dependency>
            <Dependency>json-glib-devel</Dependency>
            <Dependency>gdk-pixbuf-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>gtk3-devel</Dependency>
            <!--Dependency>libyaml-devel</Dependency-->
            <Dependency>libutil-linux-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>appstream-glib</Name>
        <RuntimeDependencies>
            <Dependency>gcap</Dependency>
            <Dependency>gtk3</Dependency>
            <Dependency>cairo</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>libsoup</Dependency>
            <Dependency>json-glib</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
            <Dependency>libarchive</Dependency>
            <Dependency>fontconfig</Dependency>
            <Dependency>libutil-linux</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="data">/usr/share/bash-completion/</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
            <Path fileType="data">/usr/share/gettext</Path>
            <Path fileType="data">/usr/share/gir-1.0</Path>
            <Path fileType="data">/usr/share/installed-tests/appstream-glib</Path>
        </Files>
    </Package>

        <Package>
        <Name>appstream-glib-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">appstream-glib</Dependency>
            <Dependency>gcap-devel</Dependency>
            <Dependency>libxslt-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libarchive-devel</Dependency>
            <Dependency>libsoup-devel</Dependency>
            <Dependency>json-glib-devel</Dependency>
            <Dependency>gdk-pixbuf-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>gtk3-devel</Dependency>
            <Dependency>libutil-linux-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-12-10</Date>
            <Version>0.7.4</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<PISI>
    <Name>programming.library</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 cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

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

def build():
    cmaketools.make()

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

    pisitools.dodoc("readme.md", "copying.txt", "doc/glm.pdf")
    pisitools.dohtml("doc/*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>glm</Name>
        <Homepage>http://glm.g-truc.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>library</IsA>
        <Summary>C++ mathematics library</Summary>
        <Description>C++ mathematics library for 3D software based on the OpenGL Shading Language (GLSL) specification</Description>
        <Archive sha1sum="f75a221f84a8ee53aa5962c8189f4519d07d4182" type="targz">https://github.com/g-truc/glm/archive/0.9.8.3.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
        </BuildDependencies>
    </Source>
    <Package>
        <Name>glm</Name>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>
    <Package>
        <Name>glm-doc</Name>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <History>
        <Update release="1">
            <Date>2017-01-01</Date>
            <Version>0.9.8.3</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>glm</Name>
        <Summary xml:lang="tr">C++ matematik kitaplığı</Summary>
        <Description xml:lang="tr">GLM, OpenGL Shading Language (GLSL) spesifikasyonuna dayanan 3D yazılımlar için bir C + + matematik kitaplığıdır.</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 pisitools
from pisi.actionsapi import autotools
from pisi.actionsapi import get

def build():
    options="lib gnuefi inc"
    autotools.make(options)

def install():
    autotools.rawInstall("INSTALLROOT=%s \
                          PREFIX='/usr'"  % get.installDIR())


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gnu-efi</Name>
        <Homepage>https://sourceforge.net/projects/gnu-efi/</Homepage>
        <Packager>
            <Name>Ergün Salman</Name>
            <Email>Poyraz76@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <Icon>yalm-cpp</Icon>
        <IsA>Libry</IsA>
        <Summary>Develop EFI applications for ARM-64, ARM-32, x86_64, IA-64 (IPF), and IA-32 (x86) platforms using the GNU toolchain and the EFI development environment..</Summary>
        <Description>GNU toolchain and the EFI development environment..</Description>
        <Archive sha1sum="d016220a805e6f893bfb75e25b1d3fc99088e062" type="tarbz2">https://sourceforge.net/projects/gnu-efi/files/gnu-efi-3.0.4.tar.bz2</Archive>
    </Source>

    <Package>
        <Name>gnu-efi</Name>
        <Files>
            <Path fileType="library">/usr/lib/</Path>
            <Path fileType="data">/usr/include/</Path>
            <Path fileType="doc">/usr/share/</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-05-15</Date>
            <Version>3.0.4</Version>
            <Comment>Release bump.</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-08-16</Date>
            <Version>3.0.4</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 shelltools
from pisi.actionsapi import get

def setup():
    shelltools.system("./autogen.sh")
    autotools.configure("--prefix=/usr \
                         --disable-static \
                         --disable-gtk-doc")

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libaccounts-glib</Name>
        <Homepage>https://code.google.com/p/accounts-sso</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        Accounts and SSO (Single Sign-On) framework
        <Description>Accounts and SSO (Single Sign-On) framework for Linux and POSIX based platforms.</Description>
        <Archive sha1sum="4c3ee966372c50f88bb9200c1b6160cbd03f08e3" type="tarxz">https://sourceforge.net/projects/pisilinux/files/source/libaccounts-glib-1.21.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency>gtk-doc</Dependency>
            <Dependency>docbook-xsl</Dependency>
            <Dependency>python-pygobject-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libaccounts-glib</Name>
        <IsA>library</IsA>
        <RuntimeDependencies>
            <Dependency>glib2</Dependency>
            <Dependency>sqlite</Dependency>
            <Dependency>libxml2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="conf">/usr/share/backup-framework/applications/accounts.conf</Path>
            <Path fileType="data">/usr/share/xml</Path>
            <Path fileType="data">/usr/share/libaccounts-glib/testdata</Path>
            <Path fileType="data">/usr/share/dbus-1/interfaces/com.google.code.AccountsSSO.Accounts.Manager.xml</Path>
            <Path fileType="man">/usr/share/man/man1</Path>
            <Path fileType="data">/usr/share/gir-1.0/Accounts-1.0.gir</Path>
            <Path fileType="data">/usr/share/vala</Path>
        </Files>
    </Package>

    <Package>
        <Name>libaccounts-glib-devel</Name>
        Development files for libaccounts-glib
        <RuntimeDependencies>
            <Dependency release="current">libaccounts-glib</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>sqlite-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>libaccounts-glib-docs</Name>
        <IsA>data:doc</IsA>
        Help files and API documents for libaccounts-glib
        <RuntimeDependencies>
            <Dependency release="current">libaccounts-glib</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-05-15</Date>
            <Version>1.21</Version>
            <Comment>Release Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-11</Date>
            <Version>1.21</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-30</Date>
            <Version>1.21</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>libaccounts-glib</Name>
        Accounts and SSO (Single Sign-On) framework
        <Description xml:lang="en">Accounts and SSO (Single Sign-On) framework for Linux and POSIX based platforms.</Description>
    </Source>

    <Package>
        <Name>libaccounts-glib-devel</Name>
        Development files for libaccounts-glib
    </Package>

    <Package>
        <Name>libaccounts-glib-docs</Name>
        Help files and API documents for libaccounts-glib
    </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 get

def setup():
    shelltools.system("sed -i 's|SUBDIRS  += Accounts tests|SUBDIRS += Accounts|' accounts-qt.pro")
    shelltools.system("qmake-qt5 PREFIX=/usr LIBDIR=/usr/lib")

def build():
    autotools.make()

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

    pisitools.dodoc("NOTES", "INSTALL", "COPYING", "README.*", "TODO")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libaccounts-qt5</Name>
        <Homepage>https://gitlab.com/accounts-sso/libaccounts-qt</Homepage>
        <Packager>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <IsA>library</IsA>
        Qt5-based client library for accessing the online accounts database
        <Description>Qt5-based client library for accessing the online accounts database</Description>
        <Archive sha1sum="17614995f501be1918b85facb62e106794c4403a" type="tarxz">https://sourceforge.net/projects/pisilinux/files/source/libaccounts-qt-1.14.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>doxygen</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>qt5-assistant-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libaccounts-glib-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libaccounts-qt5</Name>
        <RuntimeDependencies>
            <Dependency>glib2</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>qt5-base</Dependency>
            <Dependency>libaccounts-glib</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libaccounts-qt5*</Path>
            <Path fileType="doc">/usr/share/doc/libaccounts-qt5</Path>
            <Path fileType="library">/usr/lib/cmake</Path>
        </Files>
    </Package>

    <Package>
        <Name>libaccounts-qt5-devel</Name>
        Development files for libaccounts-qt5
        <RuntimeDependencies>
            <Dependency release="current">libaccounts-qt5</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>libaccounts-qt5-docs</Name>
        <IsA>data:doc</IsA>
        Help files and API documents for libaccounts-qt5
        <RuntimeDependencies>
            <Dependency release="current">libaccounts-qt5</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libaccounts-qt5-tools</Name>
        <IsA>data:doc</IsA>
        This package contains the tools for the libaccounts-qt5 library
        <RuntimeDependencies>
            <Dependency release="current">libaccounts-qt5</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>qt5-base</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/bin</Path>
            <Path fileType="data">/usr/share/libaccounts-qt-tests</Path>
        </Files>
    </Package>

    <History>
        <Update release="5">
            <Date>2017-05-15</Date>
            <Version>1.14</Version>
            <Comment>Release Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2016-06-11</Date>
            <Version>1.14</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.13</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-20</Date>
            <Version>1.13</Version>
            <Comment>Rebuild for qt5</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-30</Date>
            <Version>1.14</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@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 get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools

def build():
    pisitools.dosed("src/Makefile", "=-shared", r"= -Wl,-O1,--as-needed -shared")
    if get.buildTYPE() == "emul32":
        pisitools.dosed(".", "\/lib$", r"/lib%s\n" % "32" if get.buildTYPE() == "emul32" else "", filePattern="Makefile")
    autotools.make()

#def check():
    #shelltools.cd("harness")
    #pisitools.dodir("testdir")

    #autotools.make("check prefix=../src libdir=../src")

def install():

    if get.buildTYPE() == "emul32":
        autotools.rawInstall("prefix=%s/usr \
                              includedir=%s/usr/include \
                              libdir%s/=usr/lib32 " % ((get.installDIR(), ) * 3))
        pisitools.remove("/usr/lib32/libaio.a")
    else:
        autotools.rawInstall("prefix=%s/usr \
                              includedir=%s/usr/include \
                              libdir%s/=usr/lib " % ((get.installDIR(), ) * 3))
        pisitools.remove("/usr/lib/libaio.a")

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


code:
Index: b/harness/cases/12.t
===================================================================
--- a/harness/cases/12.t
+++ b/harness/cases/12.t
@@ -18,7 +18,7 @@

 int test_main(void)
 {
-	int res, status;
+	int status;
 	pid_t pid;
 	sigset_t set;

@@ -35,7 +35,7 @@
 	if (pid == 0)
 		test_child();

-	res = waitpid(pid, &status, 0);
+	waitpid(pid, &status, 0);

 	if (WIFEXITED(status)) {
 		int failed = (WEXITSTATUS(status) != 0);
Index: b/harness/cases/14.t
===================================================================
--- a/harness/cases/14.t
+++ b/harness/cases/14.t
@@ -59,7 +59,7 @@
 /* from 12.t */
 int test_main(void)
 {
-	int res, status;
+	int status;
 	pid_t pid;
 	sigset_t set;

@@ -75,7 +75,7 @@
 	if (pid == 0)
 		test_child();

-	res = waitpid(pid, &status, 0);
+	waitpid(pid, &status, 0);

 	if (WIFEXITED(status)) {
 		int failed = (WEXITSTATUS(status) != 0);


code:
--- src/Makefile.orig	2006-07-09 19:46:41.000000000 -0700
+++ src/Makefile	2006-07-09 19:51:00.000000000 -0700
@@ -2,11 +2,10 @@
 includedir=$(prefix)/include
 libdir=$(prefix)/lib

-ARCH := $(shell uname -m | sed -e s/i.86/i386/)
-CFLAGS := -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
-SO_CFLAGS=-shared $(CFLAGS)
+CFLAGS += -nostdlib -nostartfiles -Wall -I. -fPIC
+SO_CFLAGS=-shared $(CFLAGS)
 L_CFLAGS=$(CFLAGS)
-LINK_FLAGS=
+LINK_FLAGS=-lgcc -lrt $(LDFLAGS)

 soname=libaio.so.1
 minor=0
@@ -48,7 +47,7 @@
 	ranlib libaio.a

 $(libname): $(libaio_sobjs) libaio.map
-	$(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)
+	$(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname,$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)

 install: $(all_targets)
 	install -D -m 644 libaio.h $(includedir)/libaio.h


code:
--- a/src/Makefile
+++ b/src/Makefile
@@ -42,10 +42,12 @@
 	$(CC) $(L_CFLAGS) -c -o $@ $<

+AR ?= ar
+RANLIB ?= ranlib
 libaio.a: $(libaio_objs)
 	rm -f libaio.a
-	ar r libaio.a $^
-	ranlib libaio.a
+	$(AR) r libaio.a $^
+	$(RANLIB) libaio.a

 $(libname): $(libaio_sobjs) libaio.map
 	$(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname,$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)


code:
From 5e96c73d5dfbdea8d0be82b7f3fc8d6735e5dfa7 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Sun, 17 Jan 2010 17:07:48 -0500
Subject: [PATCH] add a generic syscall() fallback

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 src/syscall-generic.h |   29 +++++++++++++++++++++++++++++
 src/syscall.h         |    3 ++-
 2 files changed, 31 insertions(+), 1 deletions(-)
 create mode 100644 src/syscall-generic.h

diff --git a/src/syscall-generic.h b/src/syscall-generic.h
new file mode 100644
index 0000000..24d7c7c
--- /dev/null
+++ b/src/syscall-generic.h
@@ -0,0 +1,29 @@
+#include <errno.h>
+#include <unistd.h>
+#include <sys/syscall.h>
+
+#define _body_io_syscall(sname, args...) \
+{ \
+	int ret = syscall(__NR_##sname, ## args); \
+	return ret < 0 ? -errno : ret; \
+}
+
+#define io_syscall1(type,fname,sname,type1,arg1) \
+type fname(type1 arg1) \
+_body_io_syscall(sname, (long)arg1)
+
+#define io_syscall2(type,fname,sname,type1,arg1,type2,arg2) \
+type fname(type1 arg1,type2 arg2) \
+_body_io_syscall(sname, (long)arg1, (long)arg2)
+
+#define io_syscall3(type,fname,sname,type1,arg1,type2,arg2,type3,arg3) \
+type fname(type1 arg1,type2 arg2,type3 arg3) \
+_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3)
+
+#define io_syscall4(type,fname,sname,type1,arg1,type2,arg2,type3,arg3,type4,arg4) \
+type fname (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \
+_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3, (long)arg4)
+
+#define io_syscall5(type,fname,sname,type1,arg1,type2,arg2,type3,arg3,type4,arg4, type5,arg5) \
+type fname (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5) \
+_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3, (long)arg4, (long)arg5)
diff --git a/src/syscall.h b/src/syscall.h
index 78becfe..d954af0 100644
--- a/src/syscall.h
+++ b/src/syscall.h
@@ -25,5 +25,6 @@
 #elif defined(__arm__)
 #include "syscall-arm.h"
 #else
-#error "add syscall-arch.h"
+#warning "using generic syscall method"
+#include "syscall-generic.h"
 #endif
--
1.7.3.1


code:
Do not ignore return value of ftruncate(): testcases are compiled with -Werror,
and ftruncate is declared with attribute warn_unused_result.
--- harness/cases/8.t.orig	2012-03-09 16:40:04.074168070 +0100
+++ harness/cases/8.t		2012-03-09 16:40:57.777278646 +0100
@@ -9,12 +9,13 @@
 {
 	long long min = 0, max = 9223372036854775807LL;
 	char c = 0;
+	int ret;

 	while (max - min > 1) {
 		if (pwrite64(fd, &c, 1, (min + max) / 2) == -1)
 			max = (min + max) / 2;
 		else {
-			ftruncate(fd, 0);
+			ret = ftruncate(fd, 0);		assert(ret == 0);
 			min = (min + max) / 2;
 		}
 	}


code:
diff --git a/src/libaio.h b/src/libaio.h
index ffe8259..4a6c9fb 100644
--- a/src/libaio.h
+++ b/src/libaio.h
@@ -49,40 +49,34 @@ typedef enum io_iocb_cmd {
 	IO_CMD_PWRITEV = 8,
 } io_iocb_cmd_t;

-#if defined(__i386__) /* little endian, 32 bits */
+/* little endian, 32 bits */
+#if defined(__i386__) || defined(__sh__) || defined(__bfin__) || \
+    defined(__ARMEL__) || defined(__MIPSEL__) || defined(__cris__)
 #define PADDED(x, y)	x; unsigned y
 #define PADDEDptr(x, y)	x; unsigned y
 #define PADDEDul(x, y)	unsigned long x; unsigned y
+
+/* little endian, 64 bits */
 #elif defined(__ia64__) || defined(__x86_64__) || defined(__alpha__)
 #define PADDED(x, y)	x, y
 #define PADDEDptr(x, y)	x
 #define PADDEDul(x, y)	unsigned long x
-#elif defined(__powerpc64__) /* big endian, 64 bits */
-#define PADDED(x, y)	unsigned y; x
-#define PADDEDptr(x,y)	x
-#define PADDEDul(x, y)	unsigned long x
-#elif defined(__PPC__)  /* big endian, 32 bits */
-#define PADDED(x, y)	unsigned y; x
-#define PADDEDptr(x, y)	unsigned y; x
-#define PADDEDul(x, y)	unsigned y; unsigned long x
-#elif defined(__s390x__) /* big endian, 64 bits */
+
+/* big endian, 64 bits */
+#elif defined(__powerpc64__) || defined(__s390x__) || \
+      (defined(__sparc__) && defined(__arch64__))
 #define PADDED(x, y)	unsigned y; x
 #define PADDEDptr(x,y)	x
 #define PADDEDul(x, y)	unsigned long x
-#elif defined(__s390__) /* big endian, 32 bits */
-#define PADDED(x, y)	unsigned y; x
-#define PADDEDptr(x, y) unsigned y; x
-#define PADDEDul(x, y)	unsigned y; unsigned long x
-#elif defined(__arm__)
-#  if defined (__ARMEB__) /* big endian, 32 bits */
+
+/* big endian, 32 bits */
+#elif defined(__PPC__) || defined(__s390__) || defined(__ARMEB__) || \
+      defined(__MIPSEB__) || defined(__sparc__) || defined(__m68k__) || \
+      defined(__hppa__) || defined(__frv__) || defined(__avr32__)
 #define PADDED(x, y)	unsigned y; x
 #define PADDEDptr(x, y)	unsigned y; x
 #define PADDEDul(x, y)	unsigned y; unsigned long x
-#  else                   /* little endian, 32 bits */
-#define PADDED(x, y)	x; unsigned y
-#define PADDEDptr(x, y)	x; unsigned y
-#define PADDEDul(x, y)	unsigned long x; unsigned y
-#  endif
+
 #else
 #error	endian?
 #endif


code:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f5c071d93c9e6f57930bce56b1e4f009c160a826

Upstream-Status: Pending

Properly load arguments 5 an 6 for x86-64 syscall
Use asm ("r10") and asm ("r8") to load arguments 5 an 6 for x86-64
syscall so that it works with both x32 and x86-64.

Received this patch from H.J. Lu <hjl.tools@gmail.com>

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2011/12/02

--- libaio-0.3.109/src/syscall-x86_64.h.x32	2009-10-09 11:17:02.000000000 -0700
+++ libaio-0.3.109/src/syscall-x86_64.h	2011-12-02 09:09:07.537603224 -0800
@@ -1,8 +1,18 @@
+#ifndef __NR_io_setup
 #define __NR_io_setup		206
+#endif
+#ifndef __NR_io_destroy
 #define __NR_io_destroy		207
+#endif
+#ifndef __NR_io_getevents
 #define __NR_io_getevents	208
+#endif
+#ifndef __NR_io_submit
 #define __NR_io_submit		209
+#endif
+#ifndef __NR_io_cancel
 #define __NR_io_cancel		210
+#endif

 #define __syscall_clobber "r11","rcx","memory"
 #define __syscall "syscall"
@@ -42,10 +52,11 @@ return __res;								\
 type fname (type1 arg1, type2 arg2, type3 arg3, type4 arg4)		\
 {									\
 long __res;								\
-__asm__ volatile ("movq %5,%%r10 ;" __syscall				\
+register long __a4 asm ("r10") = (long) arg4;				\
+__asm__ volatile (__syscall						\
 	: "=a" (__res)							\
 	: "0" (__NR_##sname),"D" ((long)(arg1)),"S" ((long)(arg2)),	\
-	  "d" ((long)(arg3)),"g" ((long)(arg4)) : __syscall_clobber,"r10" ); \
+	  "d" ((long)(arg3)),"r" (__a4)); \
 return __res;								\
 }

@@ -54,10 +65,11 @@ return __res;								\
 type fname (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5)	\
 {									\
 long __res;								\
-__asm__ volatile ("movq %5,%%r10 ; movq %6,%%r8 ; " __syscall		\
+register long __a4 asm ("r10") = (long) arg4;				\
+register long __a5 asm ("r8") = (long) arg5;				\
+__asm__ volatile ( __syscall						\
 	: "=a" (__res)							\
 	: "0" (__NR_##sname),"D" ((long)(arg1)),"S" ((long)(arg2)),	\
-	  "d" ((long)(arg3)),"g" ((long)(arg4)),"g" ((long)(arg5)) :	\
-	__syscall_clobber,"r8","r10" );					\
+	  "d" ((long)(arg3)),"r" (__a4),"r" (__a5));			\
 return __res;								\
 }


code:
diff -up libaio-0.3.107/src/Makefile.orig libaio-0.3.107/src/Makefile
--- libaio-0.3.107/src/Makefile.orig	2009-01-20 10:07:31.520105235 -0500
+++ libaio-0.3.107/src/Makefile	2009-01-20 10:08:51.199104930 -0500
@@ -1,6 +1,7 @@
 prefix=/usr
-includedir=$(prefix)/include
-libdir=$(prefix)/lib
+includedir=/usr/include
+libdir=/usr/lib
+usrlibdir=/usr/lib

 ARCH := $(shell uname -m | sed -e s/i.86/i386/)
 CFLAGS := -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
@@ -51,11 +52,11 @@ $(libname): $(libaio_sobjs) libaio.map
 	$(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)

 install: $(all_targets)
-	install -D -m 644 libaio.h $(includedir)/libaio.h
-	install -D -m 644 libaio.a $(libdir)/libaio.a
-	install -D -m 755 $(libname) $(libdir)/$(libname)
-	ln -sf $(libname) $(libdir)/$(soname)
-	ln -sf $(libname) $(libdir)/libaio.so
+	install -D -m 644 libaio.h $(destdir)$(includedir)/libaio.h
+	install -D -m 644 libaio.a $(destdir)$(usrlibdir)/libaio.a
+	install -D -m 755 $(libname) $(destdir)$(libdir)/$(libname)
+	ln -sf $(libdir)/$(libname) $(destdir)$(libdir)/$(soname)
+	ln -sf $(libdir)/$(libname) $(destdir)$(usrlibdir)/libaio.so

 $(libaio_objs): libaio.h


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libaio</Name>
        <Homepage>http://lse.sourceforge.net/io/aio.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        Linux-native asynchronous I/O access library
        <Description>libaio has a richer API and capability set than the simple POSIX async I/O facility.</Description>
        <Archive sha1sum="f8f6ed15f22e528f6f415939b07854539e3360e4" type="targz">http://ftp.de.debian.org/debian/pool/main/liba/libaio/libaio_0.3.110.orig.tar.gz</Archive>
        <Patches>

        </Patches>
    </Source>

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

    <Package>
        <Name>libaio-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for libaio
        <BuildType>emul32</BuildType>
        <RuntimeDependencies>
            <Dependency release="current">libaio</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

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

            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-28</Date>
            <Version>0.3.110</Version>
            <Comment>Version Bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.3.109</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-19</Date>
            <Version>0.3.109</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>