From 4eae6532c3a67a2fdf02cb574fed77b96e955c44 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Fri, 5 Sep 2014 16:39:50 +0200 Subject: [PATCH] python3.4: remove references to cross toolchain. --- srcpkgs/python3.4/template | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python3.4/template b/srcpkgs/python3.4/template index e3715348963..6635e3cd5da 100644 --- a/srcpkgs/python3.4/template +++ b/srcpkgs/python3.4/template @@ -1,7 +1,7 @@ # Template file for 'python3.4' pkgname=python3.4 version=3.4.1 -revision=7 +revision=8 wrksrc="Python-${version}" short_desc="Interpreted, interactive, object-oriented programming language (${version%.*} series)" maintainer="Juan RP " @@ -55,7 +55,7 @@ do_build() { do_install() { export PATH="$PATH:$wrksrc/hostpython" make DESTDIR=${DESTDIR} install maninstall - install -Dm644 LICENSE ${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE + vlicense LICENSE rm -f ${DESTDIR}/usr/bin/2to3{,-3.4} @@ -65,6 +65,13 @@ do_install() { # Remove test module and tests that fail to be byte-compiled. rm -rf ${DESTDIR}/usr/lib/python${version%.*}/test rm -rf ${DESTDIR}/usr/lib/python${version%.*}/lib2to3/tests + + if [ "$CROSS_BUILD" ]; then + # Remove references to cross toolchain. + sed -i "s/$XBPS_CROSS_TRIPLET-//g" \ + ${DESTDIR}/usr/lib/python${version%.*}/_sysconfigdata.py \ + ${DESTDIR}/usr/lib/python${version%.*}/config-3.4m/Makefile + fi } python3.4-devel_package() {