FreeBSD Bugzilla – Attachment 225453 Details for
Bug 256336
textproc/py-gi-docgen: hard-coded /usr/local
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[patch] fix hard-coded /usr/local
pr-py-gi-docgen-fix-localbase.diff (text/plain), 1.33 KB, created by
John Hein
on 2021-06-01 14:43:25 UTC
(
hide
)
Description:
[patch] fix hard-coded /usr/local
Filename:
MIME Type:
Creator:
John Hein
Created:
2021-06-01 14:43:25 UTC
Size:
1.33 KB
patch
obsolete
>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 <bsd.port.mk> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
jcfyecrayz
:
maintainer-approval?
(
desktop
)
Actions:
View
|
Diff
Attachments on
bug 256336
: 225453