diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-11-16 12:50:02 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-11-16 12:50:02 +0000 |
commit | 5ebba3d84eb85cfe65d44264532dddf18cb627be (patch) | |
tree | 971d6ee100c29be22dc3429321a4c4eb61119269 /eclass | |
parent | Version bump (diff) | |
download | historical-5ebba3d84eb85cfe65d44264532dddf18cb627be.tar.gz historical-5ebba3d84eb85cfe65d44264532dddf18cb627be.tar.bz2 historical-5ebba3d84eb85cfe65d44264532dddf18cb627be.zip |
Make KDE use econf as usual, by overriding the directories where the ${PREFIX} changes. This allows it to play fine with confcache, removes the warning about ${CBUILD} unset and allows to update gnuconfig files.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde.eclass | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/eclass/kde.eclass b/eclass/kde.eclass index 28bd2482bf05..595dc89784a2 100644 --- a/eclass/kde.eclass +++ b/eclass/kde.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.138 2005/10/13 15:13:14 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.139 2005/11/16 12:50:02 flameeyes Exp $ # # Author Dan Armak <danarmak@gentoo.org> # @@ -94,7 +94,7 @@ kde_src_compile() { case $1 in myconf) debug-print-section myconf - myconf="$myconf --host=${CHOST} --prefix=${PREFIX} --with-x --enable-mitshm $(use_with xinerama) --with-qt-dir=${QTDIR} --enable-mt --with-qt-libraries=${QTDIR}/$(get_libdir)" + myconf="$myconf --with-x --enable-mitshm $(use_with xinerama) --with-qt-dir=${QTDIR} --enable-mt --with-qt-libraries=${QTDIR}/$(get_libdir)" # calculate dependencies separately from compiling, enables ccache to work on kde compiles [ -z "$UNSERMAKE" ] && myconf="$myconf --disable-dependency-tracking" if use debug ; then @@ -140,18 +140,23 @@ kde_src_compile() { # Visiblity stuff is broken. Just disable it when it's present. export kde_cv_prog_cxx_fvisibility_hidden=no - # If we're not a kde-base ebuild, then set up the /usr directories properly - # Perhaps this could get changed later to use econf instead? - if [[ $PREFIX = "/usr" ]]; then - myconf="${myconf} --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib" + # If we're in a kde-base ebuild, set the prefixed directories to + # override the ones set by econf. + if [[ ${PREFIX} != "/usr" ]]; then + myconf="${myconf} --prefix=${PREFIX} + --mandir=${PREFIX}/share/man + --infodir=${PREFIX}/share/info + --datadir=${PREFIX}/share + --sysconfdir=${PREFIX}/etc" fi - # Use libsuffix instead of libdir to keep kde happy + # Use libsuffix to keep KDE happy, the --libdir parameter get + # still honored. if [[ $(get_libdir) != "lib" ]] ; then myconf="${myconf} --enable-libsuffix=$(get_libdir | sed s/lib//)" fi - ./configure \ + econf \ ${myconf} \ || die "died running ./configure, $FUNCNAME:configure" |