boost:rebuild-üst.sür.için.actions.py-düzenlemesi

This commit is contained in:
Rmys
2018-03-19 18:41:14 +03:00
parent 8e602070b5
commit bc1c1429d6
2 changed files with 43 additions and 13 deletions
+39 -9
View File
@@ -3,18 +3,26 @@
# Licensed under the GNU General Public License, version 3. # Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt # See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import get from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools from pisi.actionsapi import shelltools
def setup():
shelltools.system("./bootstrap.sh --with-toolset=gcc --with-icu --prefix=%s/usr" % get.installDIR())
#shelltools.system("./bootstrap.sh --with-toolset=gcc --with-icu --with-python=/usr/bin/python2.7 --prefix=%s/usr" % get.installDIR())
shelltools.echo("project-config.jam","using python : 3.6 : /usr/bin/python3 : /usr/include/python3.6m : /usr/lib ;") def setup():
#shelltools.echo("project-config.jam","--without-mpi ;") shelltools.system("./bootstrap.sh --with-toolset=gcc --with-icu --with-python=/usr/bin/python2.7 --prefix=%s/usr" % get.installDIR())
#hata vermemesi icin doysa isminin alt tire isaretinden ayıklanması boost-1.63.0 gibi düzeltilmesi gerekli
shelltools.copytree("../boost-%s" % (get.srcVERSION().replace("_", "~")), "../boost-%s-36" % get.srcVERSION())
shelltools.cd("../boost-%s-36" % get.srcVERSION())
shelltools.system("sed -e '/using python/ s@;@: /usr/include/python${PYTHON_VERSION/3*/${PYTHON_VERSION}m} ;@' \
-i bootstrap.sh")
shelltools.system("./bootstrap.sh --with-toolset=gcc --with-icu --with-python=/usr/bin/python3.6 --prefix=%s/usr" % get.installDIR())
shelltools.cd("..")
def build(): def build():
shelltools.system("./b2 \ shelltools.system("./b2 \
variant=release \ variant=release \
@@ -23,12 +31,34 @@ def build():
runtime-link=shared \ runtime-link=shared \
link=shared,static \ link=shared,static \
toolset=gcc \ toolset=gcc \
python=2.7 \
cflags=-fno-strict-aliasing \ cflags=-fno-strict-aliasing \
--layout=system") --layout=system")
shelltools.cd("../boost-%s-36" % get.srcVERSION())
shelltools.system("./b2 \
variant=release \
debug-symbols=off \
threading=multi \
runtime-link=shared \
link=shared,static \
toolset=gcc \
python=3.6 \
cflags=-fno-strict-aliasing \
--layout=system")
shelltools.cd("..")
def install(): def install():
pisitools.dobin("b2") pisitools.dobin("b2")
pisitools.dobin("bjam") pisitools.dobin("bjam")
shelltools.copytree("tools/boostbook/xsl", "%s/usr/share/boostbook/xsl" % get.installDIR()) shelltools.copytree("tools/boostbook/xsl", "%s/usr/share/boostbook/xsl" % get.installDIR())
shelltools.copytree("tools/boostbook/dtd", "%s/usr/share/boostbook" % get.installDIR()) shelltools.copytree("tools/boostbook/dtd", "%s/usr/share/boostbook" % get.installDIR())
shelltools.system("./b2 install threading=multi link=shared") shelltools.system("./b2 install threading=multi link=shared")
shelltools.cd("../boost-%s-36" % get.srcVERSION())
pisitools.dobin("b2")
pisitools.dobin("bjam")
shelltools.copytree("tools/boostbook/xsl", "%s/usr/share/boostbook/xsl" % get.installDIR())
shelltools.copytree("tools/boostbook/dtd", "%s/usr/share/boostbook" % get.installDIR())
shelltools.system("./b2 install threading=multi link=shared")
+4 -4
View File
@@ -13,7 +13,7 @@
<IsA>library</IsA> <IsA>library</IsA>
<Summary>Peer-reviewed portable C++ source libraries</Summary> <Summary>Peer-reviewed portable C++ source libraries</Summary>
<Description>Boost provides free portable peer-reviewed C++ libraries. The emphasis is on portable libraries which work well with the C++ Standard Library.</Description> <Description>Boost provides free portable peer-reviewed C++ libraries. The emphasis is on portable libraries which work well with the C++ Standard Library.</Description>
<Archive sha1sum="9f1dd4fa364a3e3156a77dc17aa562ef06404ff6" type="tarbz2">mirrors://sourceforge/boost/boost_1_63_0.tar.bz2</Archive> <Archive sha1sum="efe95f8b56d9efee6828651596fcf66f9d5151fa" type="tarbz2">https://sourceforge.net/projects/pisilinux/files/source/boost-1.63.0.tar.bz2/</Archive>
<BuildDependencies> <BuildDependencies>
<Dependency>bzip2</Dependency> <Dependency>bzip2</Dependency>
<Dependency>zlib-devel</Dependency> <Dependency>zlib-devel</Dependency>
@@ -25,7 +25,7 @@
<!--Dependency>openmpi-devel</Dependency--> <!--Dependency>openmpi-devel</Dependency-->
</BuildDependencies> </BuildDependencies>
<Patches> <Patches>
<Patch>pythonfix.patch</Patch> <!-- <Patch>pythonfix.patch</Patch> -->
</Patches> </Patches>
</Source> </Source>
@@ -85,9 +85,9 @@
<History> <History>
<Update release="7"> <Update release="7">
<Date>2018-02-04</Date> <Date>2018-03-19</Date>
<Version>1.63.0</Version> <Version>1.63.0</Version>
<Comment>Rebuild</Comment> <Comment>Rebuild.</Comment>
<Name>Mustafa Cinasal</Name> <Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email> <Email>muscnsl@gmail.com</Email>
</Update> </Update>