You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB
7 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
7 years ago
|
EAPI="6"
|
||
12 years ago
|
WANT_AUTOMAKE="1.9"
|
||
13 years ago
|
|
||
|
inherit autotools eutils
|
||
|
|
||
|
MY_P="${P/6/5}"
|
||
|
|
||
|
DESCRIPTION="A Fast CJK (Chinese/Japanese/Korean) Console Environment"
|
||
|
HOMEPAGE="http://zhcon.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/zhcon/${MY_P}.tar.gz
|
||
|
mirror://sourceforge/zhcon/zhcon-0.2.5-to-0.2.6.diff.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="ggi gpm"
|
||
|
|
||
|
DEPEND="ggi? ( media-libs/libggi[X] )
|
||
|
gpm? ( sys-libs/gpm )"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
7 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}.sysconfdir.patch
|
||
|
"${FILESDIR}"/${P}.configure.in.patch
|
||
|
"${FILESDIR}"/${P}+gcc-4.3.patch
|
||
|
"${FILESDIR}"/${P}+linux-headers-2.6.26.patch
|
||
|
"${FILESDIR}"/${P}-curses.patch
|
||
|
"${FILESDIR}"/${P}-amd64.patch
|
||
|
"${FILESDIR}"/${P}-automagic-fix.patch
|
||
|
"${FILESDIR}"/${P}.make-fix.patch
|
||
|
)
|
||
|
|
||
13 years ago
|
src_prepare() {
|
||
|
epatch "${DISTDIR}"/zhcon-0.2.5-to-0.2.6.diff.gz
|
||
7 years ago
|
default
|
||
13 years ago
|
for f in $(grep -lir HAVE_GGI_LIB *); do
|
||
|
sed -i -e "s/HAVE_GGI_LIB/HAVE_LIBGGI/" "${f}" || die "sed failed"
|
||
|
done
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf $(use_with ggi) \
|
||
7 years ago
|
$(use_with gpm)
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
7 years ago
|
emake DESTDIR="${D}" install
|
||
13 years ago
|
|
||
7 years ago
|
dodoc AUTHORS ChangeLog README NEWS TODO THANKS
|
||
|
dodoc README.BSD README.gpm README.utf8
|
||
13 years ago
|
}
|