| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-r2.eclass,v 1.15 2011/12/26 11:47:47 pesa Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/qt4-r2.eclass,v 1.16 2011/12/28 10:57:38 pesa Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: qt4-r2.eclass |
5 | # @ECLASS: qt4-r2.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Qt herd <qt@gentoo.org> |
7 | # Qt herd <qt@gentoo.org> |
| 8 | # @BLURB: Eclass for Qt4-based packages, second edition. |
8 | # @BLURB: Eclass for Qt4-based packages, second edition. |
| … | |
… | |
| 126 | # @CODE |
126 | # @CODE |
| 127 | |
127 | |
| 128 | # @ECLASS-VARIABLE: DOCSDIR |
128 | # @ECLASS-VARIABLE: DOCSDIR |
| 129 | # @DESCRIPTION: |
129 | # @DESCRIPTION: |
| 130 | # Directory containing documentation, defaults to ${S}. |
130 | # Directory containing documentation, defaults to ${S}. |
| 131 | DOCSDIR="${DOCSDIR:-${S}}" |
|
|
| 132 | |
131 | |
| 133 | # @FUNCTION: qt4-r2_src_install |
132 | # @FUNCTION: qt4-r2_src_install |
| 134 | # @DESCRIPTION: |
133 | # @DESCRIPTION: |
| 135 | # Default src_install function for qt4-based packages. Installs compiled code |
134 | # Default src_install function for qt4-based packages. Installs compiled code |
| 136 | # and misc documentation (via DOCS variable). |
135 | # and misc documentation (via DOCS variable). |
| … | |
… | |
| 138 | debug-print-function $FUNCNAME "$@" |
137 | debug-print-function $FUNCNAME "$@" |
| 139 | |
138 | |
| 140 | emake INSTALL_ROOT="${D}" DESTDIR="${D}" install || die "emake install failed" |
139 | emake INSTALL_ROOT="${D}" DESTDIR="${D}" install || die "emake install failed" |
| 141 | |
140 | |
| 142 | # install documentation |
141 | # install documentation |
| 143 | local doc |
142 | local doc dir="${DOCSDIR:-${S}}" |
| 144 | for doc in ${DOCS}; do |
143 | for doc in ${DOCS}; do |
| 145 | dodoc "${DOCSDIR}/${doc}" || die "dodoc failed" |
144 | dodoc "${dir}/${doc}" || die "dodoc failed" |
| 146 | done |
145 | done |
| 147 | } |
146 | } |
| 148 | |
147 | |
| 149 | # Internal function, used by eqmake4 and qt4-r2_src_configure |
148 | # Internal function, used by eqmake4 and qt4-r2_src_configure |
| 150 | # Look for project files: |
149 | # Look for project files: |