diff options
author | Azat Bahawi <azahi@teknik.io> | 2020-10-05 08:42:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 08:42:57 +0300 |
commit | cdb4996391576265ca57613baabb97529eca38fa (patch) | |
tree | 8a6cf953735b7137546839286b03d1e1e687f19f /app-misc | |
parent | x11-apps/sx: Update ebuild, bump version (diff) | |
parent | app-misc/stag: Add live (diff) |
Merge pull request #8 from caseyavila/master
app-misc/stag: Add package
Diffstat (limited to '')
-rw-r--r-- | app-misc/stag/Manifest | 5 | ||||
-rw-r--r-- | app-misc/stag/files/stag-1.0.0-ncurses.patch | 11 | ||||
-rw-r--r-- | app-misc/stag/files/stag-9999-ncurses.patch | 11 | ||||
-rw-r--r-- | app-misc/stag/metadata.xml | 11 | ||||
-rw-r--r-- | app-misc/stag/stag-1.0.0.ebuild | 36 | ||||
-rw-r--r-- | app-misc/stag/stag-9999.ebuild | 36 |
6 files changed, 110 insertions, 0 deletions
diff --git a/app-misc/stag/Manifest b/app-misc/stag/Manifest new file mode 100644 index 0000000..d5b49f5 --- /dev/null +++ b/app-misc/stag/Manifest @@ -0,0 +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-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/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/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..96d4a7a --- /dev/null +++ b/app-misc/stag/stag-1.0.0.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 +} 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 +} |