summaryrefslogtreecommitdiff
blob: b1d3db2566f91f2e838a88e5926b09cad000773c (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
33
34
35
36
37
38
39
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit toolchain-funcs

if [[ ${PV} = 9999 ]]; then
	EGIT_REPO_URI="https://github.com/hughbarney/pEmacs.git"
	EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
	inherit git-r3
else
	# snapshot from git repo
	SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz"
fi

DESCRIPTION="Perfect Emacs, a small footprint Emacs derived from Ersatz Emacs"
HOMEPAGE="https://github.com/hughbarney/pEmacs"

LICENSE="public-domain"
SLOT="0"

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

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

src_compile() {
	emake CC="$(tc-getCC)" \
		CFLAGS="${CFLAGS} -Wall" \
		LFLAGS="${LDFLAGS} $("$(tc-getPKG_CONFIG)" --libs ncurses)"
}

src_install() {
	dobin pe
	doman pe.1
	dodoc README.md
}