| 1 | # Copyright 1999-2005 Gentoo Foundation |
1 | # Copyright 1999-2005 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/x-modular.eclass,v 1.105 2009/02/18 18:40:52 dberkholz Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.106 2009/03/03 16:26:20 remi Exp $ |
| 4 | # |
4 | # |
| 5 | # @ECLASS: x-modular.eclass |
5 | # @ECLASS: x-modular.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Donnie Berkholz <dberkholz@gentoo.org>, x11@gentoo.org |
7 | # Donnie Berkholz <dberkholz@gentoo.org>, x11@gentoo.org |
| 8 | # @BLURB: Reduces code duplication in the modularized X11 ebuilds. |
8 | # @BLURB: Reduces code duplication in the modularized X11 ebuilds. |
| … | |
… | |
| 391 | # @DESCRIPTION: |
391 | # @DESCRIPTION: |
| 392 | # Install a built package to ${D}, performing any necessary steps. |
392 | # Install a built package to ${D}, performing any necessary steps. |
| 393 | # Creates a ChangeLog from git if using live ebuilds. |
393 | # Creates a ChangeLog from git if using live ebuilds. |
| 394 | x-modular_src_install() { |
394 | x-modular_src_install() { |
| 395 | # Install everything to ${XDIR} |
395 | # Install everything to ${XDIR} |
|
|
396 | if [[ ${CATEGORY} = x11-proto ]]; then |
| 396 | make \ |
397 | make \ |
|
|
398 | ${PN/proto/}docdir=/usr/share/doc/${PF} \ |
| 397 | DESTDIR="${D}" \ |
399 | DESTDIR="${D}" \ |
| 398 | install \ |
400 | install \ |
| 399 | || die |
401 | || die |
|
|
402 | else |
|
|
403 | make \ |
|
|
404 | DESTDIR="${D}" \ |
|
|
405 | install \ |
|
|
406 | || die |
|
|
407 | fi |
| 400 | # Shouldn't be necessary in XDIR=/usr |
408 | # Shouldn't be necessary in XDIR=/usr |
| 401 | # einstall forces datadir, so we need to re-force it |
409 | # einstall forces datadir, so we need to re-force it |
| 402 | # datadir=${XDIR}/share \ |
410 | # datadir=${XDIR}/share \ |
| 403 | # mandir=${XDIR}/share/man \ |
411 | # mandir=${XDIR}/share/man \ |
| 404 | |
412 | |