Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Aug 2005 14:30:10 +0000
From:      ali <aafshar@gmail.com>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        gnome@FreeBsd.org
Subject:   Re: vte widget port and Python extensions
Message-ID:  <1125498610l.5442l.9l@hari>
In-Reply-To: <1125287476.1079.18.camel@shumai.marcuscom.com> (from marcus@marcuscom.com on Mon Aug 29 04:51:16 2005)
References:  <1125144872l.5442l.7l@hari> <1125287476.1079.18.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-P9h5Sg/QeOJtEKWPxIRh
Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

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.

I have attached a patch for the Makefile.

Yours,

Ali
--=-P9h5Sg/QeOJtEKWPxIRh
Content-Type: text/x-patch; charset=us-ascii;
	name=vte_python_extensions_port.diff
Content-Disposition: attachment; filename=vte_python_extensions_port.diff
Content-Transfer-Encoding: quoted-printable

--- Makefile
+++ Makefile    Mon Aug 29 15:03:49 2005
@@ -27,7 +27,14 @@
 CONFIGURE_ENV=3D CPPFLAGS=3D"-I${LOCALBASE}/include -I${X11BASE}/include" =
\
                LDFLAGS=3D"-L${LOCALBASE}/lib -L${X11BASE}/lib" \
                BSD_PTHREAD_LIBS=3D"${PTHREAD_LIBS}"
+
+.if defined(WITH_PYTHON)
+USE_PYTHON=3D    yes
+CONFIGURE_ARGS=3D        --enable-python
+@pyexecdir@=3D   "${PYTHON_SITE_LIB_DIR}"
+.else
 CONFIGURE_ARGS=3D        --disable-python
+.endif

 .ifdef(WITH_GLX)
 CONFIGURE_ARGS+=3D       --with-glX



--=-P9h5Sg/QeOJtEKWPxIRh--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1125498610l.5442l.9l>