diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2008-03-14 09:49:20 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2008-03-14 09:49:20 +0000 |
commit | f7761ca16c39fa9b6e2ce6e3e52aff205c16af42 (patch) | |
tree | f5ee6425d81ee81c4b8c37b2bd27322a067b1e00 /app-misc | |
parent | net-p2p/freenet-bin: New upstream release (diff) | |
download | sunrise-f7761ca16c39fa9b6e2ce6e3e52aff205c16af42.tar.gz sunrise-f7761ca16c39fa9b6e2ce6e3e52aff205c16af42.tar.bz2 sunrise-f7761ca16c39fa9b6e2ce6e3e52aff205c16af42.zip |
app-misc/dvtm: Initial commit (bug #206686, initial ebuilds thanks to Christoph Dibak & Jonas Bernoulli, revised by me).
svn path=/sunrise/; revision=5827
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/dvtm/ChangeLog | 9 | ||||
-rw-r--r-- | app-misc/dvtm/Manifest | 4 | ||||
-rw-r--r-- | app-misc/dvtm/dvtm-0.4.ebuild | 66 | ||||
-rw-r--r-- | app-misc/dvtm/metadata.xml | 5 |
4 files changed, 84 insertions, 0 deletions
diff --git a/app-misc/dvtm/ChangeLog b/app-misc/dvtm/ChangeLog new file mode 100644 index 000000000..4612ae870 --- /dev/null +++ b/app-misc/dvtm/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for app-misc/dvtm +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 14 Mar 2008; Tiziano Müller <dev-zero@gentoo.org> +dvtm-0.4.ebuild, + +metadata.xml: + Initial commit (bug #206686, initial ebuilds thanks to Christoph Dibak & + Jonas Bernoulli, revised by me). + diff --git a/app-misc/dvtm/Manifest b/app-misc/dvtm/Manifest new file mode 100644 index 000000000..3d9d951aa --- /dev/null +++ b/app-misc/dvtm/Manifest @@ -0,0 +1,4 @@ +DIST dvtm-0.4.tar.gz 20761 RMD160 80f86da540aff047c2ee8cc01cc73c8fb2a1c0b1 SHA1 bcb12317fb2cd02e6b492560d945d672fcc8e856 SHA256 b64f685dc670ba51c11a28a4c756f8f0c7a84f9068d74b9d1b306ace1baf9f6c +EBUILD dvtm-0.4.ebuild 1652 RMD160 d6848c4652fa7dbc8d9859c85e711d95bd30c0c3 SHA1 32fae0d00319f5539ccbaff3faf9b6d9a76ec0b6 SHA256 8877ae902a5d3ee1839e17128015d6219e2126ba6e0004b458b2e7b5e3afbfb9 +MISC ChangeLog 313 RMD160 e2f740b7389bf1c8e2d7be6f3a0cf42595745f22 SHA1 fef68fc9d4ffcc8f85c9f3b3d6d13b4d0ac91374 SHA256 4a85729e852afcbe26963c3bf2169afd70466a8b3cf42d2252f255baeff9c5a5 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/app-misc/dvtm/dvtm-0.4.ebuild b/app-misc/dvtm/dvtm-0.4.ebuild new file mode 100644 index 000000000..5ce3687dd --- /dev/null +++ b/app-misc/dvtm/dvtm-0.4.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils savedconfig toolchain-funcs + +DESCRIPTION="Dynamic virtual terminal manager" +HOMEPAGE="http://www.brain-dump.org/projects/dvtm/" +SRC_URI="http://www.brain-dump.org/projects/dvtm/${P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="unicode" + +DEPEND="sys-libs/ncurses" +RDEPEND=${DEPEND} + +pkg_setup() { + if use unicode && ! built_with_use sys-libs/ncurses unicode ; then + eerror "dvtm depends on sys-libs/ncurses compiled with unicode support," + eerror "please re-emerge sys-libs/ncurses with the unicode USE flag enabled." + die "Missing unicode USE flag for sys-libs/ncurses" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + 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" + sed -i \ + -e '/strip/d' \ + Makefile || die "sed Makefile failed" + + use savedconfig && restore_config config.h +} + +src_compile() { + local msg="" + local target="dvtm" + use unicode && target="unicode" + use savedconfig && msg=", please check the configfile" + emake CC=$(tc-getCC) ${target} || 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 + + 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}" +} diff --git a/app-misc/dvtm/metadata.xml b/app-misc/dvtm/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/app-misc/dvtm/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>maintainer-wanted</herd> +</pkgmetadata> |