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

Collapse All | Expand All

(-)zhcon-0.2.6-r1.ebuild.orig (-6 / +18 lines)
Lines 1-13 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2010 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/app-i18n/zhcon/zhcon-0.2.6-r1.ebuild,v 1.2 2009/06/09 13:21:55 flameeyes Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-i18n/zhcon/zhcon-0.2.6-r1.ebuild,v 1.2 2009/06/09 13:21:55 flameeyes Exp $
4
4
5
WANT_AUTOMAKE="1.9"
5
WANT_AUTOMAKE="1.9"
6
EAPI="2"
6
7
7
inherit eutils autotools
8
inherit eutils autotools
8
9
9
MY_P=${P/6/5}
10
MY_P=${P/6/5}
10
S="${WORKDIR}/${MY_P}"
11
S=${WORKDIR}/${MY_P}
11
12
12
DESCRIPTION="A Fast CJK (Chinese/Japanese/Korean) Console Environment"
13
DESCRIPTION="A Fast CJK (Chinese/Japanese/Korean) Console Environment"
13
HOMEPAGE="http://zhcon.sourceforge.net/"
14
HOMEPAGE="http://zhcon.sourceforge.net/"
Lines 17-27 Link Here
17
LICENSE="GPL-2"
18
LICENSE="GPL-2"
18
SLOT="0"
19
SLOT="0"
19
KEYWORDS="~x86 ~amd64"
20
KEYWORDS="~x86 ~amd64"
20
IUSE=""
21
IUSE="ggi gpm"
21
22
22
src_unpack() {
23
DEPEND="ggi? ( media-libs/libggi[X] )
23
	unpack ${A}
24
	gpm? ( sys-libs/gpm )"
24
	cd "${S}"
25
RDEPEND="${DEPEND}"
26
27
src_prepare() {
25
	epatch "${DISTDIR}"/zhcon-0.2.5-to-0.2.6.diff.gz
28
	epatch "${DISTDIR}"/zhcon-0.2.5-to-0.2.6.diff.gz
26
	epatch "${FILESDIR}"/zhcon-0.2.5.make-fix.patch
29
	epatch "${FILESDIR}"/zhcon-0.2.5.make-fix.patch
27
	epatch "${FILESDIR}"/${P}.sysconfdir.patch
30
	epatch "${FILESDIR}"/${P}.sysconfdir.patch
Lines 30-38 Link Here
30
	epatch "${FILESDIR}"/${P}+linux-headers-2.6.26.patch
33
	epatch "${FILESDIR}"/${P}+linux-headers-2.6.26.patch
31
	epatch "${FILESDIR}"/${P}-curses.patch
34
	epatch "${FILESDIR}"/${P}-curses.patch
32
	epatch "${FILESDIR}"/${P}-amd64.patch
35
	epatch "${FILESDIR}"/${P}-amd64.patch
36
	epatch "${FILESDIR}"/${P}-automagic-fix.patch
37
	for f in $(grep -lir HAVE_GGI_LIB *); do
38
		sed -i -e "s/HAVE_GGI_LIB/HAVE_LIBGGI/" $f || die "sed failed"
39
	done
33
	eautoreconf
40
	eautoreconf
34
}
41
}
35
42
43
src_configure() {
44
	econf $(use_with ggi) \
45
		$(use_with gpm)
46
}
47
36
src_install() {
48
src_install() {
37
	emake -j1 DESTDIR="${D}" install || die
49
	emake -j1 DESTDIR="${D}" install || die
38
	dodoc AUTHORS ChangeLog README NEWS TODO THANKS
50
	dodoc AUTHORS ChangeLog README NEWS TODO THANKS

Return to bug 303001