/[gentoo-x86]/net-wireless/gkismet/gkismet-0.0.10.ebuild
Gentoo

Contents of /net-wireless/gkismet/gkismet-0.0.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Tue Oct 18 12:49:41 2005 UTC (14 years, 4 months ago) by metalgod
Branch: MAIN
Changes since 1.3: +2 -2 lines
Added ~amd64 keyword. Bug #108370.
(Portage version: 2.0.53_rc5)

1 brix 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 metalgod 1.4 # $Header: /var/cvsroot/gentoo-x86/net-wireless/gkismet/gkismet-0.0.10.ebuild,v 1.3 2005/07/12 08:09:45 brix Exp $
4 brix 1.1
5     inherit eutils
6    
7     DESCRIPTION="Gtk perl based client for Kismet"
8     SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
9     HOMEPAGE="http://gkismet.sourceforge.net"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13 metalgod 1.4 KEYWORDS="~amd64 x86"
14 brix 1.1
15     IUSE=""
16    
17 brix 1.2 RDEPEND="dev-perl/gtk-perl"
18     DEPEND="${RDEPEND}
19     sys-apps/sed"
20 brix 1.1
21     pkg_setup() {
22     if ! built_with_use dev-perl/gtk-perl gnome; then
23     eerror
24     eerror "${P} needs dev-perl/gtk-perl emerged with USE=\"gnome\""
25     eerror
26     die "${P} needs dev-perl/gtk-perl emerged with USE=\"gnome\""
27     fi
28     }
29    
30     src_unpack() {
31     unpack ${P}.tar.gz
32    
33     sed -i \
34     -e"s:^PREFIX=/usr/local:PREFIX=${D}/usr:" \
35     -e "s:^ETC=\$(PREFIX)/etc/gkismet:ETC=${D}/etc/gkismet:" \
36     ${S}/Makefile
37    
38     sed -i -e "s:!PREFIX!:/usr:" ${S}/gkismet.pl
39    
40     sed -i -e "s:\$self->{'path'}{'etc'} = \$prefix . '/etc/gkismet':\$self->{'path'}{'etc'} = '/etc/gkismet':" \
41     ${S}/GKismetApplication.pm
42     }
43    
44     src_install () {
45     emake install || die "emake install failed"
46    
47     dodoc README Changelog
48     }

  ViewVC Help
Powered by ViewVC 1.1.20