2021-07-19 15:36:07 +03:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2018-01-01 14:56:14 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
|
|
|
|
inherit savedconfig toolchain-funcs
|
|
|
|
|
|
|
|
DESCRIPTION="Dynamic virtual terminal manager"
|
2020-06-04 13:24:56 +03:00
|
|
|
HOMEPAGE="https://www.brain-dump.org/projects/dvtm/"
|
2018-01-01 14:56:14 +03:00
|
|
|
|
|
|
|
if [[ ${PV} == *9999 ]]; then
|
|
|
|
inherit git-r3
|
2021-11-15 09:12:44 +03:00
|
|
|
EGIT_REPO_URI="https://repo.or.cz/dvtm.git"
|
2018-01-01 14:56:14 +03:00
|
|
|
else
|
2020-06-04 13:24:56 +03:00
|
|
|
SRC_URI="https://www.brain-dump.org/projects/${PN}/${P}.tar.gz"
|
2018-01-01 14:56:14 +03:00
|
|
|
KEYWORDS="~amd64 ~arm ~x86"
|
|
|
|
fi
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
|
2021-07-19 15:36:07 +03:00
|
|
|
COMMON_DEPEND="sys-libs/ncurses:=[unicode(+)]"
|
2018-03-30 19:27:59 +03:00
|
|
|
RDEPEND="${COMMON_DEPEND}
|
|
|
|
!>=sys-libs/ncurses-6.1
|
|
|
|
"
|
|
|
|
DEPEND="${COMMON_DEPEND}
|
2018-01-01 14:56:14 +03:00
|
|
|
virtual/pkgconfig
|
|
|
|
"
|
2018-03-30 19:27:59 +03:00
|
|
|
|
2018-01-01 14:56:14 +03:00
|
|
|
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"
|
2019-12-12 01:01:49 +03:00
|
|
|
emake CC=$(tc-getCC) ${PN}
|
2018-01-01 14:56:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
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}"
|
|
|
|
}
|