Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 456722 - app-misc/dvtm-9999.ebuild: added this ebuild
Summary: app-misc/dvtm-9999.ebuild: added this ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-11 03:11 UTC by Joe M
Modified: 2013-03-25 20:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dvtm-9999.ebuild (dvtm-9999.ebuild,1.38 KB, text/plain)
2013-02-11 03:32 UTC, Joe M
Details
Installs dvtm terminfo (dvtm-9999.ebuild,1.36 KB, text/plain)
2013-02-11 18:29 UTC, Joe M
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe M 2013-02-11 03:11:51 UTC
cat dvtm-9999.ebuild                                                                                                                                                              
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit savedconfig toolchain-funcs git-2

DESCRIPTION="Dynamic virtual terminal manager"
HOMEPAGE="http://www.brain-dump.org/projects/dvtm/"
EGIT_REPO_URI="git://repo.or.cz/dvtm.git"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~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"

        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}"
}

Reproducible: Always
Comment 1 Joe M 2013-02-11 03:32:03 UTC
Created attachment 338562 [details]
dvtm-9999.ebuild
Comment 2 Joe M 2013-02-11 18:29:42 UTC
Created attachment 338628 [details]
Installs dvtm terminfo
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-03-25 20:18:22 UTC
Fixed in CVS.