diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2010-03-17 14:29:20 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2010-03-17 14:29:20 +0000 |
commit | be47e96fefd9728c05fc4be2ed9808990fc69473 (patch) | |
tree | 5650b6e3634b1278e623c05dd337f1e258fcf63b | |
parent | Move loadpng.h back to /usr/include per upstream recommendation, #include "lo... (diff) | |
download | gentoo-2-be47e96fefd9728c05fc4be2ed9808990fc69473.tar.gz gentoo-2-be47e96fefd9728c05fc4be2ed9808990fc69473.tar.bz2 gentoo-2-be47e96fefd9728c05fc4be2ed9808990fc69473.zip |
Fix eclassdoc. Add new variable to allow disabling of static-libs useflag.
-rw-r--r-- | eclass/xorg-2.eclass | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/eclass/xorg-2.eclass b/eclass/xorg-2.eclass index 8d3d577473a8..51070b0cc15c 100644 --- a/eclass/xorg-2.eclass +++ b/eclass/xorg-2.eclass @@ -1,13 +1,10 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.1 2010/03/14 10:27:07 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/xorg-2.eclass,v 1.2 2010/03/17 14:29:20 scarabeus Exp $ # # @ECLASS: xorg-2.eclass # @MAINTAINER: # x11@gentoo.org - -# Author: Tomáš Chvátal <scarabeus@gentoo.org> -# Author: Donnie Berkholz <dberkholz@gentoo.org> # @BLURB: Reduces code duplication in the modularized X11 ebuilds. # @DESCRIPTION: # This eclass makes trivial X ebuilds possible for apps, fonts, drivers, @@ -20,6 +17,9 @@ # with the other X packages, you don't need to set SRC_URI. Pretty much # everything else should be automatic. +# Author: Tomáš Chvátal <scarabeus@gentoo.org> +# Author: Donnie Berkholz <dberkholz@gentoo.org> + GIT_ECLASS="" if [[ ${PV} == *9999* ]]; then GIT_ECLASS="git" @@ -91,7 +91,7 @@ fi # Set the license for the package. This can be overridden by setting # LICENSE after the inherit. Nearly all FreeDesktop-hosted X packages # are under the MIT license. (This is what Red Hat does in their rpms) -: ${LICENSE=MIT} +: ${LICENSE:=MIT} # Set up shared dependencies if [[ ${XORG_EAUTORECONF} != no ]]; then @@ -137,8 +137,16 @@ fi # If we're a driver package, then enable DRIVER case [[ ${PN} == xf86-video-* || ${PN} == xf86-input-* ]] && DRIVER="yes" +# @ECLASS-VARIABLE: XORG_STATIC +# @DESCRIPTION: +# Enables static-libs useflag. Set to no, if your package gets: +# +# QA: configure: WARNING: unrecognized options: --disable-static +: ${XORG_STATIC:="yes"} + # Add static-libs useflag where usefull. -if [[ ${FONT} != yes \ +if [[ ${XORG_STATIC} == yes \ + && ${FONT} != yes \ && ${CATEGORY} != app-doc \ && ${CATEGORY} != x11-proto \ && ${CATEGORY} != x11-drivers \ |