openbsd-ports/devel/py-gobject/Makefile
ajacoutot ed97b19505 From upstream: gio-types.defs: change some enums to flags
These flags types were originally incorrectly handled in glib as being
enums.  That bug was fixed, but they're still enums here, leading to
warnings about the mismatch.
Change them to flags.
2012-04-05 12:08:25 +00:00

52 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.50 2012/04/05 12:08:25 ajacoutot Exp $
COMMENT= Python bindings for glib2 gobject (deprecated)
GNOME_PROJECT= pygobject
GNOME_VERSION= 2.28.6
EXTRACT_SUFX= .tar.bz2
PKGNAME= py-gobject-${GNOME_VERSION}
REVISION= 4
EPOCH= 0
CATEGORIES= devel
SHARED_LIBS += pyglib-2.0-python${MODPY_VERSION} 2.0 # .0.0
HOMEPAGE= http://www.pygtk.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += ffi gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
WANTLIB += pcre z
MODULES= devel/gettext \
lang/python \
x11/gnome
LIB_DEPENDS= devel/glib2
CONFIGURE_STYLE=gnu
# not really needed because we don't add "goi" to MODGNOME_TOOLS,
# however it is clearer to explicitely note that it is disabled --
# introspection support for py-gobject is now in devel/py-gobject3
CONFIGURE_ARGS= --disable-introspection
REGRESS_DEPENDS= ${FULLPKGNAME}:${BUILD_PKGPATH}
REGRESS_IS_INTERACTIVE= x11
post-install:
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
${PREFIX}/share/pygobject/2.0/codegen
.include <bsd.port.mk>