summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-01-02 23:30:17 +0000
committerJustin Lecher <jlec@gentoo.org>2012-01-02 23:30:17 +0000
commita9414523fc63f0b41cba062a7e7f761f4b052e01 (patch)
tree10c5c9072c92e51e688f9859b28cb3e77ab3c541 /dev-tcltk/tkTheme/tkTheme-1.0-r2.ebuild
parentVersion bump (diff)
downloadgentoo-2-a9414523fc63f0b41cba062a7e7f761f4b052e01.tar.gz
gentoo-2-a9414523fc63f0b41cba062a7e7f761f4b052e01.tar.bz2
gentoo-2-a9414523fc63f0b41cba062a7e7f761f4b052e01.zip
Moved to EAPI=4 and autotools-utils.eclass, handle examples static-libs and threading support correctly, added missing deps
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'dev-tcltk/tkTheme/tkTheme-1.0-r2.ebuild')
-rw-r--r--dev-tcltk/tkTheme/tkTheme-1.0-r2.ebuild43
1 files changed, 27 insertions, 16 deletions
diff --git a/dev-tcltk/tkTheme/tkTheme-1.0-r2.ebuild b/dev-tcltk/tkTheme/tkTheme-1.0-r2.ebuild
index 1aab9b401a78..c567992b3684 100644
--- a/dev-tcltk/tkTheme/tkTheme-1.0-r2.ebuild
+++ b/dev-tcltk/tkTheme/tkTheme-1.0-r2.ebuild
@@ -1,38 +1,49 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tkTheme/tkTheme-1.0-r2.ebuild,v 1.3 2010/03/22 20:44:24 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tkTheme/tkTheme-1.0-r2.ebuild,v 1.4 2012/01/02 23:30:17 jlec Exp $
-EAPI="3"
+EAPI=4
-inherit eutils toolchain-funcs
+inherit autotools-utils eutils toolchain-funcs
-DESCRIPTION="Tcl/Tk Theming library."
+DESCRIPTION="Tcl/Tk Theming library"
HOMEPAGE="http://www.xmission.com/~georgeps/Tk_Theme/other/"
SRC_URI="http://www.xmission.com/~georgeps/Tk_Theme/other/${PN}.tgz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
-IUSE=""
+IUSE="debug examples static-libs threads"
DEPEND="
- >=dev-lang/tk-8.3.3
+ dev-lang/tk
+ x11-libs/libXext
+ x11-libs/libXmu
x11-libs/libXpm"
RDEPEND="${DEPEND}"
-S=${WORKDIR}/${PN}
+S="${WORKDIR}"/${PN}
-src_prepare() {
- epatch "${FILESDIR}"/${PV}-Makefile.in.diff
- epatch "${FILESDIR}"/${PV}-configure.diff
- tc-export CC
-}
+PATCHES=(
+ "${FILESDIR}"/${PV}-Makefile.in.diff
+ "${FILESDIR}"/${PV}-configure.diff
+ "${FILESDIR}"/${PV}-cflags.patch
+ )
src_configure() {
- econf --with-tcl="${EPREFIX}"/usr/$(get_libdir) --with-tk="${EPREFIX}"/usr/$(get_libdir)
+ tc-export CC
+ local myeconfargs=(
+ --with-tcl="${EPREFIX}/usr/$(get_libdir)"
+ --with-tk="${EPREFIX}/usr/$(get_libdir)"
+ --with-x
+ $(use_with debug symbols)
+ $(use_enable threads)
+ )
+ autotools-utils_src_configure
}
src_install() {
- emake DESTDIR="${D}" install || die
- dodoc AUTHORS ChangeLog README TODO || die
+ autotools-utils_src_install
+ insinto /usr/share/${PN}
+ use examples && doins -r demo
}