Lines 7-14
Link Here
|
7 |
# |
7 |
# |
8 |
|
8 |
|
9 |
PORTNAME= blogtk |
9 |
PORTNAME= blogtk |
10 |
PORTVERSION= 1.0 |
10 |
PORTVERSION= 1.1 |
11 |
PORTREVISION= 2 |
|
|
12 |
CATEGORIES= deskutils |
11 |
CATEGORIES= deskutils |
13 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
14 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
Lines 17-47
Link Here
|
17 |
MAINTAINER= ports@FreeBSD.org |
16 |
MAINTAINER= ports@FreeBSD.org |
18 |
COMMENT= A client for Blogger, Movable Type, and other blogging systems |
17 |
COMMENT= A client for Blogger, Movable Type, and other blogging systems |
19 |
|
18 |
|
|
|
19 |
WRKSRC= ${WRKDIR}/BloGTK-${PORTVERSION} |
20 |
|
20 |
USE_BZIP2= yes |
21 |
USE_BZIP2= yes |
21 |
USE_REINPLACE= yes |
22 |
USE_GNOME= pygnomeextras |
22 |
USE_PYTHON= 2.3+ |
23 |
USE_PYTHON= 2.3+ |
23 |
USE_GNOME= pygtk2 pygnome2 |
24 |
USE_REINPLACE= yes |
24 |
NO_BUILD= yes |
25 |
NO_BUILD= yes |
25 |
WRKSRC= ${WRKDIR}/BloGTK-${PORTVERSION} |
|
|
26 |
|
26 |
|
27 |
post-patch: |
27 |
post-patch: |
28 |
@${REINPLACE_CMD} -e 's,/usr/shar,${PREFIX}/shar,' ${WRKSRC}/src/BloGTK.py |
28 |
@${FIND} ${WRKSRC}/src -name "*.py" | ${XARGS} ${REINPLACE_CMD} -e \ |
29 |
|
29 |
's|/usr/share|${PREFIX}/share|g ; \ |
30 |
.include <bsd.port.pre.mk> |
30 |
s|gtk\.FALSE|False|g ; \ |
|
|
31 |
s|gtk\.TRUE|True|g' |
31 |
|
32 |
|
32 |
do-install: |
33 |
do-install: |
33 |
@${MKDIR} ${PYTHON_SITELIBDIR}/blogtk |
34 |
@${MKDIR} ${PYTHONPREFIX_SITELIBDIR}/blogtk |
34 |
${INSTALL_SCRIPT} ${WRKSRC}/src/* ${PYTHON_SITELIBDIR}/blogtk |
35 |
${INSTALL_SCRIPT} ${WRKSRC}/src/*.py ${PYTHONPREFIX_SITELIBDIR}/blogtk |
|
|
36 |
@${LN} -fs ${PYTHONPREFIX_SITELIBDIR}/blogtk/BloGTK.py ${PREFIX}/bin/blogtk |
35 |
@${MKDIR} ${DATADIR} |
37 |
@${MKDIR} ${DATADIR} |
36 |
${INSTALL_DATA} ${WRKSRC}/pixmaps/* ${DATADIR} |
38 |
${INSTALL_DATA} ${WRKSRC}/pixmaps/*.glade ${DATADIR} |
37 |
@${LN} -fs ${PYTHON_SITELIBDIR}/blogtk/BloGTK.py ${PREFIX}/bin/blogtk |
39 |
${INSTALL_DATA} ${WRKSRC}/pixmaps/*.gladep ${DATADIR} |
38 |
.for dir in ${PYTHON_SITELIBDIR}/blogtk ${PREFIX}/share/${PORTNAME} |
40 |
${INSTALL_DATA} ${WRKSRC}/pixmaps/*.png ${DATADIR} |
39 |
@${FIND} ${dir} ! -type d | \ |
|
|
40 |
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST} |
41 |
@${FIND} ${dir} -type d | ${SORT} -r | \ |
42 |
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST} |
43 |
.endfor |
44 |
@${ECHO_CMD} "@exec ln -fs %D/${PYTHON_SITELIBDIR:S,^${PREFIX}/,,}/blogtk/BloGTK.py %D/bin/blogtk" >> ${TMPPLIST} |
45 |
@${ECHO_CMD} "@unexec rm -f %D/bin/blogtk 2>/dev/null || true" >> ${TMPPLIST} |
46 |
|
41 |
|
47 |
.include <bsd.port.post.mk> |
42 |
.include <bsd.port.mk> |