mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
pythonPackages.cgkit: init at 2.0.0
This commit is contained in:
parent
13c6b9ba85
commit
a4e7cc58bb
22
pkgs/development/python-modules/cgkit/scons-env.patch
Normal file
22
pkgs/development/python-modules/cgkit/scons-env.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
diff --git a/supportlib/SConstruct b/supportlib/SConstruct
|
||||||
|
index 7f797b9..07907e9 100644
|
||||||
|
--- a/supportlib/SConstruct
|
||||||
|
+++ b/supportlib/SConstruct
|
||||||
|
@@ -5,7 +5,7 @@
|
||||||
|
# library.
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
-import sys, glob, os.path
|
||||||
|
+import sys, glob, os.path, os
|
||||||
|
|
||||||
|
# Read the options
|
||||||
|
vars = Variables("cpp_config.cfg")
|
||||||
|
@@ -16,7 +16,7 @@ vars.Add("CPPPATH", "The include directories", [])
|
||||||
|
vars.Add("MSVS_VERSION", "The preferred version of MS Visual Studio")
|
||||||
|
|
||||||
|
# Create the construction environment
|
||||||
|
-env = Environment(variables = vars)
|
||||||
|
+env = Environment(variables = vars, ENV = os.environ)
|
||||||
|
|
||||||
|
# Build the files in "obj"
|
||||||
|
env.VariantDir("obj", "src", duplicate=0)
|
|
@ -2946,6 +2946,31 @@ in modules // {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cgkit = buildPythonPackage rec {
|
||||||
|
version = "2.0.0";
|
||||||
|
name = "cgkit-${version}";
|
||||||
|
disabled = isPy3k;
|
||||||
|
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "http://downloads.sourceforge.net/project/cgkit/cgkit/cgkit-${version}/cgkit-${version}-py2k.tar.gz";
|
||||||
|
sha256 = "0vvllc42mdyma3c7yqhahs4bfxymm2kvmc4va7dxqr5x0rzh6rd6";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ ../development/python-modules/cgkit/scons-env.patch ];
|
||||||
|
|
||||||
|
buildInputs = with pkgs; [ scons boost mesa ];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
cd supportlib
|
||||||
|
scons
|
||||||
|
cd -
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://cgkit.sourceforge.net;
|
||||||
|
description = "Python Computer Graphics Kit";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
cheetah = buildPythonPackage rec {
|
cheetah = buildPythonPackage rec {
|
||||||
version = "2.4.4";
|
version = "2.4.4";
|
||||||
|
|
Loading…
Reference in a new issue