/[gentoo-x86]/dev-libs/cdk/cdk-5.0.20090215.ebuild
Gentoo

Contents of /dev-libs/cdk/cdk-5.0.20090215.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Apr 14 17:50:56 2012 UTC (2 years, 8 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +4 -3 lines
Fix parallel build issue for current stable too (bug #411879).

(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)

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-libs/cdk/cdk-5.0.20090215.ebuild,v 1.8 2011/03/25 20:08:37 xarthisius Exp $
4
5 EAPI=3
6
7 inherit eutils versionator toolchain-funcs
8
9 MY_P="${PN}-$(replace_version_separator 2 -)"
10 DESCRIPTION="A library of curses widgets"
11 HOMEPAGE="http://dickey.his.com/cdk/cdk.html"
12 SRC_URI="ftp://invisible-island.net/cdk/${MY_P}.tgz"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
17 IUSE="examples"
18
19 DEPEND=">=sys-libs/ncurses-5.2"
20 RDEPEND="${DEPEND}"
21
22 S="${WORKDIR}/${MY_P}"
23
24 src_prepare() {
25 epatch "${FILESDIR}"/${P}-ldflags.patch \
26 "${FILESDIR}"/${PN}-5.0.20120323-parallel-make.patch
27 }
28
29 src_configure() {
30 econf --with-ncurses --with-libtool
31 }
32
33 src_compile() {
34 tc-export CC
35 default
36 }
37
38 src_install() {
39 emake \
40 DESTDIR="${D}" \
41 DOCUMENT_DIR="${ED}/usr/share/doc/${MY_P}" install \
42 || die "emake install failed"
43
44 if $(use examples); then
45 for x in include c++ demos examples cli cli/utils cli/samples; do
46 docinto $x
47 find $x -maxdepth 1 -mindepth 1 -type f -print0 | xargs -0 dodoc
48 done
49 fi
50 }

  ViewVC Help
Powered by ViewVC 1.1.20