All pastes #971932 Raw Edit

Someone

public text v1 · immutable
·published 2008-04-05 02:05 UTC
rendered paste body
#
# Copyright (c) 2008 Foresight Linux
# This file is distributed under the terms of the MIT License.
# A copy is available at http://www.rpath.com/permanent/mit-license.html
#

class Prism(PackageRecipe):
    name = 'prism'
    version = '0.8+svn20071115r8030'
 
    buildRequires = ['desktop-file-utils:runtime']
 
    def setup(r):
        r.addArchive('http://archive.ubuntu.com/ubuntu/pool/universe/p/prism/prism_%(version)s.orig.tar.gz')

        r.addPatch('http://archive.ubuntu.com/ubuntu/pool/universe/p/prism/prism_0.8+svn20071115r8030-0ubuntu3.diff.gz')

        patches = [
            'fix_desktop_launcher.patch',
            'remove_scriptableio.patch',
            'use_png_for_windows_icons_on_linux.patch',
            ]

        for patch in patches:
            r.addPatch(patch, sourceDir='debian/patches/')

        launchers = [
            'prism.desktop',
            'prism-google-groups.desktop',
            'prism-facebook.desktop',
            'prism-google-mail.desktop',
            'prism-google-analytics.desktop',
            'prism-google-reader.desktop',
            'prism-google-calendar.desktop',
            'prism-google-talk.desktop',
            'prism-google-docs.desktop', 
            'prism-twitter.desktop',
            ]

        for launcher in launchers:
            r.Install('debian/'+launcher, '%(datadir)s/applications/')

        apps = [
            'facebook.webapp',
            'gcalendar.webapp',
            'gmail.webapp',
            'groups.webapp',
            'twitter.webapp',
            'ganalytics.webapp',
            'gdocs.webapp',
            'greader.webapp',
            'gtalk.webapp',
            ]

        for app in apps:
            r.Install('install/profiles/'+app, '%(datadir)s/prism/apps/')

        r.Install('app', '%(datadir)s/prism')
        r.Replace('xulrunner-1.9', 'xulrunner', 'debian/prism.sh')
        r.Install('debian/prism.sh', '%(bindir)s/prism', mode=0755)