summaryrefslogtreecommitdiff
blob: 6179986203029a0ed96514e6f575439707f92edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/lkcp/lkcp-0.5.3-r3.ebuild,v 1.1.1.1 2005/11/30 09:56:03 chriswhite Exp $

DESCRIPTION="Live Kernel Configuration Panel is an ncurses interface to the run-time Linux kernel configuration data (/proc)"
HOMEPAGE="http://freshmeat.net/projects/lkcp"
SRC_URI="https://webspace.utexas.edu/~hyoussef/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc x86"
IUSE="doc"

DEPEND="sys-libs/ncurses
		=dev-libs/glib-1*"

src_compile() {
	cd ${S}/src
	sed -i -e '/^LKCPDIR/s:\/usr\/local\/bin:\$(DESTDIR)\/usr\/bin:' \
		-e '/^\t@$(ECHO) $(ECHOFLAGS) "\\n"$/d' \
		-e '/^\t@$(ECHO) $(ECHOFLAGS) \[+\] Resetting your terminal\.\.\.$/d' \
		-e '/^\t@$(RESET)$/d' Makefile || die "sed failed"
	emake || die "emake failed"
}

src_install() {
	cd ${S}/src
	dodir /usr/bin
	make install DESTDIR="${D}" || die "einstall failed"
	cd ${S}
	mv LICENCE LICENSE
	dodoc AUTHORS CREDITS Changelog README TODO LICENSE
	if use doc; then
		docinto Documentation
		dodoc Documentation/{FSSearch.feature,LKCP.dia,LKCP_diagram-OUTDATED.png,LKCP.Shortcomings,proc.txt,sampledox.conf,ScriptDump.feature}
	fi
}