From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0E52A138330 for ; Sun, 14 Jan 2018 05:48:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F765E08EB; Sun, 14 Jan 2018 05:48:20 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 089B5E08EB for ; Sun, 14 Jan 2018 05:48:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 32CB7335C3E for ; Sun, 14 Jan 2018 05:48:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F184E1A4 for ; Sun, 14 Jan 2018 05:48:15 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1515908880.a75630443d9dbc5485eb658401b001c0b10ce120.kensington@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: eclass/ X-VCS-Repository: proj/qt X-VCS-Files: eclass/qt4-r2.eclass X-VCS-Directories: eclass/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: a75630443d9dbc5485eb658401b001c0b10ce120 X-VCS-Branch: master Date: Sun, 14 Jan 2018 05:48:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2e6d604b-3873-477c-9d39-ae503df89d54 X-Archives-Hash: 762455b169092d306a0e94b75ec7d20f commit: a75630443d9dbc5485eb658401b001c0b10ce120 Author: Michael Palimaka gentoo org> AuthorDate: Sun Jan 14 05:47:40 2018 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Sun Jan 14 05:48:00 2018 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=a7563044 qt4-r2.eclass: remove dead eclass eclass/qt4-r2.eclass | 199 --------------------------------------------------- 1 file changed, 199 deletions(-) diff --git a/eclass/qt4-r2.eclass b/eclass/qt4-r2.eclass deleted file mode 100644 index 91fe242d..00000000 --- a/eclass/qt4-r2.eclass +++ /dev/null @@ -1,199 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -# @ECLASS: qt4-r2.eclass -# @MAINTAINER: -# 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. Supports only EAPIs -# 2, 3, 4, and 5. Use qmake-utils.eclass in EAPI 6 and later. - -case ${EAPI} in - 2|3|4|5) : ;; - 6) die "qt4-r2.eclass is banned in EAPI 6 and later" ;; - *) die "qt4-r2.eclass: unsupported EAPI=${EAPI:-0}" ;; -esac - -inherit base eutils qmake-utils - -export XDG_CONFIG_HOME="${T}" - -# @ECLASS-VARIABLE: DOCS -# @DEFAULT_UNSET -# @DESCRIPTION: -# Array containing documents passed to dodoc command. -# Paths can be absolute or relative to ${S}. -# -# Example: DOCS=( ChangeLog README "${WORKDIR}/doc_folder/" ) - -# @ECLASS-VARIABLE: HTML_DOCS -# @DEFAULT_UNSET -# @DESCRIPTION: -# Array containing documents passed to dohtml command. -# Paths can be absolute or relative to ${S}. -# -# Example: HTML_DOCS=( "doc/document.html" "${WORKDIR}/html_folder/" ) - -# @ECLASS-VARIABLE: LANGS -# @DEFAULT_UNSET -# @DESCRIPTION: -# In case your Qt4 application provides various translations, use this variable -# to specify them in order to populate "linguas_*" IUSE automatically. Make sure -# that you set this variable before inheriting qt4-r2 eclass. -# -# Example: LANGS="de el it ja" -for x in ${LANGS}; do - IUSE+=" linguas_${x}" -done - -# @ECLASS-VARIABLE: LANGSLONG -# @DEFAULT_UNSET -# @DESCRIPTION: -# Same as LANGS, but this variable is for LINGUAS that must be in long format. -# Remember to set this variable before inheriting qt4-r2 eclass. -# Look at ${PORTDIR}/profiles/desc/linguas.desc for details. -# -# Example: LANGSLONG="en_GB ru_RU" -for x in ${LANGSLONG}; do - IUSE+=" linguas_${x%_*}" -done -unset x - -# @ECLASS-VARIABLE: PATCHES -# @DEFAULT_UNSET -# @DESCRIPTION: -# Array variable containing all the patches to be applied. This variable -# is expected to be defined in the global scope of ebuilds. Make sure to -# specify the full path. This variable is used in src_prepare phase. -# -# Example: -# @CODE -# PATCHES=( -# "${FILESDIR}/mypatch.patch" -# "${FILESDIR}/mypatch2.patch" -# ) -# @CODE - -# @FUNCTION: qt4-r2_src_unpack -# @DESCRIPTION: -# Default src_unpack function for packages that depend on qt4. If you have to -# override src_unpack in your ebuild (probably you don't need to), call -# qt4-r2_src_unpack in it. -qt4-r2_src_unpack() { - debug-print-function $FUNCNAME "$@" - - # remove this block before pushing updates to the tree - if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then - ewarn - ewarn "Please file bugs on bugs.gentoo.org and prepend the summary with" - ewarn "[qt overlay]. Alternatively, contact qt@gentoo.org." - ewarn "Thank you for using qt overlay." - ewarn - fi - - base_src_unpack "$@" -} - -# @FUNCTION: qt4-r2_src_prepare -# @DESCRIPTION: -# Default src_prepare function for packages that depend on qt4. If you have to -# override src_prepare in your ebuild, you should call qt4-r2_src_prepare in it, -# otherwise autopatcher will not work! -qt4-r2_src_prepare() { - debug-print-function $FUNCNAME "$@" - - base_src_prepare "$@" -} - -# @FUNCTION: qt4-r2_src_configure -# @DESCRIPTION: -# Default src_configure function for packages that depend on qt4. If you have to -# override src_configure in your ebuild, call qt4-r2_src_configure in it. -qt4-r2_src_configure() { - debug-print-function $FUNCNAME "$@" - - local project_file=$(qmake-utils_find_pro_file) - - if [[ -n ${project_file} ]]; then - eqmake4 "${project_file}" - else - base_src_configure "$@" - fi -} - -# @FUNCTION: qt4-r2_src_compile -# @DESCRIPTION: -# Default src_compile function for packages that depend on qt4. If you have to -# override src_compile in your ebuild (probably you don't need to), call -# qt4-r2_src_compile in it. -qt4-r2_src_compile() { - debug-print-function $FUNCNAME "$@" - - base_src_compile "$@" -} - -# @FUNCTION: qt4-r2_src_install -# @DESCRIPTION: -# Default src_install function for qt4-based packages. Installs compiled code, -# documentation (via DOCS and HTML_DOCS variables) and translations (via LANGS -# and LANGSLONG variables). -qt4-r2_src_install() { - debug-print-function $FUNCNAME "$@" - - base_src_install INSTALL_ROOT="${D}" "$@" - einstalldocs - - # install translations - # need to have specified LANGS or LANGSLONG for this to work - [[ -n ${LANGS} || -n ${LANGSLONG} ]] && qt4-r2_install_translations -} - -# @FUNCTION: qt4-r2_install_translations -# @DESCRIPTION: -# Choose and install translation files. Normally you don't need to call -# this function directly as it is called from qt4-r2_src_install. -qt4-r2_install_translations() { - debug-print-function $FUNCNAME "$@" - - # @VARIABLE: TRANSLATIONSDIR - # @DESCRIPTION: Translations directory, defaults to ${S}. - local roottrdir=${TRANSLATIONSDIR:-${S}} - local trdir=. - # Find translations directory - for dir in lang langs translations; do - [[ -d ${roottrdir}/${dir} ]] && trdir=${roottrdir}/${dir} - done - - local lang= - for lang in ${LINGUAS}; do - for x in ${LANGS}; do - [[ ${lang} == ${x%_*} ]] && _do_qm "${trdir}" "${x}" - done - for x in ${LANGSLONG}; do - [[ ${lang} == ${x} ]] && _do_qm "${trdir}" "${x}" - done - done -} - -# Internal function -_do_qm() { - debug-print-function $FUNCNAME "$@" - [[ $# -ne 2 ]] && die "$FUNCNAME() requires exactly 2 arguments!" - - local transfile="$(find "${1}" -type f -name "*${2}".qm)" - if [[ -f ${transfile} ]]; then - ( - insinto /usr/share/${PN}/"${1#${S}}" - doins "${transfile}" - ) || die "failed to install ${2} translation" - else - eerror - eerror "Failed to install ${2} translation: file not found." - eerror - die "failed to install ${2} translation" - fi -} - -EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install