aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2004-06-26 08:41:43 +0800
committermezz <mezz@FreeBSD.org>2004-06-26 08:41:43 +0800
commite52195b77e4dd4d8bf75e85a6bf3ff1f9456d624 (patch)
tree3c6c060c1e3b1bc70cf34a68f630c1cb5468b7bc /devel
parentb5633c6082fcce3328c7c42edf42205df493b964 (diff)
downloadfreebsd-ports-gnome-e52195b77e4dd4d8bf75e85a6bf3ff1f9456d624.tar.gz
freebsd-ports-gnome-e52195b77e4dd4d8bf75e85a6bf3ff1f9456d624.tar.zst
freebsd-ports-gnome-e52195b77e4dd4d8bf75e85a6bf3ff1f9456d624.zip
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 WWW: http://freedesktop.org/Software/pyxdg PR: ports/68332 Submitted by: michael johnson <ahze@ahze.net>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-xdg/Makefile29
-rw-r--r--devel/py-xdg/distinfo2
-rw-r--r--devel/py-xdg/files/patch-xdg::IconTheme.py13
-rw-r--r--devel/py-xdg/pkg-descr9
-rw-r--r--devel/py-xdg/pkg-plist22
6 files changed, 76 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index c80bb3fd246f..3a0f378dfa8d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1094,6 +1094,7 @@
SUBDIR += py-unit
SUBDIR += py-vmaps
SUBDIR += py-wsdllib
+ SUBDIR += py-xdg
SUBDIR += py-xoltar-toolkit
SUBDIR += py-yaml
SUBDIR += py_otp_interface
diff --git a/devel/py-xdg/Makefile b/devel/py-xdg/Makefile
new file mode 100644
index 000000000000..96ba8be149ea
--- /dev/null
+++ b/devel/py-xdg/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: py-xdg
+# Date created: 2004-06-25
+# Whom: michael johnson <ahze@ahze.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= xdg
+PORTVERSION= 0.5
+CATEGORIES= devel python
+MASTER_SITES= http://freedesktop.org/Software/pyxdg/releases/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= py${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= ahze@ahze.net
+COMMENT= A python library to access freedesktop.org standards
+
+USE_PYTHON= yes
+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
+
+.include <bsd.port.mk>
diff --git a/devel/py-xdg/distinfo b/devel/py-xdg/distinfo
new file mode 100644
index 000000000000..20c426fd32a8
--- /dev/null
+++ b/devel/py-xdg/distinfo
@@ -0,0 +1,2 @@
+MD5 (pyxdg-0.5.tar.gz) = 1a399b10608027035784e80c12d1c6ff
+SIZE (pyxdg-0.5.tar.gz) = 25208
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 000000000000..ebe012ed215e
--- /dev/null
+++ b/devel/py-xdg/files/patch-xdg::IconTheme.py
@@ -0,0 +1,13 @@
+--- xdg/IconTheme.py.orig Mon Mar 29 13:37:54 2004
++++ xdg/IconTheme.py Fri Jun 25 17:04:04 2004
+@@ -212,7 +212,9 @@
+ icondirs = []
+ for basedir in xdg_data_dirs:
+ icondirs.append(os.path.join(basedir, "icons"))
+-icondirs.append("/usr/share/pixmaps")
++icondirs.append("%%X11BASE%%/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 000000000000..06981e9c9914
--- /dev/null
+++ b/devel/py-xdg/pkg-descr
@@ -0,0 +1,9 @@
+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
+
+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 000000000000..0ecf42e765bd
--- /dev/null
+++ b/devel/py-xdg/pkg-plist
@@ -0,0 +1,22 @@
+%%PYTHON_SITELIBDIR%%/xdg/BaseDirectory.py
+%%PYTHON_SITELIBDIR%%/xdg/BaseDirectory.pyc
+%%PYTHON_SITELIBDIR%%/xdg/BaseDirectory.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/Menu.py
+%%PYTHON_SITELIBDIR%%/xdg/Menu.pyc
+%%PYTHON_SITELIBDIR%%/xdg/Menu.pyo
+%%PYTHON_SITELIBDIR%%/xdg/__init__.py
+%%PYTHON_SITELIBDIR%%/xdg/__init__.pyc
+%%PYTHON_SITELIBDIR%%/xdg/__init__.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/xdg