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

Contents of /sys-apps/lshw/lshw-02.16b-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Apr 8 22:04:23 2012 UTC (2 years, 3 months ago) by flameeyes
Branch: MAIN
Update patch so that USE=gtk won't fail if sqlite3 is not present. Make the ebuild depend on hwids and not install its own ids files.

(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

1 flameeyes 1.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.16b.ebuild,v 1.1 2012/01/11 23:01:23 radhermit Exp $
4    
5     EAPI=4
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="~amd64"
20     IUSE="gtk sqlite static"
21    
22     REQUIRED_USE="static? ( !gtk )"
23    
24     RDEPEND="gtk? ( x11-libs/gtk+:2 )
25     sqlite? ( dev-db/sqlite:3 )"
26     DEPEND="${RDEPEND}
27     gtk? ( dev-util/pkgconfig )
28     sqlite? ( dev-util/pkgconfig )"
29     RDEPEND+=" sys-apps/hwids"
30    
31     S=${WORKDIR}/${MY_P}
32    
33     src_prepare() {
34     epatch "${FILESDIR}"/${P}-build-v2.patch
35     }
36    
37     src_compile() {
38     tc-export CC CXX AR
39     use static && append-ldflags -static
40    
41     local sqlite=$(usex sqlite 1 0)
42    
43     emake SQLITE=$sqlite all
44     if use gtk ; then
45     emake SQLITE=$sqlite gui
46     fi
47     }
48    
49     src_install() {
50     emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
51     dodoc README docs/*
52     if use gtk ; then
53     emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install-gui
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