/[gentoo-x86]/dev-python/apse/apse-0.2-r3.ebuild
Gentoo

Contents of /dev-python/apse/apse-0.2-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Tue Apr 14 12:49:15 2015 UTC (5 years, 2 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Stable for ia64, wrt bug #540290

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="ia64", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/apse/apse-0.2-r3.ebuild,v 1.9 2015/04/08 08:05:05 mgorny Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 pypy )
7
8 inherit distutils-r1
9
10 MY_P="Apse-${PV}"
11
12 DESCRIPTION="Approximate String Matching in Python"
13 HOMEPAGE="http://www.personal.psu.edu/staff/i/u/iua1/python/apse/"
14 SRC_URI="http://www.personal.psu.edu/staff/i/u/iua1/python/${PN}/dist/${MY_P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="amd64 ia64 ppc ppc64 x86"
19 IUSE=""
20
21 RDEPEND=""
22 DEPEND="dev-lang/swig:1"
23
24 S="${WORKDIR}/${MY_P}"
25
26 python_prepare_all() {
27 # Prevent the build system from calling swig over and over again.
28 sed -i -e 's:Apse.i:Apse_wrap.c:' setup.py || die
29
30 distutils-r1_python_prepare_all
31 }
32
33 python_configure_all() {
34 set -- swig1.3 -python -o Apse_wrap.c Apse.i
35 echo "${@}" >&2
36 "${@}" || die
37 }
38
39 python_test() {
40 "${PYTHON}" test/test_Apse.py || die "Tests fail with ${EPYTHON}"
41 }

  ViewVC Help
Powered by ViewVC 1.1.20