diff options
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/blogtk/Makefile | 37 | ||||
-rw-r--r-- | deskutils/blogtk/distinfo | 4 | ||||
-rw-r--r-- | deskutils/blogtk/pkg-plist | 20 |
3 files changed, 38 insertions, 23 deletions
diff --git a/deskutils/blogtk/Makefile b/deskutils/blogtk/Makefile index 23f8c1610511..439959f6ea09 100644 --- a/deskutils/blogtk/Makefile +++ b/deskutils/blogtk/Makefile @@ -7,8 +7,7 @@ # PORTNAME= blogtk -PORTVERSION= 1.0 -PORTREVISION= 2 +PORTVERSION= 1.1 CATEGORIES= deskutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -17,31 +16,27 @@ DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= A client for Blogger, Movable Type, and other blogging systems +WRKSRC= ${WRKDIR}/BloGTK-${PORTVERSION} + USE_BZIP2= yes -USE_REINPLACE= yes +USE_GNOME= pygnomeextras USE_PYTHON= 2.3+ -USE_GNOME= pygtk2 pygnome2 +USE_REINPLACE= yes NO_BUILD= yes -WRKSRC= ${WRKDIR}/BloGTK-${PORTVERSION} post-patch: - @${REINPLACE_CMD} -e 's,/usr/shar,${PREFIX}/shar,' ${WRKSRC}/src/BloGTK.py - -.include <bsd.port.pre.mk> + @${FIND} ${WRKSRC}/src -name "*.py" | ${XARGS} ${REINPLACE_CMD} -e \ + 's|/usr/share|${PREFIX}/share|g ; \ + s|gtk\.FALSE|False|g ; \ + s|gtk\.TRUE|True|g' do-install: - @${MKDIR} ${PYTHON_SITELIBDIR}/blogtk - ${INSTALL_SCRIPT} ${WRKSRC}/src/* ${PYTHON_SITELIBDIR}/blogtk + @${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/blogtk + ${INSTALL_SCRIPT} ${WRKSRC}/src/*.py ${PYTHONPREFIX_SITELIBDIR}/blogtk + @${LN} -fs ${PYTHONPREFIX_SITELIBDIR}/blogtk/BloGTK.py ${PREFIX}/bin/blogtk @${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/pixmaps/* ${DATADIR} - @${LN} -fs ${PYTHON_SITELIBDIR}/blogtk/BloGTK.py ${PREFIX}/bin/blogtk -.for dir in ${PYTHON_SITELIBDIR}/blogtk ${PREFIX}/share/${PORTNAME} - @${FIND} ${dir} ! -type d | \ - ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} - @${FIND} ${dir} -type d | ${SORT} -r | \ - ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} -.endfor - @${ECHO_CMD} "@exec ln -fs %D/${PYTHON_SITELIBDIR:S,^${PREFIX}/,,}/blogtk/BloGTK.py %D/bin/blogtk" >> ${TMPPLIST} - @${ECHO_CMD} "@unexec rm -f %D/bin/blogtk 2>/dev/null || true" >> ${TMPPLIST} + ${INSTALL_DATA} ${WRKSRC}/pixmaps/*.glade ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/pixmaps/*.gladep ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/deskutils/blogtk/distinfo b/deskutils/blogtk/distinfo index e19190a4c2b2..21e2c2e9562d 100644 --- a/deskutils/blogtk/distinfo +++ b/deskutils/blogtk/distinfo @@ -1,2 +1,2 @@ -MD5 (blogtk_1.0.tar.bz2) = 90d40f7fb7df5636396caedaf34b73da -SIZE (blogtk_1.0.tar.bz2) = 52265 +MD5 (blogtk_1.1.tar.bz2) = cd2d2521a261867cd9c830a81d3d4408 +SIZE (blogtk_1.1.tar.bz2) = 64325 diff --git a/deskutils/blogtk/pkg-plist b/deskutils/blogtk/pkg-plist new file mode 100644 index 000000000000..9e04e624b649 --- /dev/null +++ b/deskutils/blogtk/pkg-plist @@ -0,0 +1,20 @@ +bin/blogtk +%%PYTHON_SITELIBDIR%%/blogtk/BloGTK.py +%%PYTHON_SITELIBDIR%%/blogtk/config.py +%%PYTHON_SITELIBDIR%%/blogtk/customtags.py +%%PYTHON_SITELIBDIR%%/blogtk/post.py +%%PYTHON_SITELIBDIR%%/blogtk/preview.py +%%PYTHON_SITELIBDIR%%/blogtk/proxy.py +%%PYTHON_SITELIBDIR%%/blogtk/spellcheck.py +%%DATADIR%%/b-32.png +%%DATADIR%%/blogtk-icon.png +%%DATADIR%%/blogtk-logo.png +%%DATADIR%%/blogtk.glade +%%DATADIR%%/blogtk.gladep +%%DATADIR%%/stock_insert-image.png +%%DATADIR%%/stock_insert-table.png +%%DATADIR%%/stock_link.png +%%DATADIR%%/stock_para.png +%%DATADIR%%/stock_text_indent.png +@dirrm %%DATADIR%% +@dirrm %%PYTHON_SITELIBDIR%%/blogtk |