diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-libs/libkudzu/libkudzu-1.2.57.1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-libs/libkudzu/libkudzu-1.2.57.1.ebuild')
-rw-r--r-- | sys-libs/libkudzu/libkudzu-1.2.57.1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sys-libs/libkudzu/libkudzu-1.2.57.1.ebuild b/sys-libs/libkudzu/libkudzu-1.2.57.1.ebuild new file mode 100644 index 000000000000..c7b44d76b7b2 --- /dev/null +++ b/sys-libs/libkudzu/libkudzu-1.2.57.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils linux-info flag-o-matic toolchain-funcs + +DESCRIPTION="Red Hat Hardware detection tools" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="mirror://gentoo/kudzu-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 -mips ppc ppc64 sparc x86" +IUSE="zlib" + +DEPEND=" + dev-libs/popt + >=sys-apps/pciutils-2.2.4[zlib?] + zlib? ( sys-libs/zlib ) +" +RDEPEND=" + ${DEPEND} + sys-apps/hwdata-gentoo + !sys-apps/kudzu +" + +S=${WORKDIR}/kudzu-${PV} + +src_prepare() { + epatch \ + "${FILESDIR}"/kudzu-${PV}-sbusfix.patch \ + "${FILESDIR}"/kudzu-${PV}-sparc-keyboard.patch +} + +src_configure() { + if use zlib; then + sed -i -e 's| -lpci| -lz -lpci|g' Makefile || die + fi + # Fix the modules directory to match Gentoo layout. + sed -i -e 's|/etc/modutils/kudzu|/etc/modules.d/kudzu|g' *.* || die + + tc-export CC +} + +src_compile() { + emake \ + $( usex ppc ARCH='ppc' ARCH=$(tc-arch-kernel) ) \ + AR=$(tc-getAR) \ + RANLIB=$(tc-getRANLIB) \ + RPM_OPT_FLAGS="${CFLAGS}" \ + libkudzu.a libkudzu_loader.a +} + +src_install() { + insinto /usr/include/kudzu + doins *.h + + dolib.a libkudzu.a libkudzu_loader.a + + keepdir /etc/sysconfig +} |