dev-lua/lunix: update to actually support 5.4
[sgilles-overlay.git] / net-misc / sacc / sacc-9999.ebuild
blob6952ff086c1a5e7c230f53587f50d13bb9eed119
1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit git-r3 savedconfig
8 DESCRIPTION="sacc(omys), simple console gopher client"
9 HOMEPAGE="gopher://bitreich.org/scm/sacc"
10 EGIT_REPO_URI="git://bitreich.org/sacc"
12 LICENSE="ISC"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 amd64-fbsd x86-fbsd"
16 IUSE="ncurses"
18 RDEPEND="dev-libs/libretls"
19 DEPEND="${RDEPEND}
20 virtual/pkgconfig"
22 src_prepare() {
23 restore_config config.h
24 default
26 echo '' > config.mk
27 echo "PREFIX = ${EPREFIX}/usr" >> config.mk
29 if use ncurses; then
30 echo 'UI=ti' >> config.mk
31 echo 'LIBS=-lncurses -ltinfo' >> config.mk
32 else
33 echo 'UI=text' >> config.mk
36 echo 'OSCFLAGS = -D_DEFAULT_SOURCE $(CFLAGS)' >> config.mk
37 echo 'OSCFLAGS += -D_XOPEN_SOURCE=700' >> config.mk
38 echo 'OSCFLAGS += -D_BSD_SOURCE' >> config.mk
39 echo 'OSCFLAGS += -D_GNU_SOURCE' >> config.mk
40 echo 'OSCFLAGS += $(CFLAGS)' >> config.mk
41 echo '' >> config.mk
42 echo 'IO = tls' >> config.mk
43 echo 'IOLIBS = -ltls' >> config.mk
44 echo 'IOCFLAGS = -DUSE_TLS' >> config.mk
47 src_install() {
48 save_config config.h
49 dobin sacc
50 doman sacc.1