updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / portio / portio-0.2-remove_documentation.patch
blob73ba7ecd7a7802f1ae979ce90cb4d49fc35956b4
1 --- setup.py 2008-11-13 19:41:28.000000000 +0100
2 +++ setup.pypatch 2008-12-04 10:42:25.000000000 +0100
3 @@ -54,30 +54,30 @@
4 _setup(**kwargs)
6 # if python docutils are installed, generate HTML documentation.
7 -if os.path.exists('/usr/bin/rst-buildhtml'):
8 - os.system('/usr/bin/rst-buildhtml')
9 +#if os.path.exists('/usr/bin/rst-buildhtml'):
10 +# os.system('/usr/bin/rst-buildhtml')
12 -readme = open('index.rst').read() # read in documentation file
13 -readme = string.replace(readme,'**','') # remove restructuredtext markup
14 +#readme = open('index.rst').read() # read in documentation file
15 +#readme = string.replace(readme,'**','') # remove restructuredtext markup
17 # split documentation by text titles and put each title and its text body
18 # into a dictionary: title is the key, text body is the value.
19 -readme_split = re.split('\n(.*?)\n====+?\n\n',readme)
20 -i = 3
21 -readme_db = {}
22 -while i < len(readme_split):
23 - readme_db[readme_split[i]] = readme_split[i + 1]
24 - i += 2
25 +#readme_split = re.split('\n(.*?)\n====+?\n\n',readme)
26 +#i = 3
27 +#readme_db = {}
28 +#while i < len(readme_split):
29 +# readme_db[readme_split[i]] = readme_split[i + 1]
30 +# i += 2
32 -main_title = readme_split[1] + '\n' # main title goes alone
33 +#main_title = readme_split[1] + '\n' # main title goes alone
35 # if not present, generate portio.c source file.
36 # Replace template tag "DOCUMENTATION" into C source with documentation
37 # text read from README. Add backslash iand new line at end of each line
38 # (C multiline string syntax).
39 if not os.path.exists('portio.c'):
40 - doc = main_title + '\n' + readme_db["Module reference"]
41 - doc = string.replace(doc,'\n','\\n\\\n')
42 +# doc = main_title + '\n' + readme_db["Module reference"]
43 +# doc = string.replace(doc,'\n','\\n\\\n')
44 source = open('portio.c.in').read()
45 source = source % {'DOCUMENTATION':doc}
46 open('portio.c','w').write(source)
47 @@ -108,9 +108,9 @@
48 url = 'http://portio.inrim.it',
49 license = 'http://www.gnu.org/licenses/gpl.txt',
50 platforms = ['Linux'],
51 - description = main_title,
52 +# description = main_title,
53 classifiers = filter(None, classifiers.split("\n")),
54 - long_description = readme_db["Module reference"],
55 +# long_description = readme_db["Module reference"],
56 ext_modules = [module])
58 # cleanup