summaryrefslogtreecommitdiffstats
path: root/devel/py-gobject/Makefile
blob: f717e61aba3c84342e4055db3760a99e3a977476 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# New ports collection makefile for:    py-gobject
# Date created:             10 January 2006
# Whom:                 Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD: ports/devel/py-gobject/Makefile,v 1.15 2010/05/10 21:18:11 kwm Exp $
#   $MCom: ports/devel/py-gobject/Makefile,v 1.37 2010/01/03 06:54:20 marcus Exp $
#

PORTNAME=   gobject
PORTVERSION=    2.21.1
PORTREVISION=   1
CATEGORIES= devel python
MASTER_SITES=   GNOME
MASTER_SITE_SUBDIR= sources/pygobject/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pygobject-${PORTVERSION}
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Python bindings for GObject

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GNOME=  gnomehack glib20
USE_PYTHON= yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
CONFIGURE_ARGS= --disable-docs --enable-pygi

CONFLICTS=  py*-gtk-0*
PLIST_SUB=  PYTHON_VER="${PYTHON_VER}"

post-install:
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
        ${PREFIX}/share/pygobject/2.0/codegen

.include <bsd.port.mk>