summaryrefslogtreecommitdiffstats
path: root/devel/py-xdg
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-02 04:58:01 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-09-02 04:58:01 +0800
commit18f8492a218851d028498dfa5e01783772398b7b (patch)
treecdd05af93cc3042aa34126491277b651fac31845 /devel/py-xdg
parentf00df680b67bc2a66aa7a82b74911afb863b2019 (diff)
downloadmarcuscom-ports-18f8492a218851d028498dfa5e01783772398b7b.tar
marcuscom-ports-18f8492a218851d028498dfa5e01783772398b7b.tar.gz
marcuscom-ports-18f8492a218851d028498dfa5e01783772398b7b.tar.bz2
marcuscom-ports-18f8492a218851d028498dfa5e01783772398b7b.tar.lz
marcuscom-ports-18f8492a218851d028498dfa5e01783772398b7b.tar.xz
marcuscom-ports-18f8492a218851d028498dfa5e01783772398b7b.tar.zst
marcuscom-ports-18f8492a218851d028498dfa5e01783772398b7b.zip
- Chase the gnome move to LOCALBASE with updated icon dirs
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7183 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/py-xdg')
-rw-r--r--devel/py-xdg/Makefile31
-rw-r--r--devel/py-xdg/distinfo3
-rw-r--r--devel/py-xdg/files/patch-xdg::BaseDirectory.py11
-rw-r--r--devel/py-xdg/files/patch-xdg::IconTheme.py15
-rw-r--r--devel/py-xdg/pkg-descr11
-rw-r--r--devel/py-xdg/pkg-plist37
6 files changed, 108 insertions, 0 deletions
diff --git a/devel/py-xdg/Makefile b/devel/py-xdg/Makefile
new file mode 100644
index 000000000..9db344c02
--- /dev/null
+++ b/devel/py-xdg/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: py-xdg
+# Date created: 2004-06-25
+# Whom: michael johnson <ahze@ahze.net>
+#
+# $FreeBSD$
+# $MCom: ports-stable/devel/py-xdg/Makefile,v 1.4 2005/08/12 00:08:44 ahze Exp $
+#
+
+PORTNAME= xdg
+PORTVERSION= 0.15
+PORTREVISION= 1
+CATEGORIES= devel python
+MASTER_SITES= http://www.freedesktop.org/~lanius/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= py${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= A python library to access freedesktop.org standards
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|/etc|${LOCALBASE}/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
new file mode 100644
index 000000000..9118f9eda
--- /dev/null
+++ b/devel/py-xdg/distinfo
@@ -0,0 +1,3 @@
+MD5 (pyxdg-0.15.tar.gz) = 86a5441285fc908145414b63348d11a3
+SHA256 (pyxdg-0.15.tar.gz) = c2adf20955cb62af5c94622d0dd47fb82ee63da33c03d5a1f82337ba83044bb7
+SIZE (pyxdg-0.15.tar.gz) = 36465
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 000000000..47bd3f33a
--- /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', '%%LOCALBASE%%/share/gnome:%%LOCALBASE%%/share:/usr/share').split(':')
+
+ xdg_config_home = os.environ.get('XDG_CONFIG_HOME',
+ os.path.join(_home, '.config'))
diff --git a/devel/py-xdg/files/patch-xdg::IconTheme.py b/devel/py-xdg/files/patch-xdg::IconTheme.py
new file mode 100644
index 000000000..cc5714b82
--- /dev/null
+++ b/devel/py-xdg/files/patch-xdg::IconTheme.py
@@ -0,0 +1,15 @@
+--- xdg/IconTheme.py.orig Sun Jun 5 14:20:19 2005
++++ xdg/IconTheme.py Sun Jun 5 14:21:07 2005
+@@ -215,7 +215,11 @@
+ icondirs = []
+ for basedir in xdg_data_dirs:
+ icondirs.append(os.path.join(basedir, "icons"))
+-icondirs.append("/usr/share/pixmaps")
++icondirs.append("%%X11BASE%%/share/pixmaps")
++icondirs.append("%%LOCALBASE%%/share/pixmaps")
++icondirs.append("%%LOCALBASE%%/share/gnome/pixmaps")
++icondirs.append("%%X11BASE%%/share/icons")
++icondirs.append("%%LOCALBASE%%/share/icons")
+ icondirs.append(os.path.expanduser("~/.icons"))
+
+ # just cache variables, they give a 10x speed improvement
diff --git a/devel/py-xdg/pkg-descr b/devel/py-xdg/pkg-descr
new file mode 100644
index 000000000..85056ce3b
--- /dev/null
+++ b/devel/py-xdg/pkg-descr
@@ -0,0 +1,11 @@
+A python library to access freedesktop.org standards.
+
+Currently supported are:
+ o Base Directory Specification
+ o Menu Specification
+ o Desktop Entry Specification
+ o Icon Theme Specification
+ o Recent File Spec
+ o Shared-MIME-Database Specification
+
+WWW: http://freedesktop.org/Software/pyxdg
diff --git a/devel/py-xdg/pkg-plist b/devel/py-xdg/pkg-plist
new file mode 100644
index 000000000..8f6a8b028
--- /dev/null
+++ b/devel/py-xdg/pkg-plist
@@ -0,0 +1,37 @@
+%%PYTHON_SITELIBDIR%%/xdg/BaseDirectory.py
+%%PYTHON_SITELIBDIR%%/xdg/BaseDirectory.pyc
+%%PYTHON_SITELIBDIR%%/xdg/BaseDirectory.pyo
+%%PYTHON_SITELIBDIR%%/xdg/Config.py
+%%PYTHON_SITELIBDIR%%/xdg/Config.pyc
+%%PYTHON_SITELIBDIR%%/xdg/Config.pyo
+%%PYTHON_SITELIBDIR%%/xdg/DesktopEntry.py
+%%PYTHON_SITELIBDIR%%/xdg/DesktopEntry.pyc
+%%PYTHON_SITELIBDIR%%/xdg/DesktopEntry.pyo
+%%PYTHON_SITELIBDIR%%/xdg/Exceptions.py
+%%PYTHON_SITELIBDIR%%/xdg/Exceptions.pyc
+%%PYTHON_SITELIBDIR%%/xdg/Exceptions.pyo
+%%PYTHON_SITELIBDIR%%/xdg/IconTheme.py
+%%PYTHON_SITELIBDIR%%/xdg/IconTheme.pyc
+%%PYTHON_SITELIBDIR%%/xdg/IconTheme.pyo
+%%PYTHON_SITELIBDIR%%/xdg/IniFile.py
+%%PYTHON_SITELIBDIR%%/xdg/IniFile.pyc
+%%PYTHON_SITELIBDIR%%/xdg/IniFile.pyo
+%%PYTHON_SITELIBDIR%%/xdg/Locale.py
+%%PYTHON_SITELIBDIR%%/xdg/Locale.pyc
+%%PYTHON_SITELIBDIR%%/xdg/Locale.pyo
+%%PYTHON_SITELIBDIR%%/xdg/Menu.py
+%%PYTHON_SITELIBDIR%%/xdg/Menu.pyc
+%%PYTHON_SITELIBDIR%%/xdg/Menu.pyo
+%%PYTHON_SITELIBDIR%%/xdg/MenuEditor.py
+%%PYTHON_SITELIBDIR%%/xdg/MenuEditor.pyc
+%%PYTHON_SITELIBDIR%%/xdg/MenuEditor.pyo
+%%PYTHON_SITELIBDIR%%/xdg/Mime.py
+%%PYTHON_SITELIBDIR%%/xdg/Mime.pyc
+%%PYTHON_SITELIBDIR%%/xdg/Mime.pyo
+%%PYTHON_SITELIBDIR%%/xdg/RecentFiles.py
+%%PYTHON_SITELIBDIR%%/xdg/RecentFiles.pyc
+%%PYTHON_SITELIBDIR%%/xdg/RecentFiles.pyo
+%%PYTHON_SITELIBDIR%%/xdg/__init__.py
+%%PYTHON_SITELIBDIR%%/xdg/__init__.pyc
+%%PYTHON_SITELIBDIR%%/xdg/__init__.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/xdg