Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add somes other packages

  • Loading branch information...
commit 77ca9c3ab3420d02cb11c98e076f62ae1b5dcd23 1 parent 73d08ae
socketubs authored
Showing with 628 additions and 0 deletions.
  1. BIN  public/noarch/nodist/novers/beautifulsoup4.source/beautifulsoup4.tar
  2. +78 −0 public/noarch/nodist/novers/beautifulsoup4.source/beautifulsoup4/control.py
  3. BIN  public/noarch/nodist/novers/beautifulsoup4.source/beautifulsoup4/files.bz2
  4. +1 −0  public/noarch/nodist/novers/beautifulsoup4.source/beautifulsoup4/files.lst
  5. BIN  public/noarch/nodist/novers/beautifulsoup4.source/build/tmp/ubik/beautifulsoup4-4.1.3.tar.gz
  6. +78 −0 public/noarch/nodist/novers/beautifulsoup4.source/control.py
  7. BIN  public/noarch/nodist/novers/beautifulsoup4.source/control.pyc
  8. BIN  public/noarch/nodist/novers/beautifulsoup4.source/source/beautifulsoup4-4.1.3.tar.gz
  9. BIN  public/noarch/nodist/novers/beautifulsoup4.tar
  10. BIN  public/noarch/nodist/novers/isit.source/build/tmp/ubik/isit-0.2.5.tar.gz
  11. +78 −0 public/noarch/nodist/novers/isit.source/control.py
  12. BIN  public/noarch/nodist/novers/isit.source/control.pyc
  13. BIN  public/noarch/nodist/novers/isit.source/isit.tar
  14. +78 −0 public/noarch/nodist/novers/isit.source/isit/control.py
  15. BIN  public/noarch/nodist/novers/isit.source/isit/files.bz2
  16. +1 −0  public/noarch/nodist/novers/isit.source/isit/files.lst
  17. BIN  public/noarch/nodist/novers/isit.source/source/isit-0.2.5.tar.gz
  18. BIN  public/noarch/nodist/novers/isit.tar
  19. BIN  public/noarch/nodist/novers/pyhn.source/build/tmp/ubik/pyhn-0.1.8.tar.gz
  20. +78 −0 public/noarch/nodist/novers/pyhn.source/control.py
  21. BIN  public/noarch/nodist/novers/pyhn.source/control.pyc
  22. BIN  public/noarch/nodist/novers/pyhn.source/pyhn.tar
  23. +78 −0 public/noarch/nodist/novers/pyhn.source/pyhn/control.py
  24. BIN  public/noarch/nodist/novers/pyhn.source/pyhn/files.bz2
  25. +1 −0  public/noarch/nodist/novers/pyhn.source/pyhn/files.lst
  26. BIN  public/noarch/nodist/novers/pyhn.source/source/pyhn-0.1.8.tar.gz
  27. BIN  public/noarch/nodist/novers/pyhn.tar
  28. BIN  public/noarch/nodist/novers/urwid.source/build/tmp/ubik/urwid-1.1.1.tar.gz
  29. +78 −0 public/noarch/nodist/novers/urwid.source/control.py
  30. BIN  public/noarch/nodist/novers/urwid.source/control.pyc
  31. BIN  public/noarch/nodist/novers/urwid.source/source/urwid-1.1.1.tar.gz
  32. BIN  public/noarch/nodist/novers/urwid.source/urwid.tar
  33. +78 −0 public/noarch/nodist/novers/urwid.source/urwid/control.py
  34. BIN  public/noarch/nodist/novers/urwid.source/urwid/files.bz2
  35. +1 −0  public/noarch/nodist/novers/urwid.source/urwid/files.lst
  36. BIN  public/noarch/nodist/novers/urwid.tar
View
BIN  public/noarch/nodist/novers/beautifulsoup4.source/beautifulsoup4.tar
Binary file not shown
View
78 public/noarch/nodist/novers/beautifulsoup4.source/beautifulsoup4/control.py
@@ -0,0 +1,78 @@
+# coding: utf-8
+import os
+
+from ubik.core import conf
+
+from ubik_toolbelt.logger import stream_logger
+from ubik_toolbelt.control import Control
+
+from shutil import copy2 as copy
+from shutil import rmtree
+
+class Package(Control):
+ def __init__(self):
+ Control.__init__(self)
+ self.name = 'beautifulsoup4'
+ self.version = '4.1.3'
+ self.release = '0'
+ self.requires = []
+ self.arch = ''
+ self.dist = ''
+ self.vers = ''
+ self.description = 'Python HTML parser'
+
+ self.cur_dir = os.getcwd()
+ self.src_dir = os.path.join(os.getcwd(), 'source')
+ self.pkg_dir = os.path.join(os.getcwd(), 'build')
+
+ self.archive_name = "%s-%s.tar.gz" % (self.name, self.version)
+ self.dir_name = "%s-%s" % (self.name, self.version)
+
+ #
+ # You can easily add some pre_install, post_install, *_upgrade and *_remove methods
+ #
+
+ def build(self):
+ stream_logger.info('Building...')
+
+ def package(self):
+ stream_logger.info('Packaging...')
+ if not os.path.exists(os.path.join(self.pkg_dir, 'tmp', 'ubik')):
+ os.makedirs(os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+ copy(os.path.join(self.src_dir, self.archive_name), os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+
+ def pre_install(self):
+ pass
+
+ def post_install(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_upgrade(self):
+ pass
+
+ def post_upgrade(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --upgrade --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_remove(self):
+ pass
+
+ def post_remove(self):
+ pass
View
BIN  public/noarch/nodist/novers/beautifulsoup4.source/beautifulsoup4/files.bz2
Binary file not shown
View
1  public/noarch/nodist/novers/beautifulsoup4.source/beautifulsoup4/files.lst
@@ -0,0 +1 @@
+./tmp/ubik/beautifulsoup4-4.1.3.tar.gz
View
BIN  public/noarch/nodist/novers/beautifulsoup4.source/build/tmp/ubik/beautifulsoup4-4.1.3.tar.gz
Binary file not shown
View
78 public/noarch/nodist/novers/beautifulsoup4.source/control.py
@@ -0,0 +1,78 @@
+# coding: utf-8
+import os
+
+from ubik.core import conf
+
+from ubik_toolbelt.logger import stream_logger
+from ubik_toolbelt.control import Control
+
+from shutil import copy2 as copy
+from shutil import rmtree
+
+class Package(Control):
+ def __init__(self):
+ Control.__init__(self)
+ self.name = 'beautifulsoup4'
+ self.version = '4.1.3'
+ self.release = '0'
+ self.requires = []
+ self.arch = ''
+ self.dist = ''
+ self.vers = ''
+ self.description = 'Python HTML parser'
+
+ self.cur_dir = os.getcwd()
+ self.src_dir = os.path.join(os.getcwd(), 'source')
+ self.pkg_dir = os.path.join(os.getcwd(), 'build')
+
+ self.archive_name = "%s-%s.tar.gz" % (self.name, self.version)
+ self.dir_name = "%s-%s" % (self.name, self.version)
+
+ #
+ # You can easily add some pre_install, post_install, *_upgrade and *_remove methods
+ #
+
+ def build(self):
+ stream_logger.info('Building...')
+
+ def package(self):
+ stream_logger.info('Packaging...')
+ if not os.path.exists(os.path.join(self.pkg_dir, 'tmp', 'ubik')):
+ os.makedirs(os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+ copy(os.path.join(self.src_dir, self.archive_name), os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+
+ def pre_install(self):
+ pass
+
+ def post_install(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_upgrade(self):
+ pass
+
+ def post_upgrade(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --upgrade --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_remove(self):
+ pass
+
+ def post_remove(self):
+ pass
View
BIN  public/noarch/nodist/novers/beautifulsoup4.source/control.pyc
Binary file not shown
View
BIN  public/noarch/nodist/novers/beautifulsoup4.source/source/beautifulsoup4-4.1.3.tar.gz
Binary file not shown
View
BIN  public/noarch/nodist/novers/beautifulsoup4.tar
Binary file not shown
View
BIN  public/noarch/nodist/novers/isit.source/build/tmp/ubik/isit-0.2.5.tar.gz
Binary file not shown
View
78 public/noarch/nodist/novers/isit.source/control.py
@@ -0,0 +1,78 @@
+# coding: utf-8
+import os
+
+from ubik.core import conf
+
+from ubik_toolbelt.logger import stream_logger
+from ubik_toolbelt.control import Control
+
+from shutil import copy2 as copy
+from shutil import rmtree
+
+class Package(Control):
+ def __init__(self):
+ Control.__init__(self)
+ self.name = 'isit'
+ self.version = '0.2.5'
+ self.release = '0'
+ self.requires = []
+ self.arch = ''
+ self.dist = ''
+ self.vers = ''
+ self.description = 'Environment runtime detection (Python,Linux,Distribution,etc...)'
+
+ self.cur_dir = os.getcwd()
+ self.src_dir = os.path.join(os.getcwd(), 'source')
+ self.pkg_dir = os.path.join(os.getcwd(), 'build')
+
+ self.archive_name = "%s-%s.tar.gz" % (self.name, self.version)
+ self.dir_name = "%s-%s" % (self.name, self.version)
+
+ #
+ # You can easily add some pre_install, post_install, *_upgrade and *_remove methods
+ #
+
+ def build(self):
+ stream_logger.info('Building...')
+
+ def package(self):
+ stream_logger.info('Packaging...')
+ if not os.path.exists(os.path.join(self.pkg_dir, 'tmp', 'ubik')):
+ os.makedirs(os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+ copy(os.path.join(self.src_dir, self.archive_name), os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+
+ def pre_install(self):
+ pass
+
+ def post_install(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_upgrade(self):
+ pass
+
+ def post_upgrade(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --upgrade --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_remove(self):
+ pass
+
+ def post_remove(self):
+ pass
View
BIN  public/noarch/nodist/novers/isit.source/control.pyc
Binary file not shown
View
BIN  public/noarch/nodist/novers/isit.source/isit.tar
Binary file not shown
View
78 public/noarch/nodist/novers/isit.source/isit/control.py
@@ -0,0 +1,78 @@
+# coding: utf-8
+import os
+
+from ubik.core import conf
+
+from ubik_toolbelt.logger import stream_logger
+from ubik_toolbelt.control import Control
+
+from shutil import copy2 as copy
+from shutil import rmtree
+
+class Package(Control):
+ def __init__(self):
+ Control.__init__(self)
+ self.name = 'isit'
+ self.version = '0.2.5'
+ self.release = '0'
+ self.requires = []
+ self.arch = ''
+ self.dist = ''
+ self.vers = ''
+ self.description = 'Environment runtime detection (Python,Linux,Distribution,etc...)'
+
+ self.cur_dir = os.getcwd()
+ self.src_dir = os.path.join(os.getcwd(), 'source')
+ self.pkg_dir = os.path.join(os.getcwd(), 'build')
+
+ self.archive_name = "%s-%s.tar.gz" % (self.name, self.version)
+ self.dir_name = "%s-%s" % (self.name, self.version)
+
+ #
+ # You can easily add some pre_install, post_install, *_upgrade and *_remove methods
+ #
+
+ def build(self):
+ stream_logger.info('Building...')
+
+ def package(self):
+ stream_logger.info('Packaging...')
+ if not os.path.exists(os.path.join(self.pkg_dir, 'tmp', 'ubik')):
+ os.makedirs(os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+ copy(os.path.join(self.src_dir, self.archive_name), os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+
+ def pre_install(self):
+ pass
+
+ def post_install(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_upgrade(self):
+ pass
+
+ def post_upgrade(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --upgrade --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_remove(self):
+ pass
+
+ def post_remove(self):
+ pass
View
BIN  public/noarch/nodist/novers/isit.source/isit/files.bz2
Binary file not shown
View
1  public/noarch/nodist/novers/isit.source/isit/files.lst
@@ -0,0 +1 @@
+./tmp/ubik/isit-0.2.5.tar.gz
View
BIN  public/noarch/nodist/novers/isit.source/source/isit-0.2.5.tar.gz
Binary file not shown
View
BIN  public/noarch/nodist/novers/isit.tar
Binary file not shown
View
BIN  public/noarch/nodist/novers/pyhn.source/build/tmp/ubik/pyhn-0.1.8.tar.gz
Binary file not shown
View
78 public/noarch/nodist/novers/pyhn.source/control.py
@@ -0,0 +1,78 @@
+# coding: utf-8
+import os
+
+from ubik.core import conf
+
+from ubik_toolbelt.logger import stream_logger
+from ubik_toolbelt.control import Control
+
+from shutil import copy2 as copy
+from shutil import rmtree
+
+class Package(Control):
+ def __init__(self):
+ Control.__init__(self)
+ self.name = 'pyhn'
+ self.version = '0.1.8'
+ self.release = '0'
+ self.requires = ['isit', 'urwid', 'beautifulsoup4']
+ self.arch = ''
+ self.dist = ''
+ self.vers = ''
+ self.description = 'Hacker news client in Ncurses'
+
+ self.cur_dir = os.getcwd()
+ self.src_dir = os.path.join(os.getcwd(), 'source')
+ self.pkg_dir = os.path.join(os.getcwd(), 'build')
+
+ self.archive_name = "%s-%s.tar.gz" % (self.name, self.version)
+ self.dir_name = "%s-%s" % (self.name, self.version)
+
+ #
+ # You can easily add some pre_install, post_install, *_upgrade and *_remove methods
+ #
+
+ def build(self):
+ stream_logger.info('Building...')
+
+ def package(self):
+ stream_logger.info('Packaging...')
+ if not os.path.exists(os.path.join(self.pkg_dir, 'tmp', 'ubik')):
+ os.makedirs(os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+ copy(os.path.join(self.src_dir, self.archive_name), os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+
+ def pre_install(self):
+ pass
+
+ def post_install(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_upgrade(self):
+ pass
+
+ def post_upgrade(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --upgrade --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_remove(self):
+ pass
+
+ def post_remove(self):
+ pass
View
BIN  public/noarch/nodist/novers/pyhn.source/control.pyc
Binary file not shown
View
BIN  public/noarch/nodist/novers/pyhn.source/pyhn.tar
Binary file not shown
View
78 public/noarch/nodist/novers/pyhn.source/pyhn/control.py
@@ -0,0 +1,78 @@
+# coding: utf-8
+import os
+
+from ubik.core import conf
+
+from ubik_toolbelt.logger import stream_logger
+from ubik_toolbelt.control import Control
+
+from shutil import copy2 as copy
+from shutil import rmtree
+
+class Package(Control):
+ def __init__(self):
+ Control.__init__(self)
+ self.name = 'pyhn'
+ self.version = '0.1.8'
+ self.release = '0'
+ self.requires = ['isit', 'urwid', 'beautifulsoup4']
+ self.arch = ''
+ self.dist = ''
+ self.vers = ''
+ self.description = 'Hacker news client in Ncurses'
+
+ self.cur_dir = os.getcwd()
+ self.src_dir = os.path.join(os.getcwd(), 'source')
+ self.pkg_dir = os.path.join(os.getcwd(), 'build')
+
+ self.archive_name = "%s-%s.tar.gz" % (self.name, self.version)
+ self.dir_name = "%s-%s" % (self.name, self.version)
+
+ #
+ # You can easily add some pre_install, post_install, *_upgrade and *_remove methods
+ #
+
+ def build(self):
+ stream_logger.info('Building...')
+
+ def package(self):
+ stream_logger.info('Packaging...')
+ if not os.path.exists(os.path.join(self.pkg_dir, 'tmp', 'ubik')):
+ os.makedirs(os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+ copy(os.path.join(self.src_dir, self.archive_name), os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+
+ def pre_install(self):
+ pass
+
+ def post_install(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_upgrade(self):
+ pass
+
+ def post_upgrade(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --upgrade --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_remove(self):
+ pass
+
+ def post_remove(self):
+ pass
View
BIN  public/noarch/nodist/novers/pyhn.source/pyhn/files.bz2
Binary file not shown
View
1  public/noarch/nodist/novers/pyhn.source/pyhn/files.lst
@@ -0,0 +1 @@
+./tmp/ubik/pyhn-0.1.8.tar.gz
View
BIN  public/noarch/nodist/novers/pyhn.source/source/pyhn-0.1.8.tar.gz
Binary file not shown
View
BIN  public/noarch/nodist/novers/pyhn.tar
Binary file not shown
View
BIN  public/noarch/nodist/novers/urwid.source/build/tmp/ubik/urwid-1.1.1.tar.gz
Binary file not shown
View
78 public/noarch/nodist/novers/urwid.source/control.py
@@ -0,0 +1,78 @@
+# coding: utf-8
+import os
+
+from ubik.core import conf
+
+from ubik_toolbelt.logger import stream_logger
+from ubik_toolbelt.control import Control
+
+from shutil import copy2 as copy
+from shutil import rmtree
+
+class Package(Control):
+ def __init__(self):
+ Control.__init__(self)
+ self.name = 'urwid'
+ self.version = '1.1.1'
+ self.release = '0'
+ self.requires = []
+ self.arch = ''
+ self.dist = ''
+ self.vers = ''
+ self.description = 'A full-featured console (xterm et al.) user interface library'
+
+ self.cur_dir = os.getcwd()
+ self.src_dir = os.path.join(os.getcwd(), 'source')
+ self.pkg_dir = os.path.join(os.getcwd(), 'build')
+
+ self.archive_name = "%s-%s.tar.gz" % (self.name, self.version)
+ self.dir_name = "%s-%s" % (self.name, self.version)
+
+ #
+ # You can easily add some pre_install, post_install, *_upgrade and *_remove methods
+ #
+
+ def build(self):
+ stream_logger.info('Building...')
+
+ def package(self):
+ stream_logger.info('Packaging...')
+ if not os.path.exists(os.path.join(self.pkg_dir, 'tmp', 'ubik')):
+ os.makedirs(os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+ copy(os.path.join(self.src_dir, self.archive_name), os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+
+ def pre_install(self):
+ pass
+
+ def post_install(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_upgrade(self):
+ pass
+
+ def post_upgrade(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --upgrade --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_remove(self):
+ pass
+
+ def post_remove(self):
+ pass
View
BIN  public/noarch/nodist/novers/urwid.source/control.pyc
Binary file not shown
View
BIN  public/noarch/nodist/novers/urwid.source/source/urwid-1.1.1.tar.gz
Binary file not shown
View
BIN  public/noarch/nodist/novers/urwid.source/urwid.tar
Binary file not shown
View
78 public/noarch/nodist/novers/urwid.source/urwid/control.py
@@ -0,0 +1,78 @@
+# coding: utf-8
+import os
+
+from ubik.core import conf
+
+from ubik_toolbelt.logger import stream_logger
+from ubik_toolbelt.control import Control
+
+from shutil import copy2 as copy
+from shutil import rmtree
+
+class Package(Control):
+ def __init__(self):
+ Control.__init__(self)
+ self.name = 'urwid'
+ self.version = '1.1.1'
+ self.release = '0'
+ self.requires = []
+ self.arch = ''
+ self.dist = ''
+ self.vers = ''
+ self.description = 'A full-featured console (xterm et al.) user interface library'
+
+ self.cur_dir = os.getcwd()
+ self.src_dir = os.path.join(os.getcwd(), 'source')
+ self.pkg_dir = os.path.join(os.getcwd(), 'build')
+
+ self.archive_name = "%s-%s.tar.gz" % (self.name, self.version)
+ self.dir_name = "%s-%s" % (self.name, self.version)
+
+ #
+ # You can easily add some pre_install, post_install, *_upgrade and *_remove methods
+ #
+
+ def build(self):
+ stream_logger.info('Building...')
+
+ def package(self):
+ stream_logger.info('Packaging...')
+ if not os.path.exists(os.path.join(self.pkg_dir, 'tmp', 'ubik')):
+ os.makedirs(os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+ copy(os.path.join(self.src_dir, self.archive_name), os.path.join(self.pkg_dir, 'tmp', 'ubik'))
+
+ def pre_install(self):
+ pass
+
+ def post_install(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_upgrade(self):
+ pass
+
+ def post_upgrade(self):
+ # Go to tmp and extract pacakge
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ os.system('tar xvf %s' % self.archive_name)
+ # Go into package and install it
+ os.chdir(self.dir_name)
+ os.system('python setup.py install --upgrade --no-compile --prefix=%s' % conf.get('settings', 'packages'))
+ # Clean package dir and archive
+ os.chdir(os.path.join(conf.get('settings', 'packages'), 'tmp', 'ubik'))
+ rmtree(self.dir_name)
+ os.remove(self.archive_name)
+
+ def pre_remove(self):
+ pass
+
+ def post_remove(self):
+ pass
View
BIN  public/noarch/nodist/novers/urwid.source/urwid/files.bz2
Binary file not shown
View
1  public/noarch/nodist/novers/urwid.source/urwid/files.lst
@@ -0,0 +1 @@
+./tmp/ubik/urwid-1.1.1.tar.gz
View
BIN  public/noarch/nodist/novers/urwid.tar
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.