[banshee] [build] various package cleanups



commit 8c88d17e411a53e181a58e609d508afafa83f1f6
Author: Aaron Bockover <abockover novell com>
Date:   Sun Dec 20 16:14:19 2009 -0500

    [build] various package cleanups

 build/bundle/packages/gst-plugins-base.py |   24 ++++++++++++++++------
 build/bundle/packages/gst-plugins-good.py |   30 +++++++++++++++++++---------
 build/bundle/packages/intltool.py         |    8 ++++--
 build/bundle/packages/libsoup.py          |    8 ++++--
 build/bundle/packages/taglib-sharp.py     |    2 +-
 build/bundle/profile.linux.py             |    5 +---
 6 files changed, 49 insertions(+), 28 deletions(-)
---
diff --git a/build/bundle/packages/gst-plugins-base.py b/build/bundle/packages/gst-plugins-base.py
index acafcc9..57a45d6 100644
--- a/build/bundle/packages/gst-plugins-base.py
+++ b/build/bundle/packages/gst-plugins-base.py
@@ -1,3 +1,19 @@
+configure_flags = [
+	'--disable-gtk-doc',
+	'--disable-gio',
+	'--disable-gnome_vfs'
+]
+
+# FIXME: these should be passed on the Linux profile
+# when we do away with xvideo/xoverlay and replace
+# with Clutter and Cairo
+if profile['name'] == 'osx':
+	configure_flags.extend ([
+		'--disable-x',
+		'--disable-xvideo',
+		'--disable-xshm'
+	])
+
 package = {
 	'name':    'gst-plugins-base',
 	'version': '0.10.25',
@@ -5,13 +21,7 @@ package = {
 		'http://gstreamer.freedesktop.org/src/%{name}/%{name}-%{version}.tar.gz'
 	],
 	'build': [
-		'%{__configure}' \
-			' --disable-gtk-doc' \
-			' --disable-x' \
-			' --disable-xvideo' \
-			' --disable-xshm' \
-			' --disable-gio' \
-			' --disable-gnome_vfs',
+		'%{__configure} ' + ' '.join (configure_flags), 
 		'%{__make}'
 	]
 }
diff --git a/build/bundle/packages/gst-plugins-good.py b/build/bundle/packages/gst-plugins-good.py
index 184e2aa..4a05d7e 100644
--- a/build/bundle/packages/gst-plugins-good.py
+++ b/build/bundle/packages/gst-plugins-good.py
@@ -1,3 +1,22 @@
+configure_flags = [
+	'--disable-gtk-doc',
+	'--disable-gdk_pixbuf',
+	'--disable-cairo',
+	'--disable-jpeg',
+	'--disable-libpng',
+	'--disable-annodex'
+]
+
+# FIXME: these should be passed on the Linux profile
+# when we do away with xvideo/xoverlay and replace
+# with Clutter and Cairo
+if profile['name'] == 'osx':
+	configure_flags.extend ([
+		'--disable-x',
+		'--disable-xvideo',
+		'--disable-xshm'
+	])
+
 package = {
 	'name':    'gst-plugins-good',
 	'version': '0.10.17',
@@ -5,16 +24,7 @@ package = {
 		'http://gstreamer.freedesktop.org/src/%{name}/%{name}-%{version}.tar.gz'
 	],
 	'build': [
-		'%{__configure}' \
-			' --disable-gtk-doc' \
-			' --disable-x' \
-			' --disable-xvideo' \
-			' --disable-xshm' \
-			' --disable-gdk_pixbuf' \
-			' --disable-cairo' \
-			' --disable-jpeg' \
-			' --disable-libpng' \
-			' --disable-annodex',
+		'%{__configure} ' + ' '.join (configure_flags)
 		'%{__make}'
 	]
 }
diff --git a/build/bundle/packages/intltool.py b/build/bundle/packages/intltool.py
index e21b173..2fcfbde 100644
--- a/build/bundle/packages/intltool.py
+++ b/build/bundle/packages/intltool.py
@@ -1,7 +1,9 @@
 package = {
-	'name':    'intltool',
-	'version': '0.40.6',
+	'name':          'intltool',
+	'version_major': '0.40',
+	'version_minor': '6'
+	'version':       '%{version_major}.%{version_minor}',
 	'sources': [
-		'http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/%{name}-%{version}.tar.bz2'
+		'http://ftp.gnome.org/pub/gnome/sources/intltool/%{version_major}/%{name}-%{version}.tar.bz2'
 	]
 }
diff --git a/build/bundle/packages/libsoup.py b/build/bundle/packages/libsoup.py
index 8fbd4b7..5e67aab 100644
--- a/build/bundle/packages/libsoup.py
+++ b/build/bundle/packages/libsoup.py
@@ -1,8 +1,10 @@
 package = {
-	'name':    'libsoup',
-	'version': '2.28.2',
+	'name':         'libsoup',
+	'version_major': '2.28',
+	'version_minor': '2'
+	'version':       '%{version_major}.%{version_minor}',
 	'sources': [
-		'http://ftp.gnome.org/pub/gnome/sources/libsoup/2.28/%{name}-%{version}.tar.bz2'
+		'http://ftp.gnome.org/pub/gnome/sources/libsoup/%{version_major}/%{name}-%{version}.tar.bz2'
 	],
 	'build': [
 		'%{__configure}' \
diff --git a/build/bundle/packages/taglib-sharp.py b/build/bundle/packages/taglib-sharp.py
index 78d6ce8..3bba2e2 100644
--- a/build/bundle/packages/taglib-sharp.py
+++ b/build/bundle/packages/taglib-sharp.py
@@ -2,7 +2,7 @@ package = {
 	'name':    'taglib-sharp',
 	'version': '2.0.3.3',
 	'sources': [
-		'http://download.banshee-project.org/taglib-sharp/%{version}/%{name}-%{version}.tar.gz'
+		'http://download.banshee-project.org/%{name}/%{version}/%{name}-%{version}.tar.gz'
 	],
 	'build': [
 		'%{__configure}' \
diff --git a/build/bundle/profile.linux.py b/build/bundle/profile.linux.py
index e447d9d..b0eb73c 100644
--- a/build/bundle/profile.linux.py
+++ b/build/bundle/profile.linux.py
@@ -45,12 +45,9 @@ profile['packages'] = [
 	'packages/gstreamer.py',
 	'packages/gst-plugins-base.py',
 	'packages/gst-plugins-good.py',
-	'packages/gst-plugins-bad.py',
-	'packages/gst-plugins-ugly.py',
 
 	# Managed Deps
 	'packages/ndesk-dbus.py',
 	'packages/ndesk-dbus-glib.py',
-	'packages/taglib-sharp.py',
-	'packages/ige-mac-integration-sharp.py'
+	'packages/taglib-sharp.py'
 ]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]