Advertisement
Guest User

Untitled

a guest
Mar 4th, 2010
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. ## This program is free software; you can redistribute it and/or modify
  4. ## it under the terms of the GNU General Public License as published
  5. ## by the Free Software Foundation; version 2 only.
  6. ##
  7. ## This program is distributed in the hope that it will be useful,
  8. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. ## GNU General Public License for more details.
  11. ##
  12. import pypackager
  13. import os
  14.  
  15. if __name__ == "__main__":
  16. try:
  17. os.chdir(os.path.dirname(sys.argv[0]))
  18. except:
  19. pass
  20.  
  21. p=pypackager.PyPackager("pygtkeditor")
  22. p.version='3.0.14'
  23. p.buildversion='1'
  24. p.display_name='PyGTKEditor'
  25. p.description="PyGTKEditor is a source code editor specially designed for devices running Maemo."
  26. p.author="Benoît HERVIER"
  27. p.maintainer="Khertan"
  28. p.email="khertan@khertan.net"
  29. p.depends = "python2.5-hildon,python2.5-gtk2,python-osso,python2.5-xml,python-dbus,python-gobject"
  30. p.section="user/development"
  31. p.arch="any"
  32. p.urgency="low"
  33. p.bugtracker='https://bugs.maemo.org/enter_bug.cgi?product=PyGTKEditor'
  34. p.distribution="fremantle"
  35. p.repository="extras-devel"
  36. p.icon='pygtkeditor.png'
  37. p["/usr/bin"] = ["pygtkeditor",]
  38. p["/usr/share/dbus-1/services"] = ["pygtkeditor.service",]
  39. p["/usr/share/pixmaps"] = ["pygtkeditor.png",]
  40. p["/usr/share/applications/hildon"] = ["pygtkeditor.desktop",]
  41. p["/usr/share/mime/packages"] = ["cpp-mime.xml",
  42. "glade-mime.xml",
  43. "latex-mime.xml",
  44. "perl-mime.xml",
  45. "cpp-mime.xml",
  46. "xml-mime.xml",
  47. "sql-mime.xml",
  48. "sh-mime.xml",
  49. "ruby-mime.xml",
  50. "python-mime.xml",]
  51. files = [ "pygtkeditor.py",
  52. "pge_window.py",
  53. "about.py",
  54. "pge_main.py",
  55. "pge_recentchooser.py",
  56. "pge_buffer.py",
  57. "pge_editor.py",
  58. "pge_defering.py",
  59. "pge_help.py",
  60. "pge_preferences.py",
  61. "portrait.py",
  62. "pygtkeditor.png"]
  63. for root, dirs, fs in os.walk('/home/user/MyDocs/Projects/pygtkeditor/syntax'):
  64. for f in fs:
  65. print os.path.basename(f)
  66. files.append('syntax/'+os.path.basename(f))
  67. print files
  68.  
  69. p["/opt/pygtkeditor"] = files
  70.  
  71. p["/usr/share/icons/hicolor/48x48/hildon"] = ["pygtkeditor-decrease_indent.png",
  72. "pygtkeditor-increase_indent.png",]
  73. p.postinstall = """#!/bin/sh
  74. chmod +x /usr/bin/pygtkeditor"""
  75.  
  76. p.changelog="""
  77. ◦ Fix duplicate multiple lines feature
  78. ◦ Fix line number : #8814
  79. """
  80. print p.generate(build_binary=False,build_src=True)
  81. #print p.generate(build_binary=True,build_src=False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement