# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-terms/xvt/xvt-2.1-r1.ebuild,v 1.8 2009/05/05 10:51:31 ssuominen Exp $ inherit ccc eutils flag-o-matic DESCRIPTION="A tiny vt100 terminal emulator for X" HOMEPAGE="ftp://ftp.x.org/R5contrib/xvt-1.0.README" SRC_URI="ftp://ftp.x.org/R5contrib/xvt-1.0.tar.Z mirror://gentoo/xvt-2.1.diff.gz" LICENSE="as-is" SLOT="0" KEYWORDS="alpha ~amd64 ~ppc x86" IUSE="" RDEPEND="x11-libs/libX11" DEPEND="${RDEPEND} x11-proto/xproto" S=${WORKDIR}/${PN}-1.0 src_unpack() { unpack ${A} # this brings the distribution upto version 2.1 cd "${S}" epatch "${WORKDIR}"/xvt-2.1.diff # fix #61393 epatch "${FILESDIR}"/xvt-ttyinit-svr4pty.diff # set the makefile options sed -i 's/#\(ARCH=LINUX\)/\1/g' Makefile # set CFLAGS sed -i "s^\(CFLAGS=\)-O^\1${CFLAGS}^g" Makefile # make gcc quiet. sed -i -e 's/^void$/int/' -e 's/^void\( main\)/int\1/g' xvt.c } src_compile() { # emake -j1 config emake || die "emake failed" } src_install() { dobin xvt || die "dobin failed" doman xvt.1 dodoc README }