mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Add python3 flavor for py-xdg.
Obtained from: gnome devel repo
This commit is contained in:
parent
d2e84a9206
commit
cc9f432ba7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364406
@ -4040,6 +4040,7 @@
|
||||
SUBDIR += py_static_check
|
||||
SUBDIR += py3-dbus
|
||||
SUBDIR += py3-gobject3
|
||||
SUBDIR += py3-xdg
|
||||
SUBDIR += pybaz
|
||||
SUBDIR += pybugz
|
||||
SUBDIR += pychecker
|
||||
|
26
devel/py3-xdg/Makefile
Normal file
26
devel/py3-xdg/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
# Created by: michael johnson <ahze@ahze.net>
|
||||
# $FreeBSD$
|
||||
# $MCom: ports/trunk/devel/py3-xdg/Makefile 19571 2014-04-25 18:12:46Z kwm $
|
||||
|
||||
PORTNAME= xdg
|
||||
PORTVERSION= 0.25
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= http://people.freedesktop.org/~takluyver/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME= py${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAINTAINER= gnome@FreeBSD.org
|
||||
COMMENT= Python 3 library to access freedesktop.org standards
|
||||
|
||||
LICENSE= LGPL20
|
||||
|
||||
USE_PYTHON= 3
|
||||
USE_PYDISTUTILS=yes
|
||||
PYDISTUTILS_AUTOPLIST= yes
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${WRKSRC}/xdg/BaseDirectory.py
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/py3-xdg/distinfo
Normal file
2
devel/py3-xdg/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (pyxdg-0.25.tar.gz) = 81e883e0b9517d624e8b0499eb267b82a815c0b7146d5269f364988ae031279d
|
||||
SIZE (pyxdg-0.25.tar.gz) = 48935
|
18
devel/py3-xdg/files/patch-xdg_BaseDirectory.py
Normal file
18
devel/py3-xdg/files/patch-xdg_BaseDirectory.py
Normal file
@ -0,0 +1,18 @@
|
||||
--- xdg/BaseDirectory.py.orig 2012-12-06 22:07:26.000000000 +0100
|
||||
+++ xdg/BaseDirectory.py 2014-03-04 17:22:23.000000000 +0100
|
||||
@@ -32,13 +32,13 @@
|
||||
os.path.join(_home, '.local', 'share')
|
||||
|
||||
xdg_data_dirs = [xdg_data_home] + \
|
||||
- (os.environ.get('XDG_DATA_DIRS') or '/usr/local/share:/usr/share').split(':')
|
||||
+ (os.environ.get('XDG_DATA_DIRS') or '%%LOCALBASE%%/share').split(':')
|
||||
|
||||
xdg_config_home = os.environ.get('XDG_CONFIG_HOME') or \
|
||||
os.path.join(_home, '.config')
|
||||
|
||||
xdg_config_dirs = [xdg_config_home] + \
|
||||
- (os.environ.get('XDG_CONFIG_DIRS') or '/etc/xdg').split(':')
|
||||
+ (os.environ.get('XDG_CONFIG_DIRS') or '%%LOCALBASE%%/etc/xdg').split(':')
|
||||
|
||||
xdg_cache_home = os.environ.get('XDG_CACHE_HOME') or \
|
||||
os.path.join(_home, '.cache')
|
11
devel/py3-xdg/pkg-descr
Normal file
11
devel/py3-xdg/pkg-descr
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user