From be97f58540d973cc9d32b1cf2ecff5de07c5a619 Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Sun, 12 Jul 2009 16:50:39 +0000 Subject: - Honor EXAMPLESDIR, DATADIR, NOPORTEXAMPLES, NOPORTDATA - portlint(1) --- lang/python23/Makefile | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'lang/python23/Makefile') diff --git a/lang/python23/Makefile b/lang/python23/Makefile index 4212063fe6e0..ef8b97b4f1e5 100644 --- a/lang/python23/Makefile +++ b/lang/python23/Makefile @@ -13,7 +13,7 @@ MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} DISTFILES= ${PYTHON_DISTFILE} MAINTAINER= python@FreeBSD.org -COMMENT?= An interpreted object-oriented programming language +COMMENT= An interpreted object-oriented programming language DIST_SUBDIR= python WRKSRC= ${PYTHON_WRKSRC} @@ -35,8 +35,8 @@ PLATFORMS= plat-freebsd4 plat-freebsd5 plat-freebsd6 \ plat-freebsd7 plat-freebsd8 SHARED_WRKSRC= ${WRKSRC}/build.shared PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} -DEMODIR= ${PREFIX}/share/examples/${PYTHON_VERSION} -TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION} +EXAMPLESDIR= ${PREFIX}/share/examples/${PYTHON_VERSION} +DATADIR= ${PREFIX}/share/${PYTHON_VERSION} BIN_SCRIPTS= idle pydoc python python-shared BINLINKS_SUB= -e 's,(idle|pydoc|python-shared|python),\1${PYTHON_VER},' @@ -50,10 +50,10 @@ OPTIONS= THREADS "Enable thread support" on \ .include .if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} -MLINKS= ${PYTHON_VERSION}.1 python.1 -PLIST_SUB+= IF_DEFAULT="" +MLINKS= ${PYTHON_VERSION}.1 python.1 +PLIST_SUB+= IF_DEFAULT="" .else -PLIST_SUB+= IF_DEFAULT="@comment " +PLIST_SUB+= IF_DEFAULT="@comment " .endif .if !defined(WITHOUT_THREADS) @@ -95,9 +95,9 @@ CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900 .endif .if !defined(WITHOUT_IPV6) -CONFIGURE_ARGS+= --enable-ipv6 +CONFIGURE_ARGS+= --enable-ipv6 .else -CONFIGURE_ARGS+= --disable-ipv6 +CONFIGURE_ARGS+= --disable-ipv6 .endif post-extract: @@ -178,13 +178,15 @@ post-install: done .endif -.if !defined(NOPORTDOCS) - @${MKDIR} ${TOOLSDIR} - @cd ${WRKSRC}; tar -c --exclude='*CVS*' -f - Tools | \ - (cd ${TOOLSDIR}; tar xf -) - @${MKDIR} ${DEMODIR} - @cd ${WRKSRC}/Demo; tar -c --exclude='*CVS*' -f - * | \ - (cd ${DEMODIR}; tar xf -) +.if !defined(NOPORTDATA) + @${MKDIR} ${DATADIR} + @cd ${WRKSRC}; ${TAR} -c --exclude='*CVS*' -f - Tools | \ + (cd ${DATADIR}; ${TAR} xf -) +.endif +.if !defined(NOPORTEXAMPLES) + @${MKDIR} ${EXAMPLESDIR} + @cd ${WRKSRC}/Demo; ${TAR} -c --exclude='*CVS*' -f - * | \ + (cd ${EXAMPLESDIR}; ${TAR} xf -) .endif @${CAT} ${PKGMESSAGE} -- cgit v1.2.3