kde5 frameworks build part 1

This commit is contained in:
Ertuğrul Erata
2015-07-24 11:59:59 +03:00
parent bb573cffd4
commit a6b734df58
13 changed files with 357 additions and 12 deletions
@@ -0,0 +1,22 @@
#!/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 pythonmodules
from pisi.actionsapi import get
WorkDir="%s-%s" % (get.srcNAME().split("-")[1], get.srcVERSION())
def build():
pythonmodules.compile()
def install():
pythonmodules.install()
pisitools.dohtml("docs/build/*")
pisitools.insinto("/usr/share/doc/%s/src/" % get.srcNAME(),"docs/src/*")
pisitools.doman("docs/pygmentize.1")
@@ -0,0 +1,54 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>python-Pygments</Name>
<Homepage>http://pygments.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>library</IsA>
<Summary>A syntax highlighting package written in Python</Summary>
<Description>python-Pygments is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code.</Description>
<Archive sha1sum="53d831b83b1e4d4f16fec604057e70519f9f02fb" type="targz">https://pypi.python.org/packages/source/P/Pygments/Pygments-1.6.tar.gz</Archive>
</Source>
<Package>
<Name>python-Pygments</Name>
<RuntimeDependencies>
<Dependency>python-setuptools</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib/python*</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<Package>
<Name>python-Pygments-docs</Name>
<Summary>Documentation files for python-Pygments</Summary>
<Files>
<Path fileType="doc">/usr/share/doc/python-Pygments</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2013-12-07</Date>
<Version>1.6</Version>
<Comment>Version bump</Comment>
<Name>Burak Fazıl Ertürk</Name>
<Email>burakerturk@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-11-16</Date>
<Version>1.5</Version>
<Comment>First release</Comment>
<Name>Erdinç Gültekin</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,13 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>python-Pygments</Name>
<Summary xml:lang="tr">Python dilinde yazılmış bir sözdizimi belirtme aracı</Summary>
<Description xml:lang="tr">python-Pygments, kaynak kodunu güzelleştirmek ihtiyacı duyulan forum sistemleri, wikiler ve diğer uygulamalar gibi her çeşit yazılımda kullanılmak için yazılmış olan genel bir sözdizimi belirtme aracıdır.</Description>
</Source>
<Package>
<Name>python-Pygments-docs</Name>
<Summary xml:lang="tr">python-Pygments için belgelendirme dosyaları</Summary>
</Package>
</PISI>
@@ -0,0 +1,33 @@
#!/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
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
WorkDir="six-%s" % get.srcVERSION()
def setup():
shelltools.cd("..")
shelltools.makedirs("build_python3")
shelltools.copytree("./%s" % WorkDir, "build_python3")
shelltools.cd(WorkDir)
def build():
pythonmodules.compile()
shelltools.cd("../build_python3/%s" % WorkDir)
pythonmodules.compile(pyVer="3.4")
def install():
pythonmodules.install()
shelltools.cd("../build_python3/%s" % WorkDir)
pythonmodules.install(pyVer="3.4")
pisitools.removeDir("/usr/lib/*/site-packages/six-1.9.0*egg-info*")
pisitools.remove("/usr/lib/*/site-packages/*egg-info*")
@@ -0,0 +1,51 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>python-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>
<BuildDependencies>
<Dependency>python3</Dependency>
</BuildDependencies>
<Archive sha1sum="d168e6d01f0900875c6ecebc97da72d0fda31129" type="targz">http://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz</Archive>
</Source>
<Package>
<Name>python-six</Name>
<Files>
<Path fileType="library">/usr/lib/python2*</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>python3-six</Name>
<Files>
<Path fileType="library">/usr/lib/python3*</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2015-07-24</Date>
<Version>1.9.0</Version>
<Comment>Version bump.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="1">
<Date>2014-05-31</Date>
<Version>1.6.1</Version>
<Comment>First release</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,7 @@
<PISI>
<Source>
<Name>python-six</Name>
<Summary xml:lang="tr">Python2 ve python3 uyumluluk programı.</Summary>
<Description xml:lang="tr">python-six, python2 ile python3 arasındaki farklılıkların aşılmasına yardımcı olan basit araçlar sağlar.</Description>
</Source>
</PISI>
+46
View File
@@ -0,0 +1,46 @@
#!/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_arm_wince")
shelltools.unlinkDir("Modules/_ctypes/libffi_msvc")
shelltools.unlinkDir("Modules/_ctypes/libffi_osx")
autotools.rawConfigure("\
--prefix=/usr \
--enable-ipv6 \
--enable-loadable-sqlite-extensions \
--enable-shared \
--with-computed-gotos \
--with-dbmliborder=gdbm:ndbm \
--with-fpectl \
--with-system-expat \
--with-system-ffi \
--with-system-libmpdec \
--with-threads \
--with-valgrind \
--without-ensurepip \
")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.remove("/usr/bin/2to3")
pisitools.dodoc("LICENSE", "README")
@@ -0,0 +1,20 @@
diff -up Python-3.1.1/Lib/distutils/unixccompiler.py.rpath Python-3.1.1/Lib/distutils/unixccompiler.py
--- Python-3.1.1/Lib/distutils/unixccompiler.py.rpath 2009-09-04 17:29:34.000000000 -0400
+++ Python-3.1.1/Lib/distutils/unixccompiler.py 2009-09-04 17:49:54.000000000 -0400
@@ -141,6 +141,16 @@ class UnixCCompiler(CCompiler):
if sys.platform == "cygwin":
exe_extension = ".exe"
+ def _fix_lib_args(self, libraries, library_dirs, runtime_library_dirs):
+ """Remove standard library path from rpath"""
+ libraries, library_dirs, runtime_library_dirs = super(
+ self.__class__, self)._fix_lib_args(libraries, library_dirs,
+ runtime_library_dirs)
+ libdir = sysconfig.get_config_var('LIBDIR')
+ if runtime_library_dirs and (libdir in runtime_library_dirs):
+ runtime_library_dirs.remove(libdir)
+ return libraries, library_dirs, runtime_library_dirs
+
def preprocess(self, source, output_file=None, macros=None,
include_dirs=None, extra_preargs=None, extra_postargs=None):
fixed_args = self._fix_compile_args(None, macros, include_dirs)
+92
View File
@@ -0,0 +1,92 @@
<?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>
<Summary>Next generation of the python high-level scripting language</Summary>
<Description>Next generation of the python high-level scripting language</Description>
<BuildDependencies>
<Dependency>valgrind</Dependency>
<Dependency>tcltk-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>
<Archive sha1sum="143e098efe7ee7bec8a4904ec4b322f28a067a03" type="tarxz">http://www.python.org/ftp/python/3.4.1/Python-3.4.1.tar.xz</Archive>
<Patches>
<Patch level="1">Python-3.1.1-rpath.patch</Patch>
</Patches>
</Source>
<Package>
<Name>python3</Name>
<RuntimeDependencies>
<Dependency>tcl</Dependency>
<Dependency>tcltk</Dependency>
<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/*</Path>
<Path fileType="header" permanent="0">/usr/include/python3.4m/*</Path>
<Path fileType="library" permanent="0">/usr/lib/pkgconfig/*</Path>
<Path fileType="library" permanent="0">/usr/lib/python3.4/*</Path>
<Path fileType="library" permanent="0">/usr/lib/*</Path>
<Path fileType="man" permanent="0">/usr/share/man/man1/*</Path>
<Path fileType="doc" permanent="0">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="4">
<Date>2014-05-26</Date>
<Version>3.4.1</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-09-09</Date>
<Version>3.3.0</Version>
<Comment>V.Bump</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-08-17</Date>
<Version>3.3.0</Version>
<Comment>Dep Fixed</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-11-11</Date>
<Version>3.3.0</Version>
<Comment>First release</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
</History>
</PISI>