summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2010-08-15 19:56:37 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2010-08-15 19:56:37 +0000
commitff2bec27cfd661e9e5883df9b47567068dd0602b (patch)
treebde4ba0f47cb0df25f1a6b582436e8123b9a1170 /sys-apps
parentRevision bump for change in behaviour of ld for Snow Leopard users to fix unc... (diff)
downloadgentoo-2-ff2bec27cfd661e9e5883df9b47567068dd0602b.tar.gz
gentoo-2-ff2bec27cfd661e9e5883df9b47567068dd0602b.tar.bz2
gentoo-2-ff2bec27cfd661e9e5883df9b47567068dd0602b.zip
Apply patch from Dane Smith <smithdanea@gmail.com> to respect LDFLAGS. Bug #332791
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/kudzu/ChangeLog9
-rw-r--r--sys-apps/kudzu/kudzu-1.2.83-r1.ebuild85
2 files changed, 93 insertions, 1 deletions
diff --git a/sys-apps/kudzu/ChangeLog b/sys-apps/kudzu/ChangeLog
index 3f6c2997c58c..28b80ee2a93f 100644
--- a/sys-apps/kudzu/ChangeLog
+++ b/sys-apps/kudzu/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-apps/kudzu
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/kudzu/ChangeLog,v 1.33 2010/01/15 22:35:42 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kudzu/ChangeLog,v 1.34 2010/08/15 19:56:37 hwoarang Exp $
+
+*kudzu-1.2.83-r1 (15 Aug 2010)
+
+ 15 Aug 2010; Markos Chandras <hwoarang@gentoo.org>
+ +kudzu-1.2.83-r1.ebuild:
+ Apply patch from Dane Smith <smithdanea@gmail.com> to respect LDFLAGS. Bug
+ #332791
15 Jan 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
kudzu-1.2.83.ebuild:
diff --git a/sys-apps/kudzu/kudzu-1.2.83-r1.ebuild b/sys-apps/kudzu/kudzu-1.2.83-r1.ebuild
new file mode 100644
index 000000000000..1e077dc66902
--- /dev/null
+++ b/sys-apps/kudzu/kudzu-1.2.83-r1.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-r1.ebuild,v 1.1 2010/08/15 19:56:37 hwoarang 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
+}