Contents of /branches/R11-unstable/include/pypi.sminc
Parent Directory | Revision Log
Revision 20726 -
(show annotations)
(download)
Tue Feb 4 14:42:27 2014 UTC (10 years, 7 months ago) by niro
Original Path: trunk/include/pypi.sminc
File size: 923 byte(s)
Tue Feb 4 14:42:27 2014 UTC (10 years, 7 months ago) by niro
Original Path: trunk/include/pypi.sminc
File size: 923 byte(s)
-initial release
1 | # $Id$ |
2 | # Pypi functions |
3 | |
4 | # needs python |
5 | sminclude python |
6 | |
7 | : ${PYPI_MODULE="${PNAME}"} |
8 | |
9 | # some sane defaults |
10 | : ${PCAT="dev-python"} |
11 | # always lower letters |
12 | : ${HOMEPAGE="http://pypi.python.org/pypi/${PYPI_MODULE}"} |
13 | : ${SRCFILE="${PYPI_MODULE}-${PVER}.tar.gz"} |
14 | : ${SRCDIR="${BUILDDIR}/${PYPI_MODULE}-${PVER}"} |
15 | |
16 | DEPEND="${DEPEND} |
17 | >= dev-lang/python-2.7" |
18 | |
19 | SRC_URI=( |
20 | ${SRC_URI[*]} |
21 | http://search.cpan.org/CPAN/authors/id/${CPAN_AUTHOR_UPPER:0:1}/${CPAN_AUTHOR_UPPER:0:2}/${CPAN_AUTHOR_UPPER}/${SRCFILE} |
22 | https://pypi.python.org/packages/source/${PYPI_MODULE:0:1}/${PYPI_MODULE}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz" |
27 | |
28 | pypi_src_prepare() |
29 | { |
30 | python_src_prepare || die |
31 | } |
32 | |
33 | pypi_src_compile() |
34 | { |
35 | local configure_opts="$@" |
36 | python_src_compile ${configure_opts} || die |
37 | } |
38 | |
39 | pypi_src_install() |
40 | { |
41 | python_src_install || die |
42 | } |
43 | |
44 | export_inherits pypi src_prepare src_compile src_install |