diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-05-13 09:56:38 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-05-13 09:56:49 +0200 |
commit | ff95a40a716ad9b76f415677cd1cc42da23069cd (patch) | |
tree | 038f1dcc231dab3b415d284366d7d23cb4aada9c /app-editors | |
parent | mail-mta/exim-4.93.0.4-r1: revbump for CVE-2020-12783 (diff) | |
download | gentoo-ff95a40a716ad9b76f415677cd1cc42da23069cd.tar.gz gentoo-ff95a40a716ad9b76f415677cd1cc42da23069cd.tar.bz2 gentoo-ff95a40a716ad9b76f415677cd1cc42da23069cd.zip |
app-editors/sandy: Add IUSE=savedconfig
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/sandy/sandy-0.4-r1.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app-editors/sandy/sandy-0.4-r1.ebuild b/app-editors/sandy/sandy-0.4-r1.ebuild new file mode 100644 index 000000000000..d6f94b34f70f --- /dev/null +++ b/app-editors/sandy/sandy-0.4-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 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} +" +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 +} |