diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/dvtm/dvtm-9999.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/dvtm/dvtm-9999.ebuild')
-rw-r--r-- | app-misc/dvtm/dvtm-9999.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/app-misc/dvtm/dvtm-9999.ebuild b/app-misc/dvtm/dvtm-9999.ebuild new file mode 100644 index 000000000000..77565fbdbd03 --- /dev/null +++ b/app-misc/dvtm/dvtm-9999.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2016 Gentoo Foundation +# 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/" + +if [[ ${PV} == 9999* ]]; then + inherit git-2 + EGIT_REPO_URI="git://repo.or.cz/dvtm.git" + KEYWORDS="" +else + SRC_URI="http://www.brain-dump.org/projects/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="unicode" + +DEPEND="sys-libs/ncurses:0[unicode?]" +RDEPEND=${DEPEND} + +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.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}" +} |