27 |
python_src_compile() |
python_src_compile() |
28 |
{ |
{ |
29 |
cd ${SRCDIR} |
cd ${SRCDIR} |
30 |
python setup.py build "$@" || die |
|
31 |
|
if [[ -e setup.py ]] |
32 |
|
then |
33 |
|
python setup.py build "$@" || die |
34 |
|
elif [[ -e waf ]] |
35 |
|
then |
36 |
|
python waf configure --prefix=/usr --libdir=/usr/$(mlibdir) "$@" || die |
37 |
|
python waf build "$@" || die |
38 |
|
elif [[ -e configure ]] |
39 |
|
then |
40 |
|
mconfigure "$@" || die |
41 |
|
mmake || die |
42 |
|
else |
43 |
|
mmake || die |
44 |
|
fi |
45 |
} |
} |
46 |
|
|
47 |
python_src_install() |
python_src_install() |
48 |
{ |
{ |
49 |
cd ${SRCDIR} |
cd ${SRCDIR} |
50 |
python setup.py install --no-compile --root ${BINDIR} "$@" || die |
|
51 |
|
if [[ -e setup.py ]] |
52 |
|
then |
53 |
|
python setup.py install --no-compile --root ${BINDIR} "$@" || die |
54 |
|
elif [[ -e waf ]] |
55 |
|
then |
56 |
|
python waf install --destdir="${BINDIR}" "$@" || die |
57 |
|
else |
58 |
|
mmake DESTDIR=${BINDIR} install || die |
59 |
|
fi |
60 |
|
|
61 |
local i |
local i |
62 |
for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ |
for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ |