/[gentoo-x86]/app-editors/ersatz-emacs/ersatz-emacs-20060515.ebuild
Gentoo

Contents of /app-editors/ersatz-emacs/ersatz-emacs-20060515.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Thu Feb 28 16:43:13 2013 UTC (7 years, 4 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -3 lines
Don't call pkg-config directly, in order not to break cross compilation.

(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)

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/ersatz-emacs/ersatz-emacs-20060515.ebuild,v 1.9 2013/02/28 00:28:07 ulm Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="A very minimal imitation of the famous GNU Emacs editor"
10 HOMEPAGE="http://hunter.apana.org.au/~cjb/Code/"
11 # taken from http://hunter.apana.org.au/~cjb/Code/ersatz.tar.gz
12 SRC_URI="mirror://gentoo/${P}.tar.gz"
13
14 LICENSE="public-domain"
15 SLOT="0"
16 KEYWORDS="amd64 x86"
17
18 RDEPEND="!app-editors/ee
19 sys-libs/ncurses"
20 DEPEND="${RDEPEND}
21 virtual/pkgconfig"
22
23 S="${WORKDIR}"
24
25 src_prepare() {
26 epatch "${FILESDIR}"/${P}-gentoo.patch
27 sed -i -e "s%/usr/local/share/%/usr/share/doc/${PF}/%" ee.1 \
28 || die "sed failed"
29 }
30
31 src_compile() {
32 emake CC="$(tc-getCC)" \
33 CFLAGS="${CFLAGS} -Wall" \
34 LFLAGS="${LDFLAGS} $("$(tc-getPKG_CONFIG)" --libs ncurses)"
35 }
36
37 src_install() {
38 # Note: /usr/bin/ee is "easy edit" on FreeBSD, so if this
39 # is ever keyworded *-fbsd the binary has to be renamed.
40 dobin ee
41 doman ee.1
42 dodoc ChangeLog ERSATZ.keys README
43 }

  ViewVC Help
Powered by ViewVC 1.1.20