Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 496218 | Differences between
and this patch

Collapse All | Expand All

(-)gettext-0.18.3.1-r1.ebuild (-12 / +19 lines)
Lines 4-10 Link Here
4
4
5
EAPI="4"
5
EAPI="4"
6
6
7
inherit flag-o-matic eutils multilib toolchain-funcs mono-env libtool java-pkg-opt-2
7
inherit flag-o-matic eutils multilib toolchain-funcs mono-env libtool java-pkg-opt-2 multilib-minimal
8
8
9
DESCRIPTION="GNU locale utilities"
9
DESCRIPTION="GNU locale utilities"
10
HOMEPAGE="http://www.gnu.org/software/gettext/"
10
HOMEPAGE="http://www.gnu.org/software/gettext/"
Lines 15-23 Link Here
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
16
IUSE="acl -cvs doc emacs git java nls +cxx ncurses openmp static-libs elibc_glibc"
16
IUSE="acl -cvs doc emacs git java nls +cxx ncurses openmp static-libs elibc_glibc"
17
17
18
DEPEND="virtual/libiconv
18
DEPEND="virtual/libiconv[${MULTILIB_USEDEP}]
19
	dev-libs/libxml2
19
	dev-libs/libxml2[${MULTILIB_USEDEP}]
20
	dev-libs/expat
20
	dev-libs/expat[${MULTILIB_USEDEP}]
21
	acl? ( virtual/acl )
21
	acl? ( virtual/acl )
22
	ncurses? ( sys-libs/ncurses )
22
	ncurses? ( sys-libs/ncurses )
23
	java? ( >=virtual/jdk-1.4 )"
23
	java? ( >=virtual/jdk-1.4 )"
Lines 27-40 Link Here
27
	java? ( >=virtual/jre-1.4 )"
27
	java? ( >=virtual/jre-1.4 )"
28
PDEPEND="emacs? ( app-emacs/po-mode )"
28
PDEPEND="emacs? ( app-emacs/po-mode )"
29
29
30
DOCS=( AUTHORS ChangeLog NEWS README THANKS )
31
30
src_prepare() {
32
src_prepare() {
31
	epatch "${FILESDIR}"/${P}-use_m4_fallback_dir.patch #487794
33
	epatch "${FILESDIR}"/${P}-use_m4_fallback_dir.patch #487794
32
	java-pkg-opt-2_src_prepare
34
	java-pkg-opt-2_src_prepare
33
	epunt_cxx
35
	epunt_cxx
34
	elibtoolize
36
	elibtoolize
37
38
	multilib_copy_sources
35
}
39
}
36
40
37
src_configure() {
41
multilib_src_configure() {
38
	local myconf=""
42
	local myconf=""
39
	# Build with --without-included-gettext (on glibc systems)
43
	# Build with --without-included-gettext (on glibc systems)
40
	if use elibc_glibc ; then
44
	if use elibc_glibc ; then
Lines 44-49 Link Here
44
	fi
48
	fi
45
	use cxx || export CXX=$(tc-getCC)
49
	use cxx || export CXX=$(tc-getCC)
46
50
51
	if multilib_build_binaries; then
52
		myconf+=" $(use_enable acl)
53
				  $(use_enable java)
54
				  $(use_enable ncurses curses)"
55
	else
56
		myconf+=" --disable-acl --disable-java --disable-curses"
57
	fi
58
47
	# --without-emacs: Emacs support is now in a separate package
59
	# --without-emacs: Emacs support is now in a separate package
48
	# --with-included-glib: glib depends on us so avoid circular deps
60
	# --with-included-glib: glib depends on us so avoid circular deps
49
	# --with-included-libcroco: libcroco depends on glib which ... ^^^
61
	# --with-included-libcroco: libcroco depends on glib which ... ^^^
Lines 51-73 Link Here
51
	# --with-included-libunistring will _disable_ libunistring (since
63
	# --with-included-libunistring will _disable_ libunistring (since
52
	# --it's not bundled), see bug #326477
64
	# --it's not bundled), see bug #326477
53
	econf \
65
	econf \
54
		--cache-file="${S}"/config.cache \
66
		--cache-file="${S}-${ABI}"/config.cache \
55
		--docdir="/usr/share/doc/${PF}" \
67
		--docdir="/usr/share/doc/${PF}" \
56
		--without-emacs \
68
		--without-emacs \
57
		--without-lispdir \
69
		--without-lispdir \
58
		$(use_enable java) \
59
		--with-included-glib \
70
		--with-included-glib \
60
		--with-included-libcroco \
71
		--with-included-libcroco \
61
		--with-included-libunistring \
72
		--with-included-libunistring \
62
		$(use_enable acl) \
63
		$(use_enable ncurses curses) \
64
		$(use_enable openmp) \
73
		$(use_enable openmp) \
65
		$(use_enable static-libs static) \
74
		$(use_enable static-libs static) \
66
		$(use_with git) \
75
		$(use_with git) \
67
		$(usex git --without-cvs $(use_with cvs))
76
		$(usex git --without-cvs $(use_with cvs))
68
}
77
}
69
78
70
src_install() {
79
multilib_src_install() {
71
	emake install DESTDIR="${D}"
80
	emake install DESTDIR="${D}"
72
	use nls || rm -r "${D}"/usr/share/locale
81
	use nls || rm -r "${D}"/usr/share/locale
73
	use static-libs || rm -f "${D}"/usr/lib*/*.la
82
	use static-libs || rm -f "${D}"/usr/lib*/*.la
Lines 99-106 Link Here
99
		rm -rf "${D}"/usr/share/doc/${PF}/{csharpdoc,examples,javadoc2,javadoc1}
108
		rm -rf "${D}"/usr/share/doc/${PF}/{csharpdoc,examples,javadoc2,javadoc1}
100
	fi
109
	fi
101
	rm -f "${D}"/usr/share/doc/${PF}/*.html
110
	rm -f "${D}"/usr/share/doc/${PF}/*.html
102
103
	dodoc AUTHORS ChangeLog NEWS README THANKS
104
}
111
}
105
112
106
pkg_preinst() {
113
pkg_preinst() {

Return to bug 496218