diff options
author | 2022-10-06 17:11:49 +0200 | |
---|---|---|
committer | 2022-10-07 12:28:14 +0100 | |
commit | 053e6acf541a65c0dd708f9b23a8b7ff322f3613 (patch) | |
tree | 1ccefc59661c8a08f5900869d655a72fd8efc30a /app-misc | |
parent | app-misc/dvtm: fix implicit function declaration issue (diff) | |
download | gentoo-053e6acf541a65c0dd708f9b23a8b7ff322f3613.tar.gz gentoo-053e6acf541a65c0dd708f9b23a8b7ff322f3613.tar.bz2 gentoo-053e6acf541a65c0dd708f9b23a8b7ff322f3613.zip |
app-misc/dvtm: update EAPI 6 -> 8
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/27663
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/dvtm/dvtm-0.15-r6.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app-misc/dvtm/dvtm-0.15-r6.ebuild b/app-misc/dvtm/dvtm-0.15-r6.ebuild new file mode 100644 index 000000000000..85425583c5af --- /dev/null +++ b/app-misc/dvtm/dvtm-0.15-r6.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit savedconfig toolchain-funcs + +DESCRIPTION="Dynamic virtual terminal manager" +HOMEPAGE="https://www.brain-dump.org/projects/dvtm/" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI=" + https://github.com/martanne/dvtm + https://git.sr.ht/~martanne/dvtm + https://repo.or.cz/dvtm.git + " +else + SRC_URI="https://www.brain-dump.org/projects/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +fi + +LICENSE="MIT" +SLOT="0" + +RDEPEND=">=sys-libs/ncurses-6.1:=[unicode(+)]" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.15-gentoo.patch + "${FILESDIR}"/${PN}-0.15-stop-installing-terminfo.patch +) + +src_prepare() { + default + + restore_config config.h +} + +src_compile() { + tc-export PKG_CONFIG + emake CC="$(tc-getCC)" ${PN} +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" STRIP=true install + + insinto /usr/share/${PN} + newins config.h ${PF}.config.h + + dodoc README.md + + save_config config.h +} + +pkg_postinst() { + elog "This ebuild has support for user defined configs" + elog "Please read this ebuild for more details and re-emerge as needed" + elog "if you want to add or remove functionality for ${PN}" +} |