| 1 |
# Copyright 1999-2013 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_p20120925.ebuild,v 1.1 2012/09/28 13:48:30 ulm 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 ~x86-fbsd"
|
| 18 |
IUSE=""
|
| 19 |
|
| 20 |
RDEPEND="sys-libs/ncurses"
|
| 21 |
DEPEND="${RDEPEND}
|
| 22 |
virtual/pkgconfig"
|
| 23 |
|
| 24 |
S="${WORKDIR}/uemacs"
|
| 25 |
|
| 26 |
src_prepare() {
|
| 27 |
epatch "${FILESDIR}"/${PN}-4.0.15_p20110825-gentoo.patch
|
| 28 |
}
|
| 29 |
|
| 30 |
src_compile() {
|
| 31 |
emake V=1 \
|
| 32 |
CC="$(tc-getCC)" \
|
| 33 |
CFLAGS="${CFLAGS}" \
|
| 34 |
LDFLAGS="${LDFLAGS}" \
|
| 35 |
LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
|
| 36 |
}
|
| 37 |
|
| 38 |
src_install() {
|
| 39 |
dobin em
|
| 40 |
insinto /usr/share/${PN}
|
| 41 |
doins emacs.hlp
|
| 42 |
newins emacs.rc .emacsrc
|
| 43 |
dodoc README readme.39e emacs.ps UTF-8-demo.txt
|
| 44 |
}
|
| 45 |
|
| 46 |
pkg_postinst() {
|
| 47 |
einfo "If you are upgrading from version 4.0.18, please note that the"
|
| 48 |
einfo "executable is now installed as \"em\" instead of \"uemacs\"."
|
| 49 |
}
|