summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2015-05-10 14:47:55 +0000
committerDavide Pesavento <pesa@gentoo.org>2015-05-10 14:47:55 +0000
commit5b295c082fb1178c17aa54a6fff0e225d6cb3269 (patch)
treedbe95552f1abdcee6111092b324fb460473b707f /eclass/qmake-utils.eclass
parentGive some credit. (diff)
downloadgentoo-2-5b295c082fb1178c17aa54a6fff0e225d6cb3269.tar.gz
gentoo-2-5b295c082fb1178c17aa54a6fff0e225d6cb3269.tar.bz2
gentoo-2-5b295c082fb1178c17aa54a6fff0e225d6cb3269.zip
Add qt{4,5}_get_{header,mkspecs}dir helper functions, bug 525830.
Diffstat (limited to 'eclass/qmake-utils.eclass')
-rw-r--r--eclass/qmake-utils.eclass30
1 files changed, 29 insertions, 1 deletions
diff --git a/eclass/qmake-utils.eclass b/eclass/qmake-utils.eclass
index 641af8cbf6ca..223c5e466609 100644
--- a/eclass/qmake-utils.eclass
+++ b/eclass/qmake-utils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qmake-utils.eclass,v 1.6 2015/02/26 01:52:15 yngwin Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qmake-utils.eclass,v 1.7 2015/05/10 14:47:55 pesa Exp $
# @ECLASS: qmake-utils.eclass
# @MAINTAINER:
@@ -28,6 +28,20 @@ qt4_get_bindir() {
fi
}
+# @FUNCTION: qt4_get_headerdir
+# @DESCRIPTION:
+# Echoes the directory where Qt4 headers are installed.
+qt4_get_headerdir() {
+ echo ${EPREFIX}/usr/include/qt4
+}
+
+# @FUNCTION: qt4_get_mkspecsdir
+# @DESCRIPTION:
+# Echoes the directory where Qt4 mkspecs are installed.
+qt4_get_mkspecsdir() {
+ echo ${EPREFIX}/usr/share/qt4/mkspecs
+}
+
# @FUNCTION: qt5_get_bindir
# @DESCRIPTION:
# Echoes the directory where Qt5 binaries are installed.
@@ -35,6 +49,20 @@ qt5_get_bindir() {
echo ${EPREFIX}/usr/$(get_libdir)/qt5/bin
}
+# @FUNCTION: qt5_get_headerdir
+# @DESCRIPTION:
+# Echoes the directory where Qt5 headers are installed.
+qt5_get_headerdir() {
+ echo ${EPREFIX}/usr/include/qt5
+}
+
+# @FUNCTION: qt5_get_mkspecsdir
+# @DESCRIPTION:
+# Echoes the directory where Qt5 mkspecs are installed.
+qt5_get_mkspecsdir() {
+ echo ${EPREFIX}/usr/$(get_libdir)/qt5/mkspecs
+}
+
# @FUNCTION: qmake-utils_find_pro_file
# @RETURN: zero or one qmake .pro file names
# @INTERNAL