diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/dvtm/dvtm-0.15-r2.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/dvtm/dvtm-0.15-r2.ebuild')
-rw-r--r-- | app-misc/dvtm/dvtm-0.15-r2.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app-misc/dvtm/dvtm-0.15-r2.ebuild b/app-misc/dvtm/dvtm-0.15-r2.ebuild new file mode 100644 index 000000000000..bc1f7d84a70e --- /dev/null +++ b/app-misc/dvtm/dvtm-0.15-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit savedconfig toolchain-funcs + +DESCRIPTION="Dynamic virtual terminal manager" +HOMEPAGE="http://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="http://www.brain-dump.org/projects/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi + +LICENSE="MIT" +SLOT="0" + +COMMON_DEPEND="sys-libs/ncurses:0=[unicode]" +RDEPEND="${COMMON_DEPEND} + !>=sys-libs/ncurses-6.1 +" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.15-gentoo.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} || die "emake failed${msg}" +} + +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}" +} |