From owner-freebsd-gnome@FreeBSD.ORG Wed Aug 31 14:27:58 2005 Return-Path: X-Original-To: gnome@freebsd.org Delivered-To: freebsd-gnome@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0111916A420 for ; Wed, 31 Aug 2005 14:27:58 +0000 (GMT) (envelope-from aafshar@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id A975443D46 for ; Wed, 31 Aug 2005 14:27:54 +0000 (GMT) (envelope-from aafshar@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so1369815rne for ; Wed, 31 Aug 2005 07:27:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:subject:to:cc:references:in-reply-to:x-mailer:message-id:mime-version:content-type:from; b=nwkl5DlOvwZiNIHV/952DWvcxVuLhzsYC+hVnGHrykdiU6izhCMUJ1vicO5H5bShvUXSAU92QNPWSjBCAcXc+dC7Z5ta1KpcUEKaeXJNZIa53d9AyuAHTDVdHeX2ekXJ2+CNCBpNoLcCnWRbQQ0y3YmOWzreJYnYq6GqeoZ0juo= Received: by 10.38.97.2 with SMTP id u2mr49600rnb; Wed, 31 Aug 2005 07:27:53 -0700 (PDT) Received: from hari ( [62.69.34.242]) by mx.gmail.com with ESMTP id 73sm5891939rna.2005.08.31.07.27.52; Wed, 31 Aug 2005 07:27:53 -0700 (PDT) Date: Wed, 31 Aug 2005 14:30:10 +0000 To: Joe Marcus Clarke References: <1125144872l.5442l.7l@hari> <1125287476.1079.18.camel@shumai.marcuscom.com> In-Reply-To: <1125287476.1079.18.camel@shumai.marcuscom.com> (from marcus@marcuscom.com on Mon Aug 29 04:51:16 2005) X-Mailer: Balsa 2.3.0 Message-Id: <1125498610l.5442l.9l@hari> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-P9h5Sg/QeOJtEKWPxIRh" From: ali Cc: gnome@FreeBsd.org Subject: Re: vte widget port and Python extensions X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 14:27:58 -0000 --=-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--