From 5c26c20c539d7201243494f120142d7f431f5183 Mon Sep 17 00:00:00 2001 From: tg Date: Wed, 29 Nov 2000 12:35:31 +0000 Subject: Install Demo/ dir to $PREFIX/share/examples/python. --- lang/python26/Makefile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'lang/python26/Makefile') 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 -- cgit v1.1