Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 190372 Details for
Bug 268681
x11-terms/evilvte should use savedconfig.eclass for user config handling
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
evilvte-0.4.5_pre2-use_savedconfig.patch
evilvte-0.4.5_pre2-use_savedconfig.patch (text/plain), 1.48 KB, created by
James Rowe
on 2009-05-05 00:08:11 UTC
(
hide
)
Description:
evilvte-0.4.5_pre2-use_savedconfig.patch
Filename:
MIME Type:
Creator:
James Rowe
Created:
2009-05-05 00:08:11 UTC
Size:
1.48 KB
patch
obsolete
>diff -prauN evilvte/evilvte-0.4.5_pre2.ebuild evilvte/evilvte-0.4.5_pre2.ebuild >--- evilvte/evilvte-0.4.5_pre2.ebuild 2009-04-28 16:42:56.000000000 +0100 >+++ evilvte/evilvte-0.4.5_pre2.ebuild 2009-05-05 00:53:12.000000000 +0100 >@@ -3,7 +3,7 @@ > # $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 $ > > EAPI=2 >-inherit toolchain-funcs versionator >+inherit savedconfig toolchain-funcs versionator > > MY_P=${PN}-$(replace_version_separator 3 '~') > DESCRIPTION="VTE based, super lightweight terminal emulator" >@@ -27,6 +27,8 @@ S=${WORKDIR}/${MY_P} > src_prepare() { > if [[ -f /etc/${PN}/config.h ]]; then > cp /etc/${PN}/config.h src/ || die "copying config.h failed" >+ else >+ restore_config src/config.h > fi > } > >@@ -41,10 +43,18 @@ src_compile() { > src_install() { > emake DESTDIR="${D}" install || die "emake install failed" > dodoc Changelog >- insinto /etc/${PN} >- doins src/config.h || die "doins failed" >+ save_config src/config.h > } > > pkg_postinst() { >- elog "Edit /etc/${PN}/config.h and re-emerge for custom configuration." >+ # Thanks busybox! >+ echo >+ einfo "This ebuild has support for user defined configs" >+ einfo "Please read this ebuild for more details and re-emerge as needed" >+ einfo "if you want to add or remove functionality for ${PN}" >+ echo >+ if [[ -f "${ROOT}"/etc/${PN}/config.h ]]; then >+ rm "${ROOT}"/etc/${PN}/config.h || die "Failed to remove old config in /etc/${PN}" >+ rmdir "${ROOT}"/etc/${PN} 2>/dev/null >+ fi > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 268681
: 190372 |
190373