You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-tcltk/tktreectrl/tktreectrl-2.2.9.ebuild

44 lines
879 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
inherit eutils
DESCRIPTION="A flexible listbox widget for Tk"
HOMEPAGE="http://tktreectrl.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="tcltk"
SLOT="0"
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
IUSE="X debug shellicon threads"
RDEPEND=">=dev-lang/tk-8.4"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}"/${PV}-as-needed.patch
}
src_configure() {
econf \
$(use_enable threads) \
$(use_enable shellicon) \
$(use_enable amd64 64bit) \
$(use_enable debug symbols) \
$(use_enable X x) \
--enable-shared
}
src_test() {
emake test || die
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc ChangeLog README.txt || die
mv "${ED}"/usr/lib*/treectrl${PV}/htmldoc "${ED}"/usr/share/doc/${P}/
}