aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes/gnome-art/Makefile
blob: bb79ced86df5889e5c23f30b5c1fe5ef41611c87 (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
# New ports collection makefile for:    gnome-art
# Date created:     2005-04-15
# Whom:         Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   gnome-art
PORTVERSION=    0.2
PORTREVISION=   1
CATEGORIES= x11-themes
MASTER_SITES=   http://www.miketech.net/gnome-art/download/

MAINTAINER= ahze@FreeBSD.org
COMMENT=    Frontend for art.gnome.org

RUN_DEPENDS=    gnome-splashscreen-manager:${PORTSDIR}/x11-themes/gnome-splashscreen-manager

WRKSRC=     ${WRKDIR}/${PORTNAME}/${PORTNAME}
USE_RUBY=   yes
USE_REINPLACE=  yes
USE_RUBY_SETUP= yes
GNOMEART_ICON=  ${DATADIR}/glade/pixmaps/gnome-graphics.png

post-patch:
    @${SED} -e 's|%%COMMENT%%|${COMMENT}|; \
        s|%%GNOMEART_ICON%%|${GNOMEART_ICON}|' \
        < ${FILESDIR}/gnome-art.desktop.in \
        > ${WRKDIR}/gnome-art.desktop
    @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
        ${WRKSRC}/lib/gnome-art/ui/main_window.rb \
        ${WRKSRC}/lib/gnome-art/ui/download_dialog.rb
    @${FIND} ${WRKSRC} -name '*.bak' -delete

post-install:
    ${MKDIR} ${PREFIX}/share/applications
    ${INSTALL_DATA} ${WRKDIR}/gnome-art.desktop ${PREFIX}/share/applications

.include <bsd.port.mk>