You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-editors/ee/ee-1.5.2.ebuild

46 lines
1.0 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/ee/ee-1.5.2.ebuild,v 1.7 2014/08/10 17:41:40 slyfox Exp $
EAPI="4"
inherit eutils toolchain-funcs
DESCRIPTION="An easy to use text editor. A subset of aee"
HOMEPAGE="http://mahon.cwx.net/"
SRC_URI="http://mahon.cwx.net/sources/${P}.src.tgz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~ia64 ~mips ppc ppc64 ~sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""
RDEPEND="!app-editors/ersatz-emacs"
S="${WORKDIR}/easyedit-${PV}"
src_prepare() {
epatch "${FILESDIR}"/${PN}-*.diff
sed -i \
-e "s/make -/\$(MAKE) -/g" \
-e "/^buildee/s/$/ localmake/" \
Makefile
sed -i \
-e "s/\tcc /\t\\\\\$(CC) /" \
-e "/CFLAGS =/s/\" >/ \\\\\$(LDFLAGS)\" >/" \
-e "/other_cflag/s/ *-s//" \
create.make
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
dobin ee
doman ee.1
dodoc Changes README.ee ee.i18n.guide ee.msg
keepdir /usr/share/${PN}
}