Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 44091 | Differences between
and this patch

Collapse All | Expand All

(-)lvm2-2.00.15.ebuild (-3 / +26 lines)
Lines 15-29 Link Here
15
	!sys-fs/lvm-user"
15
	!sys-fs/lvm-user"
16
16
17
S="${WORKDIR}/${PN/lvm/LVM}.${PV}"
17
S="${WORKDIR}/${PN/lvm/LVM}.${PV}"
18
IUSE="static"
18
19
20
src_unpack() {
21
	unpack ${A}
22
23
	cd ${S}
24
	epatch ${FILESDIR}/${PN/lvm/LVM}.${PV}-static.patch
25
}
26
	
19
src_compile() {
27
src_compile() {
20
	econf || die "econf failed"
28
	# Build the static binary first; then the dynamic one...
29
	if [ `use static` ]; then
30
		# make distclean # This does not work
31
		econf --enable-static_link
32
		emake -j1 || die "Failed to compile!"
33
	fi
21
34
22
	# Parallel build doesn't work.
35
	# Dynamic binary
23
	emake -j1 || die "compile problem"
36
	econf --disable-static_link
37
	emake -j1 || die "Failed to compile!"
24
}
38
}
25
39
26
src_install() {
40
src_install() {
41
	# Install dynamic things
27
	einstall sbindir="${D}/sbin" confdir="${D}/etc/lvm"
42
	einstall sbindir="${D}/sbin" confdir="${D}/etc/lvm"
43
	
44
	# Make static links
45
	if [ `use static` ]; then
46
		into /
47
		dosbin tools/lvm.static
48
		find ${D}/sbin -type l -exec ln -sf ${D}/sbin/lvm.static {}.static \;
49
	fi
50
28
	dodoc COPYING* INSTALL README VERSION WHATS_NEW doc/*.{conf,c,txt}
51
	dodoc COPYING* INSTALL README VERSION WHATS_NEW doc/*.{conf,c,txt}
29
}
52
}

Return to bug 44091