summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libatasmart/libatasmart-0.17.ebuild')
-rw-r--r--dev-libs/libatasmart/libatasmart-0.17.ebuild29
1 files changed, 19 insertions, 10 deletions
diff --git a/dev-libs/libatasmart/libatasmart-0.17.ebuild b/dev-libs/libatasmart/libatasmart-0.17.ebuild
index 8c2d513d367b..db1505ed4de4 100644
--- a/dev-libs/libatasmart/libatasmart-0.17.ebuild
+++ b/dev-libs/libatasmart/libatasmart-0.17.ebuild
@@ -1,10 +1,9 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libatasmart/libatasmart-0.17.ebuild,v 1.16 2011/01/03 23:45:37 eva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libatasmart/libatasmart-0.17.ebuild,v 1.17 2011/04/04 15:25:36 ssuominen Exp $
-EAPI="2"
-
-inherit base
+EAPI=4
+inherit eutils
DESCRIPTION="Lean and small library for ATA S.M.A.R.T. hard disks"
HOMEPAGE="http://0pointer.de/blog/projects/being-smart.html"
@@ -13,15 +12,25 @@ SRC_URI="http://0pointer.de/public/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86"
-IUSE=""
+IUSE="static-libs"
RDEPEND="sys-fs/udev"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
-PATCHES=("${FILESDIR}/${PN}-0.17-strpool-uninit.patch")
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.17-strpool-uninit.patch
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
src_install() {
- emake DESTDIR="${D}" install || die "emake install failed"
- dodoc README || die "dodoc failed"
- rm -rf "${D}"/usr/share/doc/${PN} || die "rm failed"
+ emake DESTDIR="${D}" install
+ dodoc README
+
+ rm -rf "${D}"/usr/share/doc/${PN} || die
+ find "${D}" -name '*.la' -exec rm -f {} +
}