`make package' for this header-only package builds 117 c++ files, but
they're all for tests.
Set NO_BUILD=Yes to enable quick packaging and TEST_TARGET=all to defer
compilation to when it's needed.
While here, simplify PKGNAME handling.
No PLIST change, `make test' works as before.
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/catch2/Makefile,v
retrieving revision 1.37
diff -u -p -r1.37 Makefile
--- Makefile 4 Jan 2022 06:05:30 -0000 1.37
+++ Makefile 4 Jan 2022 08:31:20 -0000
@@ -5,8 +5,8 @@ COMMENT = C++-native, header-only, test
GH_ACCOUNT = catchorg
GH_PROJECT = Catch2
GH_TAGNAME = v2.13.8
-
-DISTNAME = catch2-${GH_TAGNAME:S/v//}
+PKGGNAME = ${DISTNAME:L}
+REVISION = 0
CATEGORIES = devel
@@ -22,6 +22,13 @@ MODULES = devel/cmake \
lang/python
MODPY_RUNDEP = No
+
+# just header files
+PKG_ARCH = *
+
+# compile tests only when testing
+NO_BUILD = Yes
+TEST_TARGET = all test
pre-configure:
ln -sf ${MODPY_BIN} ${WRKDIR}/bin/python
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/catch2/distinfo,v
retrieving revision 1.35
diff -u -p -r1.35 distinfo
--- distinfo 4 Jan 2022 06:05:30 -0000 1.35
+++ distinfo 4 Jan 2022 08:31:25 -0000
@@ -1,2 +1,2 @@
-SHA256 (catch2-2.13.8.tar.gz) = ubWSvXQ8CfE+5L81/DDu7idIljGE9r6oNrFG5swqWFo=
-SIZE (catch2-2.13.8.tar.gz) = 661711
+SHA256 (Catch2-2.13.8.tar.gz) = ubWSvXQ8CfE+5L81/DDu7idIljGE9r6oNrFG5swqWFo=
+SIZE (Catch2-2.13.8.tar.gz) = 661711
No comments:
Post a Comment