| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tkdnd/tkdnd-2.2.ebuild,v 1.1 2012/01/06 17:49:33 jlec Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools-utils eutils
|
| 8 |
|
| 9 |
MY_PN="TkDND"
|
| 10 |
|
| 11 |
DESCRIPTION="Extension that adds native drag & drop capabilities to the tk toolkit"
|
| 12 |
HOMEPAGE="http://www.ellogon.org/petasis/tcltk-projects/tkdnd/"
|
| 13 |
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}/${MY_PN}%20${PV}/${P/-/}.tar.gz"
|
| 14 |
|
| 15 |
LICENSE="BSD"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
| 18 |
IUSE="debug threads X"
|
| 19 |
|
| 20 |
RESTRICT="test"
|
| 21 |
|
| 22 |
DEPEND="dev-lang/tk"
|
| 23 |
RDEPEND=${DEPEND}
|
| 24 |
|
| 25 |
S=${WORKDIR}/${P/-/}
|
| 26 |
|
| 27 |
src_prepare() {
|
| 28 |
sed \
|
| 29 |
-e 's:-O2::g' \
|
| 30 |
-e 's:-fomit-frame-pointer::g' \
|
| 31 |
-e 's:-pipe::g' \
|
| 32 |
-i configure tclconfig/tcl.m4 || die
|
| 33 |
}
|
| 34 |
|
| 35 |
src_configure() {
|
| 36 |
local myeconfargs
|
| 37 |
use X && myeconfargs+=( --with-x )
|
| 38 |
use debug && myeconfargs+=( --with-symbols )
|
| 39 |
use threads && myeconfargs+=( --enable-threads )
|
| 40 |
autotools-utils_src_configure
|
| 41 |
}
|