# $Id$ : ${PCAT="xfce-base"} : ${HOMEPAGE="http://www.xfce.org/"} : ${SRCFILE="${PNAME}-${PVER}.tar.bz2"} : ${SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"} SDEPEND="${SDEPEND} >= dev-util/pkgconfig-0.23 >= dev-util/intltool-0.40 >= sys-dev/gettext-0.17" sminclude mtools gtk2 fdo-mime case ${PNAME} in thunar-*-plugin) URISUBDIR="thunar-plugins"; UP2SUBDIR="thunar-plugins" ;; xfce4-*-plugin) URISUBDIR="panel-plugins"; UP2SUBDIR="panel-plugins" ;; parole|orage|ristretto|xfburn) URISUBDIR="apps"; UP2SUBDIR="apps";; xfce4-dict|xfce4-mixer|xfce4-notifyd|xfce4-taskmanager|xfce4-screenshooter|xfce4-terminal) URISUBDIR="apps"; UP2SUBDIR="apps" ;; *) URISUBDIR="xfce" ;; esac # default SRC_URIs SRC_URI=( ${SRC_URI[*]} http://mocha.xfce.org/archive/src/${URISUBDIR}/${PNAME}/$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE} http://archive.xfce.org/src/${URISUBDIR}/${PNAME}/$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_xfce ${PNAME}" # special functions needed by postinstall|postremove SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} xfce_postinstall xfce_postremove" xfce_configure() { local configure_opts="$@" mconfigure \ --libexecdir=/usr/$(mlibdir)/${PNAME} \ --with-html-dir=/usr/share/doc/${PNAME}-${PVER}/html \ --disable-debug \ --disable-static \ ${configure_opts} \ || die } xfce_src_prepare() { munpack ${SRCFILE} || die } xfce_src_compile() { cd ${SRCDIR} xfce_configure || die mmake ${XFCE_MAKE_OPTS} || die } xfce_src_check() { cd ${SRCDIR} mmake -k check || die } xfce_src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} ${XFCE_MAKE_OPTS} install || die local i for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ FAQ LICENSE NEWS README TODO do if [ -f ${SRCDIR}/${i} ] then minstalldocs ${i} || die fi done } xfce_postinstall() { fdo-mime_update_desktop_db fdo-mime_update_mime_db gtk2_update_icon_cache } xfce_postremove() { fdo-mime_update_desktop_db fdo-mime_update_mime_db gtk2_update_icon_cache } export_inherits xfce src_prepare src_compile src_check src_install postinstall postremove