summaryrefslogtreecommitdiff
path: root/lang/py25-html-docs/Makefile
diff options
context:
space:
mode:
authorsmb <smb>2008-06-03 16:23:24 +0000
committersmb <smb>2008-06-03 16:23:24 +0000
commitf9e17bd568351f9c48afd5fbe6a597ba34086f61 (patch)
tree1c0c77d17246d96d5180268845d62d8343de2eba /lang/py25-html-docs/Makefile
parent1d04c9455725d1b1531ff9b1ad9c89b72fcc3dff (diff)
downloadpkgsrc-f9e17bd568351f9c48afd5fbe6a597ba34086f61.tar.gz
Add HTML documentation for Python 2.5
Diffstat (limited to 'lang/py25-html-docs/Makefile')
-rw-r--r--lang/py25-html-docs/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/lang/py25-html-docs/Makefile b/lang/py25-html-docs/Makefile
new file mode 100644
index 00000000000..d9f179ab38a
--- /dev/null
+++ b/lang/py25-html-docs/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2008/06/03 16:23:24 smb Exp $
+#
+
+DISTNAME= html-2.5.2
+PKGNAME= ${DISTNAME:S/html/py25-html-docs/}
+CATEGORIES= lang python
+MASTER_SITES= http://www.python.org/ftp/python/doc/2.5.2/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= smb@NetBSD.org
+HOMEPAGE= http://www.python.org/doc/
+COMMENT= HTML Documentation for Python
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/Python-Docs-2.5.2/
+DIST_SUBDIR= python
+
+USE_TOOLS+= pax
+
+NO_CONFIGURE= yes
+NO_BUILD= yes
+
+HTMLDIR= share/doc/html/python2.5
+PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+
+INSTALLATION_DIRS= ${HTMLDIR}
+
+do-install:
+ ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
+ cd ${WRKSRC} && pax -rw -pe [a-z]* ${DESTDIR}${PREFIX}/${HTMLDIR}
+ cd ${DESTDIR}${PREFIX} && ${FIND} ${HTMLDIR} -type f -print >>${PLIST_SRC}
+ cd ${DESTDIR}${PREFIX} && ${FIND} -d ${HTMLDIR} -type d -print | \
+ ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC}
+
+.include "../../mk/bsd.pkg.mk"