Recently Written · git

sacc-ebuild

Mirrored on Github for normies.

git clone https://github.com/equwal/sacc-ebuild

Log | Files | Refs


sacc-1.01.ebuild (742 bytes)

1 EAPI=7
2 
3 DESCRIPTION="Gopher client of pure simplicity."
4 HOMEPAGE="gopher://bitreich.org/1/scm/sacc/log.gph"
5 SRC_URI="ftp://bitreich.org/releases/sacc/${P}.tgz"
6 LICENSE="GNU GPLv3"
7 
8 SLOT="0"
9 
10 KEYWORDS="~amd64"
11 
12 # Not sure how to support UI=txt vs UI=ti mode using USE flags.
13 # IUSE="tinfo ncurses"
14 
15 #RDEPEND="tinfo? ( sys-libs/ncurses[tinfo] )"
16 RDEPEND="sys-libs/ncurses[tinfo]"
17 DEPEND="${RDEPEND}"
18 
19 src_compile() {
20 	# The libs should be somehow depend on the USE flags for UI=txt mode
21 	# UI_TI (default)
22 	# UI=ti
23 
24 	# UI_TXT
25 	# UI=txt LIBS="
26 	emake LIBS="-lncurses -ltinfo" UI=ti
27 }
28 
29 src_install() {
30 	# Would be nice if DESTDIR was supported by sacc
31 	emake PREFIX="${D}"/usr MANDIR="${D}"/usr/share/man UI=ti LIBS="-lncurses -ltinfo" install
32 }