View | Details | Raw Unified | Return to bug 256336
Collapse All | Expand All

(-)b/textproc/py-gi-docgen/Makefile (+5 lines)
Lines 1-5 Link Here
1
PORTNAME=	gi-docgen
1
PORTNAME=	gi-docgen
2
PORTVERSION=	2021.5
2
PORTVERSION=	2021.5
3
PORTREVISION=	1
3
CATEGORIES=	textproc python
4
CATEGORIES=	textproc python
4
MASTER_SITES=	GNOME
5
MASTER_SITES=	GNOME
5
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
6
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
Lines 25-28 USE_PYTHON= autoplist distutils Link Here
25
26
26
NO_ARCH=	yes
27
NO_ARCH=	yes
27
28
29
post-patch:
30
	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
31
		${WRKSRC}/gidocgen/utils.py
32
28
.include <bsd.port.mk>
33
.include <bsd.port.mk>
(-)b/textproc/py-gi-docgen/files/patch-gidocgen_utils.py (+11 lines)
Added Link Here
1
--- gidocgen/utils.py.orig	2021-04-15 15:10:34 UTC
2
+++ gidocgen/utils.py
3
@@ -810,7 +810,7 @@ def find_program(bin_name, path=None):
4
 
5
 def default_search_paths():
6
     if not sys.platform == 'win32':
7
-        xdg_data_dirs = os.environ.get("XDG_DATA_DIRS", "/usr/share:/usr/local/share").split(":")
8
+        xdg_data_dirs = os.environ.get("XDG_DATA_DIRS", "/usr/share:%%LOCALBASE%%/share").split(":")
9
         xdg_data_home = os.environ.get("XDG_DATA_HOME", os.path.expanduser("~/.local/share"))
10
     else:
11
         xdg_data_dirs = None

Return to bug 256336