diff options
Diffstat (limited to 'app-editors/aee/aee-2.2.15b.ebuild')
-rw-r--r-- | app-editors/aee/aee-2.2.15b.ebuild | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/app-editors/aee/aee-2.2.15b.ebuild b/app-editors/aee/aee-2.2.15b.ebuild index 7d50170e51ae..3610053fa695 100644 --- a/app-editors/aee/aee-2.2.15b.ebuild +++ b/app-editors/aee/aee-2.2.15b.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI="4" +EAPI="6" -inherit eutils toolchain-funcs +inherit toolchain-funcs DESCRIPTION="An easy to use text editor" #HOMEPAGE="http://mahon.cwx.net/ http://www.users.uswest.net/~hmahon/" @@ -18,36 +18,37 @@ IUSE="X" RDEPEND="X? ( x11-libs/libX11 )" DEPEND="${RDEPEND}" -src_prepare() { - epatch "${FILESDIR}"/${P}-ae-location.patch +PATCHES=( "${FILESDIR}"/${P}-ae-location.patch ) +DOCS=( Changes README.${PN} ${PN}.i18n.guide ${PN}.msg ) +src_prepare() { sed -i \ -e "s/make -/\$(MAKE) -/g" \ -e "/^buildaee/s/$/ localaee/" \ -e "/^buildxae/s/$/ localxae/" \ - Makefile || die + Makefile sed -i \ -e "s/\([\t ]\)cc /\1\\\\\$(CC) /" \ -e "/CFLAGS =/s/\" >/ \\\\\$(LDFLAGS)\" >/" \ -e "/other_cflag/s/ \${strip_option}//" \ - create.mk.{aee,xae} || die + create.mk.{aee,xae} - tc-export CC + default } src_compile() { local target="aee" use X && target="both" - emake ${target} + emake CC="$(tc-getCC)" ${target} } src_install() { dobin ${PN} dosym ${PN} /usr/bin/rae doman ${PN}.1 - dodoc Changes README.${PN} ${PN}.i18n.guide ${PN}.msg + einstalldocs insinto /usr/share/${PN} doins help.ae |