diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-09-18 16:16:49 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-09-18 16:16:49 +0000 |
commit | 2e658d3e17b31bf7c77c517b79906ce44dd6e061 (patch) | |
tree | 6cbcfceee065e8f5735490a0f1d09cd3e57d71ee /app-misc/splitvt/splitvt-1.6.6-r2.ebuild | |
parent | sparc stable wrt #328279 (diff) | |
download | gentoo-2-2e658d3e17b31bf7c77c517b79906ce44dd6e061.tar.gz gentoo-2-2e658d3e17b31bf7c77c517b79906ce44dd6e061.tar.bz2 gentoo-2-2e658d3e17b31bf7c77c517b79906ce44dd6e061.zip |
Respecting LDFLAGS, 337689
(Portage version: 2.2_rc83/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/splitvt/splitvt-1.6.6-r2.ebuild')
-rw-r--r-- | app-misc/splitvt/splitvt-1.6.6-r2.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app-misc/splitvt/splitvt-1.6.6-r2.ebuild b/app-misc/splitvt/splitvt-1.6.6-r2.ebuild new file mode 100644 index 000000000000..2bfcc2e4e41d --- /dev/null +++ b/app-misc/splitvt/splitvt-1.6.6-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/splitvt/splitvt-1.6.6-r2.ebuild,v 1.1 2010/09/18 16:16:49 jlec Exp $ + +EAPI="3" + +inherit eutils toolchain-funcs + +MY_P="${P/-/_}" +DEB_PL="7" + +DESCRIPTION="A program for splitting terminals into two shells" +HOMEPAGE="http://www.devolution.com/~slouken/projects/splitvt" +SRC_URI=" + http://www.devolution.com/~slouken/projects/${PN}/${P}.tar.gz + mirror://debian/pool/main/s/splitvt/${MY_P}-${DEB_PL}.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND=">=sys-libs/ncurses-5.2" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${WORKDIR}"/${MY_P}-${DEB_PL}.diff + epatch "${FILESDIR}"/${PV}-ldflags.patch + sed -i \ + -e "s:/usr/local/bin:${D}/usr/bin:g" \ + -e "s:/usr/local/man/:${D}/usr/share/man/:g" config.c || die +} + +src_compile() { + # upstream has their own weirdo configure script... + ./configure || die "configure failed" + sed -i -e "s:-O2:${CFLAGS}:" -e "s:^CC = gcc:CC = $(tc-getCC):" Makefile || die + emake || die "emake failed" +} + +src_install() { + dodir /usr/bin /usr/share/man/man1/ || die + make install || die "make install failed" + fperms 755 /usr/bin/xsplitvt || die + dodoc ANNOUNCE BLURB CHANGES NOTES README TODO || die + doman splitvt.1 || die +} |