aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2005-04-03 00:45:36 +0800
committerahze <ahze@FreeBSD.org>2005-04-03 00:45:36 +0800
commitc7f5baf82b626057b58916a77b1e9a9bf3540f13 (patch)
tree36b8cf178e6ed9cf670f49b46d7b47ed27271829 /devel
parentfef16846a2dc0e6faa67e2cc3f241e96e53e38d0 (diff)
downloadfreebsd-ports-graphics-c7f5baf82b626057b58916a77b1e9a9bf3540f13.tar.gz
freebsd-ports-graphics-c7f5baf82b626057b58916a77b1e9a9bf3540f13.tar.zst
freebsd-ports-graphics-c7f5baf82b626057b58916a77b1e9a9bf3540f13.zip
- 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]
Diffstat (limited to 'devel')
-rw-r--r--devel/py-xdg/Makefile16
-rw-r--r--devel/py-xdg/distinfo4
-rw-r--r--devel/py-xdg/files/patch-xdg::BaseDirectory.py11
3 files changed, 21 insertions, 10 deletions
diff --git a/devel/py-xdg/Makefile b/devel/py-xdg/Makefile
index a9da38d00eb..4e95a89d76a 100644
--- a/devel/py-xdg/Makefile
+++ b/devel/py-xdg/Makefile
@@ -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>
diff --git a/devel/py-xdg/distinfo b/devel/py-xdg/distinfo
index f938448adfa..dafb2d14cb6 100644
--- a/devel/py-xdg/distinfo
+++ b/devel/py-xdg/distinfo
@@ -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
diff --git a/devel/py-xdg/files/patch-xdg::BaseDirectory.py b/devel/py-xdg/files/patch-xdg::BaseDirectory.py
new file mode 100644
index 00000000000..52e303d8124
--- /dev/null
+++ b/devel/py-xdg/files/patch-xdg::BaseDirectory.py
@@ -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'))