summaryrefslogtreecommitdiff
path: root/x11-toolkits/py-gnome
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2008-07-04 03:25:30 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2008-07-04 03:25:30 +0000
commitf431878e426ec6a4cf9f2bcb8cb1cca81238737d (patch)
tree2692aeddda95b79ccf95ef877787456bb09d7b74 /x11-toolkits/py-gnome
parentIt disappeared from master site and take over by alacarte. (diff)
-NOPORTDOCS -> NOPORTEXAMPLES
-Fix the plist when NOPORTDOCS (now NOPORTEXAMPLES) is defined. Reported by: QA Tindy
Notes
Notes: svn path=/head/; revision=216287
Diffstat (limited to 'x11-toolkits/py-gnome')
-rw-r--r--x11-toolkits/py-gnome/Makefile15
-rw-r--r--x11-toolkits/py-gnome/pkg-plist32
2 files changed, 21 insertions, 26 deletions
diff --git a/x11-toolkits/py-gnome/Makefile b/x11-toolkits/py-gnome/Makefile
index 7a1a7aee5acb..2506e102b097 100644
--- a/x11-toolkits/py-gnome/Makefile
+++ b/x11-toolkits/py-gnome/Makefile
@@ -7,7 +7,7 @@
PORTNAME= py-gnome
PORTVERSION= 1.4.4
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= x11-toolkits python gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-python/1.4
@@ -30,26 +30,21 @@ CONFIGURE_ARGS= --with-python=${PYTHON_CMD} \
--with-gtkhtml
EG_SRC_DIR= ${WRKSRC}/pygnome/examples
-EG_DST_DIR= ${PREFIX}/share/examples/py-gnome
+EG_DST_DIR= ${EXAMPLESDIR}
CONFLICTS= py*-gnome-2*
post-patch:
- @${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure ${WRKSRC}/pygtk/configure
+ @${REINPLACE_CMD} -e 's|echo aout|echo elf|' \
+ ${WRKSRC}/configure ${WRKSRC}/pygtk/configure
-.if !defined(NOPORTDOCS)
+.if !defined(NOPORTEXAMPLES)
post-install:
${MKDIR} ${EG_DST_DIR}
${TAR} -C ${EG_SRC_DIR} -cf - . | ${TAR} -C ${EG_DST_DIR} -xvf -
${CHOWN} -R ${BINOWN}:${BINGRP} ${EG_DST_DIR}
${FIND} ${EG_DST_DIR} -type d -print | ${XARGS} ${CHMOD} 0555
${FIND} ${EG_DST_DIR} -type f -print | ${XARGS} ${CHMOD} 0444
-.else
-PLIST= ${WRKDIR}/PLIST.nodocs
-pre-install:
- ${RM} -f ${PLIST}
- ${GREP} -E -v '^(@dirrm )?(share/examples/)|(share/doc/)' \
- ${PKGDIR}/pkg-plist > ${PLIST}
.endif
.include <bsd.port.mk>
diff --git a/x11-toolkits/py-gnome/pkg-plist b/x11-toolkits/py-gnome/pkg-plist
index 69f66ddebe32..99b37f9a7c1b 100644
--- a/x11-toolkits/py-gnome/pkg-plist
+++ b/x11-toolkits/py-gnome/pkg-plist
@@ -66,21 +66,21 @@
%%PYTHON_SITELIBDIR%%/gtk-1.2/gtkhtml.py
%%PYTHON_SITELIBDIR%%/gtk-1.2/gtkhtml.pyc
%%PYTHON_SITELIBDIR%%/gtk-1.2/gtkhtml.pyo
-%%EXAMPLESDIR%%/about.py
-%%EXAMPLESDIR%%/bookmarks-applet.py
-%%EXAMPLESDIR%%/calculator.py
-%%EXAMPLESDIR%%/canvas-example.py
-%%EXAMPLESDIR%%/canvas.py
-%%EXAMPLESDIR%%/clock-applet.py
-%%EXAMPLESDIR%%/colorpicker.py
-%%EXAMPLESDIR%%/dial.py
-%%EXAMPLESDIR%%/fifteen.py
-%%EXAMPLESDIR%%/gtkhtml_demo.py
-%%EXAMPLESDIR%%/html_demo.py
-%%EXAMPLESDIR%%/stock_demo.py
-%%EXAMPLESDIR%%/ted_demo.py
-%%EXAMPLESDIR%%/uiinfo_demo.py
-%%EXAMPLESDIR%%/zterm.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/about.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bookmarks-applet.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/calculator.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/canvas-example.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/canvas.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/clock-applet.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/colorpicker.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dial.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/fifteen.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gtkhtml_demo.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/html_demo.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stock_demo.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ted_demo.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/uiinfo_demo.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/zterm.py
share/pygtk/1.2/defs/applet.defs
share/pygtk/1.2/defs/capplet.defs
share/pygtk/1.2/defs/gnome-enums.defs
@@ -89,5 +89,5 @@ share/pygtk/1.2/defs/gnomeui.defs
share/pygtk/1.2/defs/gtkhtml.defs
share/pygtk/1.2/defs/xmhtml.defs
share/pygtk/1.2/defs/zvt.defs
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm %%PYTHON_SITELIBDIR%%/gtk-1.2/gnome