From: "Ben Kohler" <bkohler@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/lshw/
Date: Sun, 6 Feb 2022 12:59:03 +0000 (UTC) [thread overview]
Message-ID: <1644152325.a69cd51a1b046bf146aafc1c667638f40289db94.bkohler@gentoo> (raw)
commit: a69cd51a1b046bf146aafc1c667638f40289db94
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 6 12:58:45 2022 +0000
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Sun Feb 6 12:58:45 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a69cd51a
sys-apps/lshw: revbump for desktop file icon fix
Closes: https://bugs.gentoo.org/832739
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
sys-apps/lshw/lshw-02.19.2b_p20210121-r3.ebuild | 83 +++++++++++++++++++++++++
1 file changed, 83 insertions(+)
diff --git a/sys-apps/lshw/lshw-02.19.2b_p20210121-r3.ebuild b/sys-apps/lshw/lshw-02.19.2b_p20210121-r3.ebuild
new file mode 100644
index 000000000000..527ff09582af
--- /dev/null
+++ b/sys-apps/lshw/lshw-02.19.2b_p20210121-r3.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PLOCALES='fr'
+
+inherit desktop flag-o-matic plocale toolchain-funcs xdg
+
+MY_COMMIT="fdab06ac0b190ea0aa02cd468f904ed69ce0d9f1"
+MY_PV=$(ver_cut 3 PV/b/B).$(ver_cut 1-3)_$(ver_cut 5-6)
+
+DESCRIPTION="Hardware Lister"
+HOMEPAGE="https://www.ezix.org/project/wiki/HardwareLiSter"
+SRC_URI="https://ezix.org/src/pkg/lshw/archive/${MY_COMMIT}.tar.gz -> ${P}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
+IUSE="gtk sqlite static"
+
+REQUIRED_USE="static? ( !gtk !sqlite )"
+
+DEPEND="${RDEPEND}"
+RDEPEND="sys-apps/hwdata
+ gtk? ( x11-libs/gtk+:3 )
+ sqlite? ( dev-db/sqlite:3 )"
+BDEPEND="gtk? ( virtual/pkgconfig )
+ sqlite? ( virtual/pkgconfig )"
+
+S=${WORKDIR}/${PN}
+
+DOCS=( COPYING README.md docs/{Changelog,TODO,IODC.txt,lshw.xsd,proc_usb_info.txt} )
+
+PATCHES=( "${FILESDIR}"/lshw-02.19.2b-respect-LDFLAGS.patch )
+
+src_prepare() {
+ default
+
+ plocale_find_changes "src/po" "" ".po" || die
+ sed -i \
+ -e "/^LANGUAGES =/ s/=.*/= $(plocale_get_locales)/" \
+ src/po/Makefile || die
+ sed -i \
+ -e 's:\<pkg-config\>:${PKG_CONFIG}:' \
+ -e 's:+\?make -C:${MAKE} -C:' \
+ -e '/^CXXFLAGS/s:=-g: +=:' \
+ -e '/^CXXFLAGS/s:-g ::' \
+ -e '/^LDFLAGS/s: -g::' \
+ -e '/^all:/s: $(DATAFILES)::' \
+ -e '/^install:/s: all::' \
+ src/Makefile src/gui/Makefile || die
+ sed -i \
+ -e '/^CXXFLAGS/s:\?=-g: +=:' \
+ -e '/^LDFLAGS=/d' \
+ src/core/Makefile || die
+ sed -i \
+ -e '/^#define PCIID_PATH/s:DATADIR"\/pci.ids.*:"/usr/share/hwdata/pci.ids":' \
+ src/core/pci.cc || die
+ sed -i \
+ -e '/^#define USBID_PATH/s:DATADIR"\/usb.ids.*:"/usr/share/hwdata/usb.ids":' \
+ src/core/usb.cc || die
+}
+
+src_compile() {
+ tc-export CC CXX AR PKG_CONFIG
+ use static && append-ldflags -static
+
+ # Need two sep make statements to avoid parallel build issues. #588174
+ local sqlite=$(usex sqlite 1 0)
+ emake VERSION=${MY_PV} SQLITE=${sqlite} all
+ use gtk && emake SQLITE=${sqlite} gui
+}
+
+src_install() {
+ emake VERSION=${MY_PV} DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install $(usex gtk 'install-gui' '')
+ if use gtk ; then
+ newicon -s scalable src/gui/artwork/logo.svg lshw.svg
+ make_desktop_entry \
+ "${EPREFIX}"/usr/sbin/gtk-lshw \
+ "${DESCRIPTION}"
+ fi
+}
next reply other threads:[~2022-02-06 12:59 UTC|newest]
Thread overview: 72+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-06 12:59 Ben Kohler [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-25 17:31 [gentoo-commits] repo/gentoo:master commit in: sys-apps/lshw/ Arthur Zamarin
2024-05-23 21:57 Sam James
2024-05-23 21:56 Sam James
2024-05-23 15:56 Arthur Zamarin
2024-05-23 15:56 Arthur Zamarin
2024-05-23 15:56 Arthur Zamarin
2024-05-23 15:56 Arthur Zamarin
2024-03-29 15:38 Ben Kohler
2024-02-28 16:25 Ben Kohler
2024-02-28 16:07 Ben Kohler
2024-01-22 8:36 Sam James
2023-11-03 12:23 Ben Kohler
2023-09-02 0:23 Ben Kohler
2023-05-12 16:31 Sam James
2023-05-12 16:31 Sam James
2023-05-12 16:31 Sam James
2023-05-12 16:31 Sam James
2023-05-12 16:26 Sam James
2023-05-12 16:26 Sam James
2023-05-12 16:26 Sam James
2023-03-01 15:08 Ben Kohler
2022-02-19 13:14 Ben Kohler
2022-01-18 22:16 Sam James
2022-01-14 15:23 Arthur Zamarin
2022-01-14 13:46 Jakov Smolić
2022-01-14 13:46 Jakov Smolić
2022-01-14 13:22 Arthur Zamarin
2022-01-14 13:22 Arthur Zamarin
2022-01-14 13:22 Arthur Zamarin
2021-12-25 0:02 Mike Gilbert
2021-12-07 20:29 Sam James
2021-11-28 20:08 Mike Gilbert
2021-08-10 0:02 Marek Szuba
2021-07-13 13:44 Ben Kohler
2021-07-04 14:03 Ulrich Müller
2021-05-29 15:33 Sam James
2021-05-28 12:04 Agostino Sarubbo
2021-05-28 12:03 Agostino Sarubbo
2021-05-27 19:18 Sam James
2021-05-27 19:14 Sam James
2021-05-18 15:18 Ben Kohler
2021-05-17 8:53 Agostino Sarubbo
2021-05-17 7:49 Agostino Sarubbo
2021-05-17 3:19 Sam James
2021-05-17 3:04 Sam James
2021-05-17 2:37 Sam James
2021-05-16 23:41 Sam James
2021-05-16 23:41 Sam James
2021-04-27 8:07 David Seifert
2021-04-26 17:48 Ben Kohler
2021-04-21 14:13 Guilherme Amadio
2021-04-03 15:44 Sam James
2021-03-23 15:22 Ben Kohler
2021-03-23 15:22 Ben Kohler
2021-03-23 15:22 Ben Kohler
2020-08-19 20:06 Sam James
2020-06-06 19:31 Mart Raudsepp
2017-11-06 21:20 Sergei Trofimovich
2017-09-30 23:44 Thomas Deutschmann
2017-09-26 22:37 Manuel Rüger
2017-09-22 19:40 Sergei Trofimovich
2017-09-09 18:45 Sergei Trofimovich
2017-09-09 10:27 Markus Meier
2017-09-04 7:30 Tobias Klausmann
2017-09-01 22:36 Sergei Trofimovich
2017-09-01 2:22 Tim Harder
2017-03-15 6:02 Mike Frysinger
2017-03-15 5:42 Mike Frysinger
2016-05-20 15:45 Mike Frysinger
2016-05-20 15:41 Mike Frysinger
2016-05-15 20:40 Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1644152325.a69cd51a1b046bf146aafc1c667638f40289db94.bkohler@gentoo \
--to=bkohler@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox