blob: 9e28a7fcfea3e9a601b076baeebcc099da5072c2 (
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
40
41
42
43
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic savedconfig toolchain-funcs
DESCRIPTION="an ncurses text editor with an easy-to-read, hackable C source"
HOMEPAGE="https://tools.suckless.org/sandy"
SRC_URI="https://git.suckless.org/${PN}/snapshot/${P}.tar.bz2"
LICENSE="MIT-with-advertising"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
sys-libs/ncurses:0=
"
RDEPEND="
${DEPEND}
"
BDEPEND="
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}"/${PN}-0.4-gentoo.patch
)
src_prepare() {
default
restore_config config.h
}
src_compile() {
tc-export CC PKG_CONFIG
append-cflags -D_DEFAULT_SOURCE
emake PREFIX=/usr ${PN}
}
src_install() {
emake PREFIX=/usr DESTDIR="${D}" install
save_config config.h
}
|