python3.4: remove references to cross toolchain.
This commit is contained in:
parent
33419011e2
commit
4eae6532c3
1 changed files with 9 additions and 2 deletions
|
@ -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 <xtraeme@gmail.com>"
|
||||
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue