aboutsummaryrefslogtreecommitdiffstats
path: root/main/scons
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-04-06 11:21:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-04-06 11:23:50 +0000
commit22ed22fc3284d981abc0c059deba5f45d1d5cb1e (patch)
tree797c07d4889161f53d66fc9bc719c98a4c1c7406 /main/scons
parent4fda246fd8ec0c3969878232d7a79c1dcf6dd902 (diff)
downloadaports-22ed22fc3284d981abc0c059deba5f45d1d5cb1e.tar.bz2
aports-22ed22fc3284d981abc0c059deba5f45d1d5cb1e.tar.xz
Revert "main/scons: upgrade to python3"
packages like serf fails to build with scons with python3. revert for now, again... This reverts commit f9a85640a0321cb63474ce6922325d0ca0847b72.
Diffstat (limited to 'main/scons')
-rw-r--r--main/scons/APKBUILD20
1 files changed, 9 insertions, 11 deletions
diff --git a/main/scons/APKBUILD b/main/scons/APKBUILD
index 60b9f7fd37..9cd141d0f9 100644
--- a/main/scons/APKBUILD
+++ b/main/scons/APKBUILD
@@ -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
+ python2 setup.py build
}
-check() {
+package() {
cd "$builddir"
- python3 setup.py check
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
}
-package() {
+check() {
cd "$builddir"
- python3 setup.py install --prefix=/usr --root="$pkgdir"
-
- # set env to python3
- sed -i 's|/usr/bin/env python|/usr/bin/python3|' "$pkgdir"/usr/bin/*
+ python2 setup.py check
}
sha512sums="b7be40ba507366cc678f31b910553cadaf59781c3a91833a34acbd29d9cad0cda38f6753034bf92c3af55d1e0c2f72aba5d81f1ec67205d0345b005d286f7084 scons-3.0.1.tar.gz"