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

EAPI=4
PYTHON_DEPEND="2:2.6"
SUPPORT_PYTHON_ABIS=1
RESTRICT_PYTHON_ABIS="2.[4-5] 3.*"
inherit distutils

DESCRIPTION="A flexible and capable API layer for django"
HOMEPAGE="http://pypi.python.org/pypi/django-tastypie/ https://github.com/toastdriven/django-tastypie"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64"
IUSE="doc"

LICENSE="BSD"
SLOT="0"
PYTHON_MODNAME="tastypie"

RDEPEND=">=dev-python/mimeparse-0.1.3
	dev-python/python-dateutil"
DEPEND="${RDEPEND} >=dev-python/django-1.2.5
	dev-python/setuptools"

src_install() {
	distutils_src_install
	if use doc; then
		rm -r docs/_build/html/_sources/ || die
		dohtml -A txt -r docs/_build/html/*
	fi
}

pkg_postinst() {
	distutils_pkg_postinst
	elog ""
	elog "django-tastypie offers the options of utilising the"
	elog "XML serializer, requiring package dev-python/lxml,"
	elog "the YAML serializer, requiring the package dev-python/pyyaml"
	elog "and a biplist serializer that is not in the gentoo portage package list"
}