This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: .gitignore bockbuild/darwinprofile.py packages/gtk+.py packages/mono.py
- Loading branch information
Alex Corrado
committed
Apr 16, 2012
1 parent
67649c3
commit 4683d15
Showing
37 changed files
with
1,269 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ profiles/*/build-root | |
profiles/*/bundle.glick | ||
solitary/Options.cs | ||
solitary/Solitary.exe* | ||
*.pyc | ||
*~ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
|
||
class BooPackage (Package): | ||
def __init__(self): | ||
Package.__init__ (self, 'boo', '0.9.4.9') | ||
self.sources = ['http://dist.codehaus.org/boo/distributions/boo-0.9.4.9.tar.gz'] | ||
|
||
def install(self): | ||
# Unfortunately boo's build scripts don't seem to do a very good job | ||
for script in [ 'booc', 'booi', 'booish' ]: | ||
replace_in_file (os.path.join ('extras', script), { '${exec_prefix}': self.prefix }) | ||
self.sh ('make install MIME_PREFIX=/tmp GTKSOURCEVIEW_PREFIX=/tmp') | ||
|
||
BooPackage () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SourceForgePackage ('expat', 'expat', '2.0.1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
class FsharpPackage(GitHubTarballPackage): | ||
def __init__(self): | ||
GitHubTarballPackage.__init__(self, | ||
'fsharp', 'fsharp', | ||
'2.11', | ||
'6d4f78d60b8ca8158a10e348ffc0a050095a18f6', | ||
configure = '') | ||
|
||
def build(self): | ||
self.sh ('autoreconf') | ||
self.sh ('./configure --prefix="%{prefix}"') | ||
self.sh ('make') | ||
|
||
FsharpPackage() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class GtkSharp212ReleasePackage (Package): | ||
def __init__ (self): | ||
Package.__init__ (self, 'gtk-sharp', '2.12.11') | ||
# self.configure = './bootstrap-2.12 --prefix="%{prefix}"' | ||
self.sources = ['http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.11.tar.bz2'] | ||
self.make = 'make CSC=gmcs' | ||
|
||
GtkSharp212ReleasePackage () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import os | ||
import string | ||
|
||
class IronLanguagesPackage(GitHubTarballPackage): | ||
|
||
def __init__(self): | ||
GitHubTarballPackage.__init__(self, | ||
'IronLanguages', 'main', | ||
'2.11', | ||
'de63773744ccf9873c1826470730ae0446fd64d7', | ||
configure = '') | ||
|
||
self.ironruby = os.path.join (os.getcwd(), self.source_dir_name, 'ironruby', 'bin') + os.sep | ||
self.ironpython = os.path.join (os.getcwd(), self.source_dir_name,'ironpython', 'bin') + os.sep | ||
|
||
def build (self): | ||
self.sh ('xbuild /p:Configuration=Release /p:OutDir="%{ironruby}" Solutions/Ruby.sln') | ||
self.sh ('xbuild /p:Configuration=Release /p:OutDir="%{ironpython}" Solutions/IronPython.Mono.sln') | ||
|
||
|
||
def install_wrapper_scripts (self, path, ironpython_or_ironruby): | ||
for cmd, ext in map(os.path.splitext, os.listdir (path)): | ||
if ext != '.exe': continue | ||
wrapper = os.path.join (self.prefix, 'bin', cmd) | ||
with open(wrapper, "w") as output: | ||
output.write ("#!/bin/sh\n") | ||
output.write ("exec {0}/bin/mono {0}/lib/{1}/bin/{2}.exe \"$@\"\n".format (self.prefix, ironpython_or_ironruby, cmd)) | ||
os.chmod (wrapper, 0755) | ||
|
||
def install (self): | ||
self.install_wrapper_scripts (self.ironruby, 'ironruby') | ||
self.install_wrapper_scripts (self.ironpython, 'ironpython') | ||
self.sh ("cp -Rp %{ironruby} %{prefix}/lib/ironruby/") | ||
self.sh ("cp -Rp %{ironpython} %{prefix}/lib/ironpython/") | ||
|
||
|
||
IronLanguagesPackage() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
GitHubTarballPackage('mono', 'libgdiplus', '2.10', 'f7f70076b73925f13de9cc69822debbc4cde5e48', configure = './autogen.sh --prefix="%{prefix}"') | ||
GitHubTarballPackage('mono', 'libgdiplus', '2.11', '3ddf7ff28e0876dc395368f11c0dd141199338f0', configure = './autogen.sh --prefix="%{prefix}"') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SourceForgePackage ('giflib', 'giflib', '4.1.6') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
Package ('libjpeg', '8', | ||
source_dir_name = 'jpeg-%{version}', | ||
sources = [ | ||
'http://www.ijg.org/files/jpegsrc.v%{version}.tar.gz' | ||
] | ||
) | ||
class LibJpegPackage (Package): | ||
def __init__ (self): | ||
Package.__init__(self, 'libjpeg', '8', sources = ['http://www.ijg.org/files/jpegsrc.v8.tar.gz']) | ||
self.source_dir_name = 'jpeg-8' | ||
|
||
LibJpegPackage() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
SourceForgePackage ('%{name}', 'libpng', '1.4.4', configure_flags = [ | ||
'--enable-shared' | ||
]) | ||
class LibPngPackage (Package): | ||
def __init__ (self): | ||
Package.__init__(self, 'libpng', '1.4.4', | ||
sources = ['http://downloads.sourceforge.net/sourceforge/libpng/libpng-1.4.4.tar.gz'], | ||
configure_flags = ['--enable-shared']) | ||
|
||
LibPngPackage() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
GitHubTarballPackage ('mono', 'mono-basic', '2.11', '6bb2ca6a64ce1277393e4b66eec838d2ce294424', | ||
configure = './configure --prefix="%{prefix}"', | ||
override_properties = { 'make': 'make' } | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
GitHubTarballPackage ('mono', 'llvm', '2.11', '41765e2a354ca7aa88ddb1b8d6b5eb7527556b51', | ||
configure = './configure --prefix="%{prefix}" --enable-optimized --enable-targets="x86 x86_64" --target=i386-apple-darwin10.8.0', | ||
override_properties = { 'make': 'make' } | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
class MonoMasterPackage(Package): | ||
|
||
def __init__(self): | ||
Package.__init__(self, 'mono', '2.11', | ||
sources = ['git://github.com/mono/mono'], | ||
configure_flags = [ | ||
'--enable-nls=no', | ||
'--prefix=' + Package.profile.prefix, | ||
'--with-ikvm=yes', | ||
'--with-moonlight=no' | ||
], | ||
source_dir_name = "mono-2.11.git" | ||
) | ||
if Package.profile.name == 'darwin': | ||
self.configure_flags.extend([ | ||
# fix build on lion, it uses 64-bit host even with -m32 | ||
'--build=i386-apple-darwin11.2.0', | ||
'--enable-loadedllvm' | ||
]) | ||
self.sources.extend(['patches/pkg-config']) | ||
|
||
self.configure = './autogen.sh' | ||
|
||
def install(self): | ||
Package.install(self) | ||
|
||
MonoMasterPackage() |
Oops, something went wrong.