mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-10-31 10:37:00 -04:00 
			
		
		
		
	IGN:...
This commit is contained in:
		
							parent
							
								
									5258911488
								
							
						
					
					
						commit
						6b73df3c43
					
				| @ -4,6 +4,7 @@ __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>' | |||||||
| ''' Create an OSX installer ''' | ''' Create an OSX installer ''' | ||||||
| 
 | 
 | ||||||
| import sys, re, os, shutil, subprocess, stat, glob, zipfile, plistlib | import sys, re, os, shutil, subprocess, stat, glob, zipfile, plistlib | ||||||
|  | sys.path = sys.path[1:] | ||||||
| l = {} | l = {} | ||||||
| exec open('setup.py').read() in l | exec open('setup.py').read() in l | ||||||
| VERSION = l['VERSION'] | VERSION = l['VERSION'] | ||||||
| @ -210,7 +211,6 @@ os.execv(python, args) | |||||||
|                      |stat.S_IWUSR|stat.S_IROTH|stat.S_IRGRP) |                      |stat.S_IWUSR|stat.S_IROTH|stat.S_IRGRP) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         self.add_plugins() |  | ||||||
|         print 'Adding fontconfig' |         print 'Adding fontconfig' | ||||||
|         for f in glob.glob(os.path.expanduser('~/fontconfig-bundled/*')): |         for f in glob.glob(os.path.expanduser('~/fontconfig-bundled/*')): | ||||||
|             dest = os.path.join(frameworks_dir, os.path.basename(f)) |             dest = os.path.join(frameworks_dir, os.path.basename(f)) | ||||||
| @ -222,6 +222,8 @@ os.execv(python, args) | |||||||
|             shutil.rmtree(dst) |             shutil.rmtree(dst) | ||||||
|         shutil.copytree('/usr/local/etc/fonts', dst, symlinks=False) |         shutil.copytree('/usr/local/etc/fonts', dst, symlinks=False) | ||||||
| 
 | 
 | ||||||
|  |         self.add_plugins() | ||||||
|  | 
 | ||||||
|         print |         print | ||||||
|         print 'Adding IPython' |         print 'Adding IPython' | ||||||
|         dst = os.path.join(resource_dir, 'lib', 'python2.6', 'IPython') |         dst = os.path.join(resource_dir, 'lib', 'python2.6', 'IPython') | ||||||
|  | |||||||
| @ -16,7 +16,7 @@ if iswindows: | |||||||
|     import win32process |     import win32process | ||||||
|     _windows_null_file = open(os.devnull, 'wb') |     _windows_null_file = open(os.devnull, 'wb') | ||||||
| 
 | 
 | ||||||
| isnewosx = isosx and getattr(sys, 'new_app_bundle') | isnewosx = isosx and getattr(sys, 'new_app_bundle', False) | ||||||
| 
 | 
 | ||||||
| class Worker(object): | class Worker(object): | ||||||
|     ''' |     ''' | ||||||
|  | |||||||
| @ -9,7 +9,7 @@ from calibre.web.feeds.news import BasicNewsRecipe | |||||||
| 
 | 
 | ||||||
| class TelegraphUK(BasicNewsRecipe): | class TelegraphUK(BasicNewsRecipe): | ||||||
|     title                 = u'Telegraph.co.uk' |     title                 = u'Telegraph.co.uk' | ||||||
|     __author__            = 'Darko Miletic and Sujata Raman' |     __author__            = 'Darko Miletic' | ||||||
|     description           = 'News from United Kingdom'     |     description           = 'News from United Kingdom'     | ||||||
|     oldest_article        = 7 |     oldest_article        = 7 | ||||||
|     max_articles_per_feed = 100 |     max_articles_per_feed = 100 | ||||||
| @ -18,9 +18,9 @@ class TelegraphUK(BasicNewsRecipe): | |||||||
|     use_embedded_content  = False |     use_embedded_content  = False | ||||||
| 
 | 
 | ||||||
|     extra_css = ''' |     extra_css = ''' | ||||||
|                 h1{font-family :Arial,Helvetica,sans-serif; font-size:large; color:#666666} |                 h1{font-family :Arial,Helvetica,sans-serif; font-size:large; } | ||||||
|                 h2{font-family :Arial,Helvetica,sans-serif; font-size:small; color:#444444} |                 h2{font-family :Arial,Helvetica,sans-serif; font-size:x-small; color:#444444} | ||||||
|                 .story{font-family :Arial,Helvetica,sans-serif; font-size: x-small; color:#444444 } |                 .story{font-family :Arial,Helvetica,sans-serif; font-size: x-small;} | ||||||
|                 .byline{color:#666666; font-family :Arial,Helvetica,sans-serif; font-size: xx-small;} |                 .byline{color:#666666; font-family :Arial,Helvetica,sans-serif; font-size: xx-small;} | ||||||
|                 a{color:#234B7B; } |                 a{color:#234B7B; } | ||||||
|                 .imageExtras{color:#666666; font-family :Arial,Helvetica,sans-serif; font-size: xx-small;} |                 .imageExtras{color:#666666; font-family :Arial,Helvetica,sans-serif; font-size: xx-small;} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user