# ChangeLog for eclass directory
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.8 2011/11/12 13:05:33 sera Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.9 2011/11/12 18:26:59 pesa Exp $
+
+ 12 Nov 2011; Davide Pesavento <pesa@gentoo.org> qt4-r2.eclass:
+ Remove ${S} fallback from src_unpack, set qt@g.o as maintainer, remove
+ unnecessary quoting.
12 Nov 2011; Ralph Sennhauser <sera@gentoo.org> java-vm-2.eclass:
Add java-vm_sandbox-predict for installing a sandbox control file along with
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-r2.eclass,v 1.12 2011/08/22 04:46:32 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-r2.eclass,v 1.13 2011/11/12 18:26:59 pesa Exp $
# @ECLASS: qt4-r2.eclass
# @MAINTAINER:
-# Ben de Groot <yngwin@gentoo.org>,
-# Markos Chandras <hwoarang@gentoo.org>,
-# Davide Pesavento <davidepesa@gmail.com>,
-# Dominik Kapusta <ayoy@gentoo.org>
-# @BLURB: Eclass for Qt4 packages, second edition
+# Qt herd <qt@gentoo.org>
+# @BLURB: Eclass for Qt4-based packages, second edition.
# @DESCRIPTION:
# This eclass contains various functions that may be useful when
-# dealing with packages using Qt4 libraries. Requires EAPI=2.
+# dealing with packages using Qt4 libraries. Requires EAPI=2 or later.
case ${EAPI} in
2|3|4) : ;;
- *) die "EAPI=${EAPI} is not supported" ;;
+ *) die "EAPI=${EAPI} is not supported by ${ECLASS} eclass." ;;
esac
inherit base eutils multilib toolchain-funcs
# qt4-r2_src_unpack in it.
qt4-r2_src_unpack() {
debug-print-function $FUNCNAME "$@"
- base_src_unpack "$@"
- # Fallback to ${WORKDIR}/${MY_P} when ${WORKDIR}/${P} doesn't exist.
- # Feel free to re-implement this
- if [[ "${S}" == "${WORKDIR}/${P}" && ! -d ${S} && -d ${WORKDIR}/${MY_P} ]]; then
- ewarn "Falling back to '${WORKDIR}/${MY_P}'"
- S="${WORKDIR}/${MY_P}"
- fi
+ base_src_unpack "$@"
}
# @ECLASS-VARIABLE: PATCHES
emake INSTALL_ROOT="${D}" DESTDIR="${D}" install || die "emake install failed"
# install documentation
- if [[ -n "${DOCS}" ]]; then
+ if [[ -n ${DOCS} ]]; then
local dir=${DOCSDIR:-${S}}
for doc in ${DOCS}; do
dodoc "${dir}/${doc}" || die "dodoc failed"
;;
*)
for pro_file in "${pro_files[@]}"; do
- if [[ "${pro_file}" == "${dir_name}" ||
- "${pro_file}" == "${PN}.pro" ]]; then
+ if [[ ${pro_file} == "${dir_name}" || ${pro_file} == "${PN}.pro" ]]; then
echo "${pro_file}"
break
fi
# check if project file was passed as a first argument
# if not, then search for it
local regexp='.*\.pro'
- if ! [[ "${1}" =~ ${regexp} ]]; then
+ if ! [[ ${1} =~ ${regexp} ]]; then
local project_file="$(_find_project_file)"
- if [[ -z "${project_file}" ]]; then
+ if [[ -z ${project_file} ]]; then
echo
eerror "No project file found in ${S}!"
eerror "This shouldn't happen - please send a bug report to http://bugs.gentoo.org/"
qmake_args+=("${project_file}")
fi
- # make sure CONFIG variable is correctly set for both release and debug builds
+ # make sure CONFIG variable is correctly set
+ # for both release and debug builds
local CONFIG_ADD="release"
local CONFIG_REMOVE="debug"
if has debug ${IUSE} && use debug; then