diff options
author | tg <tg@FreeBSD.org> | 2000-11-29 20:35:31 +0800 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 2000-11-29 20:35:31 +0800 |
commit | 5c26c20c539d7201243494f120142d7f431f5183 (patch) | |
tree | d4fc9b789933751d59c90d528afaa9438f2fb476 /lang/python24/Makefile | |
parent | 16b488a2d690c6725bb426a89aae999487ef1c79 (diff) | |
download | freebsd-ports-gnome-5c26c20c539d7201243494f120142d7f431f5183.tar.gz freebsd-ports-gnome-5c26c20c539d7201243494f120142d7f431f5183.tar.zst freebsd-ports-gnome-5c26c20c539d7201243494f120142d7f431f5183.zip |
Install Demo/ dir to $PREFIX/share/examples/python.
Diffstat (limited to 'lang/python24/Makefile')
-rw-r--r-- | lang/python24/Makefile | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/lang/python24/Makefile b/lang/python24/Makefile index 6663762a106f..b2b09aad12a8 100644 --- a/lang/python24/Makefile +++ b/lang/python24/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> |