sacc-9999.ebuild - parlay - yet another gentoo overlay
HTML git clone https://git.parazyd.org/parlay
DIR Log
DIR Files
DIR Refs
DIR README
---
sacc-9999.ebuild (1037B)
---
1 # Copyright 1999-2025 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=8
5
6 inherit git-r3 savedconfig
7
8 DESCRIPTION="saccomys, simple console gopher client"
9 HOMEPAGE="http://bitreich.org"
10 EGIT_REPO_URI="git://bitreich.org/sacc"
11
12 LICENSE="ISC"
13 SLOT="0"
14 KEYWORDS=""
15 IUSE="ncurses savedconfig static ssl"
16
17 DEPEND="
18 ncurses? ( sys-libs/ncurses:0 )
19 ssl? ( dev-libs/libretls:0 )
20 "
21 RDEPEND="${DEPEND}"
22
23 src_prepare() {
24 default
25
26 if use ncurses; then
27 echo "UI=ti" >> config.mk
28 echo "LIBS=-lncurses -ltinfow" >> config.mk
29 else
30 sed -e 's/LIBS=.*/UI=txt/' -i config.mk
31 fi
32
33 if use static; then
34 echo "LDFLAGS+=-static" >> config.mk
35 fi
36
37 if use ssl; then
38 echo "LIBS+=-ltls" >> config.mk
39 fi
40
41 restore_config config.h
42 }
43
44 src_compile() {
45 emake sacc
46 }
47
48 src_install() {
49 emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
50 save_config config.h
51 }
52
53 pkg_postinst() {
54 einfo "This ebuild has support for user defined configs"
55 einfo "Please read this ebuild for more details and re-emerge as needed"
56 }