diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-01 21:29:25 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-01 21:29:25 +0000 |
commit | 8b56c473d71c5fba763583c8daa4cc4dd83e63f3 (patch) | |
tree | 8bfd4556ec3ef262fa61e7ebc6eaa9496eaa4215 /eclass/toolchain-binutils.eclass | |
parent | Added new version of ncpfs ebuild (Manifest recommit) (diff) | |
download | gentoo-2-8b56c473d71c5fba763583c8daa4cc4dd83e63f3.tar.gz gentoo-2-8b56c473d71c5fba763583c8daa4cc4dd83e63f3.tar.bz2 gentoo-2-8b56c473d71c5fba763583c8daa4cc4dd83e63f3.zip |
make sure locale files are installed properly into $DATAPATH
Diffstat (limited to 'eclass/toolchain-binutils.eclass')
-rw-r--r-- | eclass/toolchain-binutils.eclass | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass index 5e24faeda51d..75979bd8290a 100644 --- a/eclass/toolchain-binutils.eclass +++ b/eclass/toolchain-binutils.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/toolchain-binutils.eclass,v 1.7 2004/11/23 20:07:52 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.8 2004/12/01 21:29:25 vapier Exp $ # We install binutils into CTARGET-VERSION specific directories. This lets # us easily merge multiple versions for multiple targets (if we wish) and @@ -52,6 +52,12 @@ apply_binutils_updates() { [ -n "${PATCHVER}" ] && epatch ${WORKDIR}/patch [ -n "${UCLIBC_PATCHVER}" ] && epatch ${WORKDIR}/uclibc-patches + # Fix po Makefile generators + sed -i \ + -e '/^datadir = /s:$(prefix)/@DATADIRNAME@:@datadir@:' \ + -e '/^gnulocaledir = /s:$(prefix)/share:$(datadir):' \ + */po/Make-in || die "sed po's failed" + # Run misc portage update scripts gnuconfig_update elibtoolize --portage --no-uclibc @@ -129,8 +135,10 @@ toolchain-binutils_src_install() { insinto ${INCPATH} doins "${S}/include/libiberty.h" fi - mv "${D}"/${LIBPATH}/lib/* "${D}"/${LIBPATH}/ - rm -r "${D}"/${LIBPATH}/lib + if [ -d "${D}"/${LIBPATH}/lib ] ; then + mv "${D}"/${LIBPATH}/lib/* "${D}"/${LIBPATH}/ + rm -r "${D}"/${LIBPATH}/lib + fi # Now we generate all the standard links to binaries ... # if this is a native package, we install the basic symlinks (ld,nm,as,etc...) |