summaryrefslogtreecommitdiff
blob: b49dd29174e7d638767cd394d5f14fd4c50335ea (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pycxx/pycxx-5.5.0.ebuild,v 1.1 2009/02/15 21:20:08 patrick Exp $

EAPI=2
inherit eutils distutils

DESCRIPTION="Set of facilities to extend Python with C++"
HOMEPAGE="http://cxx.sourceforge.net"
SRC_URI="mirror://sourceforge/cxx/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"

PYTHON_MODNAME="CXX"

src_prepare() {
	epatch "${FILESDIR}"/${PN}-5.4.2-headers-c.patch
}

src_install() {
	distutils_src_install
	if use doc; then
		dohtml Doc/{PyCXX.html,style.css} || die "dohtml failed"
	fi

	if use examples; then
		docinto examples
		dodoc Demo/* || die "dodoc failed"
	fi
}