diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/banshee.py | 50 |
1 files changed, 21 insertions, 29 deletions
diff --git a/packages/banshee.py b/packages/banshee.py index 19f6f8a..e7d5028 100644 --- a/packages/banshee.py +++ b/packages/banshee.py @@ -1,32 +1,24 @@ -configure_flags = [ - '--disable-mtp', - '--disable-daap', - '--disable-ipod', - '--disable-boo', - '--disable-gnome', - '--disable-docs' -] +class BansheePackage (Package): + def __init__ (self): + Package.__init__ (self, 'banshee-1', '1.5.3') -if profile['name'] == 'osx': - configure_flags.append ('--enable-osx') + self.sources = [ + 'http://getbanshee.org/~abock/%{name}-%{version}.tar.bz2' +# 'http://download.banshee-project.org/banshee/stable/%{version}/%{name}-%{version}.tar.bz2' + ] -def change_to_gitdir (*args): - last_pwd = '' - while not os.path.isdir ('.git'): - os.chdir ('..') - if last_pwd == os.getcwd (): - break - last_pwd = os.getcwd () + self.configure_flags = [ + '--disable-docs' + ] -package = { - 'name': 'banshee-1', - 'version': '1.5.2', - 'sources': [], - 'prep': [ - change_to_gitdir - ], - 'build': [ - './autogen.sh --prefix=%{_prefix} ' + ' '.join (configure_flags), - '%{__make}' - ] -} + if Package.profile.name == 'darwin': + self.configure_flags.extend ([ + '--disable-mtp', + '--disable-daap', + '--disable-ipod', + '--disable-boo', + '--disable-gnome', + '--enable-osx' + ]) + +BansheePackage () |