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: Mon, 04 Jan 2016 09:22:52
Message-Id: 1451899316.9a715ee3b0eaeddab23f6f0cbb0fb2c888327c79.polynomial-c@gentoo
1 commit: 9a715ee3b0eaeddab23f6f0cbb0fb2c888327c79
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 4 09:21:56 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 4 09:21:56 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a715ee3
7
8 sys-apps/pciutils: Bump to version 3.4.1
9
10 Package-Manager: portage-2.2.26
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-apps/pciutils/Manifest | 1 +
14 sys-apps/pciutils/pciutils-3.4.1.ebuild | 108 ++++++++++++++++++++++++++++++++
15 2 files changed, 109 insertions(+)
16
17 diff --git a/sys-apps/pciutils/Manifest b/sys-apps/pciutils/Manifest
18 index efd37a5..41845c8 100644
19 --- a/sys-apps/pciutils/Manifest
20 +++ b/sys-apps/pciutils/Manifest
21 @@ -1,3 +1,4 @@
22 DIST pciutils-3.2.0.tar.gz 357003 SHA256 84e705bff712b128a942117565a3506bd4b8bf841d397c1962c6255169762f71 SHA512 ce619bca35c529f947b883858164584db9fd16be05b44bd20d7f30b73246076b8c80a9e0ff3f7b2c27366a08043488ccfee98dd3cb43e3c5ee8962efaa056fd1 WHIRLPOOL fda9efb423ba444b460986b82b89feb3e5940d63774377eab4dce6ed1a1c690824192ca25d04a4f34960412ddedbdb9c874dace2256ccd1dede61ee99618b418
23 DIST pciutils-3.3.1.tar.gz 393912 SHA256 02beeb14503707c5a3293fe084c18e12e6937c0d4dd1e29e6bcb6b12f124df46 SHA512 4f8b0e62cfd0ffad1674be13c95f5581bc0037ed9843f9866b13eea6fa2703bb39bb878e96df805972f4e9bac36fc67a0a313c463f0764218211f1276cef36b2 WHIRLPOOL 315f1f4f5b98e6e90e3a6af9a8a03acf9732eb5b6de02ced53b32bdaca67360153ee4db1551729e3534d25c81ce2308d89c0715e0554552d029cbb3f18786ff6
24 DIST pciutils-3.4.0.tar.gz 398285 SHA256 ba6244652723e137001e69d6081497d462cbff6ba0acec38cc81c20ea1ac0d7e SHA512 a27b2209bd88eedf9f6be4abaad86c8219859dff15029f1a2eec5513b9a61279eba831b7ffc89b49fb45ad8d2be8c4ababc5ee9b219e1575c2b430a0f1c93877 WHIRLPOOL b68d23e987ea988686882a392160149574de467d2073343f169a07c75ca55b2811b747b988bbd0c5693cc45210c7c6f0e3349dfef7cb37f1f205c8b65cee4827
25 +DIST pciutils-3.4.1.tar.gz 404166 SHA256 0196624282c33a9bcd4bd097d4100271c82af47797ecd7488ef2711fa5f043b2 SHA512 1394647d5e9d324d68bd8bdf4709a438ae06e6a83ded40b9e0026968c032f214073bc764fbf59e15da90b2e424d90dc430db5810d7ff5fbeab0f3e5c6250ee49 WHIRLPOOL 4391c84695dc1f0844129ff5d6056ac1332d855824e1b96ec105073b97d453db21e82d2a071f1bf7d977e26cf51421183b5a37d5a962bccbed9c2667c813cc4c
26
27 diff --git a/sys-apps/pciutils/pciutils-3.4.1.ebuild b/sys-apps/pciutils/pciutils-3.4.1.ebuild
28 new file mode 100644
29 index 0000000..1b40596
30 --- /dev/null
31 +++ b/sys-apps/pciutils/pciutils-3.4.1.ebuild
32 @@ -0,0 +1,108 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI="5"
38 +
39 +inherit eutils multilib toolchain-funcs multilib-minimal
40 +
41 +DESCRIPTION="Various utilities dealing with the PCI bus"
42 +HOMEPAGE="http://mj.ucw.cz/sw/pciutils/ https://git.kernel.org/?p=utils/pciutils/pciutils.git"
43 +SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${P}.tar.gz"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux"
48 +IUSE="dns +kmod static-libs +udev zlib"
49 +
50 +# Have the sub-libs in RDEPEND with [static-libs] since, logically,
51 +# our libssl.a depends on libz.a/etc... at runtime.
52 +LIB_DEPEND="zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+),${MULTILIB_USEDEP}] )"
53 +DEPEND="kmod? ( sys-apps/kmod )
54 + static-libs? ( ${LIB_DEPEND} )
55 + !static-libs? ( ${LIB_DEPEND//static-libs(+),} )
56 + udev? ( >=virtual/libudev-208[${MULTILIB_USEDEP}] )"
57 +RDEPEND="${DEPEND}
58 + sys-apps/hwids
59 + abi_x86_32? (
60 + !<=app-emulation/emul-linux-x86-baselibs-20140508-r14
61 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
62 + )"
63 +DEPEND="${DEPEND}
64 + kmod? ( virtual/pkgconfig )"
65 +
66 +MULTILIB_WRAPPED_HEADERS=( /usr/include/pci/config.h )
67 +
68 +switch_config() {
69 + [[ $# -ne 2 ]] && return 1
70 + local opt=$1 val=$2
71 +
72 + sed "s@^\(${opt}=\).*\$@\1${val}@" -i Makefile || die
73 + return 0
74 +}
75 +
76 +src_prepare() {
77 + epatch "${FILESDIR}"/${PN}-3.1.9-static-pc.patch
78 +
79 + if use static-libs ; then
80 + cp -pPR "${S}" "${S}.static" || die
81 + mv "${S}.static" "${S}/static" || die
82 + fi
83 +
84 + multilib_copy_sources
85 +}
86 +
87 +pemake() {
88 + emake \
89 + HOST="${CHOST}" \
90 + CROSS_COMPILE="${CHOST}-" \
91 + CC="$(tc-getCC)" \
92 + AR="$(tc-getAR)" \
93 + RANLIB="$(tc-getRANLIB)" \
94 + DNS=$(usex dns) \
95 + IDSDIR='$(SHAREDIR)/misc' \
96 + MANDIR='$(SHAREDIR)/man' \
97 + PREFIX="${EPREFIX}/usr" \
98 + SHARED="yes" \
99 + STRIP="" \
100 + ZLIB=$(usex zlib) \
101 + PCI_COMPRESSED_IDS=0 \
102 + PCI_IDS=pci.ids \
103 + LIBDIR="\${PREFIX}/$(get_libdir)" \
104 + LIBKMOD=$(multilib_native_usex kmod) \
105 + HWDB=$(usex udev) \
106 + "$@"
107 +}
108 +
109 +multilib_src_compile() {
110 + pemake OPT="${CFLAGS}" all
111 + if use static-libs ; then
112 + pemake \
113 + -C "${BUILD_DIR}/static" \
114 + OPT="${CFLAGS}" \
115 + SHARED="no" \
116 + lib/libpci.a
117 + fi
118 +}
119 +
120 +multilib_src_install() {
121 + pemake DESTDIR="${D}" install install-lib
122 + use static-libs && dolib.a "${BUILD_DIR}/static/lib/libpci.a"
123 +}
124 +
125 +multilib_src_install_all() {
126 + dodoc ChangeLog README TODO
127 +
128 + rm "${ED}"/usr/sbin/update-pciids "${ED}"/usr/share/misc/pci.ids \
129 + "${ED}"/usr/share/man/man8/update-pciids.8*
130 +
131 + newinitd "${FILESDIR}"/init.d-pciparm pciparm
132 + newconfd "${FILESDIR}"/conf.d-pciparm pciparm
133 +}
134 +
135 +pkg_postinst() {
136 + if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.2.0 ]]; then
137 + elog "The 'network-cron' USE flag is gone; if you want a more up-to-date"
138 + elog "pci.ids file, you should use sys-apps/hwids-99999999 (live ebuild)."
139 + fi
140 +}