tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gir file from gobject-introspection



From: Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost>, Date: Sun, 17 Jul 2011 
16:14:02 +0900 (JST)

> Hi,
> 
> From: David Holland <dholland-pkgtech%netbsd.org@localhost>, Date: Sun, 17 
> Jul 2011 05:53:33 +0000
> 
>> On Sun, Jul 17, 2011 at 01:49:26PM +0900, Ryo ONODERA wrote:
>>  > I feel that enabling gobject-introspection is needed globally.
>>  > Can I enable gobject-introspection (adding 
>>  > .include "../../devel/gobject-introspection/buildlink3.mk"
>>  > line) to these packages?
>>  > 
>>  > Is there any opinion or objection?
>> 
>> Does that still depend on Python?
> 
> Still depends on python.
> 
>> (and if so, does it work to have one gobject-introspection package and
>> e.g. both py25-gtk2 and py26-gtk2 packages?)
> 
> I does not know py25-gtk2 and py26-gtk2, but gobject-introspection
> depends on py??-cElementTree.
> The gobject-introspection binary package that is generated with
> a certain version of python does not work with another version of
> python.
> 
> For example, If python25 is installed, gobject-introspection
> binary package that is generated with python26 cannot be
> installed.
> 
> $ sudo pkg_add gobject-introspection-0.10.8-with-py26.tgz
> pkg_add: no pkg found for 'py26-cElementTree-[0-9]*', sorry.
> pkg_add: Can't install dependency py26-cElementTree-[0-9]*
> pkg_add: 1 package addition failed

Anyway, for Gnome3, supporting gobject-introspection is needed.
We cannnot drop dependency to python, but I feel dependency to
cairo can be dropped with following patch.

If there is no objection, I will commit it later.

Thank you.


Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/gobject-introspection/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile    13 May 2011 17:12:19 -0000      1.11
+++ Makefile    2 Aug 2011 10:55:11 -0000
@@ -2,6 +2,7 @@
 #
 
 DISTNAME=      gobject-introspection-0.10.8
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/gobject-introspection/0.10/}
 EXTRACT_SUFX=  .tar.bz2
@@ -19,6 +20,8 @@
 USE_LIBTOOL=   yes
 USE_TOOLS+=    pkg-config flex bison gmake
 
+CONFIGURE_ARGS+=       --disable-tests
+
 PKGCONFIG_OVERRIDE+=   gobject-introspection-1.0.pc.in
 PKGCONFIG_OVERRIDE+=   gobject-introspection-no-export-1.0.pc.in
 PYTHON_VERSIONS_ACCEPTED=      27 26 25
@@ -44,7 +47,6 @@
 
 .include "../../devel/glib2/buildlink3.mk"
 .include "../../devel/libffi/buildlink3.mk"
-.include "../../graphics/cairo/buildlink3.mk"
 .include "../../lang/python/application.mk"
 .include "../../lang/python/extension.mk"
 .include "../../mk/bsd.pkg.mk"

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3




Home | Main Index | Thread Index | Old Index