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 6336 by niro, Fri Aug 20 19:44:52 2010 UTC revision 6337 by niro, Fri Aug 20 19:53:55 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     make DESTDIR=${BINDIR} altinstall  || die
86    
87     minstalldir /usr/$(mlibdir)/python${PVER%.*}/config || die
88     minstallfile ${SRCDIR}-${abi}/Makefile.pre.in /usr/'$(mlibdir)'/python${PVER%.*}/config || die
89    
90     # remove hardcoded CFLAGS from default Makefile
91     sed -i 's:^OPT=.*:OPT=-DNDEBUG:' ${BINDIR}/usr/$(mlibdir)/python${PVER%.*}/config/Makefile || die
92    
93     if [[ ${ARCH} = x86_64 ]]
94     then
95     # move config header
96     all-abis mv -v ${BINDIR}/usr/include/python${PVER%.*}/pyconfig{,'${abi}'}.h
97    
98   # link python${PVER%.*}-config to python-config   # install a stub header
99   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  
  all-abis minstallfile ${SRCDIR}-'${abi}'/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}'}.h  
   
  # install a stub header  
  cat > ${BINDIR}/usr/include/python${PVER%.*}/pyconfig.h << "EOF"  
100  /* pyconfig.h - Stub Header  */  /* pyconfig.h - Stub Header  */
101  #ifndef __STUB__PYCONFIG_H__  #ifndef __STUB__PYCONFIG_H__
102  #define __STUB__PYCONFIG_H__  #define __STUB__PYCONFIG_H__
# Line 113  src_install() Line 113  src_install()
113    
114  #endif /* __STUB__PYCONFIG_H__ */  #endif /* __STUB__PYCONFIG_H__ */
115  EOF  EOF
116   # install the multiarch-wrapper   # install the multiarch-wrapper
117   all-abis mv -v ${BINDIR}/usr/bin/python${PYVER%.*}{,-'${abi}'}   all-abis mv -v ${BINDIR}/usr/bin/python${PYVER%.*}{,-'${abi}'}
118   mlink multiarch-wrapper /usr/bin/python${PYVER%.*}   mlink multiarch-wrapper /usr/bin/python${PYVER%.*}
119   fi   fi
120     done
121    
122     # link python${PVER%.*}-config to python-config
123     mlink python${PVER%.*}-config /usr/bin/python-config || die
124    
125   # link python2.7 binary with python   # link python2.7 binary with python
126   mlink python${PVER%.*} /usr/bin/python || die   mlink python${PVER%.*} /usr/bin/python || die

Legend:
Removed from v.6336  
changed lines
  Added in v.6337