summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authordrochner <drochner>2009-04-16 19:06:56 +0000
committerdrochner <drochner>2009-04-16 19:06:56 +0000
commit61fc68a637b96c2be0a6c2a3ee2b1741bd362646 (patch)
tree1b32325faa6e65b3c8d4e1ad69ea1f6d0dda933f /x11
parent95882fb2220bcea90f3a14b32060b1cc7851726f (diff)
downloadpkgsrc-61fc68a637b96c2be0a6c2a3ee2b1741bd362646.tar.gz
import xdg-user-dirs-0.10 which does basically provide a tool
to create the ~/.config/user-dirs.dirs file which is used by modern applications to get "well known" user directories (for downloads etc)
Diffstat (limited to 'x11')
-rw-r--r--x11/xdg-user-dirs/DESCR9
-rw-r--r--x11/xdg-user-dirs/Makefile22
-rw-r--r--x11/xdg-user-dirs/PLIST46
-rw-r--r--x11/xdg-user-dirs/distinfo8
-rw-r--r--x11/xdg-user-dirs/patches/patch-aa14
-rw-r--r--x11/xdg-user-dirs/patches/patch-ab18
-rw-r--r--x11/xdg-user-dirs/patches/patch-ac13
7 files changed, 130 insertions, 0 deletions
diff --git a/x11/xdg-user-dirs/DESCR b/x11/xdg-user-dirs/DESCR
new file mode 100644
index 00000000000..aa781e38192
--- /dev/null
+++ b/x11/xdg-user-dirs/DESCR
@@ -0,0 +1,9 @@
+xdg-user-dirs is a tool to help manage "well known" user directories like
+the desktop folder and the music folder. It also handles localization
+(i.e. translation) of the filenames.
+The way it works is that xdg-user-dirs-update is run very early in the
+login phase. This program reads a configuration file, and a set of
+default directories. It then creates localized versions of these
+directories in the users home directory and sets up a config file
+in $(XDG_CONFIG_HOME)/user-dirs.dirs (XDG_CONFIG_HOME defaults to ~/.config)
+that applications can read to find these directories.
diff --git a/x11/xdg-user-dirs/Makefile b/x11/xdg-user-dirs/Makefile
new file mode 100644
index 00000000000..c0b9cc48a9a
--- /dev/null
+++ b/x11/xdg-user-dirs/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/04/16 19:06:56 drochner Exp $
+#
+
+DISTNAME= xdg-user-dirs-0.10
+CATEGORIES= x11
+MASTER_SITES= http://user-dirs.freedesktop.org/releases/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.freedesktop.org/wiki/Software/xdg-user-dirs
+COMMENT= Tool to manage "well known" user directories
+
+GNU_CONFIGURE= yes
+USE_PKGLOCALEDIR= yes
+
+EGDIR= ${PREFIX}/share/examples/xdg
+
+CONF_FILES+= ${EGDIR}/user-dirs.conf \
+ ${PKG_SYSCONFDIR}/xdg/user-dirs.conf
+CONF_FILES+= ${EGDIR}/user-dirs.defaults \
+ ${PKG_SYSCONFDIR}/xdg/user-dirs.defaults
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/xdg-user-dirs/PLIST b/x11/xdg-user-dirs/PLIST
new file mode 100644
index 00000000000..7ffdce7278f
--- /dev/null
+++ b/x11/xdg-user-dirs/PLIST
@@ -0,0 +1,46 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/04/16 19:06:56 drochner Exp $
+bin/xdg-user-dir
+bin/xdg-user-dirs-update
+share/examples/xdg/user-dirs.conf
+share/examples/xdg/user-dirs.defaults
+share/locale/af/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/ar/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/be@latin/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/bg/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/ca/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/cs/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/da/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/de/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/el/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/es/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/et/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/eu/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/fi/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/fr/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/ga/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/hu/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/it/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/ja/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/ko/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/ku/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/lt/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/mk/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/nb/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/nl/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/nn/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/pa/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/pl/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/pt/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/pt_BR/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/ru/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/sk/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/sr/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/sr@Latn/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/sv/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/th/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/tr/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/uk/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/zh_CN/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/zh_HK/LC_MESSAGES/xdg-user-dirs.mo
+share/locale/zh_TW/LC_MESSAGES/xdg-user-dirs.mo
+@dirrm share/examples/xdg
diff --git a/x11/xdg-user-dirs/distinfo b/x11/xdg-user-dirs/distinfo
new file mode 100644
index 00000000000..bd6425692e0
--- /dev/null
+++ b/x11/xdg-user-dirs/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/04/16 19:06:56 drochner Exp $
+
+SHA1 (xdg-user-dirs-0.10.tar.gz) = 824ab2ccdbea30d4cdc29bbec3b80250297e363b
+RMD160 (xdg-user-dirs-0.10.tar.gz) = 6069cff49918dc0393bc86bde1a95268e8c6de51
+Size (xdg-user-dirs-0.10.tar.gz) = 242835 bytes
+SHA1 (patch-aa) = 133a075c749ec27c46688c0ff9894d3689ea6d80
+SHA1 (patch-ab) = 2a699ce58d526684c53c0e989b95de588908e324
+SHA1 (patch-ac) = da06f94f98f6d9ad8fb219c0d6708868b9975821
diff --git a/x11/xdg-user-dirs/patches/patch-aa b/x11/xdg-user-dirs/patches/patch-aa
new file mode 100644
index 00000000000..e3ee8250dcf
--- /dev/null
+++ b/x11/xdg-user-dirs/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/04/16 19:06:56 drochner Exp $
+
+--- xdg-user-dir.orig 2007-02-26 16:51:16.000000000 +0100
++++ xdg-user-dir
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+
+-test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
+-if [ "x$1" == "xDESKTOP" ]; then
++test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && . ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
++if [ "x$1" = "xDESKTOP" ]; then
+ eval echo \${XDG_${1}_DIR:-$HOME/Desktop}
+ else
+ eval echo \${XDG_${1}_DIR:-$HOME}
diff --git a/x11/xdg-user-dirs/patches/patch-ab b/x11/xdg-user-dirs/patches/patch-ab
new file mode 100644
index 00000000000..3f3465cd611
--- /dev/null
+++ b/x11/xdg-user-dirs/patches/patch-ab
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/04/16 19:06:56 drochner Exp $
+
+--- configure.orig 2009-04-16 16:43:21.000000000 +0200
++++ configure
+@@ -6744,12 +6744,11 @@ extern
+ #ifdef __cplusplus
+ "C"
+ #endif
+-const char *_nl_expand_alias (const char *);
+ int
+ main ()
+ {
+ bindtextdomain ("", "");
+-return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
++return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr
+ ;
+ return 0;
+ }
diff --git a/x11/xdg-user-dirs/patches/patch-ac b/x11/xdg-user-dirs/patches/patch-ac
new file mode 100644
index 00000000000..f5e939bc6d1
--- /dev/null
+++ b/x11/xdg-user-dirs/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/04/16 19:06:56 drochner Exp $
+
+--- Makefile.in.orig 2009-04-16 17:04:57.000000000 +0200
++++ Makefile.in
+@@ -229,7 +229,7 @@ INCLUDES = \
+ EXTRA_DIST = config.rpath translate.c autogen.sh \
+ user-dirs.conf user-dirs.defaults xdg-user-dir
+
+-xdgdir = $(sysconfdir)/xdg
++xdgdir = $(prefix)/share/examples/xdg
+ xdg_DATA = user-dirs.conf user-dirs.defaults
+ libraries = $(LIBINTL)
+ bin_SCRIPTS = \