Lines 1-8
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2008 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.39.ebuild,v 1.2 2008/06/28 09:17:12 robbat2 Exp $ |
3 |
# $Header: |
4 |
|
4 |
|
5 |
inherit eutils multilib |
5 |
inherit eutils flag-o-matic multilib |
6 |
|
6 |
|
7 |
DESCRIPTION="User-land utilities for LVM2 (device-mapper) software." |
7 |
DESCRIPTION="User-land utilities for LVM2 (device-mapper) software." |
8 |
HOMEPAGE="http://sources.redhat.com/lvm2/" |
8 |
HOMEPAGE="http://sources.redhat.com/lvm2/" |
Lines 28-33
Link Here
|
28 |
pkg_setup() { |
28 |
pkg_setup() { |
29 |
use nolvmstatic && eerror "USE=nolvmstatic has changed to USE=static via package.use" |
29 |
use nolvmstatic && eerror "USE=nolvmstatic has changed to USE=static via package.use" |
30 |
use nolvm1 && eerror "USE=nolvm1 has changed to USE=lvm1 via package.use" |
30 |
use nolvm1 && eerror "USE=nolvm1 has changed to USE=lvm1 via package.use" |
|
|
31 |
filter-ldflags -Wl,--as-needed --as-needed |
31 |
} |
32 |
} |
32 |
|
33 |
|
33 |
src_unpack() { |
34 |
src_unpack() { |
Lines 88-99
Link Here
|
88 |
fi |
89 |
fi |
89 |
|
90 |
|
90 |
myconf="${myconf} --sbindir=/sbin --with-staticdir=/sbin" |
91 |
myconf="${myconf} --sbindir=/sbin --with-staticdir=/sbin" |
|
|
92 |
if ! use static; then |
93 |
myconf="${myconf} --libdir=/lib" |
94 |
fi |
95 |
|
91 |
econf $(use_enable readline) \ |
96 |
econf $(use_enable readline) \ |
92 |
$(use_enable selinux) \ |
97 |
$(use_enable selinux) \ |
93 |
--libdir=/usr/$(get_libdir) \ |
98 |
--libdir=/usr/$(get_libdir) \ |
94 |
${myconf} \ |
99 |
${myconf} \ |
95 |
CLDFLAGS="${LDFLAGS}" || die |
100 |
CLDFLAGS="${LDFLAGS}" || die |
96 |
emake || die "compile problem" |
101 |
emake LIBS='-lrt -lreadline -ldevmapper-event -ldl' || die "compile problem" |
97 |
} |
102 |
} |
98 |
|
103 |
|
99 |
src_install() { |
104 |
src_install() { |