Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/pciutils/
Date: Sun, 31 May 2020 09:13:47
Message-Id: 1590916418.9f2fe573ddf5716398bdf7c8580fed91ca3eced1.polynomial-c@gentoo
1 commit: 9f2fe573ddf5716398bdf7c8580fed91ca3eced1
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 31 09:12:12 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun May 31 09:13:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f2fe573
7
8 sys-apps/pciutils: Bump to version 3.7.0
9
10 Package-Manager: Portage-2.3.100, Repoman-2.3.22
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-apps/pciutils/Manifest | 1 +
14 sys-apps/pciutils/pciutils-3.7.0.ebuild | 120 ++++++++++++++++++++++++++++++++
15 2 files changed, 121 insertions(+)
16
17 diff --git a/sys-apps/pciutils/Manifest b/sys-apps/pciutils/Manifest
18 index 4581fff818e..1df127df67d 100644
19 --- a/sys-apps/pciutils/Manifest
20 +++ b/sys-apps/pciutils/Manifest
21 @@ -2,3 +2,4 @@ DIST pciutils-3.5.6.tar.gz 442190 BLAKE2B 9f1237828436f0566caa13e49a154b40fcc41d
22 DIST pciutils-3.6.2.tar.gz 473699 BLAKE2B ae7563f2d17334f54e6b055d135138e21d105fa5f5b71061a6de638ecf26c35d9de79cb67a691f936f42fcedb9a1f300e046dd892429195a9f54f9536e313110 SHA512 ab2bab26dd11f941286593135b751b811fa6199d4b5fb8a18e74f72709ea598ab0c0efa31ad6ca70949966dcf80cdfb16d53e5d339b773c69e0a12f132bb8577
23 DIST pciutils-3.6.3.tar.gz 495316 BLAKE2B 01dab2337dcde5dc436df6892ce7c54c9c875b7c619c8f8675027e82e1073ab9b4c603f61f9b03c27af90fecb60fd35199fdf0b62dc90b5d2d387bfde00408b3 SHA512 deaf265bae9149289c860eb47cf6b85ff300744a1e79bcd232819f56e6dcdddcda4e7d3639869c228a492237985298866eb2633938b00d880545594e3c02df05
24 DIST pciutils-3.6.4.tar.gz 497675 BLAKE2B 45bbfafbf9ad6aea09fd17fe235bbb11bfe00fff2f31f1223d739eacf3db1a66ba0cd05f0df29349b01cc0a4fc598aeafb6fcf276e2edf2d557b9c21f25a0382 SHA512 001b2f722ee9f5fd57307aa4e8894c97ed3eee42f8b17caba2f29b191ab2fe98dcbfb76438f97dcaa343ea90011f6f6277ab367f361bc45e20d7ed848b439f86
25 +DIST pciutils-3.7.0.tar.gz 516418 BLAKE2B fca6720cff73ec20559c666c76fdcd3b59cdf0e33e2c3894a82590d77c5d51cf22e667fe65d9f66a248a624c2b9c868f6e9b69f45f4b6d704b637afe55041e6a SHA512 8a8fb9dc44a8dd31f80e45a48f6693452c11d343b9dfed87dd5cea6846f38d001f294e4010cd7c0545e238fde45b0e9a8e88c67a43d80676a585336e3665a631
26
27 diff --git a/sys-apps/pciutils/pciutils-3.7.0.ebuild b/sys-apps/pciutils/pciutils-3.7.0.ebuild
28 new file mode 100644
29 index 00000000000..cc2e5824111
30 --- /dev/null
31 +++ b/sys-apps/pciutils/pciutils-3.7.0.ebuild
32 @@ -0,0 +1,120 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit multilib toolchain-funcs multilib-minimal flag-o-matic
39 +
40 +DESCRIPTION="Various utilities dealing with the PCI bus"
41 +HOMEPAGE="https://mj.ucw.cz/sw/pciutils/ https://git.kernel.org/?p=utils/pciutils/pciutils.git"
42 +SRC_URI="https://mj.ucw.cz/download/linux/pci/${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="dns +kmod static-libs +udev zlib"
48 +
49 +# Have the sub-libs in RDEPEND with [static-libs] since, logically,
50 +# our libpci.a depends on libz.a/etc... at runtime.
51 +LIB_DEPEND="
52 + zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+),${MULTILIB_USEDEP}] )
53 + udev? ( >=virtual/libudev-208[static-libs(-),${MULTILIB_USEDEP}] )
54 +"
55 +DEPEND="
56 + kmod? ( sys-apps/kmod )
57 + static-libs? ( ${LIB_DEPEND} )
58 + !static-libs? ( ${LIB_DEPEND//static-libs([+-]),} )
59 +"
60 +RDEPEND="
61 + ${DEPEND}
62 + sys-apps/hwids
63 +"
64 +DEPEND="
65 + ${DEPEND}
66 + kmod? ( virtual/pkgconfig )
67 +"
68 +
69 +PATCHES=(
70 + "${FILESDIR}"/${PN}-3.1.9-static-pc.patch
71 +)
72 +
73 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pci/config.h )
74 +
75 +switch_config() {
76 + [[ $# -ne 2 ]] && return 1
77 + local opt=$1 val=$2
78 +
79 + sed "s@^\(${opt}=\).*\$@\1${val}@" -i Makefile || die
80 + return 0
81 +}
82 +
83 +src_prepare() {
84 + default
85 +
86 + if use static-libs ; then
87 + cp -pPR "${S}" "${S}.static" || die
88 + mv "${S}.static" "${S}/static" || die
89 + fi
90 +
91 + multilib_copy_sources
92 +}
93 +
94 +multilib_src_configure() {
95 + append-lfs-flags #471102
96 +}
97 +
98 +pemake() {
99 + emake \
100 + HOST="${CHOST}" \
101 + CROSS_COMPILE="${CHOST}-" \
102 + CC="$(tc-getCC)" \
103 + AR="$(tc-getAR)" \
104 + PKG_CONFIG="$(tc-getPKG_CONFIG)" \
105 + RANLIB="$(tc-getRANLIB)" \
106 + DNS=$(usex dns) \
107 + IDSDIR='$(SHAREDIR)/misc' \
108 + MANDIR='$(SHAREDIR)/man' \
109 + PREFIX="${EPREFIX}/usr" \
110 + SHARED="yes" \
111 + STRIP="" \
112 + ZLIB=$(usex zlib) \
113 + PCI_COMPRESSED_IDS=0 \
114 + PCI_IDS=pci.ids \
115 + LIBDIR="\${PREFIX}/$(get_libdir)" \
116 + LIBKMOD=$(multilib_native_usex kmod) \
117 + HWDB=$(usex udev) \
118 + "$@"
119 +}
120 +
121 +multilib_src_compile() {
122 + pemake OPT="${CFLAGS}" all
123 + if use static-libs ; then
124 + pemake \
125 + -C "${BUILD_DIR}/static" \
126 + OPT="${CFLAGS}" \
127 + SHARED="no" \
128 + lib/libpci.a
129 + fi
130 +}
131 +
132 +multilib_src_install() {
133 + pemake DESTDIR="${D}" install install-lib
134 + use static-libs && dolib.a "${BUILD_DIR}/static/lib/libpci.a"
135 +}
136 +
137 +multilib_src_install_all() {
138 + dodoc ChangeLog README TODO
139 +
140 + rm "${ED}"/usr/sbin/update-pciids "${ED}"/usr/share/misc/pci.ids \
141 + "${ED}"/usr/share/man/man8/update-pciids.8*
142 +
143 + newinitd "${FILESDIR}"/init.d-pciparm pciparm
144 + newconfd "${FILESDIR}"/conf.d-pciparm pciparm
145 +}
146 +
147 +pkg_postinst() {
148 + if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 3.2.0 ; then
149 + elog "The 'network-cron' USE flag is gone; if you want a more up-to-date"
150 + elog "pci.ids file, you should use sys-apps/hwids-99999999 (live ebuild)."
151 + fi
152 +}