From 8adbfe9bc70a079198e47a9ae5d4367f54c45ab9 Mon Sep 17 00:00:00 2001 From: nghodban Date: Wed, 30 Dec 2020 14:05:51 +0100 Subject: [PATCH] COTECH - align Linux prerequisites on Windows - prepare products - does not impact current settings --- products/Sphinx.pyconf | 6 ++++++ products/compil_scripts/graphviz-2.38.0.sh | 2 -- products/env_scripts/pycairo.py | 11 +++++++++++ products/graphviz.pyconf | 2 ++ products/nlopt.pyconf | 11 +++++++++++ products/pycairo.pyconf | 20 ++++++++++++++++++++ 6 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 products/env_scripts/pycairo.py create mode 100644 products/pycairo.pyconf diff --git a/products/Sphinx.pyconf b/products/Sphinx.pyconf index 9b50d20..a3ce9db 100644 --- a/products/Sphinx.pyconf +++ b/products/Sphinx.pyconf @@ -38,6 +38,12 @@ default_win : } } +version_2_1_2: +{ + depend : ["Python", "setuptools", "Pygments", "Jinja2", "docutils", "sphinxcontrib_applehelp", "sphinxcontrib_serializinghtml","sphinxcontrib_websupport", "sphinxcontrib_htmlhelp", "sphinxcontrib_qthelp", "sphinxcontrib_devhelp", "sphinxcontrib_jsmath", "packaging", "requests", "imagesize", "alabaster", "Babel", "snowballstemmer", "markupsafe"] + +} + version_1_1_3_to_1_2_3 : { name : "Sphinx" diff --git a/products/compil_scripts/graphviz-2.38.0.sh b/products/compil_scripts/graphviz-2.38.0.sh index 291a688..c5ef6e1 100755 --- a/products/compil_scripts/graphviz-2.38.0.sh +++ b/products/compil_scripts/graphviz-2.38.0.sh @@ -11,8 +11,6 @@ cp -r $SOURCE_DIR/* . echo "graphviz compilation" echo -#echo "*** ./configure --prefix=${PRODUCT_INSTALL} --with-tcl=${TCLHOME}/lib --with-expat=no --with-qt=no --with-cgraph=no --enable-perl=no" -#./configure --prefix=${PRODUCT_INSTALL} --with-tcl=${TCLHOME}/lib --with-expat=no --with-qt=no --with-cgraph=no --enable-perl=no echo "*** ./configure --prefix=${PRODUCT_INSTALL} --enable-tcl=no --with-expat=no --with-qt=no --enable-perl=no --enable-ocaml=no" ./configure --prefix=${PRODUCT_INSTALL} --enable-tcl=no --with-expat=no --with-qt=no --enable-perl=no --enable-ocaml=no --with-ghostscript=no --enable-python=no --enable-java=no diff --git a/products/env_scripts/pycairo.py b/products/env_scripts/pycairo.py new file mode 100644 index 0000000..4e89c90 --- /dev/null +++ b/products/env_scripts/pycairo.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os.path +import platform + +def set_env(env, prereq_dir, version): + env.set('PYCAIRO_ROOT_DIR', prereq_dir) + +def set_nativ_env(env): + pass diff --git a/products/graphviz.pyconf b/products/graphviz.pyconf index 505cee4..43147a4 100755 --- a/products/graphviz.pyconf +++ b/products/graphviz.pyconf @@ -41,10 +41,12 @@ default_win : version_2_44_1 : { + build_source : "cmake" } version_2_44_1_win : { + build_source : "script" compil_script : "graphviz-2.44.1" + $VARS.scriptExtension depend : ['expat','zlib','libpng','libxml2', 'libjpeg','cmake'] } diff --git a/products/nlopt.pyconf b/products/nlopt.pyconf index 336664a..b031195 100644 --- a/products/nlopt.pyconf +++ b/products/nlopt.pyconf @@ -30,3 +30,14 @@ default_win: single_install_dir : "yes" } } + +version_2_5_0: +{ + build_source : "cmake" + cmake_options : "-DBUILD_SHARED_LIBS:BOOL=ON -DNLOPT_MATLAB:BOOL=OFF -DNLOPT_OCTAVE:BOOL=OFF -DNLOPT_GUILE:BOOL=OFF" +} + +version_2_5_0_win: +{ + build_source : "script" +} diff --git a/products/pycairo.pyconf b/products/pycairo.pyconf new file mode 100644 index 0000000..c8a935b --- /dev/null +++ b/products/pycairo.pyconf @@ -0,0 +1,20 @@ +default : +{ + name : "pycairo" + build_source : "script" + compil_script : "pip_install" + $VARS.scriptExtension + get_source : "archive" + environ : + { + env_script : $name + ".py" + } + depend : ['Python','six','setuptools'] + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name + install_dir : 'base' + properties: + { + incremental : "yes" + pip : "yes" + } +} -- 2.39.2