summaryrefslogtreecommitdiff
path: root/lang/diveintopython
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-04-27 17:38:02 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-04-27 17:38:02 +0000
commit03cf8c13fb013b2ec0ab5c6ae8ea7c3ef6adf3e5 (patch)
treeee7bed4de6fcce142ef4dd4b459fb62076e7ce92 /lang/diveintopython
parentupgrade to 2.1.6 (diff)
add diveintopython
A free Python tutorial book that is "not For Dummies(tm)" PR: 26697 Submitted by: Johann Visagie <johann@egenetics.com>
Notes
Notes: svn path=/head/; revision=41970
Diffstat (limited to 'lang/diveintopython')
-rw-r--r--lang/diveintopython/Makefile57
-rw-r--r--lang/diveintopython/distinfo5
-rw-r--r--lang/diveintopython/pkg-comment1
-rw-r--r--lang/diveintopython/pkg-descr10
-rw-r--r--lang/diveintopython/pkg-plist104
5 files changed, 177 insertions, 0 deletions
diff --git a/lang/diveintopython/Makefile b/lang/diveintopython/Makefile
new file mode 100644
index 000000000000..d9e719b9c5e6
--- /dev/null
+++ b/lang/diveintopython/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: py-diveintopython
+# Date created: 15 March 2001
+# Whom: Johann Visagie <johann@egenetics.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= diveintopython
+PORTVERSION= 3.1.1
+CATEGORIES= lang python
+MASTER_SITES= http://diveintopython.org/download/
+DISTNAME= ${PORTNAME}
+DISTFILES= ${DISTNAME}-html-${VERSIONSTR}.tgz \
+ ${DISTNAME}-html-flat-${VERSIONSTR}.tgz \
+ ${DISTNAME}-pdf-${VERSIONSTR}.tgz \
+ ${DISTNAME}-text-${VERSIONSTR}.tgz \
+ ${DISTNAME}-xml-${VERSIONSTR}.tgz
+DIST_SUBDIR= ${PORTNAME}
+EXTRACT_ONLY= ${DISTNAME}-html-${VERSIONSTR}.tgz \
+ ${DISTNAME}-html-flat-${VERSIONSTR}.tgz \
+ ${DISTNAME}-pdf-${VERSIONSTR}.tgz \
+ ${DISTNAME}-text-${VERSIONSTR}.tgz
+
+MAINTAINER= johann@egenetics.com
+
+NO_BUILD= YES
+DIPDIR= ${PREFIX}/share/doc/diveintopython
+DIPDLDIR= ${DIPDIR}/download
+CPIO= cpio --quiet -pdum -R
+# Is there a way of doing this without using a temporary variable?
+VERSIONTMP= ${PORTVERSION:S|.|-|g}
+VERSIONSTR= ${VERSIONTMP:S|-|.|}
+
+post-patch:
+ @ ${PERL} -pi.orig -e \
+ 's#<td><a[^>]*>(Windows|Mac ?OS)</a></td>##g; \
+ s#UNIX</a>#compressed</a>#g;s#for UNIX \(#(#g; \
+ s#<tr>(.(?!<tr>))*(Microsoft Word|Windows Help)(.(?!</tr>))*.</tr>##g; \
+ s#<td>(.(?!<td>))*cn/(.(?!</td>))*.</td>##g' \
+ ${WRKSRC}/index.html
+
+do-install:
+ @ ${MKDIR} ${DIPDLDIR}
+ @ cd ${WRKSRC} && find *.html *.css images \
+ | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DIPDIR}
+.for format in html pdf txt
+ @ ${INSTALL_DATA} ${WRKSRC}/${format}/${PORTNAME}.${format} \
+ ${DIPDLDIR}
+.endfor
+.for format in html html-flat pdf text xml
+ @ ${INSTALL_DATA} \
+ ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-${format}-${VERSIONSTR}.tgz \
+ ${DIPDLDIR}
+.endfor
+ @ cd ${WRKDIR} && ${TAR} czf ${DIPDLDIR}/examples.tgz py/*
+
+.include <bsd.port.mk>
diff --git a/lang/diveintopython/distinfo b/lang/diveintopython/distinfo
new file mode 100644
index 000000000000..731f4bd2d11c
--- /dev/null
+++ b/lang/diveintopython/distinfo
@@ -0,0 +1,5 @@
+MD5 (diveintopython/diveintopython-html-3.1-1.tgz) = 890cf0eb6bee40ccb684c6dd4f0f3fed
+MD5 (diveintopython/diveintopython-html-flat-3.1-1.tgz) = 528f495e346141b8994cc5a44d128309
+MD5 (diveintopython/diveintopython-pdf-3.1-1.tgz) = 1dbe0ce9acf7c43783dffcc78cafce80
+MD5 (diveintopython/diveintopython-text-3.1-1.tgz) = fe67aefdc47b36dc6aedf15fff0c8d0a
+MD5 (diveintopython/diveintopython-xml-3.1-1.tgz) = bb42e4facedcd79df6796a1a4bc3c86d
diff --git a/lang/diveintopython/pkg-comment b/lang/diveintopython/pkg-comment
new file mode 100644
index 000000000000..2ea709a47f7b
--- /dev/null
+++ b/lang/diveintopython/pkg-comment
@@ -0,0 +1 @@
+A free Python tutorial book that is "not For Dummies(tm)"
diff --git a/lang/diveintopython/pkg-descr b/lang/diveintopython/pkg-descr
new file mode 100644
index 000000000000..77310e45e79c
--- /dev/null
+++ b/lang/diveintopython/pkg-descr
@@ -0,0 +1,10 @@
+"Dive Into Python" is a Python tutorial for experienced programmers.
+
+The book is published under the GNU Free Documentation License, and is
+available in a variety of formats. It is currently being translated into a
+number of languages.
+
+Author: Mark Pilgrim <f8dy@diveintopython.org>
+WWW: http://diveintopython.org/
+
+-- Johann Visagie <johann@egenetics.com>
diff --git a/lang/diveintopython/pkg-plist b/lang/diveintopython/pkg-plist
new file mode 100644
index 000000000000..8683d9f6de73
--- /dev/null
+++ b/lang/diveintopython/pkg-plist
@@ -0,0 +1,104 @@
+share/doc/diveintopython/about.html
+share/doc/diveintopython/abstracts.html
+share/doc/diveintopython/apihelper_alltogether.html
+share/doc/diveintopython/apihelper_andor.html
+share/doc/diveintopython/apihelper_builtin.html
+share/doc/diveintopython/apihelper_divein.html
+share/doc/diveintopython/apihelper_filter.html
+share/doc/diveintopython/apihelper_getattr.html
+share/doc/diveintopython/apihelper_lambda.html
+share/doc/diveintopython/apihelper_optional.html
+share/doc/diveintopython/apihelper_summary.html
+share/doc/diveintopython/chef.html
+share/doc/diveintopython/dialect_basehtml.html
+share/doc/diveintopython/dialect_dialectizer.html
+share/doc/diveintopython/dialect_dictsub.html
+share/doc/diveintopython/dialect_divein.html
+share/doc/diveintopython/dialect_extract.html
+share/doc/diveintopython/dialect_locals.html
+share/doc/diveintopython/dialect_quoting.html
+share/doc/diveintopython/dialect_sgmllib.html
+share/doc/diveintopython/diveintopython.css
+share/doc/diveintopython/download/diveintopython-html-3.1-1.tgz
+share/doc/diveintopython/download/diveintopython-html-flat-3.1-1.tgz
+share/doc/diveintopython/download/diveintopython-pdf-3.1-1.tgz
+share/doc/diveintopython/download/diveintopython-text-3.1-1.tgz
+share/doc/diveintopython/download/diveintopython-xml-3.1-1.tgz
+share/doc/diveintopython/download/diveintopython.html
+share/doc/diveintopython/download/diveintopython.pdf
+share/doc/diveintopython/download/diveintopython.txt
+share/doc/diveintopython/download/examples.tgz
+share/doc/diveintopython/examples.html
+share/doc/diveintopython/fdl.html
+share/doc/diveintopython/fdl_aggregation.html
+share/doc/diveintopython/fdl_applicability.html
+share/doc/diveintopython/fdl_collections.html
+share/doc/diveintopython/fdl_combining.html
+share/doc/diveintopython/fdl_copying.html
+share/doc/diveintopython/fdl_copyinginquantity.html
+share/doc/diveintopython/fdl_future.html
+share/doc/diveintopython/fdl_howto.html
+share/doc/diveintopython/fdl_modifications.html
+share/doc/diveintopython/fdl_termination.html
+share/doc/diveintopython/fdl_translation.html
+share/doc/diveintopython/fileinfo_alltogether.html
+share/doc/diveintopython/fileinfo_class.html
+share/doc/diveintopython/fileinfo_classattributes.html
+share/doc/diveintopython/fileinfo_divein.html
+share/doc/diveintopython/fileinfo_exception.html
+share/doc/diveintopython/fileinfo_files.html
+share/doc/diveintopython/fileinfo_for.html
+share/doc/diveintopython/fileinfo_fromimport.html
+share/doc/diveintopython/fileinfo_instantiation.html
+share/doc/diveintopython/fileinfo_modules.html
+share/doc/diveintopython/fileinfo_morespecial.html
+share/doc/diveintopython/fileinfo_os.html
+share/doc/diveintopython/fileinfo_private.html
+share/doc/diveintopython/fileinfo_specialmethods.html
+share/doc/diveintopython/fileinfo_summary.html
+share/doc/diveintopython/fileinfo_userdict.html
+share/doc/diveintopython/fudd.html
+share/doc/diveintopython/furtherreading.html
+share/doc/diveintopython/gpl.html
+share/doc/diveintopython/gpl_howto.html
+share/doc/diveintopython/gpl_terms.html
+share/doc/diveintopython/history.html
+share/doc/diveintopython/images/callouts/1.png
+share/doc/diveintopython/images/callouts/10.png
+share/doc/diveintopython/images/callouts/2.png
+share/doc/diveintopython/images/callouts/3.png
+share/doc/diveintopython/images/callouts/4.png
+share/doc/diveintopython/images/callouts/5.png
+share/doc/diveintopython/images/callouts/6.png
+share/doc/diveintopython/images/callouts/7.png
+share/doc/diveintopython/images/callouts/8.png
+share/doc/diveintopython/images/callouts/9.png
+share/doc/diveintopython/images/caution.png
+share/doc/diveintopython/images/important.png
+share/doc/diveintopython/images/note.png
+share/doc/diveintopython/images/tip.png
+share/doc/diveintopython/images/warning.png
+share/doc/diveintopython/index.html
+share/doc/diveintopython/odbchelper_dict.html
+share/doc/diveintopython/odbchelper_divein.html
+share/doc/diveintopython/odbchelper_docstring.html
+share/doc/diveintopython/odbchelper_funcdef.html
+share/doc/diveintopython/odbchelper_indenting.html
+share/doc/diveintopython/odbchelper_join.html
+share/doc/diveintopython/odbchelper_list.html
+share/doc/diveintopython/odbchelper_map.html
+share/doc/diveintopython/odbchelper_multiassign.html
+share/doc/diveintopython/odbchelper_objects.html
+share/doc/diveintopython/odbchelper_stringformatting.html
+share/doc/diveintopython/odbchelper_summary.html
+share/doc/diveintopython/odbchelper_testing.html
+share/doc/diveintopython/odbchelper_tuple.html
+share/doc/diveintopython/odbchelper_vardef.html
+share/doc/diveintopython/olde.html
+share/doc/diveintopython/preface.html
+share/doc/diveintopython/tips.html
+share/doc/diveintopython/toc.html
+@dirrm share/doc/diveintopython/images/callouts
+@dirrm share/doc/diveintopython/images
+@dirrm share/doc/diveintopython/download
+@dirrm share/doc/diveintopython