aboutsummaryrefslogtreecommitdiff
blob: 637022753cc2f2145ac3a3321627cca0ce9e6037 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython"

inherit eutils distutils

MY_PN="CDDB"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="CDDB Module for Python"
HOMEPAGE="http://sourceforge.net/projects/cddb-py/"
SRC_URI="mirror://sourceforge/cddb-py/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ia64 ppc ppc64 sparc x86"
IUSE=""

S="${WORKDIR}/${MY_P}"

PYTHON_MODNAME="CDDB.py DiscID.py"

distutils_src_compile_pre_hook() {
	evar_push CFLAGS CXXFLAGS 
	CFLAGS="${CFLAGS} $("${EPYTHON}"-config --cflags)"
	CXXFLAGS="${CFLAGS} $("${EPYTHON}"-config --cflags)"
	export CFLAGS CXXFLAGS
}

distutils_src_compile_post_hook() {
	evar_pop 2
}