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 |
} |