| 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.112 2009/08/27 15:16:09 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.117 2009/11/28 10:25:37 scarabeus 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. |
| … | |
… | |
| 103 | fi |
103 | fi |
| 104 | |
104 | |
| 105 | SLOT="0" |
105 | SLOT="0" |
| 106 | |
106 | |
| 107 | # Set the license for the package. This can be overridden by setting |
107 | # Set the license for the package. This can be overridden by setting |
| 108 | # LICENSE after the inherit. |
108 | # LICENSE after the inherit. Nearly all FreeDesktop-hosted X packages |
| 109 | LICENSE=${PN} |
109 | # are under the MIT license. (This is what Red Hat does in their rpms) |
|
|
110 | LICENSE="MIT" |
| 110 | |
111 | |
| 111 | # Set up shared dependencies |
112 | # Set up shared dependencies |
| 112 | if [[ -n "${SNAPSHOT}" ]]; then |
113 | if [[ -n "${SNAPSHOT}" ]]; then |
| 113 | # FIXME: What's the minimal libtool version supporting arbitrary versioning? |
114 | # FIXME: What's the minimal libtool version supporting arbitrary versioning? |
| 114 | DEPEND="${DEPEND} |
115 | DEPEND="${DEPEND} |
| … | |
… | |
| 182 | DEPEND="${DEPEND} |
183 | DEPEND="${DEPEND} |
| 183 | >=dev-util/pkgconfig-0.18" |
184 | >=dev-util/pkgconfig-0.18" |
| 184 | |
185 | |
| 185 | if [[ "${PN/util-macros}" = "${PN}" ]]; then |
186 | if [[ "${PN/util-macros}" = "${PN}" ]]; then |
| 186 | DEPEND="${DEPEND} |
187 | DEPEND="${DEPEND} |
| 187 | >=x11-misc/util-macros-0.99.2 |
188 | >=x11-misc/util-macros-1.3.0 |
| 188 | >=sys-devel/binutils-2.16.1-r3" |
189 | sys-devel/binutils" |
| 189 | fi |
190 | fi |
| 190 | |
191 | |
| 191 | RDEPEND="${RDEPEND} |
192 | RDEPEND="${RDEPEND} |
| 192 | !<=x11-base/xorg-x11-6.9" |
193 | !<=x11-base/xorg-x11-6.9" |
| 193 | # Provides virtual/x11 for temporary use until packages are ported |
194 | # Provides virtual/x11 for temporary use until packages are ported |
| … | |
… | |
| 436 | ${PN/proto/}docdir=/usr/share/doc/${PF} \ |
437 | ${PN/proto/}docdir=/usr/share/doc/${PF} \ |
| 437 | DESTDIR="${D}" \ |
438 | DESTDIR="${D}" \ |
| 438 | install \ |
439 | install \ |
| 439 | || die |
440 | || die |
| 440 | else |
441 | else |
| 441 | # FIXME: Drop after X fonts stop running fc-cache during install, bug #278221 |
|
|
| 442 | [[ -n ${FONT} ]] && addpredict /var/cache/fontconfig |
|
|
| 443 | make \ |
442 | make \ |
|
|
443 | docdir=/usr/share/doc/${PF} \ |
| 444 | DESTDIR="${D}" \ |
444 | DESTDIR="${D}" \ |
| 445 | install \ |
445 | install \ |
| 446 | || die |
446 | || die |
| 447 | fi |
447 | fi |
| 448 | # Shouldn't be necessary in XDIR=/usr |
448 | # Shouldn't be necessary in XDIR=/usr |
| … | |
… | |
| 514 | # @FUNCTION: cleanup_fonts |
514 | # @FUNCTION: cleanup_fonts |
| 515 | # @USAGE: |
515 | # @USAGE: |
| 516 | # @DESCRIPTION: |
516 | # @DESCRIPTION: |
| 517 | # Get rid of font directories that only contain generated files |
517 | # Get rid of font directories that only contain generated files |
| 518 | cleanup_fonts() { |
518 | cleanup_fonts() { |
| 519 | local ALLOWED_FILES="encodings.dir fonts.cache-1 fonts.dir fonts.scale" |
519 | local ALLOWED_FILES="encodings.dir fonts.alias fonts.cache-1 fonts.dir fonts.scale" |
| 520 | for DIR in ${FONT_DIR}; do |
520 | for DIR in ${FONT_DIR}; do |
| 521 | unset KEEP_FONTDIR |
521 | unset KEEP_FONTDIR |
| 522 | REAL_DIR=${ROOT}usr/share/fonts/${DIR} |
522 | REAL_DIR=${ROOT}usr/share/fonts/${DIR} |
| 523 | |
523 | |
| 524 | ebegin "Checking ${REAL_DIR} for useless files" |
524 | ebegin "Checking ${REAL_DIR} for useless files" |