summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDane Smith <smitdane@gmail.com>2010-08-15 00:16:59 -0400
committerDane Smith <smitdane@gmail.com>2010-08-15 00:16:59 -0400
commit42e29501abc931b8ea38d7744dae8b33955c7eaa (patch)
tree18901762ea959f4ae516bbe2ca35796aa9011254
parentAnother dep. issue (diff)
downloadsmithdanea-42e29501abc931b8ea38d7744dae8b33955c7eaa.tar.gz
smithdanea-42e29501abc931b8ea38d7744dae8b33955c7eaa.tar.bz2
smithdanea-42e29501abc931b8ea38d7744dae8b33955c7eaa.zip
New ebuild for kudzu
-rw-r--r--sys-apps/kudzu/ChangeLog12
-rw-r--r--sys-apps/kudzu/Manifest4
-rw-r--r--sys-apps/kudzu/kudzu-1.2.83.ebuild85
-rw-r--r--sys-apps/kudzu/metadata.xml9
4 files changed, 110 insertions, 0 deletions
diff --git a/sys-apps/kudzu/ChangeLog b/sys-apps/kudzu/ChangeLog
new file mode 100644
index 0000000..2fdffe5
--- /dev/null
+++ b/sys-apps/kudzu/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for sys-apps/kudzu
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*kudzu-1.2.83 (15 Aug 2010)
+
+ 15 Aug 2010; Dane Smith (c1pher) <smithdanea@gmail.com>
+ +kudzu-1.2.83.ebuild, +metadata.xml:
+ Updated kudzu ebuild. Should address LDFLAGS respect and jobserver respect
+ wrt
+ bug 332791
+
diff --git a/sys-apps/kudzu/Manifest b/sys-apps/kudzu/Manifest
new file mode 100644
index 0000000..8e31e22
--- /dev/null
+++ b/sys-apps/kudzu/Manifest
@@ -0,0 +1,4 @@
+DIST kudzu-1.2.83-3.src.rpm 228330 RMD160 17eeb1785d4304513df4b9201f8e3164c268f832 SHA1 b2e3f69fd057d3933cfb680befc0f2861d487971 SHA256 b0ba612546c75f2a7b0cc4694ce8102c07cc3857b0fc5aae93b8714ad8a7830a
+EBUILD kudzu-1.2.83.ebuild 1949 RMD160 366513b001613b3bc49920c1068d4188753129b9 SHA1 6beb7b0944fd6f9cf3699f7dc63ad0cdd5349f6d SHA256 86ff7301fbdca16a4ff09e897096ab1e49a09fdf8c9d07282ab88777b0d5108b
+MISC ChangeLog 338 RMD160 c6776623a337774c37801b5502722cab5fb1a76a SHA1 b067598637a21996392c3ae1a669ac2d241f4692 SHA256 d74ad9813a40ff6112b356fffbd05d9675239a7a5457ca8378d78d3b05629d3d
+MISC metadata.xml 290 RMD160 b9b86283c09349c8827faef7d3ef5f724a248e77 SHA1 ae1c8e62d75c94ff50b8a5391afb6008460963aa SHA256 380e26e9262298b9cb31e863a9ab641f6fbdc8c50bda2cf2e47fd399f9cb5e85
diff --git a/sys-apps/kudzu/kudzu-1.2.83.ebuild b/sys-apps/kudzu/kudzu-1.2.83.ebuild
new file mode 100644
index 0000000..103f99c
--- /dev/null
+++ b/sys-apps/kudzu/kudzu-1.2.83.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kudzu/kudzu-1.2.83.ebuild,v 1.7 2010/05/24 18:39:07 arfrever Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit eutils multilib python rpm toolchain-funcs
+
+# Revision of the RPM. Shouldn't affect us, as we're just grabbing the source
+# tarball out of it
+RPMREV="3"
+
+MY_P="${PN/lib}-${PV}"
+
+DESCRIPTION="Red Hat Hardware detection tools"
+#SRC_URI="mirror://fedora/development/source/SRPMS/${MY_P}-${RPMREV}.src.rpm"
+#Workaround to get this file on the Gentoo Mirrors for now. -darkside
+SRC_URI="http://fedora.mirror.iweb.ca/releases/test/9-Beta/Fedora/source/SRPMS/kudzu-1.2.83-3.src.rpm"
+HOMEPAGE="http://rhlinux.redhat.com/kudzu/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/python
+ dev-libs/popt
+ sys-apps/hwdata-redhat
+ !sys-libs/libkudzu"
+DEPEND="dev-libs/popt
+ >=sys-apps/pciutils-2.2.4"
+RESTRICT_PYTHON_ABIS="3.*"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ PYTHON_VERSIONS=
+ python_pkg_setup
+ local version
+ for version in ${PYTHON_ABIS}; do
+ PYTHON_VERSIONS+="${PYTHON_VERSIONS:+ }python${version}"
+ done
+}
+
+src_prepare() {
+ sed -i -e 's/make/$(MAKE)/g' \
+ -e 's/$(CC) -o/$(CC) $(LDFLAGS) -o/' \
+ Makefile || die
+}
+
+src_compile() {
+ emake \
+ all \
+ CC=$(tc-getCC) \
+ AR=$(tc-getAR) \
+ RANLIB=$(tc-getRANLIB) \
+ RPM_OPT_FLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ PYTHONVERS="${PYTHON_VERSIONS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ emake \
+ install \
+ install-program \
+ DESTDIR="${D}" \
+ libdir="${D}/usr/$(get_libdir)" \
+ CC=$(tc-getCC) \
+ PYTHONVERS="${PYTHON_VERSIONS}" \
+ || die "emake install failed"
+
+ # don't install incompatible init scripts
+ rm -fr "${D}etc/rc.d" || die "removing rc.d files failed"
+}
+
+pkg_postinst() {
+ python_mod_optimize kudzu.py
+}
+
+pkg_postrm() {
+ python_mod_cleanup kudzu.py
+}
diff --git a/sys-apps/kudzu/metadata.xml b/sys-apps/kudzu/metadata.xml
new file mode 100644
index 0000000..fae7d74
--- /dev/null
+++ b/sys-apps/kudzu/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+</pkgmetadata>