Magellan Linux

Contents of /trunk/include/pypi.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20730 - (show annotations) (download)
Tue Feb 4 14:48:09 2014 UTC (10 years, 3 months ago) by niro
File size: 801 byte(s)
-fixed SRC_URI
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 https://pypi.python.org/packages/source/${PYPI_MODULE:0:1}/${PYPI_MODULE}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz"
26
27 pypi_src_prepare()
28 {
29 python_src_prepare || die
30 }
31
32 pypi_src_compile()
33 {
34 local configure_opts="$@"
35 python_src_compile ${configure_opts} || die
36 }
37
38 pypi_src_install()
39 {
40 python_src_install || die
41 }
42
43 export_inherits pypi src_prepare src_compile src_install