scons: update to 4.0.1 13001/head
authorRosen Penev <rosenp@gmail.com>
Sun, 2 Aug 2020 08:03:58 +0000 (01:03 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 5 Aug 2020 07:53:13 +0000 (00:53 -0700)
Cleaned up Makefile to standards.

Replaced HIDDEN with BUILDONLY. It's more descriptive.

Added PKG_HOST_ONLY. This is a host only package.

Added HOST_BUILD_PARALLEL.

Added URL for uscan.

Added patch to fix library searching.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
devel/scons/Makefile
devel/scons/patches/001-platform_env.patch
devel/scons/patches/002-fix-import-path.patch [new file with mode: 0644]

index 13e636f03501a8bc609aebc54465c3d223850118..ae052ba991d10f28fbb86c1250101efeffe75ce7 100644 (file)
@@ -8,15 +8,19 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=scons
-PKG_VERSION:=3.1.2
+PKG_VERSION:=4.0.1
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-local-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/scons
-PKG_HASH:=642e90860b746fa18fac08c7a22de6bfa86110ae7c56d7f136f7e5fb0d8f4f44
+PKG_HASH:=23c9d37a008b525bdedfe2666a28b9466c4c945d8ba379873cfd0b9006a3d618
 
+PKG_MAINTAINER:=
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=scons-LICENSE
-PKG_MAINTAINER:=
+
+PKG_HOST_ONLY:=1
+HOST_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/host-build.mk
@@ -27,7 +31,8 @@ define Package/scons
   SECTION:=devel
   CATEGORY:=Development
   TITLE:=scons
-  HIDDEN:=1
+  URL:=https://scons.org/
+  BUILDONLY:=1
 endef
 
 define Package/scons/description
index 4e4dc2b8e154a5e10fcfc282208b7ec7788facde..641fdc7cf02010ed10cfb17b7338015756c1f00f 100644 (file)
@@ -1,6 +1,6 @@
---- a/scons-local-3.1.2/SCons/Platform/__init__.py
-+++ b/scons-local-3.1.2/SCons/Platform/__init__.py
-@@ -65,6 +65,8 @@ def platform_default():
+--- a/scons-local-4.0.1/SCons/Platform/__init__.py
++++ b/scons-local-4.0.1/SCons/Platform/__init__.py
+@@ -63,6 +63,8 @@ def platform_default():
      care about the machine architecture.
      """
      osname = os.name
diff --git a/devel/scons/patches/002-fix-import-path.patch b/devel/scons/patches/002-fix-import-path.patch
new file mode 100644 (file)
index 0000000..2c72cba
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/scons.py
++++ b/scons.py
+@@ -56,6 +56,7 @@ if script_path in sys.path:
+     sys.path.remove(script_path)
+ libs = []
++libs = [os.path.join(os.path.dirname(script_dir), 'lib', 'scons')]
+ if "SCONS_LIB_DIR" in os.environ:
+     libs.append(os.environ["SCONS_LIB_DIR"])