From owner-dev-commits-ports-main@freebsd.org Wed Jun 16 17:45:29 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B0247666762; Wed, 16 Jun 2021 17:45:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G4szF4dCjz4r6B; Wed, 16 Jun 2021 17:45:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 871F42001E; Wed, 16 Jun 2021 17:45:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 15GHjTCg015149; Wed, 16 Jun 2021 17:45:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 15GHjTJk015148; Wed, 16 Jun 2021 17:45:29 GMT (envelope-from git) Date: Wed, 16 Jun 2021 17:45:29 GMT Message-Id: <202106161745.15GHjTJk015148@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Tobias C. Berner" Subject: git: 03886d912802 - main - textproc/py-gi-docgen: remove hard-coded /usr/local MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tcberner X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 03886d91280299fe3989c109272706aadd61c983 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2021 17:45:29 -0000 The branch main has been updated by tcberner: URL: https://cgit.FreeBSD.org/ports/commit/?id=03886d91280299fe3989c109272706aadd61c983 commit 03886d91280299fe3989c109272706aadd61c983 Author: John Hein AuthorDate: 2021-06-16 17:42:49 +0000 Commit: Tobias C. Berner CommitDate: 2021-06-16 17:42:59 +0000 textproc/py-gi-docgen: remove hard-coded /usr/local PR: 256336 --- textproc/py-gi-docgen/Makefile | 5 +++++ textproc/py-gi-docgen/files/patch-gidocgen_utils.py | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/textproc/py-gi-docgen/Makefile b/textproc/py-gi-docgen/Makefile index bcec475e4cc9..649d353f7fd9 100644 --- a/textproc/py-gi-docgen/Makefile +++ b/textproc/py-gi-docgen/Makefile @@ -1,5 +1,6 @@ PORTNAME= gi-docgen PORTVERSION= 2021.5 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= GNOME PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -25,4 +26,8 @@ USE_PYTHON= autoplist distutils NO_ARCH= yes +post-patch: + ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ + ${WRKSRC}/gidocgen/utils.py + .include diff --git a/textproc/py-gi-docgen/files/patch-gidocgen_utils.py b/textproc/py-gi-docgen/files/patch-gidocgen_utils.py new file mode 100644 index 000000000000..1ac195999cac --- /dev/null +++ b/textproc/py-gi-docgen/files/patch-gidocgen_utils.py @@ -0,0 +1,11 @@ +--- gidocgen/utils.py.orig 2021-04-15 15:10:34 UTC ++++ gidocgen/utils.py +@@ -810,7 +810,7 @@ def find_program(bin_name, path=None): + + def default_search_paths(): + if not sys.platform == 'win32': +- xdg_data_dirs = os.environ.get("XDG_DATA_DIRS", "/usr/share:/usr/local/share").split(":") ++ xdg_data_dirs = os.environ.get("XDG_DATA_DIRS", "/usr/share:%%LOCALBASE%%/share").split(":") + xdg_data_home = os.environ.get("XDG_DATA_HOME", os.path.expanduser("~/.local/share")) + else: + xdg_data_dirs = None