From f646ad6c709d83363f8c8ac4802603b9b3bdfde7 Mon Sep 17 00:00:00 2001 From: Leonardo Valeri Manera Date: Wed, 7 May 2008 08:08:57 +0200 Subject: [PATCH] eclass/qt4-qt-copy.eclass: all looks good now, the rest should build clean ... --- eclass/qt4-qt-copy.eclass | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/eclass/qt4-qt-copy.eclass b/eclass/qt4-qt-copy.eclass index b855374..340b8ad 100644 --- a/eclass/qt4-qt-copy.eclass +++ b/eclass/qt4-qt-copy.eclass @@ -17,19 +17,21 @@ inherit eutils qt4-build IUSE="${IUSE} +qt-copy" -case ${PV} in - 4.4.0_rc1) +case ${PVR} in + 4.4.0_rc1*) QT_COPY_PV="1.0" ;; + *) + eerror "Version ${PVR} does not have patchset defined in the qt4-qt-copy eclass!" + die "Unsupported version for patchset, something screwed up bad, boss." + ;; esac SRC_URI="${SRC_URI} qt-copy? ( http://jyujin.de/~creidiki/qt-copy/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma )" DEPEND="${DEPEND} qt-copy? ( app-arch/lzma-utils )" qt4_qt-copy() { - #for x in $(ls "${S}"); do - #mv -vi ${x} $(echo ${x} | sed -e 's:[0-9]*:&_all_:' -e 's:_all_-:_all_:') - #done + # sed -e 's:[0-9]*:&_all_:' -e 's:_all_-:_all_:' cd "${S}" @@ -75,10 +77,14 @@ qt4_qt-copy() { ;; *) eerror "Package ${PN} is not supported by the qt4-qt-copy eclass!" - die "something screwed up bad, boss." + die "Unsupported package, something screwed up bad, boss." ;; esac ;; + *) + eerror "Version ${PVR} is not supported by the qt4-qt-copy eclass!" + die "Unsupported version for patching, something screwed up bad, boss." + ;; esac for qt_copy_patch in ${PATCHLIST}; do @@ -94,7 +100,9 @@ qt4-qt-copy_src_unpack() { qt4-qt-copy_pkg_postinst() { qt4-build_pkg_postinst if use qt-copy; then + ewarn ewarn "Do NOT report bugs to Gentoo's bugzilla when built with qt-copy!" + ewarn fi } -- 2.11.4.GIT