diff options
author | Casey Avila <casey@theavilas.org> | 2020-10-04 15:12:48 -0700 |
---|---|---|
committer | Casey Avila <casey@theavilas.org> | 2020-10-04 15:12:48 -0700 |
commit | 5d2ea5ef009436747b152e270552df7d437a40ed (patch) | |
tree | 8a6cf953735b7137546839286b03d1e1e687f19f /app-misc | |
parent | Update TODO.md (diff) |
app-misc/stag: Add live
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/stag/Manifest | 4 | ||||
-rw-r--r-- | app-misc/stag/files/stag-9999-ncurses.patch | 11 | ||||
-rw-r--r-- | app-misc/stag/stag-1.0.0.ebuild | 15 | ||||
-rw-r--r-- | app-misc/stag/stag-9999.ebuild | 36 |
4 files changed, 64 insertions, 2 deletions
diff --git a/app-misc/stag/Manifest b/app-misc/stag/Manifest index 876a419..d5b49f5 100644 --- a/app-misc/stag/Manifest +++ b/app-misc/stag/Manifest @@ -1 +1,5 @@ +AUX stag-1.0.0-ncurses.patch 368 BLAKE2B 6659453d983da0525de6eabc42513920ce2a75c3e939323e0616ecfd880067d89bfabfee165bbb7f0a3eb67f2c1db9a510cfe2d3953377c96e6258f4d0ce23fb SHA512 e873cdb1d01775703f03261c1f2022a03389f72982f7116f1c5fd5009ff8bdc9d3aab9549dbf716646c1e05c89659f8597f13edef02539565d4839da8d04d06a +AUX stag-9999-ncurses.patch 368 BLAKE2B 6659453d983da0525de6eabc42513920ce2a75c3e939323e0616ecfd880067d89bfabfee165bbb7f0a3eb67f2c1db9a510cfe2d3953377c96e6258f4d0ce23fb SHA512 e873cdb1d01775703f03261c1f2022a03389f72982f7116f1c5fd5009ff8bdc9d3aab9549dbf716646c1e05c89659f8597f13edef02539565d4839da8d04d06a DIST stag-1.0.0.tar.gz 7604 BLAKE2B 886399f4a9d8732aa9cd3a7f384b426698628df4fea377b0553a63e4bee92eb6156dd26bb2c0b6c95076e8eec6db5b1447c37c5e8138a814ea72a70cb844c096 SHA512 a668f8fbee3ffe28466f1fead3f85cb0415547f0a84c40c6c0fee6ca438b9f73805bcc7ae2d0029ed0b463524ac7042568bf54ecc803744ed3ff88471a37320e +EBUILD stag-1.0.0.ebuild 699 BLAKE2B b01710176dee265d360f86e57781910a5f2aa88cf52dfe6a61f23a0672170b0e6892e16b8dd1a8bbccd194fd34fbcbd189f120371ee9204cd61be42141899456 SHA512 792683155e905a5e0f6240b1ba064b4e145312c396d0dfe2eb71ba2328158fef40ee839c7a9fe8b4f1c2944eb7b5631004f28cbc0e3dc3d84f7e281abad178c1 +EBUILD stag-9999.ebuild 699 BLAKE2B b01710176dee265d360f86e57781910a5f2aa88cf52dfe6a61f23a0672170b0e6892e16b8dd1a8bbccd194fd34fbcbd189f120371ee9204cd61be42141899456 SHA512 792683155e905a5e0f6240b1ba064b4e145312c396d0dfe2eb71ba2328158fef40ee839c7a9fe8b4f1c2944eb7b5631004f28cbc0e3dc3d84f7e281abad178c1 diff --git a/app-misc/stag/files/stag-9999-ncurses.patch b/app-misc/stag/files/stag-9999-ncurses.patch new file mode 100644 index 0000000..2830134 --- /dev/null +++ b/app-misc/stag/files/stag-9999-ncurses.patch @@ -0,0 +1,11 @@ +--- a/Makefile 2020-10-02 20:44:39.606575295 -0700 ++++ b/Makefile 2020-10-02 20:45:28.695961593 -0700 +@@ -1,7 +1,7 @@ + CC ?= gcc + CFLAGS=-Wall -Werror -Wextra -std=c99 -pedantic -Wno-unused-parameter + # D_BSD_SOURCE for strsep +-LIBS=-lncurses -lm -D_DEFAULT_SOURCE ++LIBS=-lncurses -ltinfo -lm -D_DEFAULT_SOURCE + PREFIX ?= /usr/local + + .PHONY: install uninstall clean diff --git a/app-misc/stag/stag-1.0.0.ebuild b/app-misc/stag/stag-1.0.0.ebuild index 68b9c88..96d4a7a 100644 --- a/app-misc/stag/stag-1.0.0.ebuild +++ b/app-misc/stag/stag-1.0.0.ebuild @@ -3,13 +3,24 @@ EAPI=7 +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/seenaburns/stag.git" +fi + DESCRIPTION="Streaming bar graphs. For stats and stuff." HOMEPAGE="https://github.com/seenaburns/stag" -SRC_URI="https://github.com/seenaburns/stag/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +if [[ ${PV} == *9999 ]]; then + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://github.com/seenaburns/stag/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="sys-libs/ncurses" diff --git a/app-misc/stag/stag-9999.ebuild b/app-misc/stag/stag-9999.ebuild new file mode 100644 index 0000000..96d4a7a --- /dev/null +++ b/app-misc/stag/stag-9999.ebuild @@ -0,0 +1,36 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/seenaburns/stag.git" +fi + +DESCRIPTION="Streaming bar graphs. For stats and stuff." +HOMEPAGE="https://github.com/seenaburns/stag" + +if [[ ${PV} == *9999 ]]; then + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://github.com/seenaburns/stag/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="" + +DEPEND="sys-libs/ncurses" +RDEPEND="${DEPEND}" +BDEPEND="" + +PATCHES=( + "${FILESDIR}/${P}-ncurses.patch" +) + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install +} |