import py-xdg 0.15
PyXDG is a python library to access freedesktop.org standards. Currently supported are: * Base Directory Specification * Menu Specification * Desktop Entry Specification * Icon Theme Specification * Recent File Spec * Shared-MIME-Database Specification ok ajacoutot@
This commit is contained in:
parent
62d418d93a
commit
0a9ce1ce80
30
devel/py-xdg/Makefile
Normal file
30
devel/py-xdg/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2008/04/16 12:05:28 jasper Exp $
|
||||
|
||||
COMMENT= python library to access freedesktop.org standards
|
||||
|
||||
MODPY_EGG_VERSION= 0.15
|
||||
DISTNAME= pyxdg-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-xdg-${MODPY_EGG_VERSION}
|
||||
|
||||
CATEGORIES= devel
|
||||
|
||||
HOMEPAGE= http://freedesktop.org/wiki/Software/pyxdg
|
||||
|
||||
# LGPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://people.freedesktop.org/~lanius/
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
# regression tests are present, but don't make much sense atm
|
||||
NO_REGRESS= Yes
|
||||
|
||||
pre-configure:
|
||||
@perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g;' \
|
||||
-e 's,!!SYSCONFDIR!!,${SYSCONFDIR},g' ${WRKSRC}/xdg/*.py
|
||||
|
||||
.include <bsd.port.mk>
|
5
devel/py-xdg/distinfo
Normal file
5
devel/py-xdg/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (pyxdg-0.15.tar.gz) = hqVEEoX8kIFFQUtjNI0Row==
|
||||
RMD160 (pyxdg-0.15.tar.gz) = DwBMVHgsSUPhmWjpx6OzXPcCwRA=
|
||||
SHA1 (pyxdg-0.15.tar.gz) = 6FYqwWILtEe0DJEaHhutj5shAXs=
|
||||
SHA256 (pyxdg-0.15.tar.gz) = wq3yCVXLYq9clGItDdR/uC7mPaM8A9Wh+CM3uoMES7c=
|
||||
SIZE (pyxdg-0.15.tar.gz) = 36465
|
12
devel/py-xdg/patches/patch-xdg_BaseDirectory_py
Normal file
12
devel/py-xdg/patches/patch-xdg_BaseDirectory_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-xdg_BaseDirectory_py,v 1.1.1.1 2008/04/16 12:05:28 jasper Exp $
|
||||
--- xdg/BaseDirectory.py.orig Thu May 26 23:46:05 2005
|
||||
+++ xdg/BaseDirectory.py Tue Apr 15 16:09:33 2008
|
||||
@@ -39,7 +39,7 @@ xdg_config_home = os.environ.get('XDG_CONFIG_HOME',
|
||||
os.path.join(_home, '.config'))
|
||||
|
||||
xdg_config_dirs = [xdg_config_home] + \
|
||||
- os.environ.get('XDG_CONFIG_DIRS', '/etc/xdg').split(':')
|
||||
+ os.environ.get('XDG_CONFIG_DIRS', '!!SYSCONFDIR!!/xdg').split(':')
|
||||
|
||||
xdg_cache_home = os.environ.get('XDG_CACHE_HOME',
|
||||
os.path.join(_home, '.cache'))
|
12
devel/py-xdg/patches/patch-xdg_IconTheme_py
Normal file
12
devel/py-xdg/patches/patch-xdg_IconTheme_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-xdg_IconTheme_py,v 1.1.1.1 2008/04/16 12:05:28 jasper Exp $
|
||||
--- xdg/IconTheme.py.orig Thu Aug 4 11:12:30 2005
|
||||
+++ xdg/IconTheme.py Tue Apr 15 16:04:40 2008
|
||||
@@ -215,7 +215,7 @@ class IconData(IniFile):
|
||||
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(os.path.expanduser("~/.icons"))
|
||||
|
||||
# just cache variables, they give a 10x speed improvement
|
17
devel/py-xdg/patches/patch-xdg_Menu_py
Normal file
17
devel/py-xdg/patches/patch-xdg_Menu_py
Normal file
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-xdg_Menu_py,v 1.1.1.1 2008/04/16 12:05:28 jasper Exp $
|
||||
--- xdg/Menu.py.orig Thu Aug 11 13:37:48 2005
|
||||
+++ xdg/Menu.py Tue Apr 15 16:09:30 2008
|
||||
@@ -494,8 +494,12 @@ def parse(filename=None):
|
||||
if not filename:
|
||||
filename = __getFileName("applications.menu")
|
||||
|
||||
+ # use gnome's if no filename given
|
||||
if not filename:
|
||||
- raise ParsingError('File not found', "/etc/xdg/menus/applications.menu")
|
||||
+ filename = __getFileName("gnome-applications.menu")
|
||||
+
|
||||
+ if not filename:
|
||||
+ raise ParsingError('File not found', "!!SYSCONFDIR!!/xdg/menus/applications.menu")
|
||||
|
||||
# check if it is a .menu file
|
||||
if not os.path.splitext(filename)[1] == ".menu":
|
9
devel/py-xdg/pkg/DESCR
Normal file
9
devel/py-xdg/pkg/DESCR
Normal file
@ -0,0 +1,9 @@
|
||||
PyXDG is a python library to access freedesktop.org standards.
|
||||
Currently supported are:
|
||||
|
||||
* Base Directory Specification
|
||||
* Menu Specification
|
||||
* Desktop Entry Specification
|
||||
* Icon Theme Specification
|
||||
* Recent File Spec
|
||||
* Shared-MIME-Database Specification
|
27
devel/py-xdg/pkg/PLIST
Normal file
27
devel/py-xdg/pkg/PLIST
Normal file
@ -0,0 +1,27 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/04/16 12:05:28 jasper Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/pyxdg-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/BaseDirectory.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/BaseDirectory.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/Config.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/Config.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/DesktopEntry.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/DesktopEntry.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/Exceptions.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/Exceptions.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/IconTheme.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/IconTheme.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/IniFile.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/IniFile.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/Locale.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/Locale.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/Menu.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/Menu.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/MenuEditor.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/MenuEditor.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/Mime.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/Mime.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/RecentFiles.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/RecentFiles.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/__init__.py
|
||||
lib/python${MODPY_VERSION}/site-packages/xdg/__init__.pyc
|
Loading…
Reference in New Issue
Block a user