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

Collapse All | Expand All

(-)evilvte/evilvte-0.4.5_pre2.ebuild (-4 / +14 lines)
Lines 3-9 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/x11-terms/evilvte/evilvte-0.4.5_pre2.ebuild,v 1.1 2009/04/28 15:42:56 ssuominen Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-terms/evilvte/evilvte-0.4.5_pre2.ebuild,v 1.1 2009/04/28 15:42:56 ssuominen Exp $
4
4
5
EAPI=2
5
EAPI=2
6
inherit toolchain-funcs versionator
6
inherit savedconfig toolchain-funcs versionator
7
7
8
MY_P=${PN}-$(replace_version_separator 3 '~')
8
MY_P=${PN}-$(replace_version_separator 3 '~')
9
DESCRIPTION="VTE based, super lightweight terminal emulator"
9
DESCRIPTION="VTE based, super lightweight terminal emulator"
Lines 27-32 S=${WORKDIR}/${MY_P} Link Here
27
src_prepare() {
27
src_prepare() {
28
	if [[ -f /etc/${PN}/config.h ]]; then
28
	if [[ -f /etc/${PN}/config.h ]]; then
29
		cp /etc/${PN}/config.h src/ || die "copying config.h failed"
29
		cp /etc/${PN}/config.h src/ || die "copying config.h failed"
30
	else
31
		restore_config src/config.h
30
	fi
32
	fi
31
}
33
}
32
34
Lines 41-50 src_compile() { Link Here
41
src_install() {
43
src_install() {
42
	emake DESTDIR="${D}" install || die "emake install failed"
44
	emake DESTDIR="${D}" install || die "emake install failed"
43
	dodoc Changelog
45
	dodoc Changelog
44
	insinto /etc/${PN}
46
	save_config src/config.h
45
	doins src/config.h || die "doins failed"
46
}
47
}
47
48
48
pkg_postinst() {
49
pkg_postinst() {
49
	elog "Edit /etc/${PN}/config.h and re-emerge for custom configuration."
50
	# Thanks busybox!
51
	echo
52
	einfo "This ebuild has support for user defined configs"
53
	einfo "Please read this ebuild for more details and re-emerge as needed"
54
	einfo "if you want to add or remove functionality for ${PN}"
55
	echo
56
	if [[ -f "${ROOT}"/etc/${PN}/config.h ]]; then
57
		rm "${ROOT}"/etc/${PN}/config.h || die "Failed to remove old config in /etc/${PN}"
58
		rmdir "${ROOT}"/etc/${PN} 2>/dev/null
59
	fi
50
}
60
}

Return to bug 268681