commit e299125fe49d8cbb0dfcb96ada75566c96d6781c
parent 356c1d12fefdc49099b050ca9cdd5fb9d06348ba
Author: Kyle Milz <kyle@0x30.net>
Date: Fri, 5 Aug 2016 19:32:49 -0600
pkg: use citrun distfile for ccitrunrun
Diffstat:
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/bin/openbsd/devel/ccitrunrun/Makefile b/bin/openbsd/devel/ccitrunrun/Makefile
@@ -2,7 +2,8 @@
COMMENT = see citrun run
-DISTNAME = ccitrunrun-0
+PKGNAME = ccitrunrun-0.0
+DISTNAME = citrun-0.0
CATEGORIES = devel
HOMEPAGE = http://cit.run
@@ -27,7 +28,14 @@ BUILD_DEPENDS = devel/jam \
devel/llvm
do-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} citrun-wrap jam -j4
+ cd ${WRKSRC} && sed -i \
+ -e "s,struct citrun_node,struct ccitrunrun_node," \
+ -e "s,citrun_node_add,ccitrunrun_node_add," \
+ -e "s,citrun_major,ccitrunrun_major,g" \
+ -e "s,citrun_minor,ccitrunrun_minor,g" \
+ lib/runtime.h lib/runtime.c \
+ src/inst_action.cc src/inst_main.cc src/runtime.cc
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} jam -j4
do-test:
cd ${WRKSRC} && prove