summaryrefslogtreecommitdiff
blob: b7aecb63ebf7d8f4bc7c8ed50fdff1f2ac08e9a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5

inherit autotools-utils eutils

MY_PN="TkDND"

DESCRIPTION="Extension that adds native drag & drop capabilities to the tk toolkit"
HOMEPAGE="http://www.ellogon.org/petasis/tcltk-projects/tkdnd/"
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}/${MY_PN}%20${PV}/${P/-/}-src.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="debug threads X"

DEPEND="dev-lang/tk:="
RDEPEND=${DEPEND}

S=${WORKDIR}/${P/-/}

RESTRICT="test"

src_prepare() {
	sed \
		-e 's:-O2::g' \
		-e 's:-fomit-frame-pointer::g' \
		-e 's:-pipe::g' \
		-i configure tclconfig/tcl.m4 || die
}

src_configure() {
	local myeconfargs
	use X && myeconfargs+=( --with-x )
	use debug && myeconfargs+=( --with-symbols )
	use threads && myeconfargs+=( --enable-threads )
	autotools-utils_src_configure
}