From 7528d3496154cd0a8daf8ada7891928798a57565 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Fri, 25 Jun 2021 20:19:52 +0300 Subject: meta: Refactor ebuilds and directory structure - Drop "-rn" (revisions) fork 9999 (live) versions. - Versioned ebuilds are now symlinked to 9999 (live) versions. This should be followed for every package from now on. - Apply `shfmt` on all ebuilds. - Update metadata. --- app-misc/afetch/afetch-9999-r1.ebuild | 56 -------------------------------- app-misc/afetch/afetch-9999.ebuild | 54 ++++++++++++++++++++++++++++++ app-misc/colors/colors-9999.ebuild | 2 +- app-misc/pfetch/pfetch-0.6.0-r1.ebuild | 33 +------------------ app-misc/stag/stag-1.0.0.ebuild | 50 +--------------------------- app-misc/tty-clock/tty-clock-2.3.ebuild | 41 +---------------------- app-misc/tty-clock/tty-clock-9999.ebuild | 4 +-- app-misc/ufetch/ufetch-0.2.ebuild | 38 +--------------------- app-misc/zenbu/zenbu-9999.ebuild | 4 +-- 9 files changed, 62 insertions(+), 220 deletions(-) delete mode 100644 app-misc/afetch/afetch-9999-r1.ebuild create mode 100644 app-misc/afetch/afetch-9999.ebuild mode change 100644 => 120000 app-misc/pfetch/pfetch-0.6.0-r1.ebuild mode change 100644 => 120000 app-misc/stag/stag-1.0.0.ebuild mode change 100644 => 120000 app-misc/tty-clock/tty-clock-2.3.ebuild mode change 100644 => 120000 app-misc/ufetch/ufetch-0.2.ebuild (limited to 'app-misc') diff --git a/app-misc/afetch/afetch-9999-r1.ebuild b/app-misc/afetch/afetch-9999-r1.ebuild deleted file mode 100644 index 61e8787..0000000 --- a/app-misc/afetch/afetch-9999-r1.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -if [[ ${PV} == *9999 ]]; then - SCM="git-r3" - EGIT_REPO_URI="https://github.com/13-CF/afetch.git" -fi - -inherit savedconfig toolchain-funcs ${SCM} - -DESCRIPTION="Simple system info written in C" -HOMEPAGE="https://github.com/13-CF/afetch" - -if [[ ${PV} == *9999 ]]; then - SRC_URI="" - KEYWORDS="" -else - SRC_URI="https://github.com/13-CF/afetch/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="GPL-3" -SLOT="0" -IUSE="" - -DEPEND="" -RDEPEND="${DEPEND}" -BDEPEND="" - -DOCS=( - README.md -) - -src_prepare() { - sed -e 's/^CFLAGS =/CFLAGS +=/' \ - -e 's/-O2//g' \ - -i Makefile || die - - restore_config src/config.h - - default -} - -src_compile() { - emake \ - CC="$(tc-getCC)" -} - -src_install() { - save_config src/config.h - - dobin ${PN} - doman src/${PN}.1 -} diff --git a/app-misc/afetch/afetch-9999.ebuild b/app-misc/afetch/afetch-9999.ebuild new file mode 100644 index 0000000..ca1fc83 --- /dev/null +++ b/app-misc/afetch/afetch-9999.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +if [[ ${PV} == *9999 ]]; then + SCM="git-r3" + EGIT_REPO_URI="https://github.com/13-CF/afetch.git" +fi + +inherit savedconfig toolchain-funcs ${SCM} + +DESCRIPTION="Simple system info written in C" +HOMEPAGE="https://github.com/13-CF/afetch" + +if [[ ${PV} == *9999 ]]; then + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://github.com/13-CF/afetch/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3" +SLOT="0" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND="" + +DOCS=(README.md) + +src_prepare() { + sed -e 's/^CFLAGS =/CFLAGS +=/' \ + -e 's/-O2//g' \ + -i Makefile || die + + restore_config src/config.h + + default +} + +src_compile() { + emake \ + CC="$(tc-getCC)" +} + +src_install() { + save_config src/config.h + + dobin ${PN} + doman src/${PN}.1 +} diff --git a/app-misc/colors/colors-9999.ebuild b/app-misc/colors/colors-9999.ebuild index 0783f49..5af7008 100644 --- a/app-misc/colors/colors-9999.ebuild +++ b/app-misc/colors/colors-9999.ebuild @@ -18,7 +18,7 @@ DEPEND="media-libs/libpng" RDEPEND="${DEPEND}" BDEPEND="" -src_install () { +src_install() { dobin ${PN} doman ${PN}.1 } diff --git a/app-misc/pfetch/pfetch-0.6.0-r1.ebuild b/app-misc/pfetch/pfetch-0.6.0-r1.ebuild deleted file mode 100644 index af063ae..0000000 --- a/app-misc/pfetch/pfetch-0.6.0-r1.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2021 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/dylanaraps/pfetch.git" -fi - -DESCRIPTION="A pretty system information tool written in POSIX sh" -HOMEPAGE="https://github.com/dylanaraps/pfetch" - -if [[ ${PV} == *9999 ]]; then - SRC_URI="" - KEYWORDS="" -else - SRC_URI="https://github.com/dylanaraps/pfetch/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="" - -DEPEND="" -RDEPEND="${DEPEND}" -BDEPEND="" - -src_install() { - dobin ${PN} -} diff --git a/app-misc/pfetch/pfetch-0.6.0-r1.ebuild b/app-misc/pfetch/pfetch-0.6.0-r1.ebuild new file mode 120000 index 0000000..2652d03 --- /dev/null +++ b/app-misc/pfetch/pfetch-0.6.0-r1.ebuild @@ -0,0 +1 @@ +pfetch-9999.ebuild \ No newline at end of file diff --git a/app-misc/stag/stag-1.0.0.ebuild b/app-misc/stag/stag-1.0.0.ebuild deleted file mode 100644 index 1a58fba..0000000 --- a/app-misc/stag/stag-1.0.0.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -if [[ ${PV} == *9999 ]]; then - SCM="git-r3" - EGIT_REPO_URI="https://github.com/seenaburns/stag.git" -fi - -inherit toolchain-funcs ${SCM} - -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="" - -src_prepare() { - sed -e 's/^CFLAGS=/CFLAGS+=/' \ - -e 's/-lncurses/-lncurses -ltinfo/' \ - -i Makefile || die - - default -} - -src_compile() { - emake \ - CC="$(tc-getCC)" -} - -src_install() { - emake install \ - DESTDIR="${D}" \ - PREFIX="${EPREFIX}/usr" -} diff --git a/app-misc/stag/stag-1.0.0.ebuild b/app-misc/stag/stag-1.0.0.ebuild new file mode 120000 index 0000000..30d3420 --- /dev/null +++ b/app-misc/stag/stag-1.0.0.ebuild @@ -0,0 +1 @@ +stag-9999.ebuild \ No newline at end of file diff --git a/app-misc/tty-clock/tty-clock-2.3.ebuild b/app-misc/tty-clock/tty-clock-2.3.ebuild deleted file mode 100644 index f94130e..0000000 --- a/app-misc/tty-clock/tty-clock-2.3.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2021 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/xorg62/tty-clock.git" -fi - -DESCRIPTION="Clock using lib ncurses" -HOMEPAGE="https://github.com/xorg62/tty-clock" - -if [[ ${PV} == *9999 ]]; then - SRC_URI="" - KEYWORDS="" -else - SRC_URI="https://github.com/xorg62/tty-clock/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="BSD" -SLOT="0" -IUSE="" - -DEPEND="sys-libs/ncurses" -RDEPEND="${DEPEND}" -BDEPEND="virtual/pkgconfig" - -DOCS=( - README -) - -src_install() { - emake install \ - DESTDIR="${D}" \ - PREFIX="${EPREFIX}/usr" - - einstalldocs -} diff --git a/app-misc/tty-clock/tty-clock-2.3.ebuild b/app-misc/tty-clock/tty-clock-2.3.ebuild new file mode 120000 index 0000000..4ed03f3 --- /dev/null +++ b/app-misc/tty-clock/tty-clock-2.3.ebuild @@ -0,0 +1 @@ +tty-clock-9999.ebuild \ No newline at end of file diff --git a/app-misc/tty-clock/tty-clock-9999.ebuild b/app-misc/tty-clock/tty-clock-9999.ebuild index f94130e..9fb9df0 100644 --- a/app-misc/tty-clock/tty-clock-9999.ebuild +++ b/app-misc/tty-clock/tty-clock-9999.ebuild @@ -27,9 +27,7 @@ DEPEND="sys-libs/ncurses" RDEPEND="${DEPEND}" BDEPEND="virtual/pkgconfig" -DOCS=( - README -) +DOCS=(README) src_install() { emake install \ diff --git a/app-misc/ufetch/ufetch-0.2.ebuild b/app-misc/ufetch/ufetch-0.2.ebuild deleted file mode 100644 index eeb3580..0000000 --- a/app-misc/ufetch/ufetch-0.2.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2021 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://gitlab.com/jschx/ufetch.git" -fi - -DESCRIPTION="Tiny system info for Unix-like operating systems" -HOMEPAGE="https://gitlab.com/jschx/ufetch" - -if [[ ${PV} == *9999 ]]; then - SRC_URI="" - KEYWORDS="" -else - SRC_URI="https://gitlab.com/jschx/ufetch/-/archive/v${PV}/ufetch-v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="ISC" -SLOT="0" -IUSE="" - -DEPEND="" -RDEPEND="${DEPEND}" -BDEPEND="" - -if [[ ${PV} != *9999 ]]; then - S="${WORKDIR}/${PN}-v${PV}" -fi - -src_install() { - exeinto /usr/bin - newexe ufetch-gentoo ufetch -} diff --git a/app-misc/ufetch/ufetch-0.2.ebuild b/app-misc/ufetch/ufetch-0.2.ebuild new file mode 120000 index 0000000..1513177 --- /dev/null +++ b/app-misc/ufetch/ufetch-0.2.ebuild @@ -0,0 +1 @@ +ufetch-9999.ebuild \ No newline at end of file diff --git a/app-misc/zenbu/zenbu-9999.ebuild b/app-misc/zenbu/zenbu-9999.ebuild index fefb54d..e5bd066 100644 --- a/app-misc/zenbu/zenbu-9999.ebuild +++ b/app-misc/zenbu/zenbu-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7,8,9} ) +PYTHON_COMPAT=(python3_{7,8,9}) inherit distutils-r1 git-r3 @@ -16,7 +16,7 @@ SLOT="0" KEYWORDS="" IUSE="" -DOCS=( README.rst LICENSE example ) +DOCS=(README.rst LICENSE example) DEPEND="dev-python/argcomplete[${PYTHON_USEDEP}] dev-python/colorlog[${PYTHON_USEDEP}] -- cgit 1.4.1