summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2021-07-17 23:29:46 +0200
committerDavid Seifert <soap@gentoo.org>2021-07-17 23:29:46 +0200
commitb905540069a96ef53be457d20f082cec68568cec (patch)
tree7c22211c949fba6a4ba908b5e5c8e6c74c0436e9 /app-misc/dvtm/dvtm-0.15-r5.ebuild
parentapp-misc/cmatrix: Add sys-libs/ncurses[unicode(+)] (diff)
downloadgentoo-b905540069a96ef53be457d20f082cec68568cec.tar.gz
gentoo-b905540069a96ef53be457d20f082cec68568cec.tar.bz2
gentoo-b905540069a96ef53be457d20f082cec68568cec.zip
app-misc/dvtm: Add sys-libs/ncurses[unicode(+)]
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-misc/dvtm/dvtm-0.15-r5.ebuild')
-rw-r--r--app-misc/dvtm/dvtm-0.15-r5.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/app-misc/dvtm/dvtm-0.15-r5.ebuild b/app-misc/dvtm/dvtm-0.15-r5.ebuild
new file mode 100644
index 000000000000..a80b982cbbc7
--- /dev/null
+++ b/app-misc/dvtm/dvtm-0.15-r5.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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="git://repo.or.cz/dvtm.git"
+else
+ SRC_URI="https://www.brain-dump.org/projects/${PN}/${P}.tar.gz"
+ KEYWORDS="amd64 arm 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
+ local msg=""
+ use savedconfig && msg=", please check the configfile"
+ 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}"
+}