mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
Revert "main/scons: upgrade to python3"
packages like serf fails to build with scons with python3. revert for
now, again...
This reverts commit f9a85640a0
.
This commit is contained in:
parent
4fda246fd8
commit
22ed22fc32
@ -2,32 +2,30 @@
|
||||
# Maintainer: William Pitcock <nenolod@dereferenced.org>
|
||||
pkgname=scons
|
||||
pkgver=3.0.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Software construction system"
|
||||
url="http://www.scons.org"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="python3"
|
||||
makedepends="python3-dev"
|
||||
# before upgrade to python3, make sure that packages like serf builds with scons with python3
|
||||
depends="python2"
|
||||
makedepends="python2-dev"
|
||||
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python3 setup.py check
|
||||
python2 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
python2 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
# set env to python3
|
||||
sed -i 's|/usr/bin/env python|/usr/bin/python3|' "$pkgdir"/usr/bin/*
|
||||
check() {
|
||||
cd "$builddir"
|
||||
python2 setup.py check
|
||||
}
|
||||
|
||||
sha512sums="b7be40ba507366cc678f31b910553cadaf59781c3a91833a34acbd29d9cad0cda38f6753034bf92c3af55d1e0c2f72aba5d81f1ec67205d0345b005d286f7084 scons-3.0.1.tar.gz"
|
||||
|
Loading…
Reference in New Issue
Block a user