aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2007-06-22 20:26:48 +0800
committerlwhsu <lwhsu@FreeBSD.org>2007-06-22 20:26:48 +0800
commit2df53d1ed6a6d50e747324b35ea443df5209fa3c (patch)
tree2575eb1cbf71c6adf4ea97778acb08908b6846c5 /www
parentb964697f39297224cc4c951a80605e666919cdaa (diff)
downloadfreebsd-ports-gnome-2df53d1ed6a6d50e747324b35ea443df5209fa3c.tar.gz
freebsd-ports-gnome-2df53d1ed6a6d50e747324b35ea443df5209fa3c.tar.zst
freebsd-ports-gnome-2df53d1ed6a6d50e747324b35ea443df5209fa3c.zip
- Use SOURCEFORGE in MASTER_SITES
- Respect NOPORTEXAMPLES
Diffstat (limited to 'www')
-rw-r--r--www/py-pysearch/Makefile7
-rw-r--r--www/py-pysearch/pkg-plist6
2 files changed, 6 insertions, 7 deletions
diff --git a/www/py-pysearch/Makefile b/www/py-pysearch/Makefile
index 53be0f9a3354..bd1b01c77bd5 100644
--- a/www/py-pysearch/Makefile
+++ b/www/py-pysearch/Makefile
@@ -8,8 +8,7 @@
PORTNAME= pysearch
PORTVERSION= 3.0
CATEGORIES= www python
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= pysearch
+MASTER_SITES= SOURCEFORGE
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pYsearch-${PORTVERSION}
@@ -19,9 +18,7 @@ COMMENT= Yahoo Search Web Services SDK for Python
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-.if !defined(NOPORTDOCS)
DOCSDIR= ${TARGETDIR}/share/doc/py-${PORTNAME}
-.endif
EXAMPLESDIR= ${TARGETDIR}/share/examples/py-${PORTNAME}
post-install:
@@ -29,7 +26,9 @@ post-install:
@${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/docs/ ${DOCSDIR}
.endif
+.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
+.endif
.include <bsd.port.mk>
diff --git a/www/py-pysearch/pkg-plist b/www/py-pysearch/pkg-plist
index 8e8e8e324b98..f151c6750f60 100644
--- a/www/py-pysearch/pkg-plist
+++ b/www/py-pysearch/pkg-plist
@@ -107,6 +107,6 @@
%%PORTDOCS%%%%DOCSDIR%%/yahoo.search.web.html
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%EXAMPLESDIR%%/profile.py
-%%EXAMPLESDIR%%/websearch.py
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/profile.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/websearch.py
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%