/[gentoo-x86]/sys-apps/lshw/lshw-02.15b.ebuild
Gentoo

Contents of /sys-apps/lshw/lshw-02.15b.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Fri May 4 09:17:30 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +4 -4 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/lshw-02.15b.ebuild,v 1.14 2011/11/11 17:23:49 flameeyes Exp $
4
5 EAPI=3
6 inherit flag-o-matic eutils toolchain-funcs
7
8 MAJ_PV=${PV:0:${#PV}-1}
9 MIN_PVE=${PV:0-1}
10 MIN_PV=${MIN_PVE/b/B}
11
12 MY_P="$PN-$MIN_PV.$MAJ_PV"
13 DESCRIPTION="Hardware Lister"
14 HOMEPAGE="http://ezix.org/project/wiki/HardwareLiSter"
15 SRC_URI="http://ezix.org/software/files/${MY_P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~x86-linux"
20 IUSE="gtk sqlite static"
21
22 RDEPEND="gtk? ( x11-libs/gtk+:2 )
23 sqlite? ( dev-db/sqlite:3 )"
24 DEPEND="${RDEPEND}
25 gtk? ( virtual/pkgconfig )
26 sqlite? ( virtual/pkgconfig )"
27
28 S=${WORKDIR}/${MY_P}
29
30 src_prepare() {
31 epatch "${FILESDIR}"/${P}-build.patch
32 }
33
34 src_compile() {
35 tc-export CC CXX AR
36 use static && append-ldflags -static
37
38 local sqlite=0
39 use sqlite && sqlite=1
40
41 emake SQLITE=$sqlite || die "emake failed"
42 if use gtk ; then
43 emake SQLITE=$sqlite gui || die "emake gui failed"
44 fi
45 }
46
47 src_install() {
48 emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install || \
49 die "install failed"
50 dodoc README docs/*
51 if use gtk ; then
52 emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install-gui || \
53 die "install gui failed"
54 make_desktop_entry /usr/sbin/gtk-lshw "Hardware Lister" "/usr/share/lshw/artwork/logo.svg"
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20