aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-07-18 18:55:41 +0800
committermiwi <miwi@FreeBSD.org>2008-07-18 18:55:41 +0800
commit63aa9849ab46b95016b5f84b58238599ce6b6d63 (patch)
treed84a74419e5398fe479f1f80f04777ec94f1bb12
parent75d19dae23b880037096be33f254fc63b7d46caa (diff)
downloadfreebsd-ports-gnome-63aa9849ab46b95016b5f84b58238599ce6b6d63.tar.gz
freebsd-ports-gnome-63aa9849ab46b95016b5f84b58238599ce6b6d63.tar.zst
freebsd-ports-gnome-63aa9849ab46b95016b5f84b58238599ce6b6d63.zip
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 of the filenames. WWW: http://freedesktop.org/wiki/Software/xdg-user-dirs/ PR: ports/125672 Submitted by: Max Brazhnikov <makc at issp.ac.ru>
-rw-r--r--devel/Makefile1
-rw-r--r--devel/xdg-user-dirs/Makefile23
-rw-r--r--devel/xdg-user-dirs/distinfo3
-rw-r--r--devel/xdg-user-dirs/files/patch-xdg-user-dir12
-rw-r--r--devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c22
-rw-r--r--devel/xdg-user-dirs/pkg-descr5
-rw-r--r--devel/xdg-user-dirs/pkg-plist51
7 files changed, 117 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index c4743930cba3..c04130af660b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2491,6 +2491,7 @@
SUBDIR += winpdb
SUBDIR += wizardkit
SUBDIR += wxGlade
+ SUBDIR += xdg-user-dirs
SUBDIR += xdg-utils
SUBDIR += xfc
SUBDIR += xfce4-dev-tools
diff --git a/devel/xdg-user-dirs/Makefile b/devel/xdg-user-dirs/Makefile
new file mode 100644
index 000000000000..e4bd285b9501
--- /dev/null
+++ b/devel/xdg-user-dirs/Makefile
@@ -0,0 +1,23 @@
+# New ports collection makefile for: xdg-user-dirs
+# Date created: 2008-07-01
+# Whom: Max Brazhnikov <makc@issp.ac.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= xdg-user-dirs
+PORTVERSION= 0.10
+CATEGORIES= devel
+MASTER_SITES= http://user-dirs.freedesktop.org/releases/
+
+MAINTAINER= kde@freebsd.org
+COMMENT= Tool to help manage personal user directories
+
+GNU_CONFIGURE= yes
+USE_GETTEXT= yes
+USE_ICONV= yes
+USE_GMAKE= yes
+CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.include <bsd.port.mk>
diff --git a/devel/xdg-user-dirs/distinfo b/devel/xdg-user-dirs/distinfo
new file mode 100644
index 000000000000..c3fdf289b9f3
--- /dev/null
+++ b/devel/xdg-user-dirs/distinfo
@@ -0,0 +1,3 @@
+MD5 (xdg-user-dirs-0.10.tar.gz) = 6873f49ea7f568743621ed1e05e52dab
+SHA256 (xdg-user-dirs-0.10.tar.gz) = 169978c677db5c498f485e9896cd0ababae6b3a9d0bf640ffa719d5af2abca46
+SIZE (xdg-user-dirs-0.10.tar.gz) = 242835
diff --git a/devel/xdg-user-dirs/files/patch-xdg-user-dir b/devel/xdg-user-dirs/files/patch-xdg-user-dir
new file mode 100644
index 000000000000..a142fddbff76
--- /dev/null
+++ b/devel/xdg-user-dirs/files/patch-xdg-user-dir
@@ -0,0 +1,12 @@
+--- ./xdg-user-dir.orig 2007-02-26 18:51:16.000000000 +0300
++++ ./xdg-user-dir 2008-07-16 00:00:38.000000000 +0400
+@@ -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/devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c b/devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c
new file mode 100644
index 000000000000..a76ba10099d6
--- /dev/null
+++ b/devel/xdg-user-dirs/files/patch-xdg-user-dirs-update.c
@@ -0,0 +1,22 @@
+--- ./xdg-user-dirs-update.c.orig 2007-08-20 12:12:20.000000000 +0400
++++ ./xdg-user-dirs-update.c 2008-07-15 23:26:50.000000000 +0400
+@@ -16,6 +16,19 @@
+ #include <iconv.h>
+ #include <langinfo.h>
+
++#if defined(__FreeBSD__)
++static char *strndup(const char *str, int len) {
++ char *ret;
++
++ if ((str == NULL || len < 0)) return(NULL);
++ ret = (char *)malloc(len + 1);
++ if (ret == NULL) return(NULL);
++ memcpy(ret, str, len);
++ ret[len] = '\0';
++ return(ret);
++}
++#endif
++
+ typedef struct {
+ char *name;
+ char *path;
diff --git a/devel/xdg-user-dirs/pkg-descr b/devel/xdg-user-dirs/pkg-descr
new file mode 100644
index 000000000000..387db7f95280
--- /dev/null
+++ b/devel/xdg-user-dirs/pkg-descr
@@ -0,0 +1,5 @@
+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 of the filenames.
+
+WWW: http://freedesktop.org/wiki/Software/xdg-user-dirs/
diff --git a/devel/xdg-user-dirs/pkg-plist b/devel/xdg-user-dirs/pkg-plist
new file mode 100644
index 000000000000..0063f2c660d9
--- /dev/null
+++ b/devel/xdg-user-dirs/pkg-plist
@@ -0,0 +1,51 @@
+bin/xdg-user-dir
+bin/xdg-user-dirs-update
+etc/xdg/user-dirs.conf
+etc/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
+@dirrmtry share/locale/zh_HK/LC_MESSAGES
+@dirrmtry share/locale/zh_HK
+@dirrmtry share/locale/ku/LC_MESSAGES
+@dirrmtry share/locale/ku
+@dirrmtry share/locale/be@latin/LC_MESSAGES
+@dirrmtry share/locale/be@latin
+@dirrmtry etc/xdg