|
Lines 22-28
Link Here
|
| 22 |
|
22 |
|
| 23 |
src_compile() { |
23 |
src_compile() { |
| 24 |
local myconf |
24 |
local myconf |
| 25 |
use python && myconf="--enable-python" |
25 |
use python && myconf="--with-python" |
| 26 |
use tcltk && myconf="${myconf} --with-tcl=/usr/include" |
26 |
use tcltk && myconf="${myconf} --with-tcl=/usr/include" |
| 27 |
|
27 |
|
| 28 |
CXXFLAGS="${CXXFLAGS}" unix/configure \ |
28 |
CXXFLAGS="${CXXFLAGS}" unix/configure \ |
|
Lines 39-54
Link Here
|
| 39 |
local pydir |
39 |
local pydir |
| 40 |
pydir=`python-config | cut -d" " -f1 | sed -e 's/-l//g'`/site-packages |
40 |
pydir=`python-config | cut -d" " -f1 | sed -e 's/-l//g'`/site-packages |
| 41 |
|
41 |
|
| 42 |
make DESTDIR=${D} install || die |
|
|
| 43 |
|
| 44 |
if [ -n "`use python`" ] |
42 |
if [ -n "`use python`" ] |
| 45 |
then |
43 |
then |
| 46 |
dodir /usr/lib/${pydir} |
44 |
dodir /usr/lib/${pydir} |
| 47 |
# Because libmk4py.so export Mk4pyinit, that Python will look for ... |
|
|
| 48 |
# shouldn't do a mv instead of a cp ? Who needs libmk4py.so ? |
| 49 |
cp ${D}/usr/lib/libmk4py.so ${D}/usr/lib/${pydir}/Mk4py.so |
| 50 |
cp python/metakit.py ${D}/usr/lib/${pydir} |
| 51 |
fi |
45 |
fi |
|
|
46 |
|
| 47 |
make DESTDIR=${D} install || die |
| 48 |
|
| 52 |
|
49 |
|
| 53 |
dodoc CHANGES README WHATSNEW |
50 |
dodoc CHANGES README WHATSNEW |
| 54 |
dohtml MetaKit.html |
51 |
dohtml MetaKit.html |