- Add a dirty hack to add gnome splash screens to the mix [1]

Note:		You will need to rm -f ~/.gnome2/splash-screens.xml
		for this to work!

Requested by:	adamw [1]
This commit is contained in:
Michael Johnson 2005-04-17 21:04:26 +00:00
parent de23b4ec72
commit 744e24490c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133544
2 changed files with 23 additions and 1 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= gnome-splashscreen-manager
PORTVERSION= 0.1
PORTREVISION= 1
CATEGORIES= x11-themes
MASTER_SITES= http://www.miketech.net/gnome-art/download/
DISTNAME= gnome-art-${PORTVERSION}
@ -14,7 +15,8 @@ DISTNAME= gnome-art-${PORTVERSION}
MAINTAINER= ahze@FreeBSD.org
COMMENT= Gnome splash screen manager
BUILD_DEPENDS= ruby-glade-create-template:${PORTSDIR}/devel/ruby-libglade2 \
BUILD_DEPENDS= gnome-session:${PORTSDIR}/x11/gnomesession \
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}
@ -23,8 +25,17 @@ WRKSRC= ${WRKDIR}/gnome-art/${PORTNAME}
USE_RUBY= yes
USE_REINPLACE= yes
USE_RUBY_SETUP= yes
GSPLASH= ${X11BASE}/share/gnome/pixmaps/splash
post-patch:
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

View file

@ -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)