diff options
author | Ulrich Müller <ulm@gentoo.org> | 2011-09-25 17:49:10 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2011-09-25 17:49:10 +0000 |
commit | 772035752082c6d0f55931ae08b5c417035e1a44 (patch) | |
tree | 62c78b1cafb39ad93b8eb199269b80e582e2a9c5 /app-editors/mg/mg-20110905.ebuild | |
parent | alpha stable wrt #368281 (diff) | |
download | gentoo-2-772035752082c6d0f55931ae08b5c417035e1a44.tar.gz gentoo-2-772035752082c6d0f55931ae08b5c417035e1a44.tar.bz2 gentoo-2-772035752082c6d0f55931ae08b5c417035e1a44.zip |
Set /usr/bin/emacs symlink with USE=livecd.
(Portage version: 2.1.10.19/cvs/Linux x86_64)
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 +} |