blob: 787b37b0c4f2e9f6040b405041514cf9c35c2783 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# 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
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/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}
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
.include <bsd.port.mk>
|