parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit f866389854b5026212883be77477238016addf82
parent 77c7e0a05984c24a0c75d55b1644680bd06c88da
Author: parazyd <parazyd@dyne.org>
Date:   Mon,  5 Feb 2018 10:29:43 +0100

net-misc/sacc: Add 9999

Diffstat:
Anet-misc/sacc/metadata.xml | 7+++++++
Anet-misc/sacc/sacc-9999.ebuild | 43+++++++++++++++++++++++++++++++++++++++++++
2 files changed, 50 insertions(+), 0 deletions(-)

diff --git a/net-misc/sacc/metadata.xml b/net-misc/sacc/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>parazyd@dyne.org</email> +</maintainer> +</pkgmetadata> diff --git a/net-misc/sacc/sacc-9999.ebuild b/net-misc/sacc/sacc-9999.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit git-r3 savedconfig toolchain-funcs + +DESCRIPTION="saccomys, simple console gopher client" +HOMEPAGE="gopher://bitreich.org/1/scm/sacc" +EGIT_REPO_URI="git://bitreich.org/sacc" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="" +IUSE="ncurses" + +DEPEND="ncurses? ( sys-libs/ncurses:0 )" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + if use ncurses; then + echo "UI=ti" >> config.mk + echo "LIBS=-lcurses" >> config.mk + fi + + restore_config config.h +} + +src_compile() { + emake sacc +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + save_config config.h +} + +pkg_postinst() { + einfo "This ebuild has support for user defined configs" + einfo "Please read this ebuild for more details and re-emerge as needed" +}