diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-12-24 13:15:04 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-12-24 13:15:04 +0000 |
commit | 38231c401276c29bcb3bc438e86b54a56c7fb0c7 (patch) | |
tree | 3067bf26b0e4715639f40bfc11c78013ac666b5c /sys-apps | |
parent | Cleaning out some unused, old versions. (diff) | |
download | gentoo-2-38231c401276c29bcb3bc438e86b54a56c7fb0c7.tar.gz gentoo-2-38231c401276c29bcb3bc438e86b54a56c7fb0c7.tar.bz2 gentoo-2-38231c401276c29bcb3bc438e86b54a56c7fb0c7.zip |
Version bump #195824.
(Portage version: 2.1.4_rc11)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/lshw/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/lshw/files/digest-lshw-02.12.01b | 3 | ||||
-rw-r--r-- | sys-apps/lshw/files/lshw-02.12.01b-build.patch | 63 | ||||
-rw-r--r-- | sys-apps/lshw/lshw-02.12.01b.ebuild | 49 |
4 files changed, 122 insertions, 1 deletions
diff --git a/sys-apps/lshw/ChangeLog b/sys-apps/lshw/ChangeLog index 5e38919f43f9..da228641c025 100644 --- a/sys-apps/lshw/ChangeLog +++ b/sys-apps/lshw/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/lshw # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/ChangeLog,v 1.59 2007/11/25 01:24:38 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/ChangeLog,v 1.60 2007/12/24 13:15:03 vapier Exp $ + +*lshw-02.12.01b (24 Dec 2007) + + 24 Dec 2007; Mike Frysinger <vapier@gentoo.org> + +files/lshw-02.12.01b-build.patch, +lshw-02.12.01b.ebuild: + Version bump #195824. 25 Nov 2007; Brent Baude <ranger@gentoo.org> lshw-02.11.01b.ebuild: Marked lshw-02.11.01b ppc stable for bug 194114 diff --git a/sys-apps/lshw/files/digest-lshw-02.12.01b b/sys-apps/lshw/files/digest-lshw-02.12.01b new file mode 100644 index 000000000000..ea86cb57693d --- /dev/null +++ b/sys-apps/lshw/files/digest-lshw-02.12.01b @@ -0,0 +1,3 @@ +MD5 7aeacdd0b86ae03acbc168d8ecdf6fd6 lshw-B.02.12.01.tar.gz 1230882 +RMD160 475b42cf09aa8c53ce2514187cc659547cff89c7 lshw-B.02.12.01.tar.gz 1230882 +SHA256 9cfeafe18ee78b72cc6aaeeba7ad1ca61d7dc725cc4981bcd985845d9e09645d lshw-B.02.12.01.tar.gz 1230882 diff --git a/sys-apps/lshw/files/lshw-02.12.01b-build.patch b/sys-apps/lshw/files/lshw-02.12.01b-build.patch new file mode 100644 index 000000000000..75ae23847e6f --- /dev/null +++ b/sys-apps/lshw/files/lshw-02.12.01b-build.patch @@ -0,0 +1,63 @@ +--- lshw/src/core/Makefile ++++ lshw/src/core/Makefile +@@ -1,9 +1,9 @@ + PACKAGENAME?=lshw + +-CXX=c++ ++CXX?=c++ + INCLUDES= + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" +-CXXFLAGS=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++CXXFLAGS ?= -g ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) +-LDFLAGS= + LDSTATIC= + LIBS= +--- lshw/src/gui/Makefile ++++ lshw/src/gui/Makefile +@@ -7,11 +7,11 @@ + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" + GTKINCLUDES=$(shell pkg-config gtk+-2.0 --cflags) + INCLUDES=-I../core $(GTKINCLUDES) +-CXXFLAGS=-g -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) +-CFLAGS=$(CXXFLAGS) $(DEFINES) ++CXXFLAGS ?= -g ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++CFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) + GTKLIBS=$(shell pkg-config gtk+-2.0 --libs) + LIBS=-L../core -llshw -lresolv $(GTKLIBS) +-LDFLAGS= + ifneq ($(shell $(LD) --help 2| grep -- --as-needed), ) + LDFLAGS+= -Wl,--as-needed + endif +@@ -34,7 +34,6 @@ + $(CXX) $(LDFLAGS) -o $@ $^ $(LIBS) + + install: all +- $(STRIP) gtk-$(PACKAGENAME) + + clean: + rm -f $(OBJS) gtk-$(PACKAGENAME) gtk-lshw.glade.bak gtk-lshw.gladep.bak interface.c.bak interface.h.bak callbacks.c.bak callbacks.h.bak Makefile.bak +--- lshw/src/Makefile ++++ lshw/src/Makefile +@@ -18,8 +18,10 @@ + CXX?=c++ + INCLUDES=-I./core/ + DEFINES=-DPREFIX=\"$(PREFIX)\" -DSBINDIR=\"$(SBINDIR)\" -DMANDIR=\"$(MANDIR)\" -DDATADIR=\"$(DATADIR)\" +-CXXFLAGS=-g -Wall -g $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) +-LDFLAGS=-L./core/ -g ++CXXFLAGS ?= -g ++CXXFLAGS += -Wall $(INCLUDES) $(DEFINES) $(RPM_OPT_FLAGS) ++LDFLAGS ?= -g ++LDFLAGS += -L./core/ + ifneq ($(shell $(LD) --help 2| grep -- --as-needed), ) + LDFLAGS+= -Wl,--as-needed + endif +@@ -49,7 +51,6 @@ + + $(PACKAGENAME)-static: core core/lib$(PACKAGENAME).a $(PACKAGENAME).o + $(CXX) $(LDSTATIC) $(LDFLAGS) -o $@ $(PACKAGENAME).o $(LIBS) +- $(STRIP) $@ + + .PHONY: compressed + compressed: $(PACKAGENAME)-compressed diff --git a/sys-apps/lshw/lshw-02.12.01b.ebuild b/sys-apps/lshw/lshw-02.12.01b.ebuild new file mode 100644 index 000000000000..865bd2566256 --- /dev/null +++ b/sys-apps/lshw/lshw-02.12.01b.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/lshw/lshw-02.12.01b.ebuild,v 1.1 2007/12/24 13:15:03 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 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="gtk static" +RESTRICT="strip" + +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}"/${PN}-02.09b-cpuid-PIC.patch #61947 +} + +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 +} |