| 1 |
# Copyright 1999-2011 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-editors/uemacs-pk/uemacs-pk-4.0.15_p20101216.ebuild,v 1.7 2011/09/11 09:25:08 maekke Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
inherit eutils toolchain-funcs |
| 8 |
|
| 9 |
DESCRIPTION="uEmacs/PK is an enhanced version of MicroEMACS" |
| 10 |
HOMEPAGE="http://git.kernel.org/?p=editors/uemacs/uemacs.git;a=summary |
| 11 |
ftp://ftp.cs.helsinki.fi/pub/Software/Local/uEmacs-PK" |
| 12 |
# snapshot from git repo |
| 13 |
SRC_URI="mirror://gentoo/uemacs-${PV}.tar.bz2" |
| 14 |
|
| 15 |
LICENSE="free-noncomm" |
| 16 |
SLOT="0" |
| 17 |
KEYWORDS="amd64 x86" |
| 18 |
IUSE="" |
| 19 |
|
| 20 |
DEPEND="sys-libs/ncurses" |
| 21 |
RDEPEND="${DEPEND}" |
| 22 |
|
| 23 |
S="${WORKDIR}/uemacs" |
| 24 |
|
| 25 |
src_prepare() { |
| 26 |
epatch "${FILESDIR}"/${P}-gentoo.patch |
| 27 |
} |
| 28 |
|
| 29 |
src_compile() { |
| 30 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" |
| 31 |
} |
| 32 |
|
| 33 |
src_install() { |
| 34 |
dobin em |
| 35 |
insinto /usr/share/${PN} |
| 36 |
doins emacs.hlp |
| 37 |
newins emacs.rc .emacsrc |
| 38 |
dodoc README readme.39e emacs.ps UTF-8-demo.txt |
| 39 |
} |
| 40 |
|
| 41 |
pkg_postinst() { |
| 42 |
einfo "If you are upgrading from version 4.0.18, please note that the" |
| 43 |
einfo "executable is now installed as \"em\" instead of \"uemacs\"." |
| 44 |
} |