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

Collapse All | Expand All

(-)swish-e-2.4.4.ebuild (-6 / +35 lines)
Lines 32-42 Link Here
32
		epause 10
32
		epause 10
33
	fi
33
	fi
34
	unpack ${A}
34
	unpack ${A}
35
	cd ${S}
36
	if use perl ; then 
37
		einfo 'Applying Perl Patches'; 
38
		#cp "${FILESDIR}/Makefile.PL" "${S}/perl/Makefile.PL"
39
		epatch ${FILESDIR}/perl-makefile-${PV}.patch
40
		einfo 'Done'
41
	fi
35
}
42
}
36
src_compile() {
43
44
# Designed for EAPI 2 but not bumping EAPI 2 till somebody thinks its a good
45
# idea and it works
46
fake_configure() {
47
	cd "${S}";
37
	econf || die "configuration failed"
48
	econf || die "configuration failed"
49
	if use perl; then
50
		einfo "Configuring for Perl"
51
		cd "${S}/perl"
52
		chmod u+x "${S}/swish-config"
53
		myconf="SWISHBINDIR=${S} SWISHIGNOREVER SWISHSKIPTEST"
54
		perl-module_src_configure
55
		einfo 'Done'
56
	fi
57
}
58
src_compile() {
59
	fake_configure
60
	cd "${S}"
38
	# XXX: is this -j1 really needed ?
61
	# XXX: is this -j1 really needed ?
39
	emake -j1 || die "emake failed"
62
	emake -j1 || die "emake failed"
63
	if use perl ; then
64
		einfo "Compiling for Perl"
65
		cd ${S}/perl
66
		chmod u+x "${S}/swish-config"
67
		myconf="SWISHBINDIR=${S} SWISHIGNOREVER SWISHSKIPTEST"
68
		perl-module_src_compile
69
		einfo 'Done'
70
	fi
40
}
71
}
41
72
42
src_install() {
73
src_install() {
Lines 48-61 Link Here
48
		dodir /usr/share/doc/${PF}
79
		dodir /usr/share/doc/${PF}
49
		cp -r html conf "${D}"/usr/share/doc/${PF} || die "cp failed"
80
		cp -r html conf "${D}"/usr/share/doc/${PF} || die "cp failed"
50
	fi
81
	fi
51
52
	if use perl ; then
82
	if use perl ; then
53
		epatch ${FILESDIR}/perl-makefile.patch
83
		einfo "Installing for Perl"
54
		cd ${S}/perl
84
		myconf="SWISHBINDIR=${S} SWISHIGNOREVER SWISHSKIPTEST"
55
		myconf="SWISHBINDIR=${D}/usr/bin SWISHIGNOREVER SWISHSKIPTEST"
56
		perl-module_src_compile
57
		cd ${S}/perl
85
		cd ${S}/perl
58
		perl-module_src_install
86
		perl-module_src_install
87
		eend
59
	fi
88
	fi
60
}
89
}
61
90

Return to bug 248477