[46207] trunk/dports/lang/python30-doc

jmr at macports.org jmr at macports.org
Sat Jan 31 11:59:43 PST 2009


Revision: 46207
          http://trac.macports.org/changeset/46207
Author:   jmr at macports.org
Date:     2009-01-31 11:59:43 -0800 (Sat, 31 Jan 2009)
Log Message:
-----------
python30-doc:
 * updated to 3.0 final
 * use python26 for building instead of python25
 * use our own copy of sphinx instead of downloading with svn
 * respect frameworks_dir

Modified Paths:
--------------
    trunk/dports/lang/python30-doc/Portfile

Added Paths:
-----------
    trunk/dports/lang/python30-doc/files/
    trunk/dports/lang/python30-doc/files/Makefile.diff

Modified: trunk/dports/lang/python30-doc/Portfile
===================================================================
--- trunk/dports/lang/python30-doc/Portfile	2009-01-31 19:52:35 UTC (rev 46206)
+++ trunk/dports/lang/python30-doc/Portfile	2009-01-31 19:59:43 UTC (rev 46207)
@@ -3,11 +3,12 @@
 PortSystem 1.0
 
 categories              lang
-depends_lib             port:py25-docutils port:python30
+depends_build           port:py26-sphinx
+depends_lib             port:python30
 use_configure   	no
 
 name			python30-doc
-version			3.0a3
+version			3.0
 platforms		darwin
 maintainers		mww
 description		Python 3.0 Docs
@@ -17,28 +18,32 @@
 master_sites		http://www.python.org/ftp/python/3.0/
 distname		Python-${version}
 dist_subdir		python30
-checksums		md5 ec525b7e7fe4383e8394fab721663252
-extract.suffix		.tgz
+use_bzip2       yes
+checksums		md5 28021e4c542323b7544aace274a03bed \
+                sha1 bf434861cd7bdefb47703ffb6bbc66c6dbd2da3d
 
+patchfiles      Makefile.diff
+
 worksrcdir		${worksrcdir}/Doc
 build.target		html
+build.args-append   PYTHON=${prefix}/bin/python2.6
 extract.post_args	"| tar -xf - ${distname}/Doc"
 
-set mydest /Library/Frameworks/Python.framework/Versions/3.0/Resources/English.lproj/Documentation
+set mydest ${frameworks_dir}/Python.framework/Versions/3.0/Resources/English.lproj/Documentation
 
 destroot {
-	file mkdir ${destroot}${prefix}/${mydest}
-	file copy ${worksrcpath}/build/html ${destroot}${prefix}/${mydest}
+	file mkdir ${destroot}${mydest}
+	file copy ${worksrcpath}/build/html ${destroot}${mydest}
 	file mkdir ${destroot}${prefix}/share/doc/$name
 	system "cd ${destroot}${prefix}/share/doc/$name && \
-		ln -sf ${prefix}/${mydest}/html"
-	move ${destroot}${prefix}/${mydest}/html/library ${destroot}${prefix}/${mydest}/html/lib
-	move ${destroot}${prefix}/${mydest}/html/reference ${destroot}${prefix}/${mydest}/html/ref
+		ln -sf ${mydest}/html"
+	move ${destroot}${mydest}/html/library ${destroot}${mydest}/html/lib
+	move ${destroot}${mydest}/html/reference ${destroot}${mydest}/html/ref
 }
 
 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"
+ui_msg "\n\n\nYou will find the docs in:\n"
+ui_msg "${mydest}\n\n\n"
 }
 
 livecheck.check	regex

Added: trunk/dports/lang/python30-doc/files/Makefile.diff
===================================================================
--- trunk/dports/lang/python30-doc/files/Makefile.diff	                        (rev 0)
+++ trunk/dports/lang/python30-doc/files/Makefile.diff	2009-01-31 19:59:43 UTC (rev 46207)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2008-10-11 11:49:57.000000000 +1100
++++ Makefile	2009-02-01 06:33:09.000000000 +1100
+@@ -51,7 +51,7 @@
+ 	svn update tools/jinja
+ 	svn update tools/pygments
+ 
+-build: checkout
++build:
+ 	mkdir -p build/$(BUILDER) build/doctrees
+ 	$(PYTHON) tools/sphinx-build.py $(ALLSPHINXOPTS)
+ 	@echo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090131/21042806/attachment.html>


More information about the macports-changes mailing list