diff options
Diffstat (limited to 'app-editors/mg/mg-20110905.ebuild')
-rw-r--r-- | app-editors/mg/mg-20110905.ebuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app-editors/mg/mg-20110905.ebuild b/app-editors/mg/mg-20110905.ebuild index 1526d50d39f3..4879f74389b5 100644 --- a/app-editors/mg/mg-20110905.ebuild +++ b/app-editors/mg/mg-20110905.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/mg-20110905.ebuild,v 1.2 2011/09/25 17:30:02 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/mg/mg-20110905.ebuild,v 1.3 2011/09/25 17:49:10 ulm Exp $ EAPI=4 @@ -13,7 +13,7 @@ SRC_URI="http://homepage.boetes.org/software/mg/${P}.tar.gz" LICENSE="public-domain BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos" -IUSE="" +IUSE="livecd" DEPEND="sys-libs/ncurses" RDEPEND="${DEPEND}" @@ -31,3 +31,9 @@ src_install() { einstall dodoc README tutorial } + +pkg_postinst() { + if use livecd; then + [[ -e ${EROOT}/usr/bin/emacs ]] || ln -s mg "${EROOT}"/usr/bin/emacs + fi +} |