diff options
author | Aaron Bockover <abockover@novell.com> | 2010-01-27 22:59:50 +0300 |
---|---|---|
committer | Aaron Bockover <abockover@novell.com> | 2010-01-27 23:00:24 +0300 |
commit | 78615be9a5504f1b6f09944be0f1762f051fba9a (patch) | |
tree | 74e74c9bb019487abf486696359dda973c2fe5d6 | |
parent | f2d9703483e1850e880a516c51d2166ca2b09903 (diff) |
[bundle] build banshee release tarball on --release
-rw-r--r-- | packages.py | 3 | ||||
-rw-r--r-- | packages/banshee.py | 50 |
2 files changed, 24 insertions, 29 deletions
diff --git a/packages.py b/packages.py index c4adae0..54cae3d 100644 --- a/packages.py +++ b/packages.py @@ -82,3 +82,6 @@ class BansheePackages: 'packages/ige-mac-integration.py', 'packages/ige-mac-integration-sharp.py' ]) + + if self.cmd_options.release_build: + self.packages.append ('packages/banshee.py') 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 () |