summaryrefslogtreecommitdiff
blob: 70fcb39038a850892f1b66cfd2fc68ad6959828c (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
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/ddd/ddd-3.3.12-r1.ebuild,v 1.6 2009/07/24 16:52:08 josejx Exp $

inherit eutils

DESCRIPTION="Graphical openmotif front-end for command-line debuggers"
HOMEPAGE="http://www.gnu.org/software/ddd"
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"

SLOT="0"
LICENSE="GPL-3 LGPL-3 FDL-1.1"
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
IUSE=""

DEPEND=">=sys-devel/gdb-6.5
	>=x11-libs/openmotif-2.3
	x11-libs/libX11
	x11-libs/libXp"

RDEPEND="${DEPEND}
	sci-visualization/gnuplot
	x11-apps/xfontsel"

RESTRICT="test"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-gcc44.patch
}

src_compile() {
	econf || die

	cd "${S}"/ddd
	emake version.h build.h host.h root.h configinfo.C Ddd.ad.h || die "Failed to build headers"

	cd "${S}"
	emake || die
}

src_install() {
	emake DESTDIR="${D}" install || die

	dodoc AUTHORS CREDITS INSTALL NEWS PROBLEMS README TIPS TODO
	cp -R "${S}"/doc/* "${D}"/usr/share/doc/${PF}

	insinto /usr/share/pixmaps
	doins "${S}"/icons/ddd.xpm
}