Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 23704 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/dev-db/metakit/metakit-2.4.9.2.ebuild (-7 / +4 lines)
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-53 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 ...
45
		make DESTDIR=${D} install || die
48
		# shouldn't do a mv instead of a cp ? Who needs libmk4py.so ?
46
	else
49
		cp ${D}/usr/lib/libmk4py.so ${D}/usr/lib/${pydir}/Mk4py.so
47
		make DESTDIR=${D} install || die
50
		cp python/metakit.py ${D}/usr/lib/${pydir}
51
	fi
48
	fi
52
49
53
	dodoc CHANGES README WHATSNEW
50
	dodoc CHANGES README WHATSNEW

Return to bug 23704