mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 00:46:27 -04:00
The proper upstream Python package name is pygobject; version 2 hasn't existed or been supported in ages, so rename. Rework the port to where -common is the child port but the main port depends on it for the header files. Build the main port as a Python wheel USE_PYTHON=pep517 to take advantage of USE_PYTHON=autoplist. Direct -common consumers have PORTREVISION bumped. Changelog: https://gitlab.gnome.org/GNOME/pygobject/-/blob/3.50.0/NEWS Reported by: Olivier Duchateau <duchateau.olivier[at]gmail[dot]com> (3.44, 3.46) Exp-run by: antoine PR: 273722 Differential Revision: https://reviews.freebsd.org/D47635
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
PORTNAME= pygobject
|
|
DISTVERSION= 3.50.0
|
|
PORTREVISION?= 0
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= GNOME/sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
|
PKGNAMEPREFIX?= ${PYTHON_PKGNAMEPREFIX}
|
|
DIST_SUBDIR= gnome
|
|
|
|
MAINTAINER= desktop@FreeBSD.org
|
|
COMMENT?= Python bindings for GObject Introspection
|
|
WWW= https://pygobject.gnome.org/
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=1.16:graphics/py-cairo@${PY_FLAVOR}
|
|
LIB_DEPENDS= libffi.so:devel/libffi
|
|
|
|
USES= gnome pkgconfig python:3.9+ tar:xz
|
|
|
|
BINARY_ALIAS= python3=${PYTHON_CMD}
|
|
PORTSCOUT= limitw:1,even
|
|
|
|
SLAVE_PORT?= no
|
|
|
|
.if ${SLAVE_PORT} == common
|
|
USES+= meson
|
|
USE_GNOME= glib20:build introspection:build
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/_build/pygobject-3.0.pc \
|
|
${STAGEDIR}${PREFIX}/libdata/pkgconfig/pygobject-3.0.pc
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/include/pygobject-3.0
|
|
${INSTALL_DATA} ${WRKSRC}/gi/pygobject.h \
|
|
${STAGEDIR}${PREFIX}/include/pygobject-3.0/pygobject.h
|
|
.else
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}meson-python>=0.12.1:devel/meson-python@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=1.16:graphics/py-cairo@${PY_FLAVOR} \
|
|
${LOCALBASE}/libdata/pkgconfig/pygobject-3.0.pc:devel/pygobject-common
|
|
USE_GNOME= cairo glib20 introspection
|
|
USE_PYTHON= autoplist concurrent pep517
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|