blob: 360a268488dadf5ace3413425cf8b729dad6f04a (
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
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/django-endless-pagination/django-endless-pagination-1.1.ebuild,v 1.2 2013/01/09 09:02:48 idella4 Exp $
EAPI=4
PYTHON_DEPEND="2:2.7"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
PYTHON_TESTS_RESTRICTED_ABIS="2.7-pypy-1.*"
inherit distutils
DESCRIPTION="Tools supporting ajax, multiple and lazy pagination, Twitter-style and Digg-style pagination"
HOMEPAGE="http://code.google.com/p/django-endless-pagination/"
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
PYTHON_MODNAME="endless_pagination"
DEPEND="dev-python/setuptools"
RDEPEND="${DEPEND}
doc? ( dev-python/sphinx )"
src_compile() {
distutils_src_compile
use doc && emake -C doc html
}
src_test() {
testing() {
pushd build-"${PYTHON_ABI}"/lib > /dev/null
PYTHONPATH=. "$(PYTHON)" -d "${S}"/tests/runtests.py
popd > /dev/null
}
python_execute_function testing
}
src_install() {
distutils_src_install
use doc && dohtml -r doc/_build/html/
#rm all OSX fork files, Bug #450842
pushd "${ED}" > /dev/null
rm -f $(find . -name "._*")
popd > /dev/null
}
|