diff options
author | Aaron Bockover <abockover@novell.com> | 2009-12-29 16:09:49 +0300 |
---|---|---|
committer | Aaron Bockover <abockover@novell.com> | 2009-12-29 16:12:48 +0300 |
commit | 84922b0c7a761a6f0c453eb2e6e1affa62f5dfc7 (patch) | |
tree | 47c8c604d9131077b029363d39d0be6593702e25 /packages | |
parent | 0b9201cf8032303ddf1f5397b07e03484b59fc76 (diff) |
[build] build gtk-sharp from svn, fix up .configs
The gtk/gdk-sharp-2.0 assembly config files map to the x11 variant
of the GDK/GTK native libraries, so after make install we change
them to map to quartz.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/gtk-sharp.py | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/packages/gtk-sharp.py b/packages/gtk-sharp.py index 1dbc3ee..99f4d0c 100644 --- a/packages/gtk-sharp.py +++ b/packages/gtk-sharp.py @@ -1,8 +1,31 @@ +def svn_co_or_up (package): + os.chdir ('..') + if os.path.isdir ('gtk-sharp-svn'): + os.chdir ('gtk-sharp-svn') + os.system ('svn up') + else: + os.system ('svn co http://anonsvn.mono-project.com/source/trunk/gtk-sharp gtk-sharp-svn') + os.chdir ('gtk-sharp-svn') + os.chdir ('..') + package = { 'name': 'gtk-sharp', - 'version': '2.12.9', + 'version': 'svn.HEAD', 'branch': '212', 'sources': [ - 'http://ftp.novell.com/pub/mono/sources/%{name}%{branch}/%{name}-%{version}.tar.bz2' + # 'http://ftp.novell.com/pub/mono/sources/%{name}%{branch}/%{name}-%{version}.tar.bz2' + ], + 'prep': [ + svn_co_or_up, + 'cp -a gtk-sharp-svn _build', + 'cd _build/gtk-sharp-svn' + ], + 'build': [ + './bootstrap-for-the-insane --prefix=%{_prefix}', + '%{__make}' + ], + 'install': [ + '%{__makeinstall}', + 'find %{_prefix}/lib/mono/gac -iregex ".*/g[td]k-sharp.dll.config" -exec sed -ie "s/x11/quartz/g" "{}" \;' ] } |