1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs
7 DESCRIPTION="Turn English phrases to C or C++ declarations"
8 SRC_URI="ftp://ftp.netsw.org/softeng/lang/c/tools/cdecl/${P}.tar.gz"
9 HOMEPAGE="http://www.boutell.com/lsm/lsmbyid.cgi/002103"
11 KEYWORDS="amd64 ~mips ppc x86"
12 LICENSE="public-domain"
25 !<dev-util/cutils-1.6-r2"
32 epatch "${FILESDIR}/${P}.patch"
33 epatch "${FILESDIR}/${P}-implicit-pointer.patch"
37 CFLAGS="${CFLAGS} --std=c90"
39 CFLAGS="${CFLAGS} -DUSE_READLINE"
40 LIBS="${LIBS} -lreadline -lncurses"
42 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" || die
47 dohard /usr/bin/cdecl /usr/bin/c++decl