Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2013 10:05:54 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r335276 - head/www/py-qp
Message-ID:  <201311301005.rAUA5sUn084761@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Nov 30 10:05:54 2013
New Revision: 335276
URL: http://svnweb.freebsd.org/changeset/ports/335276

Log:
  - Use PORTDOCS and PORTEXAMPLES
  - Simplify Makefile

Modified:
  head/www/py-qp/Makefile
  head/www/py-qp/pkg-plist   (contents, props changed)

Modified: head/www/py-qp/Makefile
==============================================================================
--- head/www/py-qp/Makefile	Sat Nov 30 09:58:36 2013	(r335275)
+++ head/www/py-qp/Makefile	Sat Nov 30 10:05:54 2013	(r335276)
@@ -24,15 +24,12 @@ USE_PYTHON=	-2.7
 
 SUB_FILES=	pkg-message
 
-.include <bsd.port.options.mk>
+PORTDOCS=	CHANGES.txt LICENSE.txt README.txt
+PORTEXAMPLES=	*
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${STAGEDIR}${DOCSDIR}/
-	cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGES.txt LICENSE.txt README.txt ${STAGEDIR}${DOCSDIR}/
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/ ${STAGEDIR}${EXAMPLESDIR}/
+	cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
 	cd ${WRKSRC}/ && ${PYTHON_CMD} ${PYSETUP} install_demo_sites ${STAGEDIR}${EXAMPLESDIR}/
-.endif
 
 .include <bsd.port.mk>

Modified: head/www/py-qp/pkg-plist
==============================================================================
--- head/www/py-qp/pkg-plist	Sat Nov 30 09:58:36 2013	(r335275)
+++ head/www/py-qp/pkg-plist	Sat Nov 30 10:05:54 2013	(r335276)
@@ -114,31 +114,3 @@ bin/qpcensus.py
 @dirrm %%PYTHON_SITELIBDIR%%/qp/fill
 @dirrm %%PYTHON_SITELIBDIR%%/qp/sites
 @dirrm %%PYTHON_SITELIBDIR%%/qp
-%%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt
-%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
-%%PORTDOCS%%%%DOCSDIR%%/README.txt
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/__init__.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/echo/slash.qpy
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/echo/__init__.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/echo/var/here.txt
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hello/slash.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hello/__init__.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hello/var/here.txt
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/proto/forms.qpy
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/proto/qwiki.qpy
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/proto/slash.qpy
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/proto/__init__.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/proto/static/all.css
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/proto/static/favicon.ico
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/proto/static/favicon.png
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/proto/static/proto.js
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/proto/var/here.txt
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/echo/var
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/echo
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/hello/var
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/hello
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/proto/static
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/proto/var
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/proto
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311301005.rAUA5sUn084761>