Opened 12 years ago

Closed 12 years ago

#34914 closed submission (fixed)

Adding support for Py-Gobject3?

Reported by: Themanwithoutaplan Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc: su-v
Port: py27-gobject3

Description

I'm trying to write a Portfile for Py-Gobject3. As far as I can tell this should be done separately to the existing Py-Gobject(2) port. Unfortunately, I'm falling pretty much at the first hurdle because configure seems to want definitions from a "pycairo" package or at least have them as environmental variables.

From another system I know what the variables should be:

""" I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -lcairo """

This is easy enough to map to environment variables but MacPorts build system seems to ignore them.

I'm enclosing the rump of the Portfile. At least the source files download and verify.

Attachments (2)

Portfile (2.7 KB) - added by Themanwithoutaplan 12 years ago.
Portfile.2 (2.3 KB) - added by neverpanic (Clemens Lang) 12 years ago.
My attempt at a py-gobject3 portfile; please test and report back

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by Themanwithoutaplan

Attachment: Portfile added

comment:1 Changed 12 years ago by neverpanic (Clemens Lang)

Cc: openmaintainer@… removed
Owner: changed from macports-tickets@… to cal@…
Port: py27-gobject3 added; py27-gobect3 removed
Status: newassigned

JFYI, I'm also at this, but currently stalled. I will try to attach what I have soon.

openmaintainer is not a real email address, you shouldn't cc it.

Changed 12 years ago by neverpanic (Clemens Lang)

Attachment: Portfile.2 added

My attempt at a py-gobject3 portfile; please test and report back

comment:2 Changed 12 years ago by Themanwithoutaplan

What's the command to run this locally? I have local checkout but not a local repository. I usually rely on port -D . build but that means defaulting to Python 2.4. If subports are Python-specific I guess this isn't going to work.

comment:3 Changed 12 years ago by neverpanic (Clemens Lang)

port build -- subport=py27-gobject3 in the directory where the Portfile is might work (untested). If it doesn't it works in a local repository, see the guide on how to set up one.

comment:4 Changed 12 years ago by Themanwithoutaplan

Works like a dream, thanks. I did look for such instructions but couldn't find them on the Python page which covers Python port unification.

comment:5 Changed 12 years ago by su-v

Cc: suv-sf@… added

Cc Me!

comment:6 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

Commited in r94449, moved into the main repository in r94451.

Note: See TracTickets for help on using tickets.