summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-05-31 10:13:09 +0000
committerMike Frysinger <vapier@gentoo.org>2008-05-31 10:13:09 +0000
commit95800a356572f066dc6f10c8d03ba5e823772a74 (patch)
tree541a54f56a7513e58c3e6428698fe01c89a5c653 /sys-apps
parentalpha/ia64/sparc stable wrt #224071 (diff)
downloadgentoo-2-95800a356572f066dc6f10c8d03ba5e823772a74.tar.gz
gentoo-2-95800a356572f066dc6f10c8d03ba5e823772a74.tar.bz2
gentoo-2-95800a356572f066dc6f10c8d03ba5e823772a74.zip
Version bump.
(Portage version: 2.2_pre5.spank.spunk)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/lshw/ChangeLog8
-rw-r--r--sys-apps/lshw/files/lshw-02.13b-gcc43.patch10
-rw-r--r--sys-apps/lshw/lshw-02.13b.ebuild48
3 files changed, 65 insertions, 1 deletions
diff --git a/sys-apps/lshw/ChangeLog b/sys-apps/lshw/ChangeLog
index 8261b26d4425..dae94ab504d6 100644
--- a/sys-apps/lshw/ChangeLog
+++ b/sys-apps/lshw/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/lshw
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/ChangeLog,v 1.69 2008/05/22 16:57:16 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/ChangeLog,v 1.70 2008/05/31 10:13:08 vapier Exp $
+
+*lshw-02.13b (31 May 2008)
+
+ 31 May 2008; Mike Frysinger <vapier@gentoo.org>
+ +files/lshw-02.13b-gcc43.patch, +lshw-02.13b.ebuild:
+ Version bump.
22 May 2008; <solar@gentoo.org> lshw-02.12.01b.ebuild:
- Keyworded ~arm
diff --git a/sys-apps/lshw/files/lshw-02.13b-gcc43.patch b/sys-apps/lshw/files/lshw-02.13b-gcc43.patch
new file mode 100644
index 000000000000..d3b8012542c4
--- /dev/null
+++ b/sys-apps/lshw/files/lshw-02.13b-gcc43.patch
@@ -0,0 +1,10 @@
+--- src/core/abi.cc
++++ src/core/abi.cc
+@@ -9,6 +9,7 @@
+ #include "osutils.h"
+ #include <unistd.h>
+ #include <dirent.h>
++#include <stdlib.h>
+
+ __ID("@(#) $Id: lshw-02.13b-gcc43.patch,v 1.1 2008/05/31 10:13:09 vapier Exp $");
+
diff --git a/sys-apps/lshw/lshw-02.13b.ebuild b/sys-apps/lshw/lshw-02.13b.ebuild
new file mode 100644
index 000000000000..7547a5ade07a
--- /dev/null
+++ b/sys-apps/lshw/lshw-02.13b.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/lshw-02.13b.ebuild,v 1.1 2008/05/31 10:13:08 vapier Exp $
+
+inherit flag-o-matic eutils toolchain-funcs
+
+MAJ_PV=${PV:0:${#PV}-1}
+MIN_PVE=${PV:0-1}
+MIN_PV=${MIN_PVE/b/B}
+
+MY_P="$PN-$MIN_PV.$MAJ_PV"
+DESCRIPTION="Hardware Lister"
+HOMEPAGE="http://ezix.org/project/wiki/HardwareLiSter"
+SRC_URI="http://ezix.org/software/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="gtk static"
+
+DEPEND="gtk? ( >=x11-libs/gtk+-2 )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-02.12.01b-build.patch
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+}
+
+src_compile() {
+ tc-export CC CXX AR
+ use static && append-ldflags -static
+ emake || die "make failed"
+ if use gtk ; then
+ emake gui || die "make gui failed"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ dodoc README docs/*
+ if use gtk ; then
+ emake DESTDIR="${D}" install-gui || die "install gui failed"
+ make_desktop_entry /usr/sbin/gtk-lshw "Hardware Lister" "/usr/share/lshw/artwork/logo.svg"
+ fi
+}