summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2015-12-28 02:36:06 +0100
committerDavide Pesavento <pesa@gentoo.org>2016-02-02 19:34:59 +0100
commit26c05325ae0704c756be7add2fc07d83cd8b34f8 (patch)
tree75dc2c94603a6daa4cc268d789f87c762a78abc4 /eclass
parentqt5-build.eclass: declare some variables readonly (diff)
downloadgentoo-26c05325ae0704c756be7add2fc07d83cd8b34f8.tar.gz
gentoo-26c05325ae0704c756be7add2fc07d83cd8b34f8.tar.bz2
gentoo-26c05325ae0704c756be7add2fc07d83cd8b34f8.zip
qt5-build.eclass: move some things around
Also, stop documenting PATCHES in eclass-doc. Everyone knows about it, and it's a PMS thing since EAPI 6 anyway. (cherry picked from proj/qt commit 4b70a2ea5396afc14f018bb3429be4a89d8f1ecf and f4aa5216a0b71858e2cefc6aed4bbf72cf8aa303)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/qt5-build.eclass76
1 files changed, 30 insertions, 46 deletions
diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 5315f6b01f3e..dc9e19ac0dc2 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -17,6 +17,26 @@ case ${EAPI} in
*) die "qt5-build.eclass: unsupported EAPI=${EAPI:-0}" ;;
esac
+# @ECLASS-VARIABLE: QT5_MODULE
+# @DESCRIPTION:
+# The upstream name of the module this package belongs to. Used for
+# SRC_URI and EGIT_REPO_URI. Must be defined before inheriting the eclass.
+: ${QT5_MODULE:=${PN}}
+
+# @ECLASS-VARIABLE: QT5_TARGET_SUBDIRS
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Array variable containing the source directories that should be built.
+# All paths must be relative to ${S}.
+
+# @ECLASS-VARIABLE: QT5_GENTOO_CONFIG
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Array of <useflag:feature:macro> triplets that are evaluated in src_install
+# to generate the per-package list of enabled QT_CONFIG features and macro
+# definitions, which are then merged together with all other Qt5 packages
+# installed on the system to obtain the global qconfig.{h,pri} files.
+
# @ECLASS-VARIABLE: VIRTUALX_REQUIRED
# @DESCRIPTION:
# For proper description see virtualx.eclass man page.
@@ -35,12 +55,6 @@ readonly QT5_MINOR_VERSION
SLOT="5"
-# @ECLASS-VARIABLE: QT5_MODULE
-# @DESCRIPTION:
-# The upstream name of the module this package belongs to. Used for
-# SRC_URI and EGIT_REPO_URI. Must be defined before inheriting the eclass.
-: ${QT5_MODULE:=${PN}}
-
case ${PV} in
5.9999)
# git dev branch
@@ -76,6 +90,14 @@ EGIT_REPO_URI=(
)
[[ ${QT5_BUILD_TYPE} == live ]] && inherit git-r3
+# @ECLASS-VARIABLE: QT5_BUILD_DIR
+# @DESCRIPTION:
+# Build directory for out-of-source builds.
+case ${QT5_BUILD_TYPE} in
+ live) : ${QT5_BUILD_DIR:=${S}_build} ;;
+ release) : ${QT5_BUILD_DIR:=${S}} ;; # workaround for bug 497312
+esac
+
IUSE="debug test"
[[ ${PN} == qtwebkit ]] && RESTRICT+=" mirror" # bug 524584
@@ -92,49 +114,11 @@ RDEPEND="
dev-qt/qtchooser
"
-EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install src_test pkg_postinst pkg_postrm
-
-
-# @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
-
-# @ECLASS-VARIABLE: QT5_TARGET_SUBDIRS
-# @DEFAULT_UNSET
-# @DESCRIPTION:
-# Array variable containing the source directories that should be built.
-# All paths must be relative to ${S}.
-
-# @ECLASS-VARIABLE: QT5_BUILD_DIR
-# @DESCRIPTION:
-# Build directory for out-of-source builds.
-case ${QT5_BUILD_TYPE} in
- live) : ${QT5_BUILD_DIR:=${S}_build} ;;
- release) : ${QT5_BUILD_DIR:=${S}} ;; # workaround for bug 497312
-esac
-
-# @ECLASS-VARIABLE: QT5_GENTOO_CONFIG
-# @DEFAULT_UNSET
-# @DESCRIPTION:
-# Array of <useflag:feature:macro> triplets that are evaluated in src_install
-# to generate the per-package list of enabled QT_CONFIG features and macro
-# definitions, which are then merged together with all other Qt5 packages
-# installed on the system to obtain the global qconfig.{h,pri} files.
-
###### Phase functions ######
+EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install src_test pkg_postinst pkg_postrm
+
# @FUNCTION: qt5-build_src_unpack
# @DESCRIPTION:
# Unpacks the sources.