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.
61 lines
1.3 KiB
61 lines
1.3 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI="7"
|
||
13 years ago
|
|
||
7 years ago
|
inherit toolchain-funcs
|
||
13 years ago
|
|
||
10 years ago
|
DESCRIPTION="An easy to use text editor. A subset of aee"
|
||
7 years ago
|
#HOMEPAGE="http://mahon.cwx.net/ http://www.users.uswest.net/~hmahon/"
|
||
|
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
|
||
|
SRC_URI="mirror://gentoo/${P}.src.tgz"
|
||
13 years ago
|
|
||
|
LICENSE="BSD-2"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="~alpha amd64 ~ia64 ~mips ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||
13 years ago
|
IUSE=""
|
||
|
|
||
3 years ago
|
RDEPEND="
|
||
|
!app-editors/ersatz-emacs
|
||
|
sys-libs/ncurses:=
|
||
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
4 years ago
|
BDEPEND="virtual/pkgconfig"
|
||
3 years ago
|
|
||
13 years ago
|
S="${WORKDIR}/easyedit-${PV}"
|
||
|
|
||
7 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PN}-init-location.patch
|
||
6 years ago
|
"${FILESDIR}"/${PN}-signal.patch
|
||
7 years ago
|
"${FILESDIR}"/${PN}-Wformat-security.patch
|
||
4 years ago
|
"${FILESDIR}"/${PN}-gcc-10.patch
|
||
7 years ago
|
)
|
||
|
DOCS=( Changes README.${PN} ${PN}.i18n.guide ${PN}.msg )
|
||
13 years ago
|
|
||
7 years ago
|
src_prepare() {
|
||
13 years ago
|
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//" \
|
||
4 years ago
|
-e "s/-lcurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \
|
||
13 years ago
|
create.make
|
||
7 years ago
|
|
||
|
default
|
||
13 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake CC="$(tc-getCC)"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
7 years ago
|
dobin ${PN}
|
||
|
doman ${PN}.1
|
||
|
einstalldocs
|
||
13 years ago
|
keepdir /usr/share/${PN}
|
||
|
}
|