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.
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xtoolwait/xtoolwait-1.3-r2.ebuild,v 1.4 2012/02/12 15:18:51 armin76 Exp $
|
|
|
|
|
|
|
|
EAPI="2"
|
|
|
|
|
|
|
|
inherit toolchain-funcs
|
|
|
|
|
|
|
|
DESCRIPTION="Xtoolwait notably decreases the startup time of an X session"
|
|
|
|
HOMEPAGE="http://www.hacom.nl/~richard/software/xtoolwait.html"
|
|
|
|
SRC_URI="http://www.hacom.nl/~richard/software/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 ppc x86"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RDEPEND="x11-libs/libX11
|
|
|
|
x11-libs/libXext"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
x11-proto/xproto
|
|
|
|
app-text/rman"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
xmkmf || die "xmkmf failed"
|
|
|
|
sed -i Makefile \
|
|
|
|
-e '/CC = /d' \
|
|
|
|
-e '/EXTRA_LDOPTIONS = /d' \
|
|
|
|
|| die "sed Makefile"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake \
|
|
|
|
CC=$(tc-getCC) \
|
|
|
|
CCOPTIONS="${CFLAGS}" \
|
|
|
|
EXTRA_LDOPTIONS="${LDFLAGS}" \
|
|
|
|
|| die "emake failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
emake BINDIR=/usr/bin \
|
|
|
|
MANPATH=/usr/share/man \
|
|
|
|
DOCDIR=/usr/share/doc/${PF} \
|
|
|
|
DESTDIR="${D}" install || die "emake install failed"
|
|
|
|
emake BINDIR=/usr/bin \
|
|
|
|
MANPATH=/usr/share/man \
|
|
|
|
DOCDIR=/usr/share/doc/${PF} \
|
|
|
|
DESTDIR="${D}" install.man || die "emake install.man failed"
|
|
|
|
dodoc CHANGES README
|
|
|
|
}
|