create core package
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
|
||||
def build():
|
||||
pisitools.dosed("script/*", "/usr/bin/env python", "/usr/bin/python")
|
||||
pythonmodules.compile()
|
||||
|
||||
def install():
|
||||
pythonmodules.install("--no-version-script \
|
||||
--standalone-lib \
|
||||
--install-scripts=/usr/bin \
|
||||
--install-data=/usr/share")
|
||||
|
||||
pisitools.dodoc("CHANGES*", "LICENSE*", "README*", "RELEASE*")
|
||||
@@ -0,0 +1,33 @@
|
||||
Index: scons-2.1.0/engine/SCons/Tool/link.py
|
||||
===================================================================
|
||||
--- scons-2.1.0.orig/engine/SCons/Tool/link.py
|
||||
+++ scons-2.1.0/engine/SCons/Tool/link.py
|
||||
@@ -74,8 +74,8 @@ def generate(env):
|
||||
SCons.Tool.createProgBuilder(env)
|
||||
|
||||
env['SHLINK'] = '$LINK'
|
||||
- env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -shared')
|
||||
- env['SHLINKCOM'] = '$SHLINK -o $TARGET $SHLINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS'
|
||||
+ env['SHLINKFLAGS'] = SCons.Util.CLVar('-shared')
|
||||
+ env['SHLINKCOM'] = '$SHLINK $SHLINKFLAGS $LINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS -o $TARGET'
|
||||
# don't set up the emitter, cause AppendUnique will generate a list
|
||||
# starting with None :-(
|
||||
env.Append(SHLIBEMITTER = [shlib_emitter])
|
||||
@@ -83,7 +83,7 @@ def generate(env):
|
||||
env['LINK'] = "$SMARTLINK"
|
||||
env['LINKFLAGS'] = SCons.Util.CLVar('')
|
||||
# __RPATH is only set to something ($_RPATH typically) on platforms that support it.
|
||||
- env['LINKCOM'] = '$LINK -o $TARGET $LINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS'
|
||||
+ env['LINKCOM'] = '$LINK $LINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS -o $TARGET'
|
||||
env['LIBDIRPREFIX']='-L'
|
||||
env['LIBDIRSUFFIX']=''
|
||||
env['_LIBFLAGS']='${_stripixes(LIBLINKPREFIX, LIBS, LIBLINKSUFFIX, LIBPREFIXES, LIBSUFFIXES, __env__)}'
|
||||
@@ -106,7 +106,7 @@ def generate(env):
|
||||
env['LDMODULEPREFIX'] = '$SHLIBPREFIX'
|
||||
env['LDMODULESUFFIX'] = '$SHLIBSUFFIX'
|
||||
env['LDMODULEFLAGS'] = '$SHLINKFLAGS'
|
||||
- env['LDMODULECOM'] = '$LDMODULE -o $TARGET $LDMODULEFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS'
|
||||
+ env['LDMODULECOM'] = '$LDMODULE $LDMODULEFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS -o $TARGET'
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
Index: scons-1.3.0/engine/SCons/Tool/qt.py
|
||||
===================================================================
|
||||
--- scons-1.3.0.orig/engine/SCons/Tool/qt.py
|
||||
+++ scons-1.3.0/engine/SCons/Tool/qt.py
|
||||
@@ -139,7 +139,10 @@ class _Automoc:
|
||||
# c or fortran source
|
||||
continue
|
||||
#cpp_contents = comment.sub('', cpp.get_text_contents())
|
||||
- cpp_contents = cpp.get_text_contents()
|
||||
+ try:
|
||||
+ cpp_contents = cpp.get_text_contents()
|
||||
+ except AttributeError: # non-existant file
|
||||
+ cpp_contents = None
|
||||
h=None
|
||||
for h_ext in header_extensions:
|
||||
# try to find the header file in the corresponding source
|
||||
@@ -162,7 +165,7 @@ class _Automoc:
|
||||
#moc_cpp.target_scanner = SCons.Defaults.CScan
|
||||
if debug:
|
||||
print "scons: qt: found Q_OBJECT macro in '%s', moc'ing to '%s'" % (str(h), str(moc_cpp))
|
||||
- if cpp and q_object_search.search(cpp_contents):
|
||||
+ if cpp_contents and cpp and q_object_search.search(cpp_contents):
|
||||
# cpp file with Q_OBJECT macro found -> add moc
|
||||
# (to be included in cpp)
|
||||
moc = env.Moc(cpp)
|
||||
@@ -0,0 +1,82 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>scons</Name>
|
||||
<Homepage>http://www.scons.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>MIT</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>An Open Source software construction tool</Summary>
|
||||
<Description>Think of SCons as an improved, cross-platform substitute for the classic Make utility with integrated functionality similar to autoconf/automake and compiler caches such as ccache.</Description>
|
||||
<Archive sha1sum="775e715e49fe5fd8e1d29551a296fdc9267509e7" type="targz">mirrors://sourceforge/scons/scons-2.3.1.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>python</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">scons-1.0.0-qt-handle-missing-moc-files.patch</Patch>
|
||||
<Patch level="1">fix-gnu-link-handling.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>scons</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>python</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="6">
|
||||
<Date>2014-05-11</Date>
|
||||
<Version>2.3.1</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2014-03-29</Date>
|
||||
<Version>2.3.1</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2013-10-22</Date>
|
||||
<Version>2.3.0</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-07-24</Date>
|
||||
<Version>2.3.0</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-02-17</Date>
|
||||
<Version>2.2.0</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Ertan Güven</Name>
|
||||
<Email>ertan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2011-12-14</Date>
|
||||
<Version>2.1.0</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>scons</Name>
|
||||
<Summary xml:lang="tr">Python temelli, esnek, geliştirilebilir inşa aracı</Summary>
|
||||
<Description xml:lang="tr">Python temelli, esnek, geliştirilebilir inşa aracı. SCons, klasik "make" aracına "autconf/automake" özellikleri ve "ccache" gibi derleyici önbelleği eklenmiş, gelişmiş bir araç olarak düşünülebilir.</Description>
|
||||
<Description xml:lang="fr">Utilitaire extensible écrit en python. On peut considérer SCons comme un substitut amélioré multi-plateforme de Make intégrant des fonctionnalités similaires à celles d'autoconf/automake et un gestionnaire de cache de compilateur tel ccache.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user