[34751] trunk/dports/lang/python30-doc
reiffert at macports.org
reiffert at macports.org
Tue Mar 4 06:01:54 PST 2008
Revision: 34751
http://trac.macosforge.org/projects/macports/changeset/34751
Author: reiffert at macports.org
Date: 2008-03-04 06:01:52 -0800 (Tue, 04 Mar 2008)
Log Message:
-----------
Fix location of docfiles for recent python30 framework installation.
Modified Paths:
--------------
trunk/dports/lang/python30-doc/Portfile
Removed Paths:
-------------
trunk/dports/lang/python30-doc/files/
Modified: trunk/dports/lang/python30-doc/Portfile
===================================================================
--- trunk/dports/lang/python30-doc/Portfile 2008-03-04 13:40:01 UTC (rev 34750)
+++ trunk/dports/lang/python30-doc/Portfile 2008-03-04 14:01:52 UTC (rev 34751)
@@ -2,37 +2,49 @@
PortSystem 1.0
+set python.bin ${prefix}/bin/python3.0
+categories python
+depends_lib port:py25-docutils port:python30
+use_configure no
+destroot.cmd ${python.bin} setup.py
+destroot.destdir --prefix=${prefix}/Library/Frameworks/Python.framework/Versions/3.0 --root=${destroot}
+# end group code
+
name python30-doc
-version 3.0a2
-categories lang
+version 3.0a3
+categories python
platforms darwin
-maintainers nomaintainer
-description HTML documentation for Python 3.0
-long_description HTML documentation for Python 3.0. Use by running \
- 'pydoc3.0 TOPIC', e.g. 'pydoc3.0 pydoc'.
+maintainers mww
+description Python 3.0 Docs
+long_description ${description}
-homepage http://www.python.org
+homepage http://docs.python.org/
master_sites http://www.python.org/ftp/python/3.0/
-dist_subdir [lindex [split $name -] 0]
distname Python-${version}
+dist_subdir python30
+checksums md5 ec525b7e7fe4383e8394fab721663252
extract.suffix .tgz
-checksums md5 03e5e8676997cb9a27633b6db25ac80c
-patchfiles patch-setup.py.diff
-depends_lib port:gettext port:python30 port:latex2html port:py25-hashlib
+worksrcdir ${worksrcdir}/Doc
+build.target html
+extract.post_args "| tar -xf - ${distname}/Doc"
-configure.args --enable-shared --without-readline --enable-ipv6 --disable-tk --disable-framework --enable-toolbox-glue
+set mydest /Library/Frameworks/Python.framework/Versions/3.0/Resources/English.lproj/Documentation
-build.target html
-build.cmd { cd Doc && make }
-
destroot {
- file mkdir ${destroot}${prefix}/share/doc/
- copy $worksrcpath/Doc/build/html ${destroot}${prefix}/share/doc/$name
- move ${destroot}${prefix}/share/doc/$name/reference ${destroot}${prefix}/share/doc/$name/ref
- move ${destroot}${prefix}/share/doc/$name/library ${destroot}${prefix}/share/doc/$name/lib
+ file mkdir ${destroot}${prefix}/${mydest}
+ file copy ${worksrcpath}/build/html ${destroot}${prefix}/${mydest}
+ file mkdir ${destroot}${prefix}/share/doc/$name
+ system "cd ${destroot}${prefix}/share/doc/$name && \
+ ln -sf ${prefix}/${mydest}/html"
}
-livecheck.check regex
-livecheck.url http://www.python.org/download/releases/3.0/
-livecheck.regex /3.0/Python-(\[0-9a-z.\]+)\\.tgz
+post-activate {
+ui_msg "\n\n\nPlease note that python-3.0a3 is alpha software.\nThe current docs are broken and unfinished, so many topics mentioned by\n\npydoc3.0 topics\n\nwill not work.\nYou will find the docs in:\n"
+ui_msg "${prefix}/${mydest}\n\n\n"
+}
+
+livecheck.check regex
+livecheck.url http://www.python.org/download/releases/3.0/
+livecheck.regex /3.0/Python-(\[0-9a-z.\]+)\\.tgz
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080304/5d66f96e/attachment.html
More information about the macports-changes
mailing list