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

Collapse All | Expand All

(-)libreadline-java-0.8.0-r2.ebuild (-4 / +16 lines)
Lines 12-21 Link Here
12
12
13
LICENSE="LGPL-2.1"
13
LICENSE="LGPL-2.1"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="amd64 ~ia64 ppc ppc64 x86 ~x86-fbsd"
15
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
16
IUSE="elibc_FreeBSD"
16
IUSE="editline getline readline elibc_FreeBSD"
17
17
18
COMMON_DEP="sys-libs/ncurses"
18
COMMON_DEP="sys-libs/ncurses
19
	editline? ( >=dev-libs/libedit-20061103 )"
19
RDEPEND=">=virtual/jre-1.4
20
RDEPEND=">=virtual/jre-1.4
20
	${COMMON_DEP}"
21
	${COMMON_DEP}"
21
DEPEND=">=virtual/jdk-1.4
22
DEPEND=">=virtual/jdk-1.4
Lines 26-31 Link Here
26
	unpack ${A}
27
	unpack ${A}
27
	cd "${S}"
28
	cd "${S}"
28
	epatch "${FILESDIR}/termcap-to-ncurses.patch"
29
	epatch "${FILESDIR}/termcap-to-ncurses.patch"
30
	epatch "${FILESDIR}/editline-to-libedit.patch"
29
	# bug #157387, reported upstream
31
	# bug #157387, reported upstream
30
	epatch "${FILESDIR}/${P}-gmake.patch"
32
	epatch "${FILESDIR}/${P}-gmake.patch"
31
33
Lines 37-43 Link Here
37
}
39
}
38
40
39
src_compile() {
41
src_compile() {
40
	emake -j1 || die "failed to compile"
42
	local libs
43
	use readline && libs="JavaReadline"
44
	use getline && libs="${libs} JavaGetline"
45
	use editline && libs="${libs} JavaEditline"
46
47
	if [[ -z "${libs}" ]]; then
48
		einfo "No relevant USE-flag set, building the default \"readline\""
49
		libs="JavaReadline"
50
	fi
51
52
	emake -j1 T_LIBS="${libs}" || die "failed to compile"
41
	if use doc; then
53
	if use doc; then
42
		emake -j1 apidoc || die "failed to generate docs"
54
		emake -j1 apidoc || die "failed to generate docs"
43
	fi
55
	fi

Return to bug 208285