From 5c21b58c91ee3aaa4aee51d2bf78b4f4228ad83c Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Wed, 26 Sep 2012 10:41:26 +0000 Subject: old (Portage version: 2.2.0_alpha128/cvs/Linux x86_64) --- sys-apps/pciutils/ChangeLog | 9 ++- .../pciutils-2.2.7-update-pciids-both-forms.patch | 22 ------ .../files/pciutils-3.1.4-install-lib.patch | 40 ----------- sys-apps/pciutils/pciutils-3.1.4.ebuild | 69 ------------------ sys-apps/pciutils/pciutils-3.1.7-r1.ebuild | 76 -------------------- sys-apps/pciutils/pciutils-3.1.7.ebuild | 70 ------------------ sys-apps/pciutils/pciutils-3.1.8.ebuild | 75 -------------------- sys-apps/pciutils/pciutils-3.1.9-r2.ebuild | 82 ---------------------- sys-apps/pciutils/pciutils-3.1.9.ebuild | 73 ------------------- 9 files changed, 8 insertions(+), 508 deletions(-) delete mode 100644 sys-apps/pciutils/files/pciutils-2.2.7-update-pciids-both-forms.patch delete mode 100644 sys-apps/pciutils/files/pciutils-3.1.4-install-lib.patch delete mode 100644 sys-apps/pciutils/pciutils-3.1.4.ebuild delete mode 100644 sys-apps/pciutils/pciutils-3.1.7-r1.ebuild delete mode 100644 sys-apps/pciutils/pciutils-3.1.7.ebuild delete mode 100644 sys-apps/pciutils/pciutils-3.1.8.ebuild delete mode 100644 sys-apps/pciutils/pciutils-3.1.9-r2.ebuild delete mode 100644 sys-apps/pciutils/pciutils-3.1.9.ebuild (limited to 'sys-apps/pciutils') diff --git a/sys-apps/pciutils/ChangeLog b/sys-apps/pciutils/ChangeLog index 6c7834248980..4478fca0fe8c 100644 --- a/sys-apps/pciutils/ChangeLog +++ b/sys-apps/pciutils/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-apps/pciutils # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/ChangeLog,v 1.207 2012/09/26 10:38:02 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/ChangeLog,v 1.208 2012/09/26 10:41:25 ssuominen Exp $ + + 26 Sep 2012; Samuli Suominen + -files/pciutils-2.2.7-update-pciids-both-forms.patch, -pciutils-3.1.4.ebuild, + -files/pciutils-3.1.4-install-lib.patch, -pciutils-3.1.7.ebuild, + -pciutils-3.1.7-r1.ebuild, -pciutils-3.1.8.ebuild, -pciutils-3.1.9.ebuild, + -pciutils-3.1.9-r2.ebuild: + old 26 Sep 2012; Samuli Suominen pciutils-3.1.10.ebuild: amd64/ppc/ppc64/x86 stable wrt #436186 diff --git a/sys-apps/pciutils/files/pciutils-2.2.7-update-pciids-both-forms.patch b/sys-apps/pciutils/files/pciutils-2.2.7-update-pciids-both-forms.patch deleted file mode 100644 index 855026be4cd9..000000000000 --- a/sys-apps/pciutils/files/pciutils-2.2.7-update-pciids-both-forms.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- pciutils-2.2.7/update-pciids.sh -+++ pciutils-2.2.7/update-pciids.sh -@@ -72,4 +72,19 @@ - rm -f ${DEST%.gz} ${DEST%.gz}.old - fi - -+# if the gzip version exists, but we are not using compressed mode, -+# erase the gzip version, as it is old and crufty -+if [ -z "$PCI_COMPRESSED_IDS" ] && [ -f $DEST.gz ]; then -+ rm -f ${DEST}.gz -+fi -+ -+# Lastly, because HAL still reads the plaintext version only and -+# has not yet migrated to using a library we leave the plaintext -+# version in addition to the gzip version. -+# They need to migrate because the pci.ids format will be changing. -+if [ ${DEST%.gz} != ${DEST} ] ; then -+ gzip -d <${DEST} >${DEST%.gz} -+fi -+chmod a+r ${DEST} ${DEST%.gz} -+ - ${quiet} || echo "Done." diff --git a/sys-apps/pciutils/files/pciutils-3.1.4-install-lib.patch b/sys-apps/pciutils/files/pciutils-3.1.4-install-lib.patch deleted file mode 100644 index 3358b01b855b..000000000000 --- a/sys-apps/pciutils/files/pciutils-3.1.4-install-lib.patch +++ /dev/null @@ -1,40 +0,0 @@ -don't have the install and install-lib targets install the same files -otherwise we can hit parallel install failures - -http://bugs.gentoo.org/273489 - -patch by Kevin Pyle - ---- Makefile -+++ Makefile -@@ -90,7 +90,11 @@ - - distclean: clean - --install: all -+install-pcilib: lib/$(PCILIB) -+ $(DIRINSTALL) -m 755 $(DESTDIR)$(LIBDIR) -+ $(INSTALL) -c -m 644 lib/$(PCILIB) $(DESTDIR)$(LIBDIR) -+ -+install: all install-pcilib - # -c is ignored on Linux, but required on FreeBSD - $(DIRINSTALL) -m 755 $(DESTDIR)$(SBINDIR) $(DESTDIR)$(IDSDIR) $(DESTDIR)$(MANDIR)/man8 $(DESTDIR)$(MANDIR)/man7 - $(INSTALL) -c -m 755 $(STRIP) lspci setpci $(DESTDIR)$(SBINDIR) -@@ -99,15 +103,12 @@ - $(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(DESTDIR)$(MANDIR)/man8 - $(INSTALL) -c -m 644 pcilib.7 $(DESTDIR)$(MANDIR)/man7 - ifeq ($(SHARED),yes) -- $(DIRINSTALL) -m 755 $(DESTDIR)$(LIBDIR) -- $(INSTALL) -c -m 644 lib/$(PCILIB) $(DESTDIR)$(LIBDIR) - ln -sf $(PCILIB) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so$(ABI_VERSION) - endif - --install-lib: $(PCIINC_INS) lib/$(PCILIB) lib/$(PCILIBPC) -- $(DIRINSTALL) -m 755 $(DESTDIR)$(INCDIR)/pci $(DESTDIR)$(LIBDIR) $(DESTDIR)$(PKGCFDIR) -+install-lib: $(PCIINC_INS) lib/$(PCILIBPC) install-pcilib -+ $(DIRINSTALL) -m 755 $(DESTDIR)$(INCDIR)/pci $(DESTDIR)$(PKGCFDIR) - $(INSTALL) -c -m 644 $(PCIINC_INS) $(DESTDIR)$(INCDIR)/pci -- $(INSTALL) -c -m 644 lib/$(PCILIB) $(DESTDIR)$(LIBDIR) - $(INSTALL) -c -m 644 lib/$(PCILIBPC) $(DESTDIR)$(PKGCFDIR) - ifeq ($(SHARED),yes) - ln -sf $(LIBNAME).so$(ABI_VERSION) $(DESTDIR)$(LIBDIR)/$(LIBNAME).so diff --git a/sys-apps/pciutils/pciutils-3.1.4.ebuild b/sys-apps/pciutils/pciutils-3.1.4.ebuild deleted file mode 100644 index 6d829f3cdc03..000000000000 --- a/sys-apps/pciutils/pciutils-3.1.4.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/pciutils-3.1.4.ebuild,v 1.13 2012/05/24 00:02:37 ssuominen Exp $ - -inherit eutils multilib toolchain-funcs - -DESCRIPTION="Various utilities dealing with the PCI bus" -HOMEPAGE="http://mj.ucw.cz/sw/pciutils/ http://git.kernel.org/?p=utils/pciutils/pciutils.git" -SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" -IUSE="network-cron zlib" - -DEPEND="zlib? ( sys-libs/zlib )" - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-install-lib.patch #273489 - epatch "${FILESDIR}"/${PN}-2.2.7-update-pciids-both-forms.patch - sed -i -e "/^LIBDIR=/s:/lib:/$(get_libdir):" Makefile -} - -uyesno() { use $1 && echo yes || echo no ; } -pemake() { - emake \ - HOST="${CHOST}" \ - CROSS_COMPILE="${CHOST}-" \ - CC="$(tc-getCC)" \ - DNS="yes" \ - IDSDIR="/usr/share/misc" \ - MANDIR="/usr/share/man" \ - PREFIX="/usr" \ - SHARED="yes" \ - STRIP="" \ - ZLIB=$(uyesno zlib) \ - "$@" -} - -src_compile() { - pemake OPT="${CFLAGS}" all || die -} - -src_install() { - pemake DESTDIR="${D}" install install-lib || die - dodoc ChangeLog README TODO - - if use network-cron ; then - exeinto /etc/cron.monthly - newexe "${FILESDIR}"/pciutils.cron update-pciids \ - || die "Failed to install update cronjob" - fi - - # Install both forms until HAL has migrated - if use zlib ; then - local sharedir="${D}/usr/share/misc" - elog "Providing a backwards compatibility non-compressed pci.ids" - gzip -d <"${sharedir}"/pci.ids.gz >"${sharedir}"/pci.ids - fi - - newinitd "${FILESDIR}"/init.d-pciparm pciparm - newconfd "${FILESDIR}"/conf.d-pciparm pciparm -} - -pkg_postinst() { - elog "The 'pcimodules' program has been replaced by 'lspci -k'" -} diff --git a/sys-apps/pciutils/pciutils-3.1.7-r1.ebuild b/sys-apps/pciutils/pciutils-3.1.7-r1.ebuild deleted file mode 100644 index 7ece6d3a4a1b..000000000000 --- a/sys-apps/pciutils/pciutils-3.1.7-r1.ebuild +++ /dev/null @@ -1,76 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/pciutils-3.1.7-r1.ebuild,v 1.2 2012/05/24 00:02:37 ssuominen Exp $ - -EAPI="2" - -inherit eutils multilib toolchain-funcs - -DESCRIPTION="Various utilities dealing with the PCI bus" -HOMEPAGE="http://mj.ucw.cz/sw/pciutils/ http://git.kernel.org/?p=utils/pciutils/pciutils.git" -SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="network-cron static-libs zlib" - -DEPEND="zlib? ( sys-libs/zlib )" -RDEPEND="${DEPEND} - !sys-apps/hal" - -src_prepare() { - epatch "${FILESDIR}"/${P}-install-lib.patch #273489 - epatch "${FILESDIR}"/${P}-fbsd.patch #262321 - - if use static-libs ; then - cp -pPR "${S}" "${S}.static" || die - fi -} - -uyesno() { use $1 && echo yes || echo no ; } -pemake() { - emake \ - HOST="${CHOST}" \ - CROSS_COMPILE="${CHOST}-" \ - CC="$(tc-getCC)" \ - DNS="yes" \ - IDSDIR="/usr/share/misc" \ - MANDIR="/usr/share/man" \ - PREFIX="/usr" \ - SHARED="yes" \ - STRIP="" \ - ZLIB=$(uyesno zlib) \ - LIBDIR="\${PREFIX}/$(get_libdir)" \ - "$@" || die -} - -src_compile() { - pemake OPT="${CFLAGS}" all - if use static-libs ; then - pemake \ - -C "${S}.static" \ - OPT="${CFLAGS}" \ - SHARED="no" \ - lib/libpci.a - fi -} - -src_install() { - pemake DESTDIR="${D}" install install-lib || die - use static-libs && { dolib.a "${S}.static/lib/libpci.a" || die ; } - dodoc ChangeLog README TODO - - if use network-cron ; then - exeinto /etc/cron.monthly - newexe "${FILESDIR}"/pciutils.cron update-pciids \ - || die "Failed to install update cronjob" - fi - - newinitd "${FILESDIR}"/init.d-pciparm pciparm - newconfd "${FILESDIR}"/conf.d-pciparm pciparm -} - -pkg_postinst() { - elog "The 'pcimodules' program has been replaced by 'lspci -k'" -} diff --git a/sys-apps/pciutils/pciutils-3.1.7.ebuild b/sys-apps/pciutils/pciutils-3.1.7.ebuild deleted file mode 100644 index 3a16e62136cc..000000000000 --- a/sys-apps/pciutils/pciutils-3.1.7.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/pciutils-3.1.7.ebuild,v 1.9 2012/05/24 00:02:37 ssuominen Exp $ - -EAPI="2" - -inherit eutils multilib toolchain-funcs - -DESCRIPTION="Various utilities dealing with the PCI bus" -HOMEPAGE="http://mj.ucw.cz/sw/pciutils/ http://git.kernel.org/?p=utils/pciutils/pciutils.git" -SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" -IUSE="network-cron zlib" - -DEPEND="zlib? ( sys-libs/zlib )" - -src_prepare() { - epatch "${FILESDIR}"/${P}-install-lib.patch #273489 - epatch "${FILESDIR}"/${P}-fbsd.patch #262321 - epatch "${FILESDIR}"/${PN}-2.2.7-update-pciids-both-forms.patch -} - -uyesno() { use $1 && echo yes || echo no ; } -pemake() { - emake \ - HOST="${CHOST}" \ - CROSS_COMPILE="${CHOST}-" \ - CC="$(tc-getCC)" \ - DNS="yes" \ - IDSDIR="/usr/share/misc" \ - MANDIR="/usr/share/man" \ - PREFIX="/usr" \ - SHARED="yes" \ - STRIP="" \ - ZLIB=$(uyesno zlib) \ - LIBDIR="\${PREFIX}/$(get_libdir)" \ - "$@" -} - -src_compile() { - pemake OPT="${CFLAGS}" all || die -} - -src_install() { - pemake DESTDIR="${D}" install install-lib || die - dodoc ChangeLog README TODO - - if use network-cron ; then - exeinto /etc/cron.monthly - newexe "${FILESDIR}"/pciutils.cron update-pciids \ - || die "Failed to install update cronjob" - fi - - # Install both forms until HAL has migrated - if use zlib ; then - local sharedir="${D}/usr/share/misc" - elog "Providing a backwards compatibility non-compressed pci.ids" - gzip -d <"${sharedir}"/pci.ids.gz >"${sharedir}"/pci.ids - fi - - newinitd "${FILESDIR}"/init.d-pciparm pciparm - newconfd "${FILESDIR}"/conf.d-pciparm pciparm -} - -pkg_postinst() { - elog "The 'pcimodules' program has been replaced by 'lspci -k'" -} diff --git a/sys-apps/pciutils/pciutils-3.1.8.ebuild b/sys-apps/pciutils/pciutils-3.1.8.ebuild deleted file mode 100644 index f41425afe1fc..000000000000 --- a/sys-apps/pciutils/pciutils-3.1.8.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/pciutils-3.1.8.ebuild,v 1.4 2012/05/24 00:02:37 ssuominen Exp $ - -EAPI="3" - -inherit eutils multilib toolchain-funcs - -DESCRIPTION="Various utilities dealing with the PCI bus" -HOMEPAGE="http://mj.ucw.cz/sw/pciutils/ http://git.kernel.org/?p=utils/pciutils/pciutils.git" -SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" -IUSE="network-cron static-libs zlib" - -DEPEND="zlib? ( sys-libs/zlib )" -RDEPEND="${DEPEND} - !sys-apps/hal" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-3.1.7-install-lib.patch #273489 - epatch "${FILESDIR}"/${PN}-3.1.7-fbsd.patch #262321 - - if use static-libs ; then - cp -pPR "${S}" "${S}.static" || die - fi -} - -pemake() { - emake \ - HOST="${CHOST}" \ - CROSS_COMPILE="${CHOST}-" \ - CC="$(tc-getCC)" \ - DNS="yes" \ - IDSDIR='$(SHAREDIR)/misc' \ - MANDIR='$(SHAREDIR)/man' \ - PREFIX="${EPREFIX}/usr" \ - SHARED="yes" \ - STRIP="" \ - ZLIB=$(usex zlib) \ - LIBDIR="\${PREFIX}/$(get_libdir)" \ - "$@" || die -} - -src_compile() { - pemake OPT="${CFLAGS}" all - if use static-libs ; then - pemake \ - -C "${S}.static" \ - OPT="${CFLAGS}" \ - SHARED="no" \ - lib/libpci.a - fi -} - -src_install() { - pemake DESTDIR="${D}" install install-lib || die - use static-libs && { dolib.a "${S}.static/lib/libpci.a" || die ; } - dodoc ChangeLog README TODO - - if use network-cron ; then - exeinto /etc/cron.monthly - newexe "${FILESDIR}"/pciutils.cron update-pciids \ - || die "Failed to install update cronjob" - fi - - newinitd "${FILESDIR}"/init.d-pciparm pciparm - newconfd "${FILESDIR}"/conf.d-pciparm pciparm -} - -pkg_postinst() { - elog "The 'pcimodules' program has been replaced by 'lspci -k'" -} diff --git a/sys-apps/pciutils/pciutils-3.1.9-r2.ebuild b/sys-apps/pciutils/pciutils-3.1.9-r2.ebuild deleted file mode 100644 index 92b82afd21eb..000000000000 --- a/sys-apps/pciutils/pciutils-3.1.9-r2.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/pciutils-3.1.9-r2.ebuild,v 1.12 2012/09/26 10:38:02 ssuominen Exp $ - -EAPI="4" - -inherit eutils multilib toolchain-funcs - -DESCRIPTION="Various utilities dealing with the PCI bus" -HOMEPAGE="http://mj.ucw.cz/sw/pciutils/ http://git.kernel.org/?p=utils/pciutils/pciutils.git" -SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" -IUSE="static-libs zlib" - -# Have the sub-libs in RDEPEND with [static-libs] since, logically, -# our libssl.a depends on libz.a/etc... at runtime. -LIB_DEPEND="zlib? ( sys-libs/zlib[static-libs(+)] )" -DEPEND="static-libs? ( ${LIB_DEPEND} ) - !static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )" -RDEPEND="${DEPEND} - sys-apps/hwids" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-3.1.7-install-lib.patch #273489 - epatch "${FILESDIR}"/${PN}-3.1.7-fbsd.patch #262321 - epatch "${FILESDIR}"/${PN}-3.1.9-static-pc.patch - - if use static-libs ; then - cp -pPR "${S}" "${S}.static" || die - fi -} - -pemake() { - emake \ - HOST="${CHOST}" \ - CROSS_COMPILE="${CHOST}-" \ - CC="$(tc-getCC)" \ - DNS="yes" \ - IDSDIR='$(SHAREDIR)/misc' \ - MANDIR='$(SHAREDIR)/man' \ - PREFIX="${EPREFIX}/usr" \ - SHARED="yes" \ - STRIP="" \ - ZLIB=$(usex zlib) \ - PCI_COMPRESSED_IDS=0 \ - PCI_IDS=pci.ids \ - LIBDIR="\${PREFIX}/$(get_libdir)" \ - "$@" -} - -src_compile() { - pemake OPT="${CFLAGS}" all - if use static-libs ; then - pemake \ - -C "${S}.static" \ - OPT="${CFLAGS}" \ - SHARED="no" \ - lib/libpci.a - fi -} - -src_install() { - pemake DESTDIR="${D}" install install-lib - use static-libs && dolib.a "${S}.static/lib/libpci.a" - dodoc ChangeLog README TODO - - rm "${ED}"/usr/bin/update-pciids "${ED}"/usr/share/misc/pci.ids \ - "${ED}"/usr/share/man/man8/update-pciids.8* - - newinitd "${FILESDIR}"/init.d-pciparm pciparm - newconfd "${FILESDIR}"/conf.d-pciparm pciparm -} - -pkg_postinst() { - elog "The 'pcimodules' program has been replaced by 'lspci -k'" - elog "" - elog "The 'network-cron' USE flag is gone; if you want a more up-to-date" - elog "pci.ids file, you should use sys-apps/hwids-99999999 (live ebuild)." -} diff --git a/sys-apps/pciutils/pciutils-3.1.9.ebuild b/sys-apps/pciutils/pciutils-3.1.9.ebuild deleted file mode 100644 index 555c7c5c11f9..000000000000 --- a/sys-apps/pciutils/pciutils-3.1.9.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pciutils/pciutils-3.1.9.ebuild,v 1.2 2012/05/24 00:02:37 ssuominen Exp $ - -EAPI="4" - -inherit eutils multilib toolchain-funcs - -DESCRIPTION="Various utilities dealing with the PCI bus" -HOMEPAGE="http://mj.ucw.cz/sw/pciutils/ http://git.kernel.org/?p=utils/pciutils/pciutils.git" -SRC_URI="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" -IUSE="network-cron static-libs zlib" - -DEPEND="zlib? ( sys-libs/zlib )" -RDEPEND="${DEPEND}" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-3.1.7-install-lib.patch #273489 - epatch "${FILESDIR}"/${PN}-3.1.7-fbsd.patch #262321 - - if use static-libs ; then - cp -pPR "${S}" "${S}.static" || die - fi -} - -pemake() { - emake \ - HOST="${CHOST}" \ - CROSS_COMPILE="${CHOST}-" \ - CC="$(tc-getCC)" \ - DNS="yes" \ - IDSDIR='$(SHAREDIR)/misc' \ - MANDIR='$(SHAREDIR)/man' \ - PREFIX="${EPREFIX}/usr" \ - SHARED="yes" \ - STRIP="" \ - ZLIB=$(usex zlib) \ - LIBDIR="\${PREFIX}/$(get_libdir)" \ - "$@" -} - -src_compile() { - pemake OPT="${CFLAGS}" all - if use static-libs ; then - pemake \ - -C "${S}.static" \ - OPT="${CFLAGS}" \ - SHARED="no" \ - lib/libpci.a - fi -} - -src_install() { - pemake DESTDIR="${D}" install install-lib - use static-libs && dolib.a "${S}.static/lib/libpci.a" - dodoc ChangeLog README TODO - - if use network-cron ; then - exeinto /etc/cron.monthly - newexe "${FILESDIR}"/pciutils.cron update-pciids - fi - - newinitd "${FILESDIR}"/init.d-pciparm pciparm - newconfd "${FILESDIR}"/conf.d-pciparm pciparm -} - -pkg_postinst() { - elog "The 'pcimodules' program has been replaced by 'lspci -k'" -} -- cgit v1.2.3-65-gdbad