diff options
author | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2010-05-04 15:49:45 +0000 |
---|---|---|
committer | Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> | 2010-05-04 15:49:45 +0000 |
commit | d341bf40092d7e9f30862a8478da8e7537028dc3 (patch) | |
tree | d77d667d4387f9bcb221d1302b4c80d1f40bf010 /app-misc/dvtm | |
parent | Stable for HPPA (bug #309293). (diff) | |
download | gentoo-2-d341bf40092d7e9f30862a8478da8e7537028dc3.tar.gz gentoo-2-d341bf40092d7e9f30862a8478da8e7537028dc3.tar.bz2 gentoo-2-d341bf40092d7e9f30862a8478da8e7537028dc3.zip |
Initial import from sunrise, bug #206686
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/dvtm')
-rw-r--r-- | app-misc/dvtm/ChangeLog | 10 | ||||
-rw-r--r-- | app-misc/dvtm/dvtm-0.5.2.ebuild | 61 | ||||
-rw-r--r-- | app-misc/dvtm/metadata.xml | 10 |
3 files changed, 81 insertions, 0 deletions
diff --git a/app-misc/dvtm/ChangeLog b/app-misc/dvtm/ChangeLog new file mode 100644 index 000000000000..940168d9c43c --- /dev/null +++ b/app-misc/dvtm/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for app-misc/dvtm +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/dvtm/ChangeLog,v 1.1 2010/05/04 15:49:45 chithanh Exp $ + +*dvtm-0.5.2 (04 May 2010) + + 04 May 2010; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> + +dvtm-0.5.2.ebuild, +metadata.xml: + Initial import from sunrise, bug #206686 + diff --git a/app-misc/dvtm/dvtm-0.5.2.ebuild b/app-misc/dvtm/dvtm-0.5.2.ebuild new file mode 100644 index 000000000000..624dfb813e46 --- /dev/null +++ b/app-misc/dvtm/dvtm-0.5.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/dvtm/dvtm-0.5.2.ebuild,v 1.1 2010/05/04 15:49:45 chithanh Exp $ + +EAPI=3 + +inherit savedconfig toolchain-funcs + +DESCRIPTION="Dynamic virtual terminal manager" +HOMEPAGE="http://www.brain-dump.org/projects/dvtm/" +SRC_URI="http://www.brain-dump.org/projects/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +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' \ + Makefile || die "sed Makefile failed" + + use savedconfig && 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 || die "emake install failed" + + insinto /usr/share/${PN} + newins config.h ${PF}.config.h || die "newins failed" + + dodoc README || die "dodoc failed" + + 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}" +} diff --git a/app-misc/dvtm/metadata.xml b/app-misc/dvtm/metadata.xml new file mode 100644 index 000000000000..8fe9668040a6 --- /dev/null +++ b/app-misc/dvtm/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>chithanh@gentoo.org</email> + <name>Chí-Thanh Christopher Nguyễn</name> + </maintainer> +</pkgmetadata> + |