diff options
-rw-r--r-- | x11/gcursor/Makefile | 43 | ||||
-rw-r--r-- | x11/gcursor/distinfo | 3 | ||||
-rw-r--r-- | x11/gcursor/files/patch-data::gcursor.desktop.in | 18 | ||||
-rw-r--r-- | x11/gcursor/files/patch-src::gcursor.c | 59 | ||||
-rw-r--r-- | x11/gcursor/pkg-descr | 5 | ||||
-rw-r--r-- | x11/gcursor/pkg-plist | 13 |
6 files changed, 141 insertions, 0 deletions
diff --git a/x11/gcursor/Makefile b/x11/gcursor/Makefile new file mode 100644 index 000000000..dc4cab0f0 --- /dev/null +++ b/x11/gcursor/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: gcursor +# Date created: 08 March 2004 +# Whom: Mezz <mezz7@cox.net> +# +# $FreeBSD$ +# + +PORTNAME= gcursor +PORTVERSION= 0.061 +PORTREVISION= 5 +CATEGORIES= x11 gnome +MASTER_SITES= http://download.qballcow.nl/programs/gcursor/ + +MAINTAINER= mezz@FreeBSD.org +COMMENT= A mouse cursor theme selector for GNOME + +RUN_DEPENDS= file-roller:${PORTSDIR}/archivers/file-roller + +USE_GMAKE= yes +USE_XLIB= yes +USE_GNOME= gnomehack gnomeprefix gnometarget intlhack libgnomeui +USE_GETTEXT= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +DOCS= AUTHORS COPYING ChangeLog INSTALL TODO + +post-patch: + @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g ; \ + s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/src/gcursor.c + @${REINPLACE_CMD} -e 's|share/applications|share/gnome/applications|g' \ + ${WRKSRC}/data/Makefile.in + +.ifndef (NOPORTDOCS) +post-install: + @${MKDIR} ${DOCSDIR} +.for i in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/x11/gcursor/distinfo b/x11/gcursor/distinfo new file mode 100644 index 000000000..c5b7179d2 --- /dev/null +++ b/x11/gcursor/distinfo @@ -0,0 +1,3 @@ +MD5 (gcursor-0.061.tar.gz) = 233810996bc7f69879f8978c523ae723 +SHA256 (gcursor-0.061.tar.gz) = c4f71ac3ea3c4e18906aa5a8b6c60116e19863ca6404bbfe10d78abb319b5aae +SIZE (gcursor-0.061.tar.gz) = 143719 diff --git a/x11/gcursor/files/patch-data::gcursor.desktop.in b/x11/gcursor/files/patch-data::gcursor.desktop.in new file mode 100644 index 000000000..952a2cc2b --- /dev/null +++ b/x11/gcursor/files/patch-data::gcursor.desktop.in @@ -0,0 +1,18 @@ +--- data/gcursor.desktop.in.orig Sun Feb 20 21:34:50 2005 ++++ data/gcursor.desktop.in Sun Feb 20 21:36:12 2005 +@@ -1,12 +1,11 @@ + [Desktop Entry] ++Encoding=UTF-8 + _Name=Cursor Selection + _Comment=Select a different cursor + Exec=gcursor + Icon= + Terminal=false + Type=Application +- +-Categories=GNOME;Application;Settings; + StartupNotify=true +-Encoding=UTF-8 +- ++Categories=Application;Settings;AdvancedSettings; ++OnlyShowIn=GNOME; diff --git a/x11/gcursor/files/patch-src::gcursor.c b/x11/gcursor/files/patch-src::gcursor.c new file mode 100644 index 000000000..583eac0fd --- /dev/null +++ b/x11/gcursor/files/patch-src::gcursor.c @@ -0,0 +1,59 @@ +--- src/gcursor.c.orig Thu Aug 26 05:35:55 2004 ++++ src/gcursor.c Thu Jul 27 13:25:46 2006 +@@ -32,29 +32,22 @@ + + #warning move this into gconf + char *paths[] = { +- "/usr/share/cursors/xfree/", +- "/usr/X11R6/lib/X11/icons/", +- "/usr/Xorg/lib/X11/icons/", +- "/usr/local/share/icons/", +- "/usr/share/icons/", ++ "%%LOCALBASE%%/lib/X11/icons/", ++ "%%X11BASE%%/lib/X11/icons/", + "%s/.icons/", + NULL + }; + + void open_theme_dir() + { +- GError * error = NULL; +- char * filename; +- +- filename = g_strdup_printf("file:///%s/.icons/", g_getenv("HOME")); +- gnome_url_show(filename,&error); +- g_free(filename); ++ gchar *path, *command; + +- if (error) +- { +- gnome_warning_dialog (error->message); +- g_error_free (error); +- } ++ path = g_strdup_printf ("%s/.icons", g_get_home_dir()); ++ command = g_strdup_printf ("nautilus --no-desktop %s", path); ++ ++ g_free (path); ++ g_spawn_command_line_async (command, NULL); ++ g_free (command); + } + + +@@ -85,7 +78,7 @@ + filename = g_shell_quote(gtk_file_selection_get_filename(GTK_FILE_SELECTION(fs))); + #endif + +- path = g_strdup_printf("file-roller --extract-to=%s/.icons/ %s", g_getenv("HOME"), ++ path = g_strdup_printf("file-roller --extract-to=%s/.icons/ %s", g_get_home_dir(), + filename); + g_free(filename); + +@@ -281,7 +274,7 @@ + + for (iterator = paths; *iterator; iterator++) + { +- dirname = g_strdup_printf(*iterator, g_getenv("HOME")); ++ dirname = g_strdup_printf(*iterator, g_get_home_dir()); + directory = g_dir_open(dirname, 0, NULL); + + while(directory != NULL && (name = g_dir_read_name(directory)) != NULL) diff --git a/x11/gcursor/pkg-descr b/x11/gcursor/pkg-descr new file mode 100644 index 000000000..99a2aa152 --- /dev/null +++ b/x11/gcursor/pkg-descr @@ -0,0 +1,5 @@ +GCursor is a gtk+-2 xcursor selector. It tries to have the same look and feel +as the theme-selector in the gnome-control-center. Gcursor is a temporary +solution until a decent selector is included in the gnome-control-center. + +WWW: http://qballcow.nl/?s=17 diff --git a/x11/gcursor/pkg-plist b/x11/gcursor/pkg-plist new file mode 100644 index 000000000..820f5ac50 --- /dev/null +++ b/x11/gcursor/pkg-plist @@ -0,0 +1,13 @@ +bin/gcursor +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/TODO +share/gnome/applications/gcursor.desktop +share/gnome/gcursor/gcursor.glade +share/locale/de/LC_MESSAGES/gcursor.mo +share/locale/es/LC_MESSAGES/gcursor.mo +share/locale/sv/LC_MESSAGES/gcursor.mo +@dirrm share/gnome/gcursor +%%PORTDOCS%%@dirrm %%DOCSDIR%% |