You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.5 KiB
69 lines
1.5 KiB
7 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit savedconfig toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="Dynamic virtual terminal manager"
|
||
|
HOMEPAGE="http://www.brain-dump.org/projects/dvtm/"
|
||
|
|
||
7 years ago
|
if [[ ${PV} == *9999 ]]; then
|
||
|
inherit git-r3
|
||
10 years ago
|
EGIT_REPO_URI="git://repo.or.cz/dvtm.git"
|
||
|
else
|
||
|
SRC_URI="http://www.brain-dump.org/projects/${PN}/${P}.tar.gz"
|
||
9 years ago
|
KEYWORDS="amd64 arm x86"
|
||
10 years ago
|
fi
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
IUSE="unicode"
|
||
|
|
||
7 years ago
|
DEPEND="sys-libs/ncurses:0=[unicode?]"
|
||
7 years ago
|
RDEPEND="${DEPEND}
|
||
|
!>=sys-libs/ncurses-6.1"
|
||
10 years ago
|
|
||
|
src_prepare() {
|
||
|
sed -i \
|
||
|
-e 's|FLAGS =|FLAGS +=|' \
|
||
|
-e 's|-I/usr/local/include||' \
|
||
|
-e 's|-L/usr/local/lib||' \
|
||
|
-e 's|-Os||' \
|
||
|
config.mk || die "sed config.mk failed"
|
||
|
use unicode || {
|
||
|
sed -i \
|
||
|
-e 's|-lncursesw|-lncurses|' \
|
||
|
config.mk || die "sed config.mk failed"
|
||
|
}
|
||
|
sed -i \
|
||
|
-e '/strip/d' \
|
||
|
-e 's:@tic :@tic -o ${DESTDIR}${PREFIX}/share/terminfo :g' \
|
||
|
Makefile || die "sed Makefile failed"
|
||
|
|
||
|
restore_config config.h
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
local msg=""
|
||
|
use savedconfig && msg=", please check the configfile"
|
||
|
emake CC=$(tc-getCC) ${PN} || die "emake failed${msg}"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake DESTDIR="${D}" PREFIX="/usr" install
|
||
|
|
||
|
insinto /usr/share/${PN}
|
||
|
newins config.h ${PF}.config.h
|
||
|
|
||
|
dodoc README
|
||
|
|
||
|
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}"
|
||
|
}
|