diff options
author | Aaron Bockover <aaron@abock.org> | 2011-02-26 10:02:22 +0300 |
---|---|---|
committer | Aaron Bockover <aaron@abock.org> | 2011-02-26 10:02:22 +0300 |
commit | 1e364b7bc6888219fe9ad4dc61bff5e4756f7ba4 (patch) | |
tree | a4bd6ad0961ca2d1633f4ef103edaf1b2f1b9dad | |
parent | 2c129ed084f0f32ca1539e832e267f25e231b114 (diff) |
Added a MonoMac package
-rw-r--r-- | packages/monomac.py | 32 | ||||
-rw-r--r-- | profiles/banshee/packages.py | 3 |
2 files changed, 34 insertions, 1 deletions
diff --git a/packages/monomac.py b/packages/monomac.py new file mode 100644 index 0000000..19171c3 --- /dev/null +++ b/packages/monomac.py @@ -0,0 +1,32 @@ +class MonoMacPackage (Package): + def __init__ (self): + self.pkgconfig_version = '0.7' + self.maccore_tag = 'monomac-0-6' + self.maccore_source_dir_name = 'mono-maccore-9c54c33' + self.monomac_tag = 'monomac-0-7' + self.monomac_source_dir_name = 'mono-monomac-3a2c2f6' + + Package.__init__ (self, 'monomac', self.monomac_tag) + + self.sources = [ + 'https://github.com/mono/maccore/tarball/%{maccore_tag}', + 'https://github.com/mono/monomac/tarball/%{monomac_tag}' + ] + + def prep (self): + self.sh ('tar xf "%{sources[0]}"') + self.sh ('tar xf "%{sources[1]}"') + self.sh ('mv %{maccore_source_dir_name} maccore') + self.sh ('mv %{monomac_source_dir_name} monomac') + self.cd ('monomac/src') + + def build (self): + self.sh ('make') + + def install (self): + self.sh ('mkdir -p %{prefix}/lib/monomac') + self.sh ('mkdir -p %{prefix}/share/pkgconfig') + self.sh ('echo "Name: MonoMac\nDescription: Mono Mac bindings\nVersion:%{pkgconfig_version}\nLibs: -r:%{prefix}/lib/monomac/MonoMac.dll" > %{prefix}/share/pkgconfig/monomac.pc') + self.sh ('cp MonoMac.dll %{prefix}/lib/monomac') + +MonoMacPackage () diff --git a/profiles/banshee/packages.py b/profiles/banshee/packages.py index d21322f..0b3e745 100644 --- a/profiles/banshee/packages.py +++ b/profiles/banshee/packages.py @@ -88,11 +88,12 @@ class BansheePackages: 'mono-addins.py', 'ndesk-dbus.py', 'ndesk-dbus-glib.py', - 'taglib-sharp.py' + 'taglib-sharp.py', ]) if isinstance (self, DarwinProfile): self.packages.extend ([ + 'monomac.py', 'ige-mac-integration.py' ]) |