Gentoo Archives: gentoo-commits

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