diff options
author | Casey Avila <casey@theavilas.org> | 2020-10-02 21:23:33 -0700 |
---|---|---|
committer | Casey Avila <casey@theavilas.org> | 2020-10-02 21:23:33 -0700 |
commit | 01c481ccab62bf520a83bce5d4021b9b5b647654 (patch) | |
tree | 1e5f4d571bb0a3e83f3e0b5a137d0b49a276ed01 /app-misc | |
parent | x11-apps/sx: Update ebuild, bump version (diff) |
app-misc/stag: Add package
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/stag/Manifest | 1 | ||||
-rw-r--r-- | app-misc/stag/files/stag-1.0.0-ncurses.patch | 11 | ||||
-rw-r--r-- | app-misc/stag/metadata.xml | 11 | ||||
-rw-r--r-- | app-misc/stag/stag-1.0.0.ebuild | 25 |
4 files changed, 48 insertions, 0 deletions
diff --git a/app-misc/stag/Manifest b/app-misc/stag/Manifest new file mode 100644 index 0000000..876a419 --- /dev/null +++ b/app-misc/stag/Manifest @@ -0,0 +1 @@ +DIST stag-1.0.0.tar.gz 7604 BLAKE2B 886399f4a9d8732aa9cd3a7f384b426698628df4fea377b0553a63e4bee92eb6156dd26bb2c0b6c95076e8eec6db5b1447c37c5e8138a814ea72a70cb844c096 SHA512 a668f8fbee3ffe28466f1fead3f85cb0415547f0a84c40c6c0fee6ca438b9f73805bcc7ae2d0029ed0b463524ac7042568bf54ecc803744ed3ff88471a37320e diff --git a/app-misc/stag/files/stag-1.0.0-ncurses.patch b/app-misc/stag/files/stag-1.0.0-ncurses.patch new file mode 100644 index 0000000..2830134 --- /dev/null +++ b/app-misc/stag/files/stag-1.0.0-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/metadata.xml b/app-misc/stag/metadata.xml new file mode 100644 index 0000000..1121666 --- /dev/null +++ b/app-misc/stag/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>casey@theavilas.org</email> + <name>casey</name> + </maintainer> + <upstream> + <remote-id type="github">seenaburns/stag</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-misc/stag/stag-1.0.0.ebuild b/app-misc/stag/stag-1.0.0.ebuild new file mode 100644 index 0000000..68b9c88 --- /dev/null +++ b/app-misc/stag/stag-1.0.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-libs/ncurses" +RDEPEND="${DEPEND}" +BDEPEND="" + +PATCHES=( + "${FILESDIR}/${P}-ncurses.patch" +) + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install +} |