python3.4: remove references to cross toolchain.
This commit is contained in:
parent
33419011e2
commit
4eae6532c3
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python3.4'
|
# Template file for 'python3.4'
|
||||||
pkgname=python3.4
|
pkgname=python3.4
|
||||||
version=3.4.1
|
version=3.4.1
|
||||||
revision=7
|
revision=8
|
||||||
wrksrc="Python-${version}"
|
wrksrc="Python-${version}"
|
||||||
short_desc="Interpreted, interactive, object-oriented programming language (${version%.*} series)"
|
short_desc="Interpreted, interactive, object-oriented programming language (${version%.*} series)"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -55,7 +55,7 @@ do_build() {
|
||||||
do_install() {
|
do_install() {
|
||||||
export PATH="$PATH:$wrksrc/hostpython"
|
export PATH="$PATH:$wrksrc/hostpython"
|
||||||
make DESTDIR=${DESTDIR} install maninstall
|
make DESTDIR=${DESTDIR} install maninstall
|
||||||
install -Dm644 LICENSE ${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE
|
vlicense LICENSE
|
||||||
|
|
||||||
rm -f ${DESTDIR}/usr/bin/2to3{,-3.4}
|
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.
|
# 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%.*}/test
|
||||||
rm -rf ${DESTDIR}/usr/lib/python${version%.*}/lib2to3/tests
|
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() {
|
python3.4-devel_package() {
|
||||||
|
|
Loading…
Reference in New Issue