diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2014-05-23 13:40:11 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2014-05-23 13:40:11 +0000 |
commit | c8f42b30be7cf6b118713ef23adb4221cc7e3fd1 (patch) | |
tree | 29878bab1f979476fe6019feead389401a3b6636 /app-misc/dvtm | |
parent | Adding category metadata.xml for lxqt-base (diff) | |
download | gentoo-2-c8f42b30be7cf6b118713ef23adb4221cc7e3fd1.tar.gz gentoo-2-c8f42b30be7cf6b118713ef23adb4221cc7e3fd1.tar.bz2 gentoo-2-c8f42b30be7cf6b118713ef23adb4221cc7e3fd1.zip |
Version bump.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'app-misc/dvtm')
-rw-r--r-- | app-misc/dvtm/ChangeLog | 10 | ||||
-rw-r--r-- | app-misc/dvtm/dvtm-0.11.ebuild | 69 |
2 files changed, 77 insertions, 2 deletions
diff --git a/app-misc/dvtm/ChangeLog b/app-misc/dvtm/ChangeLog index 0db81e3ec8a0..db94ea01684e 100644 --- a/app-misc/dvtm/ChangeLog +++ b/app-misc/dvtm/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-misc/dvtm -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/dvtm/ChangeLog,v 1.17 2013/03/25 20:18:00 chithanh Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/dvtm/ChangeLog,v 1.18 2014/05/23 13:40:11 chithanh Exp $ + +*dvtm-0.11 (23 May 2014) + + 23 May 2014; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> + +dvtm-0.11.ebuild: + Version bump. *dvtm-9999 (25 Mar 2013) diff --git a/app-misc/dvtm/dvtm-0.11.ebuild b/app-misc/dvtm/dvtm-0.11.ebuild new file mode 100644 index 000000000000..b04bcfcf50ce --- /dev/null +++ b/app-misc/dvtm/dvtm-0.11.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/dvtm/dvtm-0.11.ebuild,v 1.1 2014/05/23 13:40:11 chithanh Exp $ + +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[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 + + 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}" +} |