2012-02-08 10:16:21 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-02-20 21:44:55 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfltk/pyfltk-1.3.0.ebuild,v 1.5 2012/02/20 14:27:11 patrick Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-02-08 10:16:21 +04:00
|
|
|
# FIXME: MakeSwig.py execution should be made work from pyfltk-1.1.5.ebuild
|
2012-02-08 09:22:47 +04:00
|
|
|
|
2012-02-08 10:16:21 +04:00
|
|
|
EAPI=4
|
|
|
|
PYTHON_DEPEND="2"
|
2012-02-06 16:39:49 +04:00
|
|
|
SUPPORT_PYTHON_ABIS="1"
|
2012-02-20 21:44:55 +04:00
|
|
|
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-**"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
inherit distutils eutils
|
|
|
|
|
|
|
|
MY_P=pyFltk-${PV}
|
|
|
|
|
|
|
|
DESCRIPTION="Python interface to Fltk library"
|
|
|
|
HOMEPAGE="http://pyfltk.sourceforge.net/"
|
|
|
|
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2"
|
|
|
|
SLOT="0"
|
2012-02-08 10:16:21 +04:00
|
|
|
KEYWORDS="amd64 ppc ppc64 x86"
|
|
|
|
IUSE="doc"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-02-08 10:16:21 +04:00
|
|
|
DEPEND=">=x11-libs/fltk-1.3.0:1[opengl]"
|
|
|
|
RDEPEND="${DEPEND}"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing")
|
2012-02-08 10:16:21 +04:00
|
|
|
|
2012-02-08 09:22:47 +04:00
|
|
|
DOCS="CHANGES README TODO"
|
2012-02-08 10:16:21 +04:00
|
|
|
PYTHON_MODNAME="fltk"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
|
|
|
|
|
|
src_prepare() {
|
2012-02-08 10:16:21 +04:00
|
|
|
distutils_src_prepare
|
2012-02-06 16:39:49 +04:00
|
|
|
epatch "${FILESDIR}"/${P}-linux-3.x-detection.patch
|
2012-02-08 10:16:21 +04:00
|
|
|
|
|
|
|
# Disable installation of documentation and tests.
|
|
|
|
sed -i -e '/package_data=/d' setup.py || die
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
distutils_src_install
|
|
|
|
|
2012-02-08 10:16:21 +04:00
|
|
|
if use doc; then
|
|
|
|
dohtml fltk/docs/*
|
|
|
|
fi
|
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|