summaryrefslogtreecommitdiffstats
path: root/devel/py-xdg
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-09-10 13:35:05 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-09-10 13:35:05 +0800
commitc57b423ba30b3bcf330f3bff705d959a0134889a (patch)
tree3c902d894ecc489cb3d4679fe15b6ec73dc2a18f /devel/py-xdg
parent4530b5eef69a3ae9fedf798a89c01deb09822b98 (diff)
downloadmarcuscom-ports-c57b423ba30b3bcf330f3bff705d959a0134889a.tar
marcuscom-ports-c57b423ba30b3bcf330f3bff705d959a0134889a.tar.gz
marcuscom-ports-c57b423ba30b3bcf330f3bff705d959a0134889a.tar.bz2
marcuscom-ports-c57b423ba30b3bcf330f3bff705d959a0134889a.tar.lz
marcuscom-ports-c57b423ba30b3bcf330f3bff705d959a0134889a.tar.xz
marcuscom-ports-c57b423ba30b3bcf330f3bff705d959a0134889a.tar.zst
marcuscom-ports-c57b423ba30b3bcf330f3bff705d959a0134889a.zip
share/gnome/ -> share/ and get rid of X11BASE.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9551 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/py-xdg')
-rw-r--r--devel/py-xdg/Makefile30
-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.py12
-rw-r--r--devel/py-xdg/files/patch-xdg_Menu.py13
-rw-r--r--devel/py-xdg/pkg-descr11
-rw-r--r--devel/py-xdg/pkg-plist37
7 files changed, 117 insertions, 0 deletions
diff --git a/devel/py-xdg/Makefile b/devel/py-xdg/Makefile
new file mode 100644
index 000000000..48267bba7
--- /dev/null
+++ b/devel/py-xdg/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: py-xdg
+# Date created: 2004-06-25
+# Whom: michael johnson <ahze@ahze.net>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= xdg
+PORTVERSION= 0.15
+PORTREVISION= 3
+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
+PYDISTUTILS_PKGNAME= pyxdg
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|/etc|${LOCALBASE}/etc|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..77f09b528
--- /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').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..c7af80928
--- /dev/null
+++ b/devel/py-xdg/files/patch-xdg::IconTheme.py
@@ -0,0 +1,12 @@
+--- xdg/IconTheme.py.orig 2007-09-10 00:33:42.000000000 -0500
++++ xdg/IconTheme.py 2007-09-10 00:34:37.000000000 -0500
+@@ -215,7 +215,8 @@
+ icondirs = []
+ for basedir in xdg_data_dirs:
+ icondirs.append(os.path.join(basedir, "icons"))
+-icondirs.append("/usr/share/pixmaps")
++icondirs.append("%%LOCALBASE%%/share/pixmaps")
++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/files/patch-xdg_Menu.py b/devel/py-xdg/files/patch-xdg_Menu.py
new file mode 100644
index 000000000..186fda591
--- /dev/null
+++ b/devel/py-xdg/files/patch-xdg_Menu.py
@@ -0,0 +1,13 @@
+--- xdg/Menu.py.orig Thu Aug 11 07:37:48 2005
++++ xdg/Menu.py Sat Sep 2 05:10:19 2006
+@@ -494,6 +494,10 @@
+ if not filename:
+ filename = __getFileName("applications.menu")
+
++ # use gnome if no filename given
++ if not filename:
++ filename = __getFileName("gnome-applications.menu")
++
+ if not filename:
+ raise ParsingError('File not found', "/etc/xdg/menus/applications.menu")
+
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