vte widget port and Python extensions
Joe Marcus Clarke
marcus at marcuscom.com
Fri Sep 2 00:29:17 GMT 2005
On Wed, 2005-08-31 at 14:30 +0000, ali wrote:
> On 29/08/05 04:51:16, Joe Marcus Clarke wrote:
> > On Sat, 2005-08-27 at 12:14 +0000, ali wrote:
> > > Hi,
> > >
> > > Thank-you for maintaining this port. I recently had a slight problem
> >
> > > installing the Python extensions.
> > >
> > > I set the --enable-python configure argument in the Makefile, and
> > made
> > > the port and installed it. Unfortunately the Python extension cannot
> > be
> > > used because Python can't find the library.
> > >
> > > The Python extension was installed to:
> > >
> > > /usr/X11R6/lib/python2.4/site-packages/gtk-2.0/vtemodule.so
> > >
> > > where the other GTK2 C Python extensions are installed to:
> > >
> > > /usr/local/lib/python2.4/site-packages/gtk-2.0/
> > >
> > > and moving the file to that location allows Python to find it.
> > >
> > > (I guess there may be a reason to put this in the /usr/X11R6 tree
> > > instead of the /usr/local tree.)
> > >
> > > I would love to fix this and send you a patch but I am very
> > > inexperienced with ports and BSD, I shall do anything I can to help
> >
> > > though.
> >
> > In order for the extensions to work, the port will need to be hacked
> > to
> > install the Python bits under LOCALBASE (much the way net/gaim
> > installs
> > its Perl bits). You could probably use gaim as sort of a model.
>
> Well, I have found where the variable is set, and I have a working
> Makefile that uses the WITH_PYTHON variable to decide whether to
> compile the Python extensions. I am an utter newbie in these things, so
> my apologies if something is wrong.
The is very wrong. Setting @pyexecdir@ in the port's Makefile will have
no effect. You'll want to either patch the right Makefile.in in the
distribution, or convert this into a REINPLACE regexp. For example:
@${REINPLACE_CMD} -e 's|@pyexecdir@|${PYTHON_SITELIBDIR}|g' \
${WRKSRC}/path/to/Makefile.in
You will also need to update the pkg-plist with the files that get
installed by enabling Python support.
Joe
>
> I have attached a patch for the Makefile.
>
> Yours,
>
> Ali
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20050901/6022e349/attachment.bin
More information about the freebsd-gnome
mailing list