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 shelltools
from pisi.actionsapi import get

shelltools.export("JAVA_HOME","/usr/lib/jvm/java-7-openjdk")

WorkDir = "apache-ant-%s" % get.srcVERSION()
anthome = "/usr/share/ant"
javadir = "/usr/share/java"

def build():
    shelltools.export("ANT_OPTS", "-Duser.home=%s" % WorkDir)
    shelltools.system("./build.sh dist")

def install():
    pisitools.insinto("/etc/ant/", "%s/etc/*" % WorkDir)
    pisitools.remove("/etc/ant/ant-bootstrap.jar")
    pisitools.insinto("/usr/share/java/ant/", "%s/lib/*" % WorkDir)
    pisitools.insinto("/usr/share/java/", "lib/optional/junit-4.11.jar", "junit.jar")
    pisitools.insinto("/usr/share/java/", "lib/optional/hamcrest-core-1.3.jar", "hamcrest.jar")
    pisitools.insinto("/usr/share/ant/lib/", "%s/lib/*" % WorkDir)
    pisitools.insinto("/usr/share/ant/bin/", "apache-ant-1.9.9/bin/*")

    for binsym in ["ant", "antRun", "antRun.pl", "complete-ant-cmd.pl", "runant.pl", "runant.py"]:
            pisitools.dosym("/usr/share/ant/bin/%s" % binsym , "/usr/bin/%s" % binsym)

    pisitools.insinto("/usr/share/doc/ant/", "%s/manual/*" % WorkDir) #for and-docs
    pisitools.dodoc("KEYS", "NOTICE", "README", "WHATSNEW", "LICENSE")

repo_name: ayhanyalcinsoy/main


code:
# Apache Ant start script configuration file

# Optional jars and their dependencies
OPT_JAR_LIST=/usr/share/java/junit.jar


code: setenv ANT_HOME /usr/share/ant


code: export ANT_HOME=/usr/share/ant


code:
#!/bin/sh

. /etc/ant/ant.conf

export LOCALCLASSPATH=${OPT_JAR_LIST}
/usr/share/ant/bin/ant "$@"


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ant</Name>
        <Homepage>http://ant.apache.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>Apache-2.0</License>
        <IsA>app:console</IsA>
        Java-based build tool
        <Description>Apache Ant is a Java-based build tool. In theory, it is kind of like Make, but without Make's wrinkles.</Description>
        <Archive sha1sum="4c815a6f560cde94fc2b3d15e34393ebf6dbca52" type="tarbz2">http://archive.apache.org/dist/ant/source/apache-ant-1.9.9-src.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>jdk7-openjdk</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>ant</Name>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="data">/usr/share/</Path>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/etc/ant/ant.conf" permission="0644" owner="root">ant.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/profile.d/ant.sh">ant.sh</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/profile.d/ant.csh">ant.csh</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>ant-docs</Name>
        Documentation package for ant build system
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-01-16</Date>
            <Version>1.9.9</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-28</Date>
            <Version>1.9.8</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.9.6</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-25</Date>
            <Version>1.9.6</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>ant</Name>
        <Summary xml:lang="tr">Java tabanlı inşa aracı</Summary>
        <Description xml:lang="tr">Apache ant Java tabanlı bir inşa aracıdır. Teorik olarak make'e benzemektedir ancak make'in kırışıksız halidir</Description>
        <Description xml:lang="es">Apache Ant es una herramienta de compilación (build) basado en Java. Teróricamente se puede comparar con Make, pero sin las vueltas que tiene aquel.</Description>
    </Source>
</PISI>


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

libdir = "/usr/lib32/llvm" if get.buildTYPE() == "emul32" else "/usr/lib/llvm"
lib = "lib32" if get.buildTYPE() == "emul32" else "lib"

def setup():
    if get.buildTYPE() != "emul32":
            if not shelltools.can_access_directory("tools/clang"):
                shelltools.system("tar xf ../cfe-%s.src.tar.xz -C tools" % get.srcVERSION())
                shelltools.move("tools/cfe-%s.src" % get.srcVERSION(), "tools/clang")

                shelltools.system("tar xf ../clang-tools-extra-%s.src.tar.xz -C tools" % get.srcVERSION())
                shelltools.move("tools/clang-tools-extra-*", "tools/clang/extra")

                shelltools.system("tar xf ../lldb-%s.src.tar.xz -C tools" % get.srcVERSION())
                shelltools.move("tools/lldb-*", "tools/lldb")

            if not shelltools.can_access_directory("projects/compiler-rt"):
                shelltools.system("tar xf ../compiler-rt-%s.src.tar.xz -C projects" % get.srcVERSION())
                shelltools.move("projects/compiler-rt-%s.src" % get.srcVERSION(), "projects/compiler-rt")

                shelltools.export("CC", "gcc")
                shelltools.export("CXX", "g++")

    if get.buildTYPE() == "emul32":
        shelltools.export("CC", "gcc -m32")
        shelltools.export("CXX", "g++ -m32")
        shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")

    shelltools.makedirs("build")

    shelltools.cd("build")

    if get.buildTYPE() != "emul32":
        options = "-DCMAKE_C_FLAGS:STRING=-m64 \
                              -DCMAKE_INSTALL_PREFIX=/usr \
                            -DCMAKE_CXX_FLAGS:STRING=-m64 \
                            -DLLVM_TARGET_ARCH:STRING=x86_64 \
                            -DLLVM_DEFAULT_TARGET_TRIPLE=%s " % get.HOST()

    if get.buildTYPE() == "emul32":
        options = "  -DCMAKE_C_FLAGS:STRING=-m32 \
                            -DCMAKE_INSTALL_PREFIX=/emul32 \
                            -DLLVM_TARGET_ARCH:STRING=i686  \
                            -DLLVM_LIBDIR_SUFFIX=32 \
                            -DLLVM_DEFAULT_TARGET_TRIPLE='i686-pc-linux-gnu' \
                            -DCMAKE_CXX_FLAGS:STRING=-m32"

    cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
                                        %s \
                                        -DLLVM_ENABLE_FFI=ON \
                                        -DLLVM_BUILD_DOCS=OFF \
                                        -DBUILD_SHARED_LIBS=ON \
                                        -DLLVM_ENABLE_RTTI=ON \
                                        -DLLVM_INCLUDEDIR=/usr/include \
                                        -DLLVM_ENABLE_ASSERTIONS=OFF \
                                        -DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include \
                                        -DENABLE_SHARED=ON" % options, sourceDir=".." )

def build():
    shelltools.makedirs("build")
    shelltools.cd("build")

    cmaketools.make()

def install():
    shelltools.makedirs("build")
    shelltools.cd("build")

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

    if get.buildTYPE() == "emul32":

        pisitools.domove("/emul32/lib32/", "/usr/")
        pisitools.insinto("/usr/include/llvm/Config/","%s/emul32/include/llvm/Config/llvm-config.h" % get.installDIR(),"llvm-config-32.h")
        pisitools.insinto("/usr/bin/","%s/emul32/bin/llvm-config" % get.installDIR(),"llvm-config-32")
        pisitools.removeDir("/emul32")
        pisitools.remove("/usr/lib/python2.7/site-packages/six.py")

    shelltools.cd ("..")

    pisitools.dodoc("CREDITS.TXT", "LICENSE.TXT", "README.txt")


code:
#include <bits/wordsize.h>

#if __WORDSIZE == 32
#include "config-32.h"
#elif __WORDSIZE == 64
#include "config-64.h"
#else
#error "Unknown word size"
#endif


code:
#include <bits/wordsize.h>

#if __WORDSIZE == 32
#include "llvm-config-32.h"
#elif __WORDSIZE == 64
#include "llvm-config-64.h"
#else
#error "Unknown word size"
#endif


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>llvm</Name>
        <Homepage>http://www.llvm.org/</Homepage>
        <Packager>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Packager>
        <License>NCSA</License>
        The Low Level Virtual Machine
        <Description>The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. Despite its name, LLVM has little to do with traditional virtual machines, though it does provide helpful libraries that can be used to build them.</Description>
       <Archive sha1sum="723ac918979255706434a05f5af34b71c49c9971" type="tarxz">http://llvm.org/releases/3.8.0/llvm-3.8.0.src.tar.xz</Archive>
       <Archive sha1sum="2230ef962f2df3c13ec93f5b04b0e3cdff94b2ce" type="binary">http://llvm.org/releases/3.8.0/cfe-3.8.0.src.tar.xz</Archive>
       <Archive sha1sum="a99d8b6fc5e593c4671424b327779318a1856acf" type="binary">http://llvm.org/releases/3.8.0/clang-tools-extra-3.8.0.src.tar.xz</Archive>
       <Archive sha1sum="6d503cea94c131b6bfcf5254e62d32fcce1ebcc8" type="binary">http://llvm.org/releases/3.8.0/lldb-3.8.0.src.tar.xz</Archive>
       <Archive sha1sum="480ea09e369dac6de1f3759b27fa19417b26b69e" type="binary">http://llvm.org/releases/3.8.0/compiler-rt-3.8.0.src.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>ocaml</Dependency>
            <Dependency>libffi-devel</Dependency>
            <Dependency>groff</Dependency>
            <Dependency>swig</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>libedit-devel</Dependency>
            <Dependency>cmake</Dependency>

            <Dependency>binutils</Dependency>
        </BuildDependencies>
    </Source>

     <Package>
        <Name>llvm</Name>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <RuntimeDependencies>
            <Dependency release="current">llvm-libs</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libffi</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/bin/llvm-config</Path>
            <Path fileType="header">/usr/include/llvm*</Path>
            <Path fileType="library">/usr/lib/llvm</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="conf">/etc/ld.so.conf.d</Path>
            <Path fileType="data">/etc/llvm</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/vim</Path>
            <Path fileType="data">/usr/share/llvm/cmake</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/ld.so.conf.d/51-llvm.conf">51-llvm.conf</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>llvm-libs</Name>
        <IsA>library</IsA>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>libffi</Dependency>
            <Dependency>libedit</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>ncurses</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libLLVM.*</Path>
            <Path fileType="library">/usr/lib/LLVMgold.*</Path>
            <Path fileType="library">/usr/lib/libLTO.*</Path>
            <Path fileType="library">/usr/lib/bfd-plugins/LLVMgold.so</Path>
            <Path fileType="data">/usr/share/licenses/llvm-libs/LICENSE</Path>
        </Files>
    </Package>

    <Package>
        <Name>lldb</Name>
        Next generation, high-performance debugger
        <RuntimeDependencies>
            <Dependency release="current">llvm</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libffi</Dependency>
            <Dependency>libedit</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>python</Dependency>
            <Dependency>libxml2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/argdumper</Path>
            <Path fileType="executable">/usr/bin/lldb*</Path>
            <Path fileType="library">/usr/lib/liblldb</Path>
            <Path fileType="library">/usr/lib/python2.7/site-packages/readline.so</Path>
            <Path fileType="library">/usr/lib/python2.7/site-packages/lldb/*</Path>
        </Files>
    </Package>

    <Package>
        <Name>lldb-devel</Name>
        Development headers lldb
        <RuntimeDependencies>
            <Dependency release="current">lldb</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/lldb/*</Path>
        </Files>
    </Package>

    <Package>
        <Name>llvm-clang-analyzer</Name>
        <IsA>app:console</IsA>
        A source code analysis framework
        <Description>The Clang Static Analyzer consists of both a source code analysis framework and a standalone tool that finds bugs in C and Objective-C programs.</Description>
        <RuntimeDependencies>
            <Dependency release="current">llvm-clang</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/lib/clang-analyzer</Path>
            <Path fileType="executable">/usr/bin/scan-*</Path>
            <Path fileType="data">/usr/share/scan*</Path>
            <Path fileType="executable">/usr/libexec/ccc-*</Path>
             <Path fileType="executable">/usr/libexec/c++-*</Path>
        </Files>
    </Package>

    <Package>
        <Name>llvm-clang</Name>
        A C language family front-end for LLVM
        <Description>The goal of the Clang project is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler.</Description>
        <RuntimeDependencies>
            <Dependency release="current">llvm-libs</Dependency>
	    <Dependency>libgcc</Dependency>
	    <Dependency>ncurses</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/clang*</Path>
            <Path fileType="executable">/usr/bin/tblgen</Path>
            <Path fileType="library">/usr/lib/clang</Path>
            <Path fileType="library">/usr/lib/clang/libclang.so</Path>
            <Path fileType="man">/usr/share/man/man1/clang.1</Path>
            <Path fileType="data">/usr/share/clang</Path>
        </Files>
    </Package>

    <Package>
        <Name>llvm-clang-devel</Name>
        Development headers for llvm-clang
        <RuntimeDependencies>
            <Dependency release="current">llvm-clang</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/clang</Path>
            <Path fileType="header">/usr/include/clang-c</Path>
        </Files>
    </Package>

    <Package>
        <Name>llvm-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for llvm
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>zlib-32bit</Dependency>
            <Dependency>libffi-32bit</Dependency>

        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">llvm</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libedit</Dependency>
            <Dependency>ncurses-32bit</Dependency>
            <Dependency>zlib-32bit</Dependency>
            <Dependency>libffi-32bit</Dependency>

        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/llvm-config-32</Path>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="5">
            <Date>2017-09-04</Date>
            <Version>3.8.0</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2017-02-12</Date>
            <Version>3.8.0</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>3.8.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-25</Date>
            <Version>3.8.0</Version>
            <Comment>Release bump</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-06</Date>
            <Version>3.8.0</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>llvm</Name>
        Düşük Seviye Sanal Makine (LLVM)
        <Description xml:lang="tr">LLVM projesi, modüler ve tekrar tekrar kullanılabilir derleyici teknolojileri koleksiyonudur. Adının aksine geleneksel sanal makinelerden çok farklıdır; ancak sanal makineleri oluşturmak için faydalı kitaplıklar içerir.</Description>
    </Source>

    <Package>
        <Name>llvm-ocaml</Name>
        LLVM için OCaml bağlayıcısı
    </Package>

    <Package>
        <Name>llvm-clang-analyzer</Name>
        C ve Objective-C için kod analiz altyapısı
    </Package>

    <Package>
        <Name>llvm-clang</Name>
        LLVM için C dili ailesi ön ucu
    </Package>

    <Package>
        <Name>llvm-clang-devel</Name>
        llvm-clang için başlık dosyaları
    </Package>

    <Package>
        <Name>llvm-docs</Name>
        LLVM belgeleri
    </Package>
</PISI>


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

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

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

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

    pisitools.insinto("/usr/share/vim/vimfiles", "data/syntax-highlighting/vim/*")
    pisitools.insinto("/usr/share/emacs/site-lisp", "data/syntax-highlighting/emacs/*")
    pisitools.insinto("/usr/share/zsh/site-functions", "data/shell-completions/zsh/*")
    pisitools.remove("/usr/share/vim/vimfiles/README")

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


code:
diff -Nuar "a/test cases/frameworks/15 llvm/meson.build" "b/test cases/frameworks/15 llvm/meson.build"
--- "a/test cases/frameworks/15 llvm/meson.build"	2017-10-08 22:22:05.000000000 +0300
+++ "b/test cases/frameworks/15 llvm/meson.build"	2017-12-07 18:31:23.786683687 +0300
@@ -17,5 +17,5 @@
   llvm_dep,
   dependency('zlib'),
   meson.get_compiler('c').find_library('dl', required : false),
-  dependency('tinfo'),
+  dependency('ncursesw'),
   ])
diff -Nuar "a/test cases/frameworks/4 qt/meson.build" "b/test cases/frameworks/4 qt/meson.build"
--- "a/test cases/frameworks/4 qt/meson.build"	2017-10-08 21:47:57.000000000 +0300
+++ "b/test cases/frameworks/4 qt/meson.build"	2017-12-07 18:33:49.091673203 +0300
@@ -77,8 +77,9 @@
       moc_headers : 'plugin/plugin.h',
       include_directories : plugin_includes
     )
-    plugin = library('plugin', 'plugin/plugin.cpp', pluginpreprocess,
+    plugin = library(qt + 'plugin', 'plugin/plugin.cpp', pluginpreprocess,
           include_directories : plugin_includes,
           dependencies : qtcore)
+    endif
   endif
 endforeach


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>meson</Name>
        <Homepage>http://mesonbuild.com/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>Apache</License>
        <IsA>app:console</IsA>
        <Summary>High productivity build system</Summary>
        <Description>Yüksek verimli üretme sistemi</Description>
        <Archive sha1sum="12d1d0466955da4f9a7ef158a23d4e37d985d667" type="targz">https://github.com/mesonbuild/meson/releases/download/0.44.1/meson-0.44.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>python3-devel</Dependency>
            <Dependency>python3-setuptools</Dependency>
        </BuildDependencies>
        <Patches>
<!--             <Patch level="1">fix-tests.patch</Patch> -->
        </Patches>
    </Source>
    <Package>
        <Name>meson</Name>
        <RuntimeDependencies>
            <Dependency>python3</Dependency>
            <Dependency>ninja</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/vim</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <History>
        <Update release="2">
            <Date>2018-02-22</Date>
            <Version>0.44.1</Version>
            <Comment>Version bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2017-12-07</Date>
            <Version>0.43.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>meson</Name>
        <Summary xml:lang="tr">High productivity build system</Summary>
        <Description xml:lang="tr">Yüksek verimli üretme sistemi</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
from pisi.actionsapi import get

def build():
    shelltools.system("python configure.py --bootstrap")
    shelltools.system("asciidoc doc/manual.asciidoc")
    shelltools.system("emacs -Q --batch -f batch-byte-compile misc/ninja-mode.el")

def check():
    #needs new package gtest -> ignore it for now
    shelltools.system("python ./configure.py")
    shelltools.system("./ninja ninja_test")
    shelltools.system("./ninja_test --gtest_filter=-SubprocessTest.SetWithLots")

def install():
    pisitools.dobin("ninja", "/usr/bin")

    pisitools.insinto("/usr/share/bash-completion/completions", "misc/bash-completion", "ninja")
    pisitools.insinto("/usr/share/emacs/site-lisp", "misc/ninja-mode.el")
    pisitools.insinto("/usr/share/emacs/site-lisp", "misc/ninja-mode.elc")
    pisitools.insinto("/usr/share/vim/vimfiles/syntax", "misc/ninja.vim")
    pisitools.insinto("/usr/share/zsh/site-functions", "misc/zsh-completion", "_ninja")

    pisitools.dodoc("HACKING.md", "COPYING", "RELEASING", "README", "doc/manual.asciidoc")

    pisitools.dohtml("doc/manual.html")


code:
Largefile patch
https://github.com/martine/ninja/issues/829

--- ninja-1.5.1/configure.py~	2014-10-26 22:45:18.000000000 +0200
+++ ninja-1.5.1/configure.py	2014-10-26 22:45:26.284641172 +0200
@@ -142,6 +142,7 @@
               '-fno-exceptions',
               '-fvisibility=hidden', '-pipe',
               '-Wno-missing-field-initializers',
+              '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64',
               '-DNINJA_PYTHON="%s"' % options.with_python]
     if options.debug:
         cflags += ['-D_GLIBCXX_DEBUG', '-D_GLIBCXX_DEBUG_PEDANTIC']


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ninja</Name>
        <Homepage>http://martine.github.com/ninja/</Homepage>
        <Packager>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Ninja is a small build system with a focus on speed.</Summary>
        <Description>Ninja is a small build system with a focus on speed.</Description>
        <Archive sha1sum="17219deb34dd816363e37470f77ff7231509143a" type="targz">https://github.com/ninja-build/ninja/archive/v1.8.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>re2c</Dependency>
            <Dependency>asciidoc</Dependency>
            <Dependency>emacs-python</Dependency>
            <Dependency>giflib-devel</Dependency>
        </BuildDependencies>
        <Patches>
<!--             <Patch>LFS.patch</Patch> -->
        </Patches>
    </Source>

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

    <History>
        <Update release="5">
            <Date>2017-10-08</Date>
            <Version>1.8.2</Version>
            <Comment>Version Bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2017-02-22</Date>
            <Version>1.7.2</Version>
            <Comment>Release Bump.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-07-09</Date>
            <Version>1.7.1</Version>
            <Comment>Version Bump</Comment>
            <Name>Ergün Salman</Name>
            <Email>poyraz76@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.6.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-25</Date>
            <Version>1.6.0</Version>
            <Comment>First release</Comment>
            <Name>Vedat Demir</Name>
            <Email>vedat@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>ninja</Name>
        <Summary xml:lang="tr">Ninja, hız odaklı bir inşa sistemidir.</Summary>
        <Description xml:lang="tr">Ninja is a small build system with a focus on speed.</Description>
    </Source>
</PISI>


code:
<PISI>
    <Name>programming</Name>
</PISI>


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

def setup():
    pisitools.dosed("config/override.m4", "2.64", "2.69")
    shelltools.system('sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure')
    autotools.autoreconf("-vfi")
    autotools.configure("--with-system-readline \
                         --with-separate-debug-dir=/usr/lib/debug \
                         --with-gdb-datadir=/usr/share/gdb \
                         --with-pythondir=/usr/lib/%s/site-packages \
                         --disable-nls \
                         --disable-rpath \
                         --with-python \
                         --with-expat" % get.curPYTHON())

def build():
    autotools.make()

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

    for libdel in ["libbfd.a","libopcodes.a"]:
        pisitools.remove("/usr/lib/%s" % libdel)

    # these are not necessary
    #for info in ["bfd","configure","standards"]:
        #pisitools.remove("/usr/share/info/%s.info" % info)

    pisitools.remove("/usr/share/info/bfd.info")

    for hea in ["ansidecl","symcat","dis-asm", "bfd", "bfdlink", "plugin-api"]:
        pisitools.remove("/usr/include/%s.h" % hea)

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


code:
.\"
.\" gstack manual page.
.\" Copyright (c) 1999 Ross Thompson
.\" Copyright (c) 2001, 2002, 2004, 2008 Red Hat, Inc.
.\"
.\" Original author: Ross Thompson <ross@whatsis.com>
.\"
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2, or (at your option)
.\" any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program; see the file COPYING.  If not, write to
.\" the Free Software Foundation, 59 Temple Place - Suite 330,
.\" Boston, MA 02111-1307, USA.
.\"
.TH GSTACK 1 "Feb 15 2008" "Red Hat Linux" "Linux Programmer's Manual"

.SH NAME
gstack \- print a stack trace of a running process

.SH SYNOPSIS
.B gstack
pid

.SH DESCRIPTION

\f3gstack\f1 attaches to the active process named by the \f3pid\f1 on
the command line, and prints out an execution stack trace.  If ELF
symbols exist in the binary (usually the case unless you have run
strip(1)), then symbolic addresses are printed as well.

If the process is part of a thread group, then \f3gstack\f1 will print
out a stack trace for each of the threads in the group.

.SH SEE ALSO
nm(1), ptrace(2), gdb(1)

.SH AUTHORS
Ross Thompson <ross@whatsis.com>

Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gdb</Name>
        <Homepage>http://www.gnu.org/software/gdb/gdb.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <IsA>app:console</IsA>
        GNU debugger
        <Description>GDB, the GNU Project debugger, allows you to see what is going on 'inside' another program while it executes -- or what another program was doing at the moment it crashed.</Description>
        <Archive sha1sum="faa945f77cf9bb5ae9530664f8b34ad21e38088f" type="tarxz">mirrors://gnu/gdb/gdb-8.0.1.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>xz-devel</Dependency>
            <Dependency>texinfo</Dependency>
            <Dependency>guile-devel</Dependency>
            <Dependency>expat-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>gdb</Name>
        <RuntimeDependencies>
            <Dependency>xz</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>guile</Dependency>
            <Dependency>expat</Dependency>
            <Dependency>python</Dependency>
            <Dependency>readline</Dependency>
            <Dependency>ncurses</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc/gdb</Path>
            <Path fileType="data">/usr/share/gdb</Path>
            <Path fileType="info">/usr/share/info</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/man/man1/gstack.1">gstack.1</AdditionalFile>
        </AdditionalFiles>
    </Package>

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

    <History>
        <Update release="4">
            <Date>2018-01-31</Date>
            <Version>8.0.1</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-29</Date>
            <Version>7.12.1</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>7.9.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
         <Update release="1">
            <Date>2015-07-30</Date>
            <Version>7.9.1</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>gdb</Name>
        <Description xml:lang="tr">GDB, GNU Proje hata ayıklama aracı, çalışır durumdaki başka bir programın `içinde' olan biteni görmenizi, veya başka bir programın çöktüğü anda ne yapıyor olduğunu bilmenizi sağlar.</Description>
        GNU hata ayıklayıcısı
        Depurador GNU
        <Description xml:lang="es">GDB, el depurador del proyecto GNU permite ver lo que está pasando 'en el interior de' otro programa mientras ejecuta -- o lo que estaba haciendo cuando quedó colgado.</Description>
    </Source>

    <Package>
        <Name>gdb-devel</Name>
        gdb için geliştirme dosyaları
        Development files for gdb
    </Package>
</PISI>


code:
<PISI>
    <Name>programming.environment</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 pythonmodules
from pisi.actionsapi import get

NoStrip = ["/usr/bin", "/usr/lib", "/usr/qt5/qsci/api"]
conf = {"bindir": "/usr/bin",
        "installdir": get.installDIR(),
        "site-packages": "/usr/lib/python3.6/site-packages"}
def install():
   pythonmodules.run("install.py -z \
                                  -b %(bindir)s \
                                  -i %(installdir)s \
                                  -d %(site-packages)s \
                                  -c" % conf, pyVer = "3")
   pythonmodules.fixCompiledPy()


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>eric6</Name>
        <Homepage>http://eric-ide.python-projects.org/index.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <Icon>eric5</Icon>
        <IsA>app:gui</IsA>
        <PartOf>programming.environment.eric</PartOf>
        <Summary>Full featured Python IDE</Summary>
        <Description>Eric is a full featured Python and Ruby editor and IDE, written in python.
        It is based on the cross platform Qt4 gui toolkit, integrating the highly flexible
        Scintilla editor control. It is designed to be usable as everdays' quick and dirty
        editor as well as being usable as a professional project management tool integrating
        many advanced features Python offers the professional coder.</Description>
        <Archive sha1sum="023bac2b93a13afc1689ffe7abc2689a69524611" type="targz">https://sourceforge.net/projects/eric-ide/files/eric6/stable/17.12/eric6-17.12.tar.gz</Archive>
        <Archive sha1sum="56b629d9342ef0b9e4e3fc7311c625470ae78e52" type="targz">https://sourceforge.net/projects/eric-ide/files/eric6/stable/17.12/eric6-i18n-cs-17.12.tar.gz</Archive>
        <Archive sha1sum="7f1982ced0095b12a27029779052dfe75bb1cb1f" type="targz">https://sourceforge.net/projects/eric-ide/files/eric6/stable/17.12/eric6-i18n-de-17.12.tar.gz</Archive>
        <Archive sha1sum="1c7b806c17bfdbaea4890ea6b45ff31027dee1ef" type="targz">https://sourceforge.net/projects/eric-ide/files/eric6/stable/17.12/eric6-i18n-es-17.12.tar.gz</Archive>
        <Archive sha1sum="d9b129fa31c96d087c662b03a8d5191440cdbd24" type="targz">https://sourceforge.net/projects/eric-ide/files/eric6/stable/17.12/eric6-i18n-fr-17.12.tar.gz</Archive>
        <Archive sha1sum="b28e9f2db334aa518c91310d79197b946a0a9e9c" type="targz">https://sourceforge.net/projects/eric-ide/files/eric6/stable/17.12/eric6-i18n-it-17.12.tar.gz</Archive>
        <Archive sha1sum="86fe7550a4739806f4bbc353b774136da29648cf" type="targz">https://sourceforge.net/projects/eric-ide/files/eric6/stable/17.12/eric6-i18n-ru-17.12.tar.gz</Archive>
        <Archive sha1sum="db14408a124654f7b5db5b0ea04e0b9a44dc444e" type="targz">https://sourceforge.net/projects/eric-ide/files/eric6/stable/17.12/eric6-i18n-tr-17.12.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>qt5-sql-mysql</Dependency>
            <Dependency>python3-devel</Dependency>
            <Dependency>qt5-sql-sqlite</Dependency>
            <Dependency>python3-qt5</Dependency>
            <Dependency>qscintilla2-devel</Dependency>
            <Dependency>qscintilla2-python3</Dependency>
            <Dependency>qt5-webkit-devel</Dependency>
            <Dependency>qt5-svg-devel</Dependency>
            <Dependency>python3-sip</Dependency>
        </BuildDependencies>
        <Patches>
        </Patches>
    </Source>

    <Package>
        <Name>eric6</Name>
        <RuntimeDependencies>
            <Dependency>qt5-base</Dependency>
            <Dependency>python3</Dependency>
            <Dependency>python3-qt5</Dependency>
            <Dependency>qscintilla2-python3</Dependency>
            <Dependency>qt5-webkit</Dependency>
            <Dependency>qt5-svg</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib/python3.6/site-packages</Path>
            <Path fileType="data">/usr/share/qt5/qsci/api</Path>
            <Path fileType="data">/usr/share/applications</Path>
            <Path fileType="data">/usr/share/appdata</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
            <Path fileType="data">/usr/share/metainfo</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-03-01</Date>
            <Version>17.12</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
         <Update release="3">
            <Date>2017-06-05</Date>
            <Version>17.05</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>6.1.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-10</Date>
            <Version>6.1.4</Version>
            <Comment>Version Bump</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>eric5</Name>
        Zintegrowane środowisko programistyczne (IDE) dl języka Python
        Python programlama dili için kapsamlı bir geliştirme ortamı
    </Source>
    <Source>
        <Name>eric5-i18n-cs</Name>
        Czech Internationalization for the eric5 Full featured Python IDE.
        eric5 Python geliştirme ortamı için Çek dili yerelleri.
    </Source>
    <Source>
        <Name>eric5-i18n-de</Name>
        German Internationalization for the eric5 Full featured Python IDE.
        eric5 Python geliştirme ortamı için Almanca yerelleri.
    </Source>
    <Source>
        <Name>eric5-i18n-es</Name>
        Spanish Internationalization for the eric5 Full featured Python IDE.
        eric5 Python geliştirme ortamı için İspanyolca yerelleri.
    </Source>
    <Source>
        <Name>eric5-i18n-fr</Name>
        French Internationalization for the eric5 Full featured Python IDE.
        eric5 Python geliştirme ortamı için Fransızca yerelleri.
    </Source>
    <Source>
        <Name>eric5-i18n-it</Name>
        Italian Internationalization for the eric5 Full featured Python IDE.
        eric5 Python geliştirme ortamı için İtalyanca yerelleri.
    </Source>
    <Source>
        <Name>eric5-i18n-ru</Name>
        Russian Internationalization for the eric5 Full featured Python IDE.
        eric5 Python geliştirme ortamı için Rusça yerelleri.
    </Source>
    <Source>
        <Name>eric5-i18n-tr</Name>
        Turkish Internationalization for the eric5 Full featured Python IDE.
        eric5 Python geliştirme ortamı için Türkçe yerelleri.
    </Source>
</PISI>


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

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

def setup():
    shelltools.export("R_HOME_DIR", "/usr/lib/R")
    shelltools.export("BLAS_LIBS","/usr/lib")
    shelltools.export("LAPACK_LIBS","-L/usr/lib -llapack -lblas")

    autotools.aclocal("-I m4")
    autotools.autoconf()
    autotools.configure("--prefix=/usr \
                         --with-recommended-packages \
                         --enable-R-profiling \
                         --enable-R-shlib \
                         --enable-shared \
                         --enable-prebuilt-html \
                         --disable-openmp \
                         --with-blas=-lblas \
                         --with-lapack \
                         --without-tcltk \
                         --with-readline \
                         --with-system-pcre \
                         --with-system-zlib \
                         --with-system-bzlib \
                         --with-system-xz \
                         rdocdir=/usr/share/doc/R \
                         rincludedir=/usr/include \
                         --with-x")

def build():
    shelltools.export("R_HOME","")
    autotools.make()

    # build math library
    shelltools.cd("src/nmath/standalone")
    autotools.make("-j1")

#def check():
    #shelltools.export("R_HOME","")
    #autotools.make("check")

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

    # install math library remove static libs
    autotools.install("-C src/nmath/standalone")
    pisitools.rename("/usr/lib/libRmath.so","libRmath.so.0.0.0")
    pisitools.dosym("/usr/lib/libRmath.so.0.0.0","/usr/lib/libRmath.so.0")
    pisitools.dosym("/usr/lib/libRmath.so.0.0.0","/usr/lib/libRmath.so")

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


code:
#!/usr/bin/python

import os

def postInstall(fromVersion, fromRelease, toVersion, toRelease):
    os.system("R CMD javareconf")


code:
R_HOME_DIR=/usr/lib/R
R_HOME=/usr/lib/R


code:
--- src/include/Makefile.in.orig	2010-06-15 18:18:54.000000000 +0000
+++ src/include/Makefile.in		2010-06-15 18:19:48.000000000 +0000
@@ -81,7 +81,7 @@
 Rmath.h0: $(srcdir)/Rmath.h0.in $(top_builddir)/config.status
 	@cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@

-install: installdirs install-intl-@USE_INCLUDED_LIBINTL@
+install: $(OBJ_HEADERS) installdirs install-intl-@USE_INCLUDED_LIBINTL@
 	@for d in $(SUBDIRS); do \
 	  (cd $${d} && $(MAKE) $@) || exit 1; \
 	done


code:
--- src/main/unzip.h.orig	2011-09-24 19:35:53.000000000 -0700
+++ src/main/unzip.h	2011-09-24 19:37:06.000000000 -0700
@@ -58,6 +58,10 @@
 #define ZLIB_FILEFUNC_SEEK_END (2)
 #define ZLIB_FILEFUNC_SEEK_SET (0)

+#ifndef OF
+#define OF(x) x
+#endif
+
 #define ZLIB_FILEFUNC_MODE_READ      (1)
 #define ZLIB_FILEFUNC_MODE_WRITE     (2)
 #define ZLIB_FILEFUNC_MODE_READWRITEFILTER (3)


code:
diff -Nuar R-2.7.1.orig/src/unix/Makefile.in R-2.7.1/src/unix/Makefile.in
--- R-2.7.1.orig/src/unix/Makefile.in	2008-06-23 12:38:27.000000000 +0300
+++ R-2.7.1/src/unix/Makefile.in	2008-06-24 16:40:23.000000000 +0300
@@ -66,7 +66,7 @@

 ## we need to build at install time to capture the correct 'rhome'
 install-Rscript:
-	$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DR_HOME='"$(rhome)"' -o Rscript \
+	$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DR_HOME='"/usr/lib/R/"' -o Rscript \
 	  $(srcdir)/Rscript.c
 	@$(MKINSTALLDIRS) "$(DESTDIR)$(Rexecbindir)"
 	@$(INSTALL_PROGRAM) Rscript "$(DESTDIR)$(Rexecbindir)/Rscript"


code:
diff -Nuar R-2.12.1.orig//config.site R-2.12.1/config.site
--- R-2.12.1.orig//config.site	2010-11-14 01:05:06.000000000 +0200
+++ R-2.12.1/config.site	2010-12-22 07:11:10.429000021 +0200
@@ -28,7 +28,7 @@
 ## The paper size for the local (PostScript) printer.
 ## It must either be left blank or set to one of 'a4' or 'letter'.
 ## If left blank the system will use 'a4'.
-## R_PAPERSIZE=a4
+ R_PAPERSIZE=a4

 ## Set the default behavior of R when ending a session
 ## Set this to one of '--save' or '--no-save' depending whether you
@@ -207,23 +207,26 @@
 ## If unset configure searches in turn for (currently)
 ## firefox mozilla galeon opera xdg-open kfmclient gnome-moz-remote open
 ## and uses the full path.
-## R_BROWSER=
+R_BROWSER=xdg-open
+
+## Default pdf viewer
+R_PDFVIEWER=xdg-open

 ## BLAS and LAPACK settings
 ## Use BLAS_LIBS for all '-L' and '-l' options needed for linking
 ## against an external BLAS implementation.
-## BLAS_LIBS=
+## BLAS_LIBS=/usr/lib
 ## Use LAPACK_LIBS for all '-L' and '-l' options needed for linking
 ## against an external LAPACK implementation.
 ## Note that (see R-admin) that our main intention is to allow a
 ## LAPACK-containing BLAS to be used, so this is rarely needed, and
 ## it is not used if the BLAS already contains LAPACK.
-## LAPACK_LIBS=
+## LAPACK_LIBS="-L/usr/lib -llapack -lblas"

 ## Make name.
 ## Set this if you want to use a make by another name.
 ## For example, if your GNU make is called 'gmake', use 'MAKE=gmake'.
-## MAKE=
+MAKE=gmake

 ## Tar name
 ## Set this to prefer a tar which has the capability to automagically


code:
diff -Nuar R-2.11.0.orig/configure.ac R-2.11.0/configure.ac
--- R-2.11.0.orig/configure.ac	2010-04-01 01:10:02.000000000 +0300
+++ R-2.11.0/configure.ac	2010-05-02 18:42:50.276871339 +0300
@@ -2508,7 +2508,6 @@
 if test "${acx_blas_ok}" = "yes"; then
   ## Try to figure out which BLAS was used.
   case "${BLAS_LIBS0}" in
-    *-latlas*) r_blas=ATLAS ;;
     *-lsgemm*) r_blas=PhiPack ;;
     *sunperf*) r_blas=SunPerf ;;
     *-lessl*)  r_blas=ESSL ;;
diff -Nuar R-2.11.0.orig/m4/R.m4 R-2.11.0/m4/R.m4
--- R-2.11.0.orig/m4/R.m4	2010-03-28 01:10:03.000000000 +0200
+++ R-2.11.0/m4/R.m4	2010-05-02 18:44:38.987876278 +0300
@@ -2536,19 +2536,6 @@
   fi
 fi

-## BLAS linked to by default?  (happens on some supercomputers)
-if test "${acx_blas_ok}" = no; then
-  AC_CHECK_FUNC(${dgemm}, [acx_blas_ok=yes])
-fi
-
-## BLAS in ATLAS library?  (http://math-atlas.sourceforge.net/)
-if test "${acx_blas_ok}" = no; then
-  AC_CHECK_LIB(atlas, ATL_xerbla,
-               [AC_CHECK_LIB(f77blas, ${dgemm},
-                             [acx_blas_ok=yes
-                              BLAS_LIBS="-lf77blas -latlas"],
-			     [], [-latlas])])
-fi

 ## BLAS in PhiPACK libraries?  (requires generic BLAS lib, too)
 if test "${acx_blas_ok}" = no; then
@@ -2744,7 +2731,6 @@
   F77_SYMBOL(drotmg)();
   F77_SYMBOL(dsbmv)();
   F77_SYMBOL(dscal)();
-  F77_SYMBOL(dsdot)();
   F77_SYMBOL(dspmv)();
   F77_SYMBOL(dspr)();
   F77_SYMBOL(dspr2)();


code:
diff -Nuar R-3.0.1.orig/configure.ac R-3.0.1/configure.ac
--- R-3.0.1.orig/configure.ac	2013-03-25 01:05:05.000000000 +0200
+++ R-3.0.1/configure.ac	2013-05-18 23:41:55.803629789 +0300
@@ -137,7 +137,7 @@
   linux*)
     ## Not all distros use this: some choose to march out of step
     case "${host_cpu}" in
-      x86_64|mips64|ppc64|powerpc64|sparc64|s390x)
+      mips64|ppc64|powerpc64|sparc64|s390x)
         if test -d /usr/lib64; then
           libnn=lib64
 	fi
diff -Nuar R-3.0.1.orig/src/scripts/R.sh.in R-3.0.1/src/scripts/R.sh.in
--- R-3.0.1.orig/src/scripts/R.sh.in	2013-03-06 01:02:41.000000000 +0200
+++ R-3.0.1/src/scripts/R.sh.in	2013-05-18 23:42:28.075630689 +0300
@@ -7,13 +7,13 @@
    linux*)
      run_arch=`uname -m`
      case "$run_arch" in
-        x86_64|mips64|ppc64|powerpc64|sparc64|s390x)
+        mips64|ppc64|powerpc64|sparc64|s390x)
           libnn=lib64
           libnn_fallback=lib
         ;;
         *)
           libnn=lib
-          libnn_fallback=lib64
+          libnn_fallback=lib
         ;;
      esac
      if [ -x "@prefix@/${libnn}/R/bin/exec/R" ]; then


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>R-lang</Name>
        <Homepage>http://www.r-project.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>LGPLv2.1</License>
        <IsA>app:console</IsA>
        A free software environment for statistical computing and graphics
        <Description>This package includes the core R userspace and all R development components.</Description>
        <Archive sha1sum="537d481888f20d385b3039f2f2b0c49b7b0fb5de" type="targz">http://cran.r-project.org/src/base/R-3/R-3.4.3.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libXmu-devel</Dependency>
            <Dependency>icu4c-devel</Dependency>
            <Dependency>jdk7-openjdk</Dependency>
            <Dependency>xdg-utils</Dependency>
            <Dependency>blas-devel</Dependency>
            <Dependency>lapack-devel</Dependency>
            <Dependency>libXt-devel</Dependency>
            <Dependency>libSM-devel</Dependency>
            <Dependency>cairo-devel</Dependency>
            <Dependency>pango-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>libgfortran</Dependency>
            <Dependency>xz-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>curl-devel</Dependency>
        </BuildDependencies>
        <Patches>

            <Patch level="0">R-2.11.1-parallel.patch</Patch>
            <Patch level="0">R-2.13.1-zlib_header_fix.patch</Patch>

        </Patches>
    </Source>

    <Package>
        <Name>R</Name>
        <RuntimeDependencies>
            <Dependency>blas</Dependency>
            <Dependency>make</Dependency>
            <Dependency>tiff</Dependency>
            <Dependency>libXt</Dependency>
            <Dependency>icu4c</Dependency>
            <Dependency>libSM</Dependency>
            <Dependency>cairo</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>libXmu</Dependency>
            <Dependency>lapack</Dependency>
            <Dependency>xdg-utils</Dependency>
            <Dependency>libgfortran</Dependency>
            <Dependency>jre7-openjdk</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>xz</Dependency>
            <Dependency>curl</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>libpcre</Dependency>
            <Dependency>readline</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib/R</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/etc/env.d/99R" owner="root" permission="0644">99R</AdditionalFile>
            <AdditionalFile target="/etc/ld.so.conf.d/99-R.conf" owner="root" permission="0644">ld.so.conf</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="package.py">System.Package</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>R-mathlib</Name>
        <IsA>library</IsA>
        Math library for R
        <RuntimeDependencies>
            <Dependency version="current">R</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="header">/usr/include/Rmath.h</Path>
        </Files>
    </Package>

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

    <Package>
        <Name>R-devel</Name>
        Development files for R
        <RuntimeDependencies>
            <Dependency release="current">R</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig/libR.pc</Path>
            <Path fileType="library">/usr/lib/pkgconfig/libRmath.pc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-02-01</Date>
            <Version>3.4.3</Version>
            <Comment>Release bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-12-01</Date>
            <Version>3.4.3</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2017-06-08</Date>
            <Version>3.4.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2016-06-27</Date>
            <Version>3.3.1</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>R</Name>
        R özgür istatistik ve grafik ortamı
        <Description xml:lang="tr">R özgür istatistik ve grafik ortamı</Description>
    </Source>

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

    <Package>
        <Name>R-docs</Name>
        R belgeleri
    </Package>

    <Package>
        <Name>R-mathlib</Name>
        R Mathlib kitaplığı
    </Package>
</PISI>


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

NoStrip = ["/"]

def build():
    shelltools.export("go_platform","linux-amd64")
    shelltools.export("go_linker","/lib/ld-linux-x86-64.so.2")

    shelltools.export("GOROOT", "%s/go-go1.9.2" % get.workDIR()) #0

    shelltools.export("GOBIN", "$GOROOT/bin") #1
    shelltools.export("GOPATH", "%s" % get.workDIR())
    shelltools.export("GOROOT_FINAL", "/usr/lib/go")
    shelltools.export("GOROOT_BOOTSTRAP", "%s/go-go1.9.2/go-linux-amd64-bootstrap" % get.workDIR())  #2

    shelltools.export("GOOS","linux")
    shelltools.export("GOARCH","amd64")

    shelltools.cd("src")

    shelltools.system("./make.bash")

    #shelltools.cd("%s/go-go1.6.3" % get.workDIR())

    #shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/godoc")
    #shelltools.system("$GOROOT/bin/go build -o $GOPATH/godoc golang.org/x/tools/cmd/godoc")

    #for tool in ["godex", "godoc", "goimports", "gomvpkg", "gorename", "gotype", "benchcmp", "bundle", "callgraph", "digraph", "eg", "fiximports", "html2article", "oracle", #"present", "ssadump", "stress", "stringer"]:
    #    shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/%s" % tool)
    #    shelltools.system("$GOROOT/bin/go build -v -x -o $GOROOT/pkg/tool/$GOOS\_$GOARCH/%s golang.org/x/tools/cmd/%s" % (tool, tool))

def install():
    shelltools.export("GOROOT_FINAL", "/usr/lib/go")
    shelltools.cd("%s/go-go1.9.2" % get.workDIR())

    pisitools.dodir("/usr/lib/go")
    shelltools.system("cp -r api bin doc lib pkg src  %s/usr/lib/go" % get.installDIR())
    shelltools.system("chown -R  root:root %s/usr" % get.installDIR())

    pisitools.dosym("/usr/lib/go/bin/go", "/usr/bin/go")
    pisitools.dosym("/usr/lib/go/bin/gofmt", "/usr/bin/gofmt")

    pisitools.dosym("/usr/lib/go/doc", "/usr/share/doc/%s/doc" % get.srcNAME())
    pisitools.dosym("/usr/lib/go/api", "/usr/share/doc/%s/api" % get.srcNAME())

    shelltools.system("cp -r misc  %s/usr/lib/go" % get.installDIR())

    pisitools.removeDir("/usr/lib/go/pkg/bootstrap")

    # remove testdata, which hit cave fix-linkage
    pisitools.remove("/usr/lib/go/src/debug/elf/testdata/gcc-386-freebsd-exec")
    pisitools.removeDir("/usr/lib/go/pkg/obj")

    # dirty fix thanks @erturk
    pisitools.removeDir("/usr/lib/go/pkg/linux_amd64")

    pisitools.dodoc("VERSION", "LICENSE", "PATENTS", "README*", "AUTHORS", "CONTRIBUTORS")


code:
Upstream: yes

From 45f759500ec80a1362deecd3693cbe44a354bf98 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor <iant@golang.org>
Date: Mon, 28 Nov 2016 16:19:03 -0800
Subject: [PATCH] cmd/link: handle STT_COMMON symbols

Tested by running

GOTRACEBACK=2 CGO_CFLAGS="-Wa,--elf-stt-common=yes" go test -ldflags=-linkmode=internal

in misc/cgo/test. That failed before this CL, succeeded after.

I don't think it's worth doing that as a regular test, though,
especially since only recent versions of the GNU binutils support the
--elf-stt-common option.

Fixes #18088.

Change-Id: I893d86181faee217b1504c054b0ed3f7c8d977d3
Reviewed-on: https://go-review.googlesource.com/33653
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
---
 src/cmd/link/internal/ld/ldelf.go | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/cmd/link/internal/ld/ldelf.go b/src/cmd/link/internal/ld/ldelf.go
index d700aa6..00e8f37 100644
--- a/src/cmd/link/internal/ld/ldelf.go
+++ b/src/cmd/link/internal/ld/ldelf.go
@@ -137,6 +137,8 @@ const (
 	ElfSymTypeFunc    = 2
 	ElfSymTypeSection = 3
 	ElfSymTypeFile    = 4
+	ElfSymTypeCommon  = 5
+	ElfSymTypeTLS     = 6
 )

 const (
@@ -751,10 +753,10 @@ func ldelf(ctxt *Link, f *bio.Reader, pkg string, length int64, pn string) {
 			goto bad
 		}
 		symbols[i] = sym.sym
-		if sym.type_ != ElfSymTypeFunc && sym.type_ != ElfSymTypeObject && sym.type_ != ElfSymTypeNone {
+		if sym.type_ != ElfSymTypeFunc && sym.type_ != ElfSymTypeObject && sym.type_ != ElfSymTypeNone && sym.type_ != ElfSymTypeCommon {
 			continue
 		}
-		if sym.shndx == ElfSymShnCommon {
+		if sym.shndx == ElfSymShnCommon || sym.type_ == ElfSymTypeCommon {
 			s = sym.sym
 			if uint64(s.Size) < sym.size {
 				s.Size = int64(sym.size)
@@ -1035,7 +1037,7 @@ func readelfsym(ctxt *Link, elfobj *ElfObj, i int, sym *ElfSym, needSym int, loc
 	case ElfSymTypeSection:
 		s = elfobj.sect[sym.shndx].sym

-	case ElfSymTypeObject, ElfSymTypeFunc, ElfSymTypeNone:
+	case ElfSymTypeObject, ElfSymTypeFunc, ElfSymTypeNone, ElfSymTypeCommon:
 		switch sym.bind {
 		case ElfSymBindGlobal:
 			if needSym != 0 {


code: export GOROOT=/usr/lib/go


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>go</Name>
        <Homepage>http://golang.org</Homepage>
        <Packager>
            <Name>Aydın Demirel</Name>
            <Email>aydin.demirel@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>app:console</IsA>
        <Summary>Compiler and tools for the Go programming language from Google</Summary>
        <Description>Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.</Description>
        <Archive sha1sum="6f0797b14fe2d22ea2a4fcff0049a18bae44520d" type="targz">https://github.com/golang/go/archive/go1.9.2.tar.gz</Archive>
        <Archive sha1sum="ed23e5951771f03d71dffdbd222617dd451fa511" type="tarbz2" target="go-go1.9.2">https://dev.gentoo.org/~williamh/dist/go-linux-amd64-bootstrap-1.8.tbz</Archive>
        <!--BuildDependencies>
            <Dependency>perl</Dependency>
            <Dependency>gawk</Dependency>
            <Dependency>mercurial</Dependency>
            <Dependency>git</Dependency>
        </BuildDependencies-->
        <!--Patches>
            <Patch>45f759500ec80a1362deecd3693cbe44a354bf98.patch</Patch>
        </Patches-->
    </Source>
    <Package>
        <Name>golang</Name>
        <RuntimeDependencies>
            <Dependency>git</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin/</Path>
            <Path fileType="library">/usr/lib/</Path>
            <Path fileType="data">/usr/share/</Path>
        </Files>
        <AdditionalFiles>
             <AdditionalFile owner="root" permission="0644" target="/etc/profile.d/go.sh">go.sh</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="7">
            <Date>2017-12-31</Date>
            <Version>1.9.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2017-08-21</Date>
            <Version>1.7.6</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2017-03-20</Date>
            <Version>1.7.5</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2016-08-06</Date>
            <Version>1.6.3</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>1.6.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-07</Date>
            <Version>1.6.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-09</Date>
            <Version>1.4.3</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>go</Name>
        <Summary xml:lang="tr">Google'dan Go programlama dili için araçlar ve derleyici</Summary>
        <Description xml:lang="tr">Go basit, güvenilir ve verimli yazılım inşa etmek için onu kolay yapan açık kaynaklı bir programlama dilidir.</Description>
    </Source>
</PISI>


code:
<PISI>
    <Name>programming.language.java</Name>
</PISI>


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

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

WorkDir = "."
shelltools.export("LC_ALL", "C")
shelltools.export("JAVA_HOME","/usr/lib/jvm/java-7-openjdk")

def setup():
    shelltools.export("LANG", "en_US.UTF-8")
    shelltools.system("sed -i -e 's|debuglevel=\"lines,source\"|debug=\"yes\"|g' build.xml")
    shelltools.system('sed -i -e "s/Xlint:none/Xlint:none -encoding cp1252/g" build.xml')
    shelltools.system("ant build")

def install():
    pisitools.insinto("/usr/share/man/man1/","ecj.1")

    pisitools.insinto("/usr/share/java/", "ecj.jar", "eclipse-ecj-4.4.jar")

    shelltools.cd("%s/usr/share/java/" % get.installDIR())

    pisitools.dosym("eclipse-ecj-4.4.jar", "/usr/share/java/ecj.jar")
    pisitools.dosym("eclipse-ecj-4.4.jar", "/usr/share/java/eclipse-ecj.jar")


code:
--- build.xml	2012-09-14 18:22:48.000000000 +0000
+++ build.xml.patched	2013-01-09 10:19:28.414079935 +0000
@@ -46,9 +46,10 @@
 				<include name="**/*.rsc"/>
 				<include name="META-INF/**"/>
 				<include name="**/*.properties"/>
+				<include name="**/*.props"/>
 				<exclude name="META-INF/eclipse.inf"/>
 			</fileset>
 		</zip>
 		<delete dir="${output}" />
 	</target>
-</project>
\ No newline at end of file
+</project>


code:
--- build.xml.orig	2013-10-03 13:55:28.579003290 +0000
+++ build.xml	2013-10-03 13:57:52.971400439 +0000
@@ -39,8 +39,6 @@
 			<compilerarg line="-Xlint:none"/>
 		</javac>

-		<delete file="${basedir}/META-INF/MANIFEST.MF" failonerror="false"/>
-		<copy tofile="${basedir}/META-INF/MANIFEST.MF" file="${basedir}/scripts/binary/META-INF/MANIFEST.MF"/>
 		<zip destfile="${basedir}/${jar_file}">
 			<fileset dir="${output}" />
 			<fileset dir="${basedir}">


code:
#!/bin/sh

CLASSPATH=/usr/share/java/ecj.jar${CLASSPATH:+:}$CLASSPATH \
java org.eclipse.jdt.internal.compiler.batch.Main "$@"


code:
<PISI>
    <Source>
        <Name>eclipse-ecj</Name>
        <Homepage>http://www.eclipse.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>EPL</License>
        <IsA>app:web</IsA>
        <Summary>Eclipse java bytecode compiler</Summary>
        <Description>Eclipse java bytecode compiler</Description>
        <Archive sha1sum="903e8c2cb521cc91636eccae66b8594435516ff5" type="zip">http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.4.2-201502041700/ecjsrc-4.4.2.jar</Archive>
        <BuildDependencies>
            <Dependency>ant</Dependency>
            <Dependency>jdk7-openjdk</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="0">01-ecj-include-props.patch</Patch>
            <Patch level="0">02-buildxml-fix-manifest.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>eclipse-ecj</Name>
        <RuntimeDependencies>
            <Dependency>jdk7-openjdk</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share/java</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/usr/bin/ecj" permission="0755" owner="root">ecj</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-05-15</Date>
            <Version>4.4.2_201502041700</Version>
            <Comment>Release Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-10</Date>
            <Version>4.4.2_201502041700</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-03</Date>
            <Version>4.4.2_201502041700</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
 <?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>eclipse-ecj</Name>
        <Summary xml:lang="en">Eclipse java bytecode compiler</Summary>
        <Description xml:lang="en">Eclipse java bytecode compiler</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/copyleft/gpl.txt

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

def setup():
    autotools.configure()

def build():
    autotools.make()

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

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


code:
<PISI>
    <Source>
        <Name>fastjar</Name>
        <Homepage>http://savannah.nongnu.org/projects/fastjar</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:web</IsA>
        <Summary>Sun java jar compatible archiver</Summary>
        <Description>Sun java jar compatible archiver</Description>
        <Archive sha1sum="c240a9e2115aad486329360d9166514261149af2" type="targz">http://download.savannah.gnu.org/releases/fastjar/fastjar-0.98.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>fastjar</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share/info</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-05-11</Date>
            <Version>0.98</Version>
            <Comment>Release Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.98</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-06-05</Date>
            <Version>0.98</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>fastjar</Name>
		<Summary xml:lang="En">Sun java jar compatible archiver</Summary>
		<Description xml:lang="En">Sun java jar compatible archiver.</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 get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def setup():
    shelltools.system("export LC_ALL=en_US.UTF-8")
    pisitools.flags.add("-std=c++11")
    autotools.configure("--prefix=/usr/lib/jvm/java-7-openjdk\
                         --datarootdir=/usr/share \
                         --with-jdk-home=/usr/lib/jvm/java-7-openjdk \
                         --with-browser-tests \
                         --disable-docs \
                         --with-firefox=/usr/bin/firefox")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dosym("/usr/lib/jvm/java-7-openjdk/lib/IcedTeaPlugin.so", "/usr/lib/browser-plugins/IcedTeaPlugin.so")
    pisitools.dosym("/usr/lib/jvm/java-7-openjdk/lib/IcedTeaPlugin.so", "/usr/lib/mozilla/plugins/IcedTeaPlugin.so")
    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>icedtea-web-java7</Name>
        <Homepage>http://www.x.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <Summary>Java web browser plugin</Summary>
        <Description>Free Software web browser plugin running applets written in the Java programming language and an implementation of Java Web Start, originally based on the NetX project.</Description>
        <Archive sha1sum="54b730855b29533866c8deb78cfe522adb18ff5d" type="targz">http://icedtea.wildebeest.org/download/source/icedtea-web-1.6.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>firefox</Dependency>
            <Dependency>jdk7-openjdk</Dependency>
            <Dependency>rhino</Dependency>
            <Dependency>libXtst-devel</Dependency>
            <!-- Dependency>junit</Dependency --> <!-- for unittests -->
            <Dependency>npapi-sdk-devel</Dependency>
            <Dependency>desktop-file-utils</Dependency>
            <Dependency>glib2-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>icedtea-web-java7</Name>
        <RuntimeDependencies>
            <Dependency>glib2</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>desktop-file-utils</Dependency>
            <Dependency>jre7-openjdk</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="library">/usr/lib/mozilla</Path>
            <Path fileType="library">/usr/lib/browser-plugins</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/applications</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2017-01-08</Date>
            <Version>1.6.2</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>icedtea-web-java7</Name>
        <Summary xml:lang="tr">Web tarayıcıları için Java eklentisi</Summary>
        <Description xml:lang="tr">Java uygulamacıklarını (applet) çalıştıran, Java Web Start'ın özgür yazılım sürümü.</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 get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

shelltools.export("ALT_PARALLEL_COMPILE_JOBS", get.makeJOBS())
shelltools.export("HOTSPOT_BUILD_JOBS", get.makeJOBS())
shelltools.export("LC_ALL", "C")

def setup():
    shelltools.system('export DISTRIBUTION_PATCHES="patches/fontconfig-paths.diff \
                               patches/openjdk7_nonreparenting-wm.diff\
                               patches/giflib_5.1.diff"')

    autotools.rawConfigure("\
                            --disable-tests \
                            --disable-Werror \
                            --with-parallel-jobs=%s \
                            --enable-nss \
                            --with-rhino \
                            --disable-system-kerberos \
                            --disable-system-pcsc \
                            --disable-system-sctp \
                            --enable-bootstrap \
                            --with-ecj-jar=/usr/share/java/ecj.jar \
                            --with-jdk-home=/usr/lib/jvm/java-7-openjdk \
                            --with-pkgversion='PisiLinux build 7.u121_2.6.8' \
                           " % get.makeJOBS().replace("-j", ""))

def build():
    autotools.make()

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

def install():
    jvmdir="/usr/lib/jvm/java-7-openjdk"

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

    #cd main output directory
    shelltools.cd("openjdk.build")

    #---- install openjdk7-doc
    pisitools.insinto("/usr/share/doc/openjdk7-doc", "docs/*")

    #install openjdk7-src
    pisitools.insinto(jvmdir, "j2sdk-image/src.zip")

    #---- instal jdk7-openjdk
    for d in ["include","lib","bin"]:
        pisitools.insinto(jvmdir, "j2sdk-image/%s" % d)

    for f in shelltools.ls("%s/usr/lib/jvm/java-7-openjdk/bin/" % get.installDIR()):
        if not f in ["java", "java-rmi.cgi", "keytool", "orbd",
                     "pack200", "policytool", "rmid", "rmiregistry",
                     "servertool", "tnameserv", "unpack200"]:
            pisitools.dosym("/usr/lib/jvm/java-7-openjdk/bin/%s" % f, "/usr/bin/%s" % f)

    #install man pages
    pisitools.doman("j2sdk-image/man/man1/*")
    pisitools.insinto("/usr/share/man/ja/man1", "j2sdk-image/man/ja_JP.UTF-8/man1/*.1")
    pisitools.insinto("/usr/share/applications", "../jconsole.desktop")
    shelltools.system("chmod go+r %s%s/lib/sa-jdi.jar" %(get.installDIR(), jvmdir))

    #---- instal jre7-openjdk
    pisitools.insinto("%s/jre/bin" % jvmdir , "j2sdk-image/jre/bin/*")
    #pisitools.insinto("%s/jre/lib/amd64" % jvmdir , "j2sdk-image/jre/lib/amd64/xawt")
    for binfile in shelltools.ls("j2sdk-image/jre/bin"):
        pisitools.dosym("%s/jre/bin/%s" % (jvmdir, binfile), "/usr/bin/%s" % binfile)

    pisitools.insinto("/usr/share/applications", "../policytool.desktop")

    for size in [16, 24, 32, 48]:
        fullsize = "%dx%d" % ((size, ) * 2)
        pisitools.insinto("/usr/share/icons/hicolor/%s/apps/" % fullsize, "../openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon%d.png" % size, "java.png")

    #---- install jre7-openjdk-headless
    pisitools.insinto("%s/jre/" % jvmdir , "j2sdk-image/jre/lib")
    pisitools.insinto("%s/jre/bin" % jvmdir, "j2sdk-image/jre/bin/*")

    pisitools.rename("%s/jre/lib/fontconfig.Ubuntu.properties.src" % jvmdir , "fontconfig.properties")
    pisitools.rename("%s/jre/lib/fontconfig.Ubuntu.bfc" % jvmdir , "fontconfig.bfc")
    pisitools.remove("%s/jre/lib/fontconfig.*.bfc" % jvmdir)
    pisitools.remove("%s/jre/lib/fontconfig.*.properties.src" % jvmdir)

    pisitools.domove("%s/jre/lib/*.properties*" % jvmdir,"/etc/java-7-openjdk/")

    for propfile in shelltools.ls("%s/etc/java-7-openjdk/" % get.installDIR()):
        pisitools.dosym("/etc/java-7-openjdk/%s" % propfile, "%s/jre/lib/%s" % (jvmdir, propfile))

    pisitools.domove("%s/jre/lib/images/cursors/cursors.properties" % jvmdir,"/etc/java-7-openjdk/cursors/")
    pisitools.dosym("/etc/java-7-openjdk/cursors/cursors.properties", "%s/jre/lib/images/cursors/cursors.properties" % jvmdir)

    pisitools.rename("%s/jre/lib/management/jmxremote.password.template" % jvmdir , "jmxremote.password")
    pisitools.rename("%s/jre/lib/management/snmp.acl.template" % jvmdir , "snmp.acl")

    for f in ["management.properties", "jmxremote.access", "jmxremote.password", "snmp.acl"]:
        pisitools.domove("%s/jre/lib/management/%s" % (jvmdir, f),"/etc/java-7-openjdk/management/")
        pisitools.dosym("/etc/java-7-openjdk/management/%s" % f, "%s/jre/lib/management/%s" % (jvmdir, f))

    for f in ["java.policy","java.security","nss.cfg"]:
        pisitools.domove("%s/jre/lib/security/%s" % (jvmdir, f),"/etc/java-7-openjdk/security/")
        pisitools.dosym("/etc/java-7-openjdk/security/%s" % f, "%s/jre/lib/security/%s" % (jvmdir, f))

    #confs=os.listdir("%s/etc/java-7-openjdk/" % get.installDIR())
    #for i in confs:
        #shelltools.system("chmod 0644 %s/etc/java-7-openjdk/%s" % (get.installDIR, i))

    pisitools.domove("%s/jre/lib/fontconfig.bfc" % jvmdir,"/etc/java-7-openjdk/")
    pisitools.domove("%s/jre/lib/amd64/jvm.cfg" % jvmdir,"/etc/java-7-openjdk/")
    pisitools.dosym("/etc/java-7-openjdk/jvm.cfg" , "%s/jre/lib/amd64/jvm.cfg" % jvmdir)

    for license in ["LICENSE", "THIRD_PARTY_README", "ASSEMBLY_EXCEPTION"]:
        pisitools.insinto("/usr/share/doc/jre7-openjdk-headless", "j2re-image/%s" % license)

    pisitools.remove("%s/jre/lib/security/cacerts" % jvmdir)

    #seems we need to add this symlink into ca-certificates-java package ?
    pisitools.dosym("/etc/ssl/certs/java/cacerts", "%s/jre/lib/security/cacerts" % jvmdir)


code:
--- openjdk/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c.orig	2014-05-27 22:17:19.766866065 +0200
+++ openjdk/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c	2014-05-27 22:16:35.452894426 +0200
@@ -310,7 +310,11 @@
     free(pBitmapBits);
     free(pOldBitmapBits);

+#if GIFLIB_MAJOR >= 5
+    DGifCloseFile(gif, NULL);
+#else
     DGifCloseFile(gif);
+#endif

     return 1;
 }


code:
--- openjdk/jdk/src/solaris/classes/sun/awt/X11/XWM.java.orig	2013-10-16 16:17:14.000000000 +0200
+++ openjdk/jdk/src/solaris/classes/sun/awt/X11/XWM.java	2013-10-21 20:57:34.768580842 +0200
@@ -105,7 +105,8 @@
         LG3D_WM = 13,
         CWM_WM = 14,
         MUTTER_WM = 15,
-        MARCO_WM = 16;
+        MARCO_WM = 16,
+        OTHER_NONREPARENTING_WM = 17;
     public String toString() {
         switch  (WMID) {
           case NO_WM:
@@ -591,7 +592,7 @@
     // TODO: according to wikipedia, compiz is now reparenting. This should
     // probably be updated.
     static boolean isNonReparentingWM() {
-        return (XWM.getWMID() == XWM.COMPIZ_WM || XWM.getWMID() == XWM.LG3D_WM || XWM.getWMID() == XWM.CWM_WM);
+        return (XWM.getWMID() == XWM.COMPIZ_WM || XWM.getWMID() == XWM.LG3D_WM || XWM.getWMID() == XWM.CWM_WM || XWM.getWMID() == XWM.OTHER_NONREPARENTING_WM);
     }

     /*
@@ -781,9 +782,17 @@
              * supports WIN or _NET wm spec.
              */
             else if (l_net_protocol.active()) {
-                awt_wmgr = XWM.OTHER_WM;
+                if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
+                    awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
+                } else {
+                    awt_wmgr = XWM.OTHER_WM;
+                }
             } else if (win.active()) {
-                awt_wmgr = XWM.OTHER_WM;
+                if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
+                    awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
+                } else {
+                    awt_wmgr = XWM.OTHER_WM;
+                }
             }
             /*
              * Check for legacy WMs.
@@ -794,6 +803,8 @@
                 awt_wmgr = XWM.MOTIF_WM;
             } else if (isOpenLook()) {
                 awt_wmgr = XWM.OPENLOOK_WM;
+            } else if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
+                awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
             } else {
                 awt_wmgr = XWM.OTHER_WM;
             }
@@ -1309,6 +1320,7 @@
                   res = new Insets(28, 6, 6, 6);
                   break;
               case NO_WM:
+              case OTHER_NONREPARENTING_WM:
               case LG3D_WM:
                   res = zeroInsets;
                   break;