Source

lxde-overlay / lxde-base / lxappearance / lxappearance-9999.ebuild

Full commit
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="1"
inherit subversion

DESCRIPTION="LXDE GTK+ theme switcher"
HOMEPAGE="http://lxde.sourceforge.net/"
ESVN_REPO_URI="https://lxde.svn.sourceforge.net/svnroot/lxde/trunk/lxappearance/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""

RDEPEND="x11-libs/gtk+:2"
DEPEND="${RDEPEND}
	app-text/docbook-sgml-utils
	dev-util/pkgconfig
	sys-devel/gettext"

src_unpack() {
	subversion_src_unpack
	sed -i 's/ docbook-to-man \$\< \> \$\@/docbook2man \$\</' man/Makefile.am || die "sed man/Makefile.am filed"
	sed -i 's/\<refentrytitle\>LXAPPEARANCE/\<refentrytitle\>lxappearance/' man/lxappearance.sgml || die "sed man/lxappearance.sgml filed"
	NOCONFIGURE=1 ./autogen.sh
}

src_compile() {
	econf --disable-dependency-tracking
	emake || die "make failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "make install failed"
	dodoc AUTHORS ChangeLog README || die "dodoc failed"
}