Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/cerbero/bootstrap/linux.py b/cerbero/bootstrap/linux.py
- index 127543d..df02757 100644
- --- a/cerbero/bootstrap/linux.py
- +++ b/cerbero/bootstrap/linux.py
- @@ -102,7 +102,14 @@ class OpenSuseBootstraper (UnixBootstraper):
- 'docbook-utils', 'glib-networking']
- +class GentooBootstraper (UnixBootstraper):
- +
- + tool = 'sudo emerge -uavt %s'
- + packages = ['gcc']
- +
- +
- def register_all():
- register_bootstraper(Distro.DEBIAN, DebianBootstraper)
- register_bootstraper(Distro.REDHAT, RedHatBootstraper)
- register_bootstraper(Distro.SUSE, OpenSuseBootstraper)
- + register_bootstraper(Distro.GENTOO, GentooBootstraper)
- diff --git a/cerbero/enums.py b/cerbero/enums.py
- index 40d51c4..4da1e20 100644
- --- a/cerbero/enums.py
- +++ b/cerbero/enums.py
- @@ -41,6 +41,7 @@ class Distro:
- DEBIAN = 'debian'
- REDHAT = 'redhat'
- SUSE = 'suse'
- + GENTOO = 'gentoo'
- WINDOWS = 'windows'
- OS_X = 'osx'
- IOS = 'ios'
- @@ -67,6 +68,7 @@ class DistroVersion:
- OPENSUSE_12_1 = 'opensuse_12_1'
- OPENSUSE_12_2 = 'opensuse_12_2'
- OPENSUSE_12_3 = 'opensuse_12_3'
- + GENTOO_2_2 = 'gentoo_2_2'
- WINDOWS_XP = 'windows_xp'
- WINDOWS_VISTA = 'windows_vista'
- WINDOWS_7 = 'windows_7'
- diff --git a/cerbero/utils/__init__.py b/cerbero/utils/__init__.py
- index 030e946..754e803 100644
- --- a/cerbero/utils/__init__.py
- +++ b/cerbero/utils/__init__.py
- @@ -177,6 +177,14 @@ def system_info():
- # FIXME Fill this
- raise FatalError("Distribution OpenSuse '%s' "
- "not supported" % str(d))
- + elif d[0].strip() in ['Gentoo Base System']:
- + distro = Distro.GENTOO
- + if d[1] == '2.2':
- + distro_version = DistroVersion.GENTOO_2_2
- + else:
- + # FIXME Fill this
- + raise FatalError("Distribution OpenSuse '%s' "
- + "not supported" % str(d))
- else:
- raise FatalError("Distribution '%s' not supported" % str(d))
- elif platform == Platform.WINDOWS:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement