summaryrefslogtreecommitdiff
blob: 655cdf2c3feaf3bb4ce4c86e210af2710bfb8f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit toolchain-funcs

COMMIT="1485816cc8e7556c634d2676b3ff17c3b998062a"
DESCRIPTION="The smallest functional Emacs in less than 2000 lines of C"
HOMEPAGE="https://github.com/hughbarney/atto"
SRC_URI="https://github.com/hughbarney/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="sys-libs/ncurses:0="
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}-${COMMIT}"

src_compile() {
	emake CC="$(tc-getCC)" \
		CFLAGS="${CFLAGS}" \
		LD="$(tc-getCC) ${LDFLAGS}" \
		LIBS="$("$(tc-getPKG_CONFIG)" --libs ncursesw)"
}

src_install() {
	dobin atto
	dodoc README.md CHANGE.LOG.md docs/*.txt
}