Gentoo Development Guide
QT4-BUILD.ECLASS
Section: portage (5)Updated: May 2013
Index Return to Main Contents
NAME
qt4-build.eclass - Eclass for Qt4 split ebuilds.DESCRIPTION
This eclass contains various functions that are used when building Qt4.FUNCTIONS
- qt4-build_pkg_setup
- Sets up PATH and LD_LIBRARY_PATH.
- qt4-build_src_unpack
- Unpacks the sources.
- qt4-build_src_prepare
- Prepare the sources before the configure phase. Strip CFLAGS if necessary, and fix the build system in order to respect CFLAGS/CXXFLAGS/LDFLAGS specified in make.conf.
- qt4-build_src_configure
- Default configure phase
- qt4-build_src_compile
- Actual compile phase
- qt4-build_src_test
- Runs tests only in target directories.
- fix_includes
- For MacOS X we need to add some symlinks when frameworks are being used, to avoid complications with some more or less stupid packages.
- qt4-build_src_install
- Perform the actual installation including some library fixes.
- qt4-build_pkg_postrm
- Regenerate configuration when the package is completely removed.
- qt4-build_pkg_postinst
- Regenerate configuration, plus throw a message about possible breakages and proposed solutions.
- qt_use < flag > [ feature ] [ enableval ]
- This will echo "-${enableval}-${feature}" if <flag> is enabled, or "-no-${feature}" if it's disabled. If [feature] is not specified, <flag> will be used for that. If [enableval] is not specified, it omits the "-${enableval}" part.
- qt_mkspecs_dir
-
Allows us to define which mkspecs dir we want to use.
Return value: the specs-directory w/o path
ECLASS VARIABLES
- QT4_EXTRACT_DIRECTORIES
- Space-separated list including the directories that will be extracted from Qt tarball.
- QT4_TARGET_DIRECTORIES
- Arguments for build_target_directories. Takes the directories in which the code should be compiled. This is a space-separated list.
- PATCHES
-
PATCHES array variable containing all various patches to be applied.
This variable is expected to be defined in global scope of ebuild.
Make sure to specify the full path. This variable is utilised in
src_prepare() phase.
PATCHES=( "${FILESDIR}/mypatch.patch" "${FILESDIR}/patches_folder/" ) - QCONFIG_ADD
- List options that need to be added to QT_CONFIG in qconfig.pri
- QCONFIG_REMOVE
- List options that need to be removed from QT_CONFIG in qconfig.pri
- QCONFIG_DEFINE
- List variables that should be defined at the top of QtCore/qconfig.h
MAINTAINERS
Qt herd <qt@gentoo.org>
REPORTING BUGS
Please report bugs via http://bugs.gentoo.org/FILES
/usr/portage/eclass/qt4-build.eclassSEE ALSO
ebuild(5)http://sources.gentoo.org/eclass/qt4-build.eclass?view=log
Index
This document was created by man2html, using the manual pages.
Time: 03:25:01 GMT, May 21, 2013