Magellan Linux

Diff of /branches/magellan-next/extras/qt4/qt4-4.7.4-r1.smage2

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

revision 9073 by niro, Tue Oct 4 15:24:00 2011 UTC revision 9074 by niro, Wed Oct 5 08:04:15 2011 UTC
# Line 13  HOMEPAGE="http://trolltech.com/products/ Line 13  HOMEPAGE="http://trolltech.com/products/
13  QT4_PHONON="no"  QT4_PHONON="no"
14  SPECIAL_VARS="QT4_PHONON"  SPECIAL_VARS="QT4_PHONON"
15    
16    # use kde-qt patches or not (yes/no), disabled atm
17    KDE_QT_PATCHES="no"
18    # snapshot id of the patches
19    KDE_QT_SNAPSHOT_ID="8fa76375a2f030ecf8aa23c917f51f04333a1b2c"
20    
21  DEPEND_CORE=">= dev-libs/openssl-1.0.0  DEPEND_CORE=">= dev-libs/openssl-1.0.0
22   >= sys-libs/zlib-1.2.5"   >= sys-libs/zlib-1.2.5"
23    
# Line 98  then Line 103  then
103   SPLIT_PACKAGES+="${PNAME}-phonon"   SPLIT_PACKAGES+="${PNAME}-phonon"
104  fi  fi
105    
 KDE_QT_SNAPSHOT_ID="8fa76375a2f030ecf8aa23c917f51f04333a1b2c"  
   
106  # include kde4 to get the right KDEDIR for phonon!  # include kde4 to get the right KDEDIR for phonon!
107  sminclude mtools kde4  sminclude mtools kde4
108    
# Line 107  SRC_URI=( Line 110  SRC_URI=(
110   ftp://ftp.qt.nokia.com/qt/source/${SRCFILE}   ftp://ftp.qt.nokia.com/qt/source/${SRCFILE}
111   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
112   mirror://${PNAME}/qt-4.5.1-no-hardcoded_fonts.patch   mirror://${PNAME}/qt-4.5.1-no-hardcoded_fonts.patch
  mirror://${PNAME}/qt-${PVER}-kde-qt-${KDE_QT_SNAPSHOT_ID}.patch  
113  )  )
114    
115  # add phonon patches  # add phonon patches
# Line 119  then Line 121  then
121   )   )
122  fi  fi
123    
124    # use kde-qt?
125    if [[ ${KDE_QT_PATCHES} = yes ]]
126    then
127     SRC_URI=(
128     ${SRC_URI[*]}
129     mirror://${PNAME}/qt-${PVER}-kde-qt-${KDE_QT_SNAPSHOT_ID}.patch
130     )
131    fi
132    
133  UP2DATE="updatecmd ftp://ftp.qt.nokia.com/qt/source/ | grep -v -- -tp | grep -v -- -beta | grep qt-everywhere-opensource-src | lasttarball gz"  UP2DATE="updatecmd ftp://ftp.qt.nokia.com/qt/source/ | grep -v -- -tp | grep -v -- -beta | grep qt-everywhere-opensource-src | lasttarball gz"
134    
135  ## global vars ##  ## global vars ##
# Line 175  split_info_qt4() Line 186  split_info_qt4()
186   #unset -f postinstall   #unset -f postinstall
187   unset -f preremove   unset -f preremove
188   unset -f postremove   unset -f postremove
   
  # inform the user  
  postinstall()  
  {  
  echo  
  echo "Please note that this meta package is only provided for convenience."  
  echo "No packages should depend directly on this meta package, but on the"  
  echo "specific split Qt packages needed."  
  echo  
  echo "This package will be removed in future versions!"  
  echo  
  }  
189  }  }
190    
191  split_info_qt4-core()  split_info_qt4-core()
# Line 253  then Line 252  then
252   ${DEPEND_PHONON}"   ${DEPEND_PHONON}"
253    
254   PROVIDE="virtual/phonon"   PROVIDE="virtual/phonon"
255     }
256    
257     preinstall_qt4-phonon()
258     {
259     if [[ -n $(magequery -n phonon) ]]
260     then
261     die "please uninstall kde-base/phonon first!"
262     fi
263     }
264    
265   preinstall()   postinstall_qt4-phonon()
266   {   {
267   if [[ -n $(magequery -n phonon) ]]   # breaks compilation if the old phonon symlink from kde-phonon exist
268   then   if [[ -L ${MROOT}/opt/kde4/lib/libphonon.so ]]
269   die "please uninstall kde-base/phonon first!"   then
270   fi   rm ${MROOT}/opt/kde4/lib/libphonon.so
271   }   fi
   
  postinstall()  
  {  
  # breaks compilation if the old phonon symlink from kde-phonon exist  
  if [[ -L ${MROOT}/opt/kde4/lib/libphonon.so ]]  
  then  
  rm ${MROOT}/opt/kde4/lib/libphonon.so  
  fi  
  }  
272   }   }
273  fi  fi
274    
# Line 351  src_prepare() Line 350  src_prepare()
350   sed -i "s:@@KDEDIR@@:${KDEDIR}:g" ${SRCDIR}/src/plugins/phonon/gstreamer/gstreamer.pro || die   sed -i "s:@@KDEDIR@@:${KDEDIR}:g" ${SRCDIR}/src/plugins/phonon/gstreamer/gstreamer.pro || die
351   fi   fi
352    
353   # kdeqt patches from http://gitorious.org/+kde-developers/qt/kde-qt   if [[ ${KDE_QT_PATCHES} = yes ]]
354   mpatch qt-${PVER}-kde-qt-${KDE_QT_SNAPSHOT_ID}.patch || die   then
355     # kdeqt patches from http://gitorious.org/+kde-developers/qt/kde-qt
356     mpatch qt-${PVER}-kde-qt-${KDE_QT_SNAPSHOT_ID}.patch || die
357     fi
358    
359   # set our cflags and fix up our header and lib locations   # set our cflags and fix up our header and lib locations
360   cd ${SRCDIR}/mkspecs/${PLATFORM}   cd ${SRCDIR}/mkspecs/${PLATFORM}
# Line 734  src_install_qt4-declarative() Line 736  src_install_qt4-declarative()
736   mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die   mmake -C ${i} INSTALL_ROOT=${BINDIR} install || die
737   done   done
738  }  }
739    
740    postinstall_qt4()
741    {
742     echo
743     echo "Please note that this meta package is only provided for convenience."
744     echo "No packages should depend directly on this meta package, but on the"
745     echo "specific split Qt packages needed."
746     echo
747     echo "This package will be removed in future versions!"
748     echo
749    }

Legend:
Removed from v.9073  
changed lines
  Added in v.9074