1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
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"
14 KEYWORDS
="alpha amd64 arm hppa ppc ppc64 sparc x86 amd64-fbsd x86-fbsd"
18 RDEPEND
="dev-libs/libretls"
23 restore_config config.h
27 echo "PREFIX = ${EPREFIX}/usr" >> config.mk
30 echo 'UI=ti' >> config.mk
31 echo 'LIBS=-lncurses -ltinfo' >> config.mk
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
42 echo 'IO = tls' >> config.mk
43 echo 'IOLIBS = -ltls' >> config.mk
44 echo 'IOCFLAGS = -DUSE_TLS' >> config.mk