aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2009-07-20 16:16:03 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2009-07-20 16:16:03 +0000
commit6008ca470e0fbc39084c46faa356fb3d62f2453b (patch)
tree5770b5aa64638942a710b03fb6806bd3b857fd09 /devel
parentc79c8e11161fda653748fa73badd31cf4e8e34dc (diff)
downloadports-6008ca470e0fbc39084c46faa356fb3d62f2453b.tar.gz
ports-6008ca470e0fbc39084c46faa356fb3d62f2453b.zip
Notes
Diffstat (limited to 'devel')
-rw-r--r--devel/cut/Makefile39
-rw-r--r--devel/cut/distinfo6
-rw-r--r--devel/cut/pkg-plist36
3 files changed, 23 insertions, 58 deletions
diff --git a/devel/cut/Makefile b/devel/cut/Makefile
index 98bff9ea0fce..87d5f7fd8a15 100644
--- a/devel/cut/Makefile
+++ b/devel/cut/Makefile
@@ -6,38 +6,27 @@
#
PORTNAME= cut
-PORTVERSION= 2.4
+PORTVERSION= 2.6
CATEGORIES= devel
-MASTER_SITES= http://www.falvotech.com/content/cut/2.4/downloads/
+MASTER_SITES= http://www.falvotech.com/content/cut/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Unit Testing Framework for C, C++ and Objective-C
-EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${PORTVERSION}
-DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
+USE_PYTHON_RUN= yes
+ALL_TARGET= build
-WRKSRC= ${WRKDIR}/repo
-
-# related to build target
-ALL_TARGET= bin/cutgen
-
-# cut interface is compatible at major version number
-major= 2
+post-patch:
+.for FILE in common.py cutgen.py options.py parser.py
+ @${REINPLACE_CMD} -e 's|/usr/bin/python|${PREFIX}/bin/python|' \
+ ${WRKSRC}/${FILE}
+.endfor
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/cutgen ${PREFIX}/bin/cutgen-${major}
- ${CP} -R ${WRKSRC}/include/* ${PREFIX}/include/
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}/tutorial
- ${CP} ${WRKSRC}/LICENSE ${WRKSRC}/docs/README ${WRKSRC}/CHANGELOG ${DOCSDIR}/
- ${CP} -R ${WRKSRC}/docs/tutorials/sergei_gnezdov/*.c\
- ${WRKSRC}/docs/tutorials/sergei_gnezdov/*.h\
- ${WRKSRC}/docs/tutorials/sergei_gnezdov/*.dvi\
- ${WRKSRC}/docs/tutorials/sergei_gnezdov/*.pdf\
- ${WRKSRC}/docs/tutorials/sergei_gnezdov/*.ps\
- ${DOCSDIR}/tutorial/
- ${MKDIR} ${EXAMPLESDIR}/
- ${CP} -R ${WRKSRC}/test/* ${EXAMPLESDIR}/
-.endif
+ ${INSTALL_SCRIPT} ${WRKSRC}/build/bin/cutgen ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/build/bin/cutgen.py ${PREFIX}/bin
+.for FILE in common.py lexer.py options.py parser.py
+ ${INSTALL_SCRIPT} ${WRKSRC}/build/bin/${FILE} ${PREFIX}/bin/cutgen_${FILE}
+.endfor
.include <bsd.port.mk>
diff --git a/devel/cut/distinfo b/devel/cut/distinfo
index 3a765a35b6fb..21b76236b240 100644
--- a/devel/cut/distinfo
+++ b/devel/cut/distinfo
@@ -1,3 +1,3 @@
-MD5 (cut-2.4.tar.gz) = d517fccf99161b4190afa75e2a5eec09
-SHA256 (cut-2.4.tar.gz) = b8690e00ced7ae36efc955cd2a479dfeb3221ad90ad087093d302265706971f7
-SIZE (cut-2.4.tar.gz) = 120644
+MD5 (cut-2.6.tar.gz) = 8fa2a161a07ae0c7d8f453b2a8ecc8cf
+SHA256 (cut-2.6.tar.gz) = ca1af2bfde22471f34c3f8852712983bac74150c7f7837367fece750d1ed793e
+SIZE (cut-2.6.tar.gz) = 302932
diff --git a/devel/cut/pkg-plist b/devel/cut/pkg-plist
index fd768cf8ceff..c5ca7ff3c393 100644
--- a/devel/cut/pkg-plist
+++ b/devel/cut/pkg-plist
@@ -1,30 +1,6 @@
-bin/cutgen-2
-include/cut-2/cut.h
-%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
-%%PORTDOCS%%%%DOCSDIR%%/LICENSE
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/tutorial/Compute.c
-%%PORTDOCS%%%%DOCSDIR%%/tutorial/Compute.h
-%%PORTDOCS%%%%DOCSDIR%%/tutorial/Compute1.c
-%%PORTDOCS%%%%DOCSDIR%%/tutorial/Main.c
-%%PORTDOCS%%%%DOCSDIR%%/tutorial/TestCompute.c
-%%PORTDOCS%%%%DOCSDIR%%/tutorial/Tutorial.dvi
-%%PORTDOCS%%%%DOCSDIR%%/tutorial/Tutorial.pdf
-%%PORTDOCS%%%%DOCSDIR%%/tutorial/Tutorial.ps
-%%PORTDOCS%%%%EXAMPLESDIR%%/all-pass/Makefile
-%%PORTDOCS%%%%EXAMPLESDIR%%/all-pass/cut-pass.c
-%%PORTDOCS%%%%EXAMPLESDIR%%/bringup-failure/Makefile
-%%PORTDOCS%%%%EXAMPLESDIR%%/bringup-failure/cut-explode1.c
-%%PORTDOCS%%%%EXAMPLESDIR%%/bringup-failure/cut-explode2.c
-%%PORTDOCS%%%%EXAMPLESDIR%%/normal-failure/Makefile
-%%PORTDOCS%%%%EXAMPLESDIR%%/normal-failure/cut-explode.c
-%%PORTDOCS%%%%EXAMPLESDIR%%/simple-demo-pass/Makefile
-%%PORTDOCS%%%%EXAMPLESDIR%%/simple-demo-pass/cut-pass.c
-@dirrm include/cut-2
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/tutorial
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/all-pass
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/bringup-failure
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/normal-failure
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/simple-demo-pass
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+bin/cutgen
+bin/cutgen.py
+bin/cutgen_common.py
+bin/cutgen_lexer.py
+bin/cutgen_options.py
+bin/cutgen_parser.py