diff options
6 files changed, 93 insertions, 0 deletions
diff --git a/x11-themes/gnome-splashscreen-manager/Makefile b/x11-themes/gnome-splashscreen-manager/Makefile new file mode 100644 index 000000000..d18e4fc23 --- /dev/null +++ b/x11-themes/gnome-splashscreen-manager/Makefile @@ -0,0 +1,51 @@ +# New ports collection makefile for: gnome-splashscreen-manager +# Date created: 2005-04-15 +# Whom: Michael Johnson <ahze@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= gnome-splashscreen-manager +PORTVERSION= 0.2 +PORTREVISION= 2 +CATEGORIES= x11-themes +MASTER_SITES= http://www.miketech.net/gnome-art/download/ +DISTNAME= gnome-art-${PORTVERSION} + +MAINTAINER= ahze@FreeBSD.org +COMMENT= Gnome splash screen manager + +BUILD_DEPENDS= gnome-session:${PORTSDIR}/x11/gnome-session \ + ruby-glade-create-template:${PORTSDIR}/devel/ruby-libglade2 \ + ${RUBY_SITEARCHLIBDIR}/gnome2.so:${PORTSDIR}/x11/ruby-gnome2 \ + ${RUBY_SITEARCHLIBDIR}/gconf2.so:${PORTSDIR}/devel/ruby-gconf2 +RUN_DEPENDS= ${BUILD_DEPENDS} + +WRKSRC= ${WRKDIR}/gnome-art/${PORTNAME} +USE_RUBY= yes +USE_RUBY_SETUP= yes +GSPLASH= ${LOCALBASE}/share/gnome/pixmaps/splash +SPLASH_ICON= ${DATADIR}/glade/gnome-graphics.png + +post-patch: + @${SED} -e 's|%%COMMENT%%|${COMMENT}|; \ + s|%%SPLASH_ICON%%|${SPLASH_ICON}|' \ + < ${FILESDIR}/gnome-splashscreen-manager.desktop.in \ + > ${WRKDIR}/gnome-splashscreen-manager.desktop + cd ${WRKSRC}/lib/gnome-splashscreen-manager/ && \ + for file in `${FIND} ${GSPLASH} -type f` ; do \ + ${SED} -e 's|%%SPLASHSCREENS%%|\\n<splash_screen>\\n\\t<name>%%F%%</name>\\n\\t<filename>%%F%%</filename>\\n\\t<description>...</description>\\n\\t<author>?</author>\\n\\t<license>unknown</license>\\n</splash_screen>\\n%%SPLASHSCREENS%%|' \ + < gnome_splashscreen_manager.rb > gnome_splashscreen_manager.rb.bak ; \ + ${SED} -e "s|%%F%%|$${file}|g" < gnome_splashscreen_manager.rb.bak > gnome_splashscreen_manager.rb ; \ + done + @${REINPLACE_CMD} -e 's|%%SPLASHSCREENS%%||' \ + ${WRKSRC}/lib/gnome-splashscreen-manager/gnome_splashscreen_manager.rb + @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \ + ${WRKSRC}/lib/gnome-splashscreen-manager/ui/main_window.rb + @${FIND} ${WRKSRC} -name '*.bak' -delete + +post-install: + ${MKDIR} ${PREFIX}/share/applications + ${INSTALL_DATA} ${WRKDIR}/gnome-splashscreen-manager.desktop ${PREFIX}/share/applications + +.include <bsd.port.mk> diff --git a/x11-themes/gnome-splashscreen-manager/distinfo b/x11-themes/gnome-splashscreen-manager/distinfo new file mode 100644 index 000000000..84734a9e3 --- /dev/null +++ b/x11-themes/gnome-splashscreen-manager/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome-art-0.2.tar.gz) = 4dd59ba8a84efe8dcb5637ba051394e7 +SHA256 (gnome-art-0.2.tar.gz) = 87024a515b4968639d852fc8673edb048e250ce783c3f8f49adc00dc86a1c92d +SIZE (gnome-art-0.2.tar.gz) = 66415 diff --git a/x11-themes/gnome-splashscreen-manager/files/gnome-splashscreen-manager.desktop.in b/x11-themes/gnome-splashscreen-manager/files/gnome-splashscreen-manager.desktop.in new file mode 100644 index 000000000..255db928c --- /dev/null +++ b/x11-themes/gnome-splashscreen-manager/files/gnome-splashscreen-manager.desktop.in @@ -0,0 +1,11 @@ +# $FreeBSD +[Desktop Entry] +Encoding=UTF-8 +Name=Gnome Splash Screen Manager +Comment=%%COMMENT%% +Icon=%%SPLASH_ICON%% +Exec=gnome-splashscreen-manager +Terminal=false +Type=Application +Categories=GNOME;Application;Settings;AdvancedSettings; +OnlyShowIn=GNOME; diff --git a/x11-themes/gnome-splashscreen-manager/files/patch-lib_gnome-splashscreen-manager_gnome_splashscreen_manager.rb b/x11-themes/gnome-splashscreen-manager/files/patch-lib_gnome-splashscreen-manager_gnome_splashscreen_manager.rb new file mode 100644 index 000000000..d3ea180a1 --- /dev/null +++ b/x11-themes/gnome-splashscreen-manager/files/patch-lib_gnome-splashscreen-manager_gnome_splashscreen_manager.rb @@ -0,0 +1,11 @@ +--- lib/gnome-splashscreen-manager/gnome_splashscreen_manager.rb.orig Sun Apr 17 02:02:05 2005 ++++ lib/gnome-splashscreen-manager/gnome_splashscreen_manager.rb Sun Apr 17 02:06:02 2005 +@@ -41,7 +41,7 @@ + puts "Create SplashScreen-File" + splash_screens_file = File.new(file, File::CREAT|File::TRUNC|File::RDWR, 0644) + +- new_splash_screens_file = "<?xml version=\"1.0\"?>\n<splash_screens>\n</splash_screens>\n" ++ new_splash_screens_file = "<?xml version=\"1.0\"?>\n<splash_screens>\n%%SPLASHSCREENS%%\n<splash_screens>\n</splash_screens>\n" + + splash_screens_file.write(new_splash_screens_file) + diff --git a/x11-themes/gnome-splashscreen-manager/pkg-descr b/x11-themes/gnome-splashscreen-manager/pkg-descr new file mode 100644 index 000000000..ac7572703 --- /dev/null +++ b/x11-themes/gnome-splashscreen-manager/pkg-descr @@ -0,0 +1,3 @@ +Gnome splash screen manager + +WWW: http://www.miketech.net/gnome-art/ diff --git a/x11-themes/gnome-splashscreen-manager/pkg-plist b/x11-themes/gnome-splashscreen-manager/pkg-plist new file mode 100644 index 000000000..929a2d570 --- /dev/null +++ b/x11-themes/gnome-splashscreen-manager/pkg-plist @@ -0,0 +1,14 @@ +bin/gnome-splashscreen-manager +%%DATADIR%%/glade/gnome-graphics.png +%%DATADIR%%/glade/gnome_splashscreen_manager.glade +%%RUBY_SITELIBDIR%%/gnome_splashscreen_manager.rb +%%RUBY_SITELIBDIR%%/gnome-splashscreen-manager/gnome_splashscreen_manager.rb +%%RUBY_SITELIBDIR%%/gnome-splashscreen-manager/config.rb +%%RUBY_SITELIBDIR%%/gnome-splashscreen-manager/splash_screens.rb +%%RUBY_SITELIBDIR%%/gnome-splashscreen-manager/ui/main_window.rb +share/applications/gnome-splashscreen-manager.desktop +@dirrm %%RUBY_SITELIBDIR%%/gnome-splashscreen-manager/ui +@dirrm %%RUBY_SITELIBDIR%%/gnome-splashscreen-manager +@dirrm %%DATADIR%%/glade +@dirrm %%DATADIR%% +@dirrmtry share/applications |