Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 559890
Collapse All | Expand All

(-)/usr/portage/net-dialup/mingetty/mingetty-1.08.ebuild (-5 / +12 lines)
Lines 2-7 Link Here
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
# $Id$
3
# $Id$
4
4
5
EAPI="5"
6
5
inherit toolchain-funcs eutils
7
inherit toolchain-funcs eutils
6
8
7
DESCRIPTION="A compact getty program for virtual consoles only"
9
DESCRIPTION="A compact getty program for virtual consoles only"
Lines 11-29 Link Here
11
LICENSE="GPL-2"
13
LICENSE="GPL-2"
12
SLOT="0"
14
SLOT="0"
13
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86"
15
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86"
14
IUSE="unicode"
16
IUSE="elibc_glibc unicode"
15
17
16
src_unpack() {
18
RDEPEND="virtual/libiconv"
17
	unpack ${A}
18
19
20
src_prepare() {
21
	epatch "${FILESDIR}"/${P}-honor-flags.patch
19
	use unicode && epatch "${FILESDIR}"/${P}-utf8.patch
22
	use unicode && epatch "${FILESDIR}"/${P}-utf8.patch
20
}
23
}
21
24
22
src_compile() {
25
src_compile() {
23
	emake CFLAGS="${CFLAGS} -Wall -W -pipe -D_GNU_SOURCE" CC="$(tc-getCC)" || die "compile failed"
26
	if use elibc_glibc; then
27
		emake CFLAGS="${CFLAGS} -Wall -W -pipe -D_GNU_SOURCE" CC="$(tc-getCC)"
28
	else
29
		emake CFLAGS="${CFLAGS} -Wall -W -pipe -D_GNU_SOURCE" CC="$(tc-getCC)" LIBS="-liconv"
30
	fi
24
}
31
}
25
32
26
src_install () {
33
src_install () {
27
	dodir /sbin /usr/share/man/man8
34
	dodir /sbin /usr/share/man/man8
28
	emake DESTDIR="${D}" install || die "install failed"
35
	emake DESTDIR="${D}" install
29
}
36
}

Return to bug 559890