|
|
@ -7,6 +7,7 @@ package("scons") |
|
|
|
add_urls("https://github.com/SCons/scons/archive/refs/tags/$(version).zip", |
|
|
|
add_urls("https://github.com/SCons/scons/archive/refs/tags/$(version).zip", |
|
|
|
"https://github.com/SCons/scons.git") |
|
|
|
"https://github.com/SCons/scons.git") |
|
|
|
add_versions("4.1.0", "106259e92ba001feae5b50175bcec92306d0420bb08229fb037440cf303fcfc3") |
|
|
|
add_versions("4.1.0", "106259e92ba001feae5b50175bcec92306d0420bb08229fb037440cf303fcfc3") |
|
|
|
|
|
|
|
add_versions("4.3.0", "c8cb3be5861c05a46250c60938857b9711c29a1500001da187e36dc05ee70295") |
|
|
|
|
|
|
|
|
|
|
|
add_deps("python 3.x", {kind = "binary"}) |
|
|
|
add_deps("python 3.x", {kind = "binary"}) |
|
|
|
|
|
|
|
|
|
|
@ -22,9 +23,15 @@ package("scons") |
|
|
|
package:addenv("PYTHONPATH", PYTHONPATH, PYTHONPATH1) |
|
|
|
package:addenv("PYTHONPATH", PYTHONPATH, PYTHONPATH1) |
|
|
|
|
|
|
|
|
|
|
|
-- setup.py install needs these |
|
|
|
-- setup.py install needs these |
|
|
|
io.writefile("build/doc/man/scons.1", "") |
|
|
|
if package:version():ge("4.3.0") then |
|
|
|
io.writefile("build/doc/man/scons-time.1", "") |
|
|
|
io.writefile("scons.1", "") |
|
|
|
io.writefile("build/doc/man/sconsign.1", "") |
|
|
|
io.writefile("scons-time.1", "") |
|
|
|
|
|
|
|
io.writefile("sconsign.1", "") |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
io.writefile("build/doc/man/scons.1", "") |
|
|
|
|
|
|
|
io.writefile("build/doc/man/scons-time.1", "") |
|
|
|
|
|
|
|
io.writefile("build/doc/man/sconsign.1", "") |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
os.vrunv("python", {"setup.py", "install", "--prefix", package:installdir()}) |
|
|
|
os.vrunv("python", {"setup.py", "install", "--prefix", package:installdir()}) |
|
|
|
if package:is_plat("windows") then |
|
|
|
if package:is_plat("windows") then |
|
|
|