commit bd5aad67f3115ba4f277fa136a75334a247c1618 Spenser Truex <web@spensertruex.com> 2020-04-07 00:17:50 -0700 Initial commit of tinfo mode build for sacc-ebuild This project is a "layer" for Gentoo's portage package manager. It describes how to install sacc on a Gentoo system, since sacc doesn't build out of the box without minor patching.
README.md | 37 +++++++++++++++++++++++++++++++++++++ sacc-1.01.ebuild | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+)
diff --git a/README.md b/README.md new file mode 100644 index 0000000..f4b6621 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +Ebuild for portage, Gentoo's package manager. + +**Sacc doesn't compile** on Gentoo out of the box without such an overlay. + +Sacc is a client for the [gopher internet protocol](bitreich.org). It is hosted at + +git://bitreich.org/sacc + +and [mirrored on github](https://github.com/equwal/sacc). + +This currently defaults to the `tinfo` ncurses mode, rather than the `txt` +mode. There is a plan to support txt mode by default when the tinfo and +ncurses use flags are missing. The `txt` mode is still available when compiling +from source by editing `config.mk`. + +# INSTALLATION +``` +cd /var/db/repos/gentoo/net-misc/ +git clone equwal.com:sacc-ebuild +mv sacc-ebuild sacc && cd sacc +ebuild ./sacc-1.01.ebuild manifest unpack compile install +``` + +# Raison d'ĂȘtre +``` +Quentin Rameau <quinq@fifth.space> writes: +> Yes, this highly depends on your system. +> There are several ways to pack those objects, and ncurses made a mess +> with it. +> +> This is something to be solved at integration level, like for a +> packager, or a user knowing how he installed it on its own system! +> Yes, this highly depends on your system. +> There are several ways to pack those objects, and ncurses made a mess +> with it. +``` +Thus, you should sacc this ebuild into your overlay. diff --git a/sacc-1.01.ebuild b/sacc-1.01.ebuild new file mode 100644 index 0000000..bc1e84b --- /dev/null +++ b/sacc-1.01.ebuild @@ -0,0 +1,32 @@ +EAPI=7 + +DESCRIPTION="Gopher client of pure simplicity." +HOMEPAGE="gopher://bitreich.org/1/scm/sacc/log.gph" +SRC_URI="ftp://bitreich.org/releases/sacc/${P}.tgz" +LICENSE="GNU GPLv3" + +SLOT="0" + +KEYWORDS="~amd64" + +# Not sure how to support UI=txt vs UI=ti mode using USE flags. +# IUSE="tinfo ncurses" + +#RDEPEND="tinfo? ( sys-libs/ncurses[tinfo] )" +RDEPEND="sys-libs/ncurses[tinfo]" +DEPEND="${RDEPEND}" + +src_compile() { + # The libs should be somehow depend on the USE flags for UI=txt mode + # UI_TI (default) + # UI=ti + + # UI_TXT + # UI=txt LIBS=" + emake LIBS="-lncurses -ltinfo" UI=ti +} + +src_install() { + # Would be nice if DESTDIR was supported by sacc + emake PREFIX="${D}"/usr MANDIR="${D}"/usr/share/man UI=ti LIBS="-lncurses -ltinfo" install +}