summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKito Danya Dietrich <kito@gentoo.org>2005-02-19 18:31:02 +0000
committerKito Danya Dietrich <kito@gentoo.org>2005-02-19 18:31:02 +0000
commitbb00560d19c3c13ab0737883ccf52be2297db076 (patch)
tree2ed1d8810865580149223e0f795d8aa1f3d0b72d /sys-devel/gettext
parentStable on ppc (diff)
downloadgentoo-2-bb00560d19c3c13ab0737883ccf52be2297db076.tar.gz
gentoo-2-bb00560d19c3c13ab0737883ccf52be2297db076.tar.bz2
gentoo-2-bb00560d19c3c13ab0737883ccf52be2297db076.zip
add conditional to save existing libintl on ppc-macos. ~ppc-macos keyword
(Portage version: 2.0.51.16)
Diffstat (limited to 'sys-devel/gettext')
-rw-r--r--sys-devel/gettext/ChangeLog5
-rw-r--r--sys-devel/gettext/gettext-0.14.1.ebuild20
2 files changed, 17 insertions, 8 deletions
diff --git a/sys-devel/gettext/ChangeLog b/sys-devel/gettext/ChangeLog
index b3efd5c11a17..81c1b0674729 100644
--- a/sys-devel/gettext/ChangeLog
+++ b/sys-devel/gettext/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-devel/gettext
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/ChangeLog,v 1.76 2005/02/07 01:25:38 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/ChangeLog,v 1.77 2005/02/19 18:31:02 kito Exp $
+
+ 19 Feb 2005; Kito <kito@gentoo.org> gettext-0.14.1.ebuild:
+ add conditional to save existing libintl. ~ppc-macos keyword
06 Feb 2005; Mike Frysinger <vapier@gentoo.org> gettext-0.14.1.ebuild:
Disable sandbox when running tests #70358.
diff --git a/sys-devel/gettext/gettext-0.14.1.ebuild b/sys-devel/gettext/gettext-0.14.1.ebuild
index d68afcf6cbb0..04e4b838977b 100644
--- a/sys-devel/gettext/gettext-0.14.1.ebuild
+++ b/sys-devel/gettext/gettext-0.14.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/gettext-0.14.1.ebuild,v 1.22 2005/02/07 01:25:38 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/gettext-0.14.1.ebuild,v 1.23 2005/02/19 18:31:02 kito Exp $
inherit eutils gnuconfig toolchain-funcs mono libtool
@@ -10,7 +10,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="emacs nls"
DEPEND="virtual/libc"
@@ -70,15 +70,21 @@ src_install() {
rm -f ${D}/usr/$(get_libdir)/libintl.*
fi
rm -rf ${D}/usr/share/locale/locale.alias
- # /usr/lib/charset.alias is provided by Mac OS X
- use ppc-macos && rm -f ${D}/usr/lib/charset.alias
# older gettext's sometimes installed libintl ...
# need to keep the linked version or the system
# could die (things like sed link against it :/)
- if [ -e "${ROOT}"/usr/$(get_libdir)/libintl.so.2 ] ; then
- cp -a ${ROOT}/usr/$(get_libdir)/libintl.so.2* ${D}/usr/$(get_libdir)/
- touch ${D}/usr/$(get_libdir)/libintl.so.2*
+ if use ppc-macos; then
+ rm -f ${D}/usr/lib/charset.alias
+ if [ -e "${ROOT}"/usr/$(get_libdir)/libintl.2.dylib ] ; then
+ cp -a ${ROOT}/usr/$(get_libdir)/libintl.2* ${D}/usr/$(get_libdir)/
+ touch ${D}/usr/$(get_libdir)/libintl.2*
+ fi
+ else
+ if [ -e "${ROOT}"/usr/$(get_libdir)/libintl.so.2 ] ; then
+ cp -a ${ROOT}/usr/$(get_libdir)/libintl.so.2* ${D}/usr/$(get_libdir)/
+ touch ${D}/usr/$(get_libdir)/libintl.so.2*
+ fi
fi
if [ -d ${D}/usr/doc/gettext ]