summaryrefslogtreecommitdiff
path: root/graphics/gnofract4d/Makefile
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2006-06-28 05:59:53 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2006-06-28 05:59:53 +0000
commitcc257b5946f7708056acd8cc7a9f85c0be6f49fe (patch)
tree17a61f3bc88eae8e612abd3e60af3a83c5c9cab3 /graphics/gnofract4d/Makefile
parent- update to 2.4.9 (diff)
upgrade to 3.0
Diffstat (limited to 'graphics/gnofract4d/Makefile')
-rw-r--r--graphics/gnofract4d/Makefile31
1 files changed, 23 insertions, 8 deletions
diff --git a/graphics/gnofract4d/Makefile b/graphics/gnofract4d/Makefile
index 6963267118ee..06474f32ac38 100644
--- a/graphics/gnofract4d/Makefile
+++ b/graphics/gnofract4d/Makefile
@@ -6,8 +6,8 @@
#
PORTNAME= gnofract4d
-PORTVERSION= 2.6
-PORTREVISION= 1
+PORTVERSION= 3.0
+PORTREVISION= 0
CATEGORIES= graphics gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -16,20 +16,35 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Weird GNOME fractal generator
USE_X_PREFIX= yes
-USE_GNOME= gnomehack gnomeprefix gnometarget intlhack libgnomeui lthack
+USE_GNOME= gnomehack gnomeprefix gnometarget intlhack libgnomeui lthack \
+ pygtk2
USE_PYTHON= yes
USE_PYDISTUTILS=yes
USE_GCC= 3.4
+PLIST_FILES= bin/gnofract4d
+
+PORTDOCS= *
+
+.include <bsd.port.pre.mk>
+
post-patch:
# where to install libraries
- ${REINPLACE_CMD} -e 's,\(^install_lib =\).*,\1${PREFIX}/lib/${PORTNAME},' ${WRKSRC}/setup.cfg
+ @${REINPLACE_CMD} -e 's,\(^install_lib =\).*,\1${PREFIX}/lib/${PORTNAME},' ${WRKSRC}/setup.cfg
# contain in DATADIR ('share/foobar/gnofract4d' -> 'share/gnofract4d/foobar')
- ${FIND} ${WRKSRC} -name '*.py' -exec \
+ @${FIND} ${WRKSRC} -name '*.py' -exec \
${REINPLACE_CMD} -e "s,\([\"']\)share/\([^/]*\)/gnofract4d\1,\1${DATADIR:C/${PREFIX}\///}/\2\1," {} \;
# libraries again
- ${REINPLACE_CMD} -e "s,gnofract4d-${PORTVERSION},${PORTNAME}," ${WRKSRC}/gnofract4d
+ @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/gnofract4d
# where to install docs
- ${REINPLACE_CMD} -e "s,share/doc/gnofract4d-%s/'.*,${DOCSDIR:C/${PREFIX}\///}'\,," ${WRKSRC}/setup.py
+ @${REINPLACE_CMD} -e "s,share/doc/gnofract4d-%s/'.*,${DOCSDIR:C/${PREFIX}\///}'\,," ${WRKSRC}/setup.py
+
+post-install:
+.for dir in ${PREFIX}/lib/gnofract4d ${PREFIX}/share/gnofract4d ${PREFIX}/share/gnome/help/gnofract4d
+ @${FIND} ${dir} ! -type d | \
+ ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
+ @${FIND} ${dir} -type d | ${SORT} -r | \
+ ${SED} "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST}
+.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>