Magellan Linux

Diff of /smage/branches/alx07x-stable/include/python.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 11533 by niro, Thu Dec 21 09:39:50 2017 UTC revision 13778 by niro, Wed Oct 30 12:46:56 2019 UTC
# Line 9  then Line 9  then
9   >= dev-lang/python-2.7"   >= dev-lang/python-2.7"
10  fi  fi
11    
12    # call meson include in the smage2, to prevent unnecessary dependencies
13    #sminclude meson
14    
15  # get the major.minor current installed python version  # get the major.minor current installed python version
16  # -> ex 2.4  # -> ex 2.4
17  mget-python-version()  mget-python-version()
# Line 70  python_docompile() Line 73  python_docompile()
73   then   then
74   ${MAGE_PYTHON_EXEC} waf configure --prefix=/usr --libdir=/usr/$(mlibdir) $@ || die   ${MAGE_PYTHON_EXEC} waf configure --prefix=/usr --libdir=/usr/$(mlibdir) $@ || die
75   ${MAGE_PYTHON_EXEC} waf build $@ || die   ${MAGE_PYTHON_EXEC} waf build $@ || die
76     elif [[ -e meson.build ]]
77     then
78     # never run multilib builds here, multilib will be enabled by python_multilib_src_compile
79     # this honors the logic of other build methods (python, waf, autotools)
80     MULTILIB_BUILD=false meson_configure -D python=${MAGE_PYTHON_EXEC} || die
81     MULTILIB_BUILD=false mninja || die
82   elif [[ -e configure ]]   elif [[ -e configure ]]
83   then   then
84   if [[ ${MULTILIB_BUILD} = true ]] && [[ ! -z $(typeset -f oldmconfigure) ]]  && [[ ! -z $(typeset -f oldmmake) ]]   if [[ ${MULTILIB_BUILD} = true ]] && [[ ! -z $(typeset -f oldmconfigure) ]]  && [[ ! -z $(typeset -f oldmmake) ]]
# Line 96  python_doinstall() Line 105  python_doinstall()
105   elif [[ -e waf ]]   elif [[ -e waf ]]
106   then   then
107   ${MAGE_PYTHON_EXEC} waf install --destdir=${BINDIR} $@ || die   ${MAGE_PYTHON_EXEC} waf install --destdir=${BINDIR} $@ || die
108     elif [[ -e meson.build ]]
109     then
110     # never run multilib builds here, multilib will be enabled by python_multilib_src_compile
111     # this honors the logic of other build methods (python, waf, autotools)
112     MULTILIB=false DESTDIR=${BINDIR} mninja install || die
113   elif [[ -e install.py ]]   elif [[ -e install.py ]]
114   then   then
115   ${MAGE_PYTHON_EXEC} install.py --prefix=/usr --files-only --destdir=${BINDIR} $@ || die   ${MAGE_PYTHON_EXEC} install.py --prefix=/usr --files-only --destdir=${BINDIR} $@ || die

Legend:
Removed from v.11533  
changed lines
  Added in v.13778