kde5 frameworks build part 1
This commit is contained in:
@@ -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)
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user