Magellan Linux

Diff of /branches/magellan-next/core/python/python-2.7.0-r4.smage2

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

revision 6332 by niro, Fri Aug 20 16:39:16 2010 UTC revision 6343 by niro, Fri Aug 20 20:12:45 2010 UTC
# Line 79  src_install() Line 79  src_install()
79   # install some missing directories   # install some missing directories
80   minstalldir /usr || die   minstalldir /usr || die
81    
82   mmake DESTDIR=${BINDIR} altinstall  || die   local abi
83     for abi in ${MULTILIB_ABIS}
84     do
85     case ${abi} in
86     m32) ABI_LIBDIR="lib";;
87     m64) ABI_LIBDIR="lib64";;
88     esac
89    
90     cd ${SRCDIR}-${abi}
91     make DESTDIR=${BINDIR} altinstall  || die
92    
93     minstalldir /usr/$(mlibdir)/python${PVER%.*}/config || die
94     minstallfile ${SRCDIR}-${abi}/Makefile.pre.in /usr/$(mlibdir)/python${PVER%.*}/config || die
95    
96     # remove hardcoded CFLAGS from default Makefile
97     sed -i 's:^OPT=.*:OPT=-DNDEBUG:' ${BINDIR}/usr/$(mlibdir)/python${PVER%.*}/config/Makefile || die
98    
99     if [[ ${ARCH} = x86_64 ]]
100     then
101     # move config header
102     mv -v ${BINDIR}/usr/include/python${PVER%.*}/pyconfig.h \
103     ${BINDIR}/usr/include/python${PVER%.*}/pyconfig-${abi}.h || die
104    
105   # link python${PVER%.*}-config to python-config   # install a stub header
106   mlink python${PVER%.*}-config /usr/bin/python-config || die   cat > ${BINDIR}/usr/include/python${PVER%.*}/pyconfig.h << "EOF"
   
  minstalldir /usr/$(mlibdir)/python${PVER%.*}/config || die  
  minstallfile ${SRCDIR}/Makefile.pre.in /usr/$(mlibdir)/python${PVER%.*}/config || die  
   
  # remove hardcoded CFLAGS from default Makefile  
  sed -i 's:^OPT=.*:OPT=-DNDEBUG:' ${BINDIR}/usr/$(mlibdir)/python${PVER%.*}/config/Makefile || die  
   
  if [[ ${ARCH} = x86_64 ]]  
  then  
  # move config header  
  all-abis mv -v ${BINDIR}/usr/include/python${PVER%.*}/pyconfig{,'${abi/m/}'}.h  
   
  # install a stub header  
  cat > ${BINDIR}/usr/include/python${PVER%.*}/pyconfig.h << "EOF"  
107  /* pyconfig.h - Stub Header  */  /* pyconfig.h - Stub Header  */
108  #ifndef __STUB__PYCONFIG_H__  #ifndef __STUB__PYCONFIG_H__
109  #define __STUB__PYCONFIG_H__  #define __STUB__PYCONFIG_H__
# Line 106  src_install() Line 113  src_install()
113      defined(__arch64__) || \      defined(__arch64__) || \
114      defined(__powerpc64__) || \      defined(__powerpc64__) || \
115      defined (__s390x__)      defined (__s390x__)
116  # include "pyconfig-64.h"  # include "pyconfig-m64.h"
117  #else  #else
118  # include "pyconfig-32.h"  # include "pyconfig-m32.h"
119  #endif  #endif
120    
121  #endif /* __STUB__PYCONFIG_H__ */  #endif /* __STUB__PYCONFIG_H__ */
122  EOF  EOF
123   # install the multiarch-wrapper   # install the multiarch-wrapper
124   all-abis mv -v ${BINDIR}/usr/bin/python${PYVER%.*}{,-'${abi/m/}'}   mv -v ${BINDIR}/usr/bin/python${PYVER%.*} \
125   mlink multiarch-wrapper /usr/bin/python${PYVER%.*}   ${BINDIR}/usr/bin/python${PYVER%.*}-${abi} || die
126   fi   mlink multiarch-wrapper /usr/bin/python${PYVER%.*} || die
127     fi
128     done
129    
130     # link python${PVER%.*}-config to python-config
131     mlink python${PVER%.*}-config /usr/bin/python-config || die
132    
133   # link python2.7 binary with python   # link python2.7 binary with python
134   mlink python${PVER%.*} /usr/bin/python || die   mlink python${PVER%.*} /usr/bin/python || die

Legend:
Removed from v.6332  
changed lines
  Added in v.6343