cleanup and add FALVOR. Submitted by Xavier Santolaria.

This commit is contained in:
kevlo 2003-12-30 09:32:45 +00:00
parent ea47bb5d44
commit caf3766f9c
3 changed files with 23 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2003/12/30 02:03:02 kevlo Exp $
# $OpenBSD: Makefile,v 1.3 2003/12/30 09:32:45 kevlo Exp $
COMMENT= "text-based MSN messenger client"
@ -18,20 +18,30 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pebrot/}
RUN_DEPENDS= :py-cjkcodecs-*:converters/py-cjkcodecs
NO_BUILD= Yes
NO_REGRESS= Yes
MODULES= python
FLAVORS= cjk
FLAVOR?=
.if ${FLAVOR:L:Mcjk}
RUN_DEPENDS= :py-cjkcodecs-*:converters/py-cjkcodecs
.endif
DOCDIR= ${PREFIX}/share/doc/pebrot
EXAMPLESDIR= ${PREFIX}/share/examples/pebrot
pre-build:
@perl -pi -e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR}/,g' \
${WRKSRC}/pebrot.py
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pebrot
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/pebrot ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/pebrotrc ${PREFIX}/share/examples/pebrot
${INSTALL_DATA} ${WRKSRC}/pebrotrc ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
cp -R ${WRKSRC}/logos ${EXAMPLESDIR}
.include <bsd.port.mk>

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-pebrot_py,v 1.1.1.1 2003/12/29 14:09:03 kevlo Exp $
$OpenBSD: patch-pebrot_py,v 1.2 2003/12/30 09:32:51 kevlo Exp $
--- pebrot.py.orig 2003-12-29 21:53:09.000000000 +0000
+++ pebrot.py 2003-12-29 21:54:42.000000000 +0000
@@ -1809,7 +1809,7 @@ def main():
@ -6,7 +6,7 @@ $OpenBSD: patch-pebrot_py,v 1.1.1.1 2003/12/29 14:09:03 kevlo Exp $
% CONFIG_FILE
raw_input( _('Press Enter to continue...') )
- shutil.copyfile( sys.path[0] + '/pebrotrc', CONFIG_FILE )
+ shutil.copyfile( '/usr/local/share/examples/pebrot/' + '/pebrotrc', CONFIG_FILE )
+ shutil.copyfile( '%%EXAMPLESDIR%%' + '/pebrotrc', CONFIG_FILE )
#os.chmod( CONFIG_FILE, 0600 )
print _('Please edit %s and specify your login and password.') \
% CONFIG_FILE

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/12/29 14:09:03 kevlo Exp $
@comment $OpenBSD: PLIST,v 1.2 2003/12/30 09:32:55 kevlo Exp $
bin/pebrot
lib/python${MODPY_VERSION}/site-packages/MSN.py
lib/python${MODPY_VERSION}/site-packages/MSN.pyc
@ -7,6 +7,10 @@ lib/python${MODPY_VERSION}/site-packages/pebrot.pyc
lib/python${MODPY_VERSION}/site-packages/ui.py
lib/python${MODPY_VERSION}/site-packages/ui.pyc
share/doc/pebrot/README
share/examples/pebrot/logos/README
share/examples/pebrot/logos/moo.txt
share/examples/pebrot/logos/pebrot.txt
share/examples/pebrot/pebrotrc
@dirrm share/examples/pebrot/logos
@dirrm share/examples/pebrot
@dirrm share/doc/pebrot