summaryrefslogtreecommitdiffstats
path: root/lang/python26/Makefile
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2000-11-29 12:35:31 +0000
committertg <tg@FreeBSD.org>2000-11-29 12:35:31 +0000
commit5c26c20c539d7201243494f120142d7f431f5183 (patch)
treed4fc9b789933751d59c90d528afaa9438f2fb476 /lang/python26/Makefile
parent16b488a2d690c6725bb426a89aae999487ef1c79 (diff)
downloadFreeBSD-ports-5c26c20c539d7201243494f120142d7f431f5183.zip
FreeBSD-ports-5c26c20c539d7201243494f120142d7f431f5183.tar.gz
Install Demo/ dir to $PREFIX/share/examples/python.
Diffstat (limited to 'lang/python26/Makefile')
-rw-r--r--lang/python26/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/lang/python26/Makefile b/lang/python26/Makefile
index 6663762..b2b09aa 100644
--- a/lang/python26/Makefile
+++ b/lang/python26/Makefile
@@ -68,6 +68,14 @@ PLIST_GMP= ${PKGDIR}/pkg-plist.gmp
PLIST_TOOLS= ${PKGDIR}/pkg-plist.Tools
.endif
+#
+# Install Demo/ by default.
+#
+.if !defined(WITHOUT_DEMO)
+PLIST_DEMO= ${PKGDIR}/pkg-plist.Demo
+DEMODIR= ${PREFIX}/share/examples/python
+.endif
+
post-configure:
${CP} ${FILESDIR}/${SETUP_FILE} ${WRKSRC}/Modules/Setup
.for file in ${SETUP_LOCAL}
@@ -107,16 +115,21 @@ pre-install:
${PREFIX}/lib/${PYTHON_VERSION}/${platform}/
.endfor
.endfor
- @sort -r -o ${PLIST} ${PLIST_GMP} ${PLIST_TOOLS} ${PKGDIR}/pkg-plist
+ @sort -r -o ${PLIST} ${PLIST_GMP} ${PLIST_TOOLS} ${PLIST_DEMO} ${PKGDIR}/pkg-plist
post-install:
strip ${PREFIX}/bin/python
@${MKDIR} ${PREFIX}/share/emacs/site-lisp
${INSTALL_DATA} ${WRKSRC}/Misc/python-mode.el ${PREFIX}/share/emacs/site-lisp
- @${MKDIR} ${PREFIX}/lib/${PYTHON_VERSION}/site-packages
+ @${MKDIR} ${PYTHON_SITELIBDIR}
.if !defined(WITHOUT_TOOLS)
@cd ${WRKSRC}; tar -c --exclude='*CVS*' -f - Tools | \
- (cd ${PREFIX}/lib/${PYTHON_VERSION}; tar xf -)
+ (cd ${PYTHON_LIBDIR}; tar xf -)
+.endif
+.if !defined(WITHOUT_DEMO)
+ @${MKDIR} ${DEMODIR}
+ @cd ${WRKSRC}/Demo; tar -c --exclude='*CVS*' -f - * | \
+ (cd ${DEMODIR}; tar xf -)
.endif
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud