diff options
Diffstat (limited to 'sys-devel/gettext/gettext-0.14.1.ebuild')
-rw-r--r-- | sys-devel/gettext/gettext-0.14.1.ebuild | 20 |
1 files changed, 13 insertions, 7 deletions
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 ] |