/[gentoo-x86]/sys-devel/gettext/gettext-0.17.ebuild
Gentoo

Diff of /sys-devel/gettext/gettext-0.17.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.9
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/Attic/gettext-0.17.ebuild,v 1.8 2007/12/17 01:24:14 jer Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-devel/gettext/Attic/gettext-0.17.ebuild,v 1.9 2008/01/07 05:17:28 vapier Exp $
4 4
5inherit flag-o-matic eutils multilib toolchain-funcs mono libtool 5inherit flag-o-matic eutils multilib toolchain-funcs mono libtool
6 6
7DESCRIPTION="GNU locale utilities" 7DESCRIPTION="GNU locale utilities"
8HOMEPAGE="http://www.gnu.org/software/gettext/gettext.html" 8HOMEPAGE="http://www.gnu.org/software/gettext/gettext.html"
9SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" 9SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
10 10
11LICENSE="GPL-3 LGPL-2" 11LICENSE="GPL-3 LGPL-2"
12SLOT="0" 12SLOT="0"
13KEYWORDS="alpha amd64 ~arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc ~sparc-fbsd x86 ~x86-fbsd" 13KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
14IUSE="emacs nls doc nocxx" 14IUSE="acl doc emacs nls nocxx openmp"
15 15
16DEPEND="virtual/libiconv 16DEPEND="virtual/libiconv
17 dev-libs/libcroco
18 dev-libs/libxml2
19 sys-libs/ncurses
17 dev-libs/expat" 20 dev-libs/expat
21 acl? ( sys-apps/acl )"
18PDEPEND="emacs? ( app-emacs/po-mode )" 22PDEPEND="emacs? ( app-emacs/po-mode )"
19 23
20src_unpack() { 24src_unpack() {
21 unpack ${A} 25 unpack ${A}
22 cd "${S}" 26 cd "${S}"
31 # http://lists.gnu.org/archive/html/bug-libtool/2005-03/msg00070.html 35 # http://lists.gnu.org/archive/html/bug-libtool/2005-03/msg00070.html
32 sed -i \ 36 sed -i \
33 -e '2iexit 77' \ 37 -e '2iexit 77' \
34 autoconf-lib-link/tests/rpath-3*[ef] || die "sed tests" 38 autoconf-lib-link/tests/rpath-3*[ef] || die "sed tests"
35 39
36 # sanity check for Bug 105304 40 use acl || sed -i 's:use_acl=1:use_acl=0:' configure
37 if [[ -z ${USERLAND} ]] ; then
38 eerror "You just hit Bug 105304, please post your 'emerge info' here:"
39 eerror "http://bugs.gentoo.org/105304"
40 die "Aborting to prevent screwing your system"
41 fi
42} 41}
43 42
44src_compile() { 43src_compile() {
45 local myconf="" 44 local myconf=""
46 # Build with --without-included-gettext (on glibc systems) 45 # Build with --without-included-gettext (on glibc systems)
54 # Emacs support is now in a separate package, so configure --without-emacs 53 # Emacs support is now in a separate package, so configure --without-emacs
55 econf \ 54 econf \
56 --docdir="/usr/share/doc/${PF}" \ 55 --docdir="/usr/share/doc/${PF}" \
57 --without-emacs \ 56 --without-emacs \
58 --disable-java \ 57 --disable-java \
58 --with-included-glib \
59 $(use_enable openmp) \
59 ${myconf} \ 60 ${myconf} \
60 || die 61 || die
61 emake || die 62 emake || die
62} 63}
63 64
64src_install() { 65src_install() {
65 make install DESTDIR="${D}" || die "install failed" 66 emake install DESTDIR="${D}" || die "install failed"
66 use nls || rm -r "${D}"/usr/share/locale 67 use nls || rm -r "${D}"/usr/share/locale
67 dosym msgfmt /usr/bin/gmsgfmt #43435 68 dosym msgfmt /usr/bin/gmsgfmt #43435
68 dobin gettext-tools/misc/gettextize || die "gettextize" 69 dobin gettext-tools/misc/gettextize || die "gettextize"
69 70
70 # remove stuff that glibc handles 71 # remove stuff that glibc handles
98 # could die (things like sed link against it :/) 99 # could die (things like sed link against it :/)
99 preserve_old_lib /{,usr/}$(get_libdir)/libintl$(get_libname 7) 100 preserve_old_lib /{,usr/}$(get_libdir)/libintl$(get_libname 7)
100} 101}
101 102
102pkg_postinst() { 103pkg_postinst() {
103 ewarn "Any package that linked against the previous version" 104 preserve_old_lib_notify /{,usr/}$(get_libdir)/libintl$(get_libname 7)
104 ewarn "of gettext will have to be rebuilt."
105 ewarn "Please 'emerge gentoolkit' and run:"
106 ewarn "revdep-rebuild --library libintl.so.7"
107} 105}

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20