[gentoo-dev] Paths in pkg-config file when using escons?

2015-12-23 Thread Helmut Jarausch
Hi,

sorry for posting here but gentoo-devhelp seems to be dead.


I need an ebuild for libmypaint (GIT version) since this is required by the GIT 
version of Gimp.
I use

src_compile() {
#workaround scons bug with locales. Bug #352700
export LANG="en_US.UTF-8"
tc-export CC CXX
myesconsargs=( "enable_gegl=true" "GEGL_VERSION=0.3" )
escons
}

src_install () {
escons prefix="${D}/usr" install
python_optimize "${D}"usr/share/${PN}
}


Unfortunately, the pkg-config files

/usr/lib/pkgconfig/libmypaint-gegl.pc  and  /usr/lib/pkgconfig/libmypaint.pc

still contain the paths during build, i.e.

prefix=/var/tmp/portage/media-libs/libmypaint-/image//usr
exec_prefix=/var/tmp/portage/media-libs/libmypaint-/image//usr
libdir=/var/tmp/portage/media-libs/libmypaint-/image//usr/lib
includedir=/var/tmp/portage/media-libs/libmypaint-/image//usr/include

How can I fix this?

Many thanks for a hint,
Helmut




Re: [gentoo-dev] Paths in pkg-config file when using escons?

2015-12-23 Thread Francesco Riosa
and what about $LIBDIR ?
libmypaint build system is totally broken. Please tell upstream, eventually
providing a better one.

just for testing purposes
sed -e "s:${D}::" ${D}/usr/lib/pkgconfig/*.pc || die "cannot sanitize *.pc
files"
should suffice.





2015-12-23 21:16 GMT+01:00 Peter Stuge :

> Hi Helmut,
>
> Helmut Jarausch wrote:
> >   escons prefix="${D}/usr" install
> ..
> > prefix=/var/tmp/portage/media-libs/libmypaint-/image//usr
> ..
> > How can I fix this?
>
> Set prefix to /usr and use another method to install into ${D}.
>
>
> //Peter
>
>