update sacc for baab20ff
[sgilles-overlay.git] / net-misc / sacc / sacc-9999.ebuild
blobe7894759cc625c7d9fae222c762ff98122828292
1 EAPI=6
3 inherit eutils git-r3 savedconfig
5 DESCRIPTION="sacc(omys), simple console gopher client"
6 HOMEPAGE="gopher://bitreich.org/scm/sacc"
7 EGIT_REPO_URI="git://bitreich.org/sacc"
9 LICENSE="ISC"
10 SLOT="0"
11 KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 amd64-fbsd x86-fbsd"
13 IUSE="ncurses"
15 RDEPEND="dev-libs/libretls"
16 DEPEND="${RDEPEND}
17 virtual/pkgconfig"
19 src_prepare() {
20 restore_config config.h
21 default
23 echo '' > config.mk
24 echo "PREFIX = ${EPREFIX}/usr" >> config.mk
26 if use ncurses; then
27 echo 'UI=ti' >> config.mk
28 echo 'LIBS=-lcurses -ltinfo' >> config.mk
29 else
30 echo 'UI=text' >> config.mk
33 echo 'OSCFLAGS = -D_DEFAULT_SOURCE $(CFLAGS)' >> config.mk
34 echo 'OSCFLAGS += -D_XOPEN_SOURCE=700' >> config.mk
35 echo 'OSCFLAGS += -D_BSD_SOURCE' >> config.mk
36 echo 'OSCFLAGS += -D_GNU_SOURCE' >> config.mk
37 echo 'OSCFLAGS += $(CFLAGS)' >> config.mk
38 echo '' >> config.mk
39 echo 'IO = tls' >> config.mk
40 echo 'IOLIBS = -ltls' >> config.mk
41 echo 'IOCFLAGS = -DUSE_TLS' >> config.mk
44 src_install() {
45 save_config config.h
46 dobin sacc
47 doman sacc.1