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.3.ebuild (-4 / +15 lines)
Lines 2-8 Link Here
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/x11-terms/evilvte/evilvte-0.4.3.ebuild,v 1.4 2008/11/27 22:04:44 armin76 Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-terms/evilvte/evilvte-0.4.3.ebuild,v 1.4 2008/11/27 22:04:44 armin76 Exp $
4
4
5
inherit toolchain-funcs
5
inherit savedconfig toolchain-funcs
6
6
7
DESCRIPTION="VTE based, super lightweight terminal emulator"
7
DESCRIPTION="VTE based, super lightweight terminal emulator"
8
HOMEPAGE="http://www.calno.com/evilvte"
8
HOMEPAGE="http://www.calno.com/evilvte"
Lines 21-28 DEPEND="${RDEPEND} Link Here
21
src_unpack() {
21
src_unpack() {
22
	unpack ${A}
22
	unpack ${A}
23
	cd "${S}"
23
	cd "${S}"
24
24
	if [[ -f /etc/${PN}/config.h ]]; then
25
	if [[ -f /etc/${PN}/config.h ]]; then
25
		cp /etc/${PN}/config.h src/ || die "copying config.h failed."
26
		cp /etc/${PN}/config.h src/ || die "copying config.h failed."
27
	else
28
		restore_config src/config.h
26
	fi
29
	fi
27
}
30
}
28
31
Lines 34-43 src_compile() { Link Here
34
src_install() {
37
src_install() {
35
	emake DESTDIR="${D}" install || die "emake install failed."
38
	emake DESTDIR="${D}" install || die "emake install failed."
36
	dodoc Changelog
39
	dodoc Changelog
37
	insinto /etc/${PN}
40
	save_config src/config.h
38
	doins src/config.h || die "doins failed."
39
}
41
}
40
42
41
pkg_postinst() {
43
pkg_postinst() {
42
	elog "Edit /etc/${PN}/config.h and re-emerge for custom configuration."
44
	# Thanks busybox!
45
	echo
46
	einfo "This ebuild has support for user defined configs"
47
	einfo "Please read this ebuild for more details and re-emerge as needed"
48
	einfo "if you want to add or remove functionality for ${PN}"
49
	echo
50
	if [[ -f "${ROOT}"/etc/${PN}/config.h ]]; then
51
		rm "${ROOT}"/etc/${PN}/config.h || die "Failed to remove old config in /etc/${PN}"
52
		rmdir "${ROOT}"/etc/${PN} 2>/dev/null
53
	fi
43
}
54
}
(-)evilvte/evilvte-0.4.4_pre9.ebuild (-4 / +14 lines)
Lines 4-10 Link Here
4
4
5
MY_P=${P/_/\~}
5
MY_P=${P/_/\~}
6
6
7
inherit toolchain-funcs
7
inherit savedconfig toolchain-funcs
8
8
9
DESCRIPTION="VTE based, super lightweight terminal emulator"
9
DESCRIPTION="VTE based, super lightweight terminal emulator"
10
HOMEPAGE="http://www.calno.com/evilvte"
10
HOMEPAGE="http://www.calno.com/evilvte"
Lines 28-33 src_unpack() { Link Here
28
28
29
	if [[ -f /etc/${PN}/config.h ]]; then
29
	if [[ -f /etc/${PN}/config.h ]]; then
30
		cp /etc/${PN}/config.h src/ || die "copying config.h failed."
30
		cp /etc/${PN}/config.h src/ || die "copying config.h failed."
31
	else
32
		restore_config src/config.h
31
	fi
33
	fi
32
}
34
}
33
35
Lines 39-48 src_compile() { Link Here
39
src_install() {
41
src_install() {
40
	emake DESTDIR="${D}" install || die "emake install failed."
42
	emake DESTDIR="${D}" install || die "emake install failed."
41
	dodoc Changelog
43
	dodoc Changelog
42
	insinto /etc/${PN}
44
	save_config src/config.h
43
	doins src/config.h || die "doins failed."
44
}
45
}
45
46
46
pkg_postinst() {
47
pkg_postinst() {
47
	elog "Edit /etc/${PN}/config.h and re-emerge for custom configuration."
48
	# Thanks busybox!
49
	echo
50
	einfo "This ebuild has support for user defined configs"
51
	einfo "Please read this ebuild for more details and re-emerge as needed"
52
	einfo "if you want to add or remove functionality for ${PN}"
53
	echo
54
	if [[ -f "${ROOT}"/etc/${PN}/config.h ]]; then
55
		rm "${ROOT}"/etc/${PN}/config.h || die "Failed to remove old config in /etc/${PN}"
56
		rmdir "${ROOT}"/etc/${PN} 2>/dev/null
57
	fi
48
}
58
}

Return to bug 268681