mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Update to 0.9
- Add patch work to add path to xdg stuff [1] Requested by: mezz and marcus for a gnome menu editor [1]
This commit is contained in:
parent
e6eb991af2
commit
2a1b673cbb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=132215
3 changed files with 21 additions and 10 deletions
|
@ -6,10 +6,9 @@
|
|||
#
|
||||
|
||||
PORTNAME= xdg
|
||||
PORTVERSION= 0.8
|
||||
PORTVERSION= 0.9
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= ahze
|
||||
MASTER_SITES= http://www.freedesktop.org/~lanius/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
||||
|
||||
|
@ -21,10 +20,11 @@ USE_PYDISTUTILS=yes
|
|||
USE_REINPLACE= yes
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g ; \
|
||||
s|/usr/share|/usr/share:${X11BASE}/share|g' \
|
||||
${WRKSRC}/xdg/BaseDirectory.py
|
||||
@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g ; \
|
||||
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/xdg/IconTheme.py
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|/etc|${PREFIX}/etc|g ; \
|
||||
s|%%X11BASE%%|${X11BASE}|g ; \
|
||||
s|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${WRKSRC}/xdg/BaseDirectory.py \
|
||||
${WRKSRC}/xdg/IconTheme.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
MD5 (pyxdg-0.8.tar.gz) = df9757f63f140165df9549e40bea419e
|
||||
SIZE (pyxdg-0.8.tar.gz) = 25666
|
||||
MD5 (pyxdg-0.9.tar.gz) = b05f9f5e2e43fa207804ad56e0df62d0
|
||||
SIZE (pyxdg-0.9.tar.gz) = 25804
|
||||
|
|
11
devel/py-xdg/files/patch-xdg::BaseDirectory.py
Normal file
11
devel/py-xdg/files/patch-xdg::BaseDirectory.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- xdg/BaseDirectory.py.orig Wed Mar 23 00:08:43 2005
|
||||
+++ xdg/BaseDirectory.py Wed Mar 23 00:09:35 2005
|
||||
@@ -33,7 +33,7 @@
|
||||
os.path.join(_home, '.local', 'share'))
|
||||
|
||||
xdg_data_dirs = [xdg_data_home] + \
|
||||
- os.environ.get('XDG_DATA_DIRS', '/usr/local/share:/usr/share').split(':')
|
||||
+ os.environ.get('XDG_DATA_DIRS', '%%X11BASE%%/share/gnome:%%X11BASE%%/share:%%LOCALBASE%%/share:/usr/share').split(':')
|
||||
|
||||
xdg_config_home = os.environ.get('XDG_CONFIG_HOME',
|
||||
os.path.join(_home, '.config'))
|
Loading…
Add table
Reference in a new issue