aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2010-12-17 06:33:34 +0800
committernivit <nivit@FreeBSD.org>2010-12-17 06:33:34 +0800
commit8b1ad45a019c32fd8200dc625a02e92eb86c7758 (patch)
tree60644a80a89015048bfdbfe9027a51e34204e8df /textproc
parent16f284d0b59b98ae4dfa8a37509b864d71a3db93 (diff)
downloadfreebsd-ports-gnome-8b1ad45a019c32fd8200dc625a02e92eb86c7758.tar.gz
freebsd-ports-gnome-8b1ad45a019c32fd8200dc625a02e92eb86c7758.tar.zst
freebsd-ports-gnome-8b1ad45a019c32fd8200dc625a02e92eb86c7758.zip
- Add files/patch-Ft__Lib__DistExt__InstallText.py
- Fix package build when NOPORTDOCS is defined PR: ports/153028 Submitted by: nivit Approved by: Mike Brown <mike at skew.org> (maintainer)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-4suite-xml/files/patch-Ft__Lib__DistExt__InstallText.py15
-rw-r--r--textproc/py-4suite-xml/pkg-plist4
2 files changed, 17 insertions, 2 deletions
diff --git a/textproc/py-4suite-xml/files/patch-Ft__Lib__DistExt__InstallText.py b/textproc/py-4suite-xml/files/patch-Ft__Lib__DistExt__InstallText.py
new file mode 100644
index 000000000000..07780515dfee
--- /dev/null
+++ b/textproc/py-4suite-xml/files/patch-Ft__Lib__DistExt__InstallText.py
@@ -0,0 +1,15 @@
+--- ./Ft/Lib/DistExt/InstallText.py.orig 2010-12-16 23:05:48.000000000 +0100
++++ ./Ft/Lib/DistExt/InstallText.py 2010-12-16 23:09:04.000000000 +0100
+@@ -27,9 +27,10 @@
+ ('install_docs', 'install_dir'),
+ ('force', 'force'))
+
++ portdocs = not os.environ.has_key('NOPORTDOCS')
+ self.files = [ f for f in self.distribution.doc_files
+- if isinstance(f, Structures.File) ]
+- if self.distribution.license_file:
++ if isinstance(f, Structures.File) and portdocs ]
++ if self.distribution.license_file and portdocs:
+ self.files.append(Structures.File(self.distribution.license_file))
+ return
+
diff --git a/textproc/py-4suite-xml/pkg-plist b/textproc/py-4suite-xml/pkg-plist
index 5749eff84fe0..6993d383359f 100644
--- a/textproc/py-4suite-xml/pkg-plist
+++ b/textproc/py-4suite-xml/pkg-plist
@@ -846,8 +846,8 @@
%%DATADIR%%/Schemata/xhtml1-transitional.dtd
%%DATADIR%%/Schemata/xsa.dtd
%%DATADIR%%/default.cat
-%%DOCSDIR%%/COPYRIGHT
-%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
+%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/html/COPYRIGHT.html
%%PORTDOCS%%%%DOCSDIR%%/html/CoreManual.html
%%PORTDOCS%%%%DOCSDIR%%/html/HowTos/4SuiteCVS.html