svn commit: r351100 - head/games/pyching
Pawel Pekala
pawel at FreeBSD.org
Sat Apr 12 14:27:17 UTC 2014
Author: pawel
Date: Sat Apr 12 14:27:16 2014
New Revision: 351100
URL: http://svnweb.freebsd.org/changeset/ports/351100
QAT: https://qat.redports.org/buildarchive/r351100/
Log:
- Add staging support
- Move RUN_DEPENDS to proper place
Modified:
head/games/pyching/Makefile
head/games/pyching/pkg-plist
Modified: head/games/pyching/Makefile
==============================================================================
--- head/games/pyching/Makefile Sat Apr 12 14:24:34 2014 (r351099)
+++ head/games/pyching/Makefile Sat Apr 12 14:27:16 2014 (r351100)
@@ -10,17 +10,14 @@ MASTER_SITES= SF/${PORTNAME}/pyChing/${P
MAINTAINER= ports at FreeBSD.org
COMMENT= Consult a I Ching, an ancient Chinese book of wisdom
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
-
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter
+
NO_WRKSUBDIR= yes
USE_PYTHON= yes
-MAN1= ${PORTNAME}.1
-
-NO_STAGE= yes
post-patch:
@cd ${WRKSRC}; ${SED} 's|/usr/share/|${PYTHON_SITELIBDIR}/|g' \
< ${PORTNAME}.sh > ${PORTNAME}
@@ -30,21 +27,16 @@ do-build:
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
- @${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}
-.for ext in py pyc pyo xbm
- ${INSTALL_DATA} ${WRKSRC}/*.${ext} ${PYTHON_SITELIBDIR}/${PORTNAME}
-.endfor
-.for file in COPYING CREDITS
- ${INSTALL_DATA} ${WRKSRC}/${file} ${PYTHON_SITELIBDIR}/${PORTNAME}
-.endfor
- @${CHMOD} ${BINMODE} ${PYTHON_SITELIBDIR}/${PORTNAME}/${PORTNAME}.py
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in BUGS CHANGES NEWS README
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}
+ (cd ${WRKSRC} && ${INSTALL_DATA} *.py *.pyc *.pyo *.xbm \
+ ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME})
+ (cd ${WRKSRC} && ${INSTALL_DATA} COPYING CREDITS \
+ ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME})
+ @${CHMOD} ${BINMODE} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/${PORTNAME}.py
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} BUGS CHANGES NEWS README \
+ ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
Modified: head/games/pyching/pkg-plist
==============================================================================
--- head/games/pyching/pkg-plist Sat Apr 12 14:24:34 2014 (r351099)
+++ head/games/pyching/pkg-plist Sat Apr 12 14:27:16 2014 (r351100)
@@ -35,6 +35,7 @@ bin/pyching
%%PYTHON_SITELIBDIR%%/pyching/smgHtmlView.py
%%PYTHON_SITELIBDIR%%/pyching/smgHtmlView.pyc
%%PYTHON_SITELIBDIR%%/pyching/smgHtmlView.pyo
+man/man1/pyching.1.gz
%%PORTDOCS%%%%DOCSDIR%%/BUGS
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/NEWS
More information about the svn-ports-all
mailing list