summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-10 02:31:27 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-10 02:31:27 +0000
commit5ff97ff6754eb47367ef41d912c5a24816cc7e80 (patch)
tree7846a3e457ff5e49e4ae17719d69e70dfa804b4b /sys-libs
parentstable on ppc64, bug #66251 (Manifest recommit) (diff)
downloadgentoo-2-5ff97ff6754eb47367ef41d912c5a24816cc7e80.tar.gz
gentoo-2-5ff97ff6754eb47367ef41d912c5a24816cc7e80.tar.bz2
gentoo-2-5ff97ff6754eb47367ef41d912c5a24816cc7e80.zip
clean up ebuild to fix #47472
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/detect/detect-0.9.72.ebuild31
1 files changed, 17 insertions, 14 deletions
diff --git a/sys-libs/detect/detect-0.9.72.ebuild b/sys-libs/detect/detect-0.9.72.ebuild
index 64a847722af9..e5ac476bf7dd 100644
--- a/sys-libs/detect/detect-0.9.72.ebuild
+++ b/sys-libs/detect/detect-0.9.72.ebuild
@@ -1,38 +1,41 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/detect/detect-0.9.72.ebuild,v 1.8 2004/08/24 04:09:09 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/detect/detect-0.9.72.ebuild,v 1.9 2004/10/10 02:31:27 vapier Exp $
-DESCRIPTION="Detect is a library for automatic hardware detection."
+inherit eutils
+
+DESCRIPTION="library for automatic hardware detection"
HOMEPAGE="http://www.mandrakelinux.com/harddrake/index.php"
SRC_URI="mirror://debian/pool/main/d/detect/${P//-/_}.orig.tar.gz
mirror://debian/pool/main/d/detect/${P//-/_}-6.1.diff.gz"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
+
DEPEND="virtual/libc"
+
S="${WORKDIR}/${PN}"
src_unpack() {
- unpack ${P//-/_}.orig.tar.gz
- cd $S
- gunzip -c ${DISTDIR}/${P//-/_}-6.1.diff.gz | patch -p1
+ unpack ${A}
+ cd ${S}
+ epatch ${WORKDIR}/${P//-/_}-6.1.diff
+ chmod a+rx configure config.sub config.guess
+ sed -i '/include.*genhd\.h/s:.*::' src/{detect.h,disk.c}
}
src_compile() {
- ./autogen.sh \
- --prefix=/usr \
- --infodir=/usr/share/info \
- --mandir=/usr/share/man || die "./configure failed"
+ econf --with-kernel-source="${ROOT}/usr" || die
emake || die
}
-src_install () {
- #make DESTDIR=${D} install || die
+src_install() {
make \
- prefix=${D}/usr \
- mandir=${D}/usr/share/man \
- infodir=${D}/usr/share/info \
+ DESTDIR="${D}" \
+ localedir="${D}/usr/share/locale" \
+ gnulocaledir="${D}/usr/share/locale" \
install || die
}