summaryrefslogtreecommitdiff
path: root/textproc/py-4suite/files/patch-setup.py
blob: bd34e878ac1c98c1138b5389cde82c17f81cc181 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
This patch mainly ensures that the (optional) documentation is installed to
the "correct" location:

- It removes the hard-coded installation path for documentation.  This allows
  the installation path to be specified at install time with the
  "--install-data" parameter to "setup.py install".

- It removes some redundant documentation.

Note that setup.py is processed further in the port Makefile's post-patch
target.

-- Johann Visagie <wjv@FreeBSD.org>


--- setup.py.orig	Thu Sep 13 20:21:05 2001
+++ setup.py	Fri Sep 14 16:40:29 2001
@@ -228,22 +228,7 @@
 #
 ############################################################
 
-data_files = [Data_Files(copy_to='.',
-                         files=['docs/text/COPYRIGHT',
-                                'docs/text/CREDITS',
-                                'docs/text/PACKAGES',
-                                'docs/text/README',
-                                'docs/text/ReleaseNotes',
-                                'docs/text/REBUILDING',
-                                'docs/text/TODO',
-                                'docs/ChangeLog',
-                                'docs/README.cDomlette',
-                                'docs/README.Cyclops',
-                                ]),
-              Data_Files(copy_to='docs',
-                         files=['docs/ChangeLog',
-                                ]),
-              Data_Files(copy_to='docs/text',
+data_files = [Data_Files(copy_to='docs/text',
                          files=['docs/text/COPYRIGHT',
                                 'docs/text/CREDITS',
                                 'docs/text/PACKAGES',
@@ -330,7 +315,7 @@
                          files=get_files('test_suite/Rdf/Inference/*.*')),
 
 
-              Data_Files(copy_to='profile/Rdf',
+              Data_Files(copy_to='test_suite/profile/Rdf',
                          files=get_files('profile/Rdf/*.*')),
 
 
@@ -353,7 +338,7 @@
               Data_Files(copy_to='test_suite/Ods/borrowed',
                          files=get_files('test_suite/Ods/borrowed/*.*')),
 
-              Data_Files(copy_to='profile/Ods',
+              Data_Files(copy_to='test_suite/profile/Ods',
                          files=get_files('profile/Ods/*.*')),
 
 
@@ -377,9 +362,6 @@
               Data_Files(copy_to='demos/4ODS/tutorial',
                          files=get_files('demos/4ODS/tutorial/*.*')),
               ]
-
-for df in data_files:
-    df.base_dir = '$base/doc/$dist_name-$dist_version'
 
 ############################################################
 #