Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/pciutils: pciutils-3.3.0-r1.ebuild ChangeLog pciutils-3.3.0.ebuild
Date: Mon, 29 Dec 2014 08:25:56
Message-Id: 20141229082552.F1014E68B@oystercatcher.gentoo.org
1 polynomial-c 14/12/29 08:25:52
2
3 Modified: ChangeLog
4 Added: pciutils-3.3.0-r1.ebuild
5 Removed: pciutils-3.3.0.ebuild
6 Log:
7 Added dependency on libudev (bug #533728)
8
9 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
10
11 Revision Changes Path
12 1.234 sys-apps/pciutils/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pciutils/ChangeLog?rev=1.234&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pciutils/ChangeLog?rev=1.234&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pciutils/ChangeLog?r1=1.233&r2=1.234
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-apps/pciutils/ChangeLog,v
21 retrieving revision 1.233
22 retrieving revision 1.234
23 diff -u -r1.233 -r1.234
24 --- ChangeLog 4 Dec 2014 04:09:30 -0000 1.233
25 +++ ChangeLog 29 Dec 2014 08:25:52 -0000 1.234
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-apps/pciutils
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/ChangeLog,v 1.233 2014/12/04 04:09:30 radhermit Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/ChangeLog,v 1.234 2014/12/29 08:25:52 polynomial-c Exp $
31 +
32 +*pciutils-3.3.0-r1 (29 Dec 2014)
33 +
34 + 29 Dec 2014; Lars Wendler <polynomial-c@g.o> -pciutils-3.3.0.ebuild,
35 + +pciutils-3.3.0-r1.ebuild:
36 + Added dependency on libudev (bug #533728).
37
38 *pciutils-3.3.0 (04 Dec 2014)
39
40
41
42
43 1.1 sys-apps/pciutils/pciutils-3.3.0-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pciutils/pciutils-3.3.0-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/pciutils/pciutils-3.3.0-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pciutils-3.3.0-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/pciutils-3.3.0-r1.ebuild,v 1.1 2014/12/29 08:25:52 polynomial-c Exp $
53
54 EAPI="5"
55
56 inherit eutils multilib toolchain-funcs
57
58 DESCRIPTION="Various utilities dealing with the PCI bus"
59 HOMEPAGE="http://mj.ucw.cz/sw/pciutils/ http://git.kernel.org/?p=utils/pciutils/pciutils.git"
60 SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 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"
65 IUSE="dns +kmod static-libs +udev zlib"
66
67 # Have the sub-libs in RDEPEND with [static-libs] since, logically,
68 # our libssl.a depends on libz.a/etc... at runtime.
69 LIB_DEPEND="zlib? ( sys-libs/zlib[static-libs(+)] )"
70 DEPEND="kmod? ( sys-apps/kmod )
71 static-libs? ( ${LIB_DEPEND} )
72 !static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )
73 udev? ( virtual/libudev )"
74 RDEPEND="${DEPEND}
75 sys-apps/hwids"
76 DEPEND="${DEPEND}
77 kmod? ( virtual/pkgconfig )"
78
79 switch_config() {
80 [[ $# -ne 2 ]] && return 1
81 local opt=$1 val=$2
82
83 sed "s@^\(${opt}=\).*\$@\1${val}@" -i Makefile || die
84 return 0
85 }
86
87 src_prepare() {
88 epatch "${FILESDIR}"/${PN}-3.1.9-static-pc.patch
89
90 if use static-libs ; then
91 cp -pPR "${S}" "${S}.static" || die
92 fi
93 }
94
95 pemake() {
96 emake \
97 HOST="${CHOST}" \
98 CROSS_COMPILE="${CHOST}-" \
99 CC="$(tc-getCC)" \
100 DNS=$(usex dns) \
101 IDSDIR='$(SHAREDIR)/misc' \
102 MANDIR='$(SHAREDIR)/man' \
103 PREFIX="${EPREFIX}/usr" \
104 SHARED="yes" \
105 STRIP="" \
106 ZLIB=$(usex zlib) \
107 PCI_COMPRESSED_IDS=0 \
108 PCI_IDS=pci.ids \
109 LIBDIR="\${PREFIX}/$(get_libdir)" \
110 LIBKMOD=$(usex kmod) \
111 HWDB=$(usex udev) \
112 "$@"
113 }
114
115 src_compile() {
116 pemake OPT="${CFLAGS}" all
117 if use static-libs ; then
118 pemake \
119 -C "${S}.static" \
120 OPT="${CFLAGS}" \
121 SHARED="no" \
122 lib/libpci.a
123 fi
124 }
125
126 src_install() {
127 pemake DESTDIR="${D}" install install-lib
128 use static-libs && dolib.a "${S}.static/lib/libpci.a"
129 dodoc ChangeLog README TODO
130
131 rm "${ED}"/usr/sbin/update-pciids "${ED}"/usr/share/misc/pci.ids \
132 "${ED}"/usr/share/man/man8/update-pciids.8*
133
134 newinitd "${FILESDIR}"/init.d-pciparm pciparm
135 newconfd "${FILESDIR}"/conf.d-pciparm pciparm
136 }
137
138 pkg_postinst() {
139 if [[ ${REPLACING_VERSIONS} ]] && [[ ${REPLACING_VERSIONS} < 3.2.0 ]]; then
140 elog "The 'network-cron' USE flag is gone; if you want a more up-to-date"
141 elog "pci.ids file, you should use sys-apps/hwids-99999999 (live ebuild)."
142 fi
143 }