From nobody Mon Mar 21 17:51:18 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4F4411911C7F; Mon, 21 Mar 2022 17:51:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KMhxf1qgVz3Nck; Mon, 21 Mar 2022 17:51:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647885078; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=47nl5TxStaVLxzz764Ej5m7EN0oypt4N3efdt6tB42U=; b=Bi//Mmm0yoZKPgPbW9muk+mbxUoj9nsniok8KiKltMjt9O+Ox4g1ilWDakCsXVq134V1ZC Ja20d11whD52jIC9ZRGMdfyQ94T1M7CvLqqUF9TXzWbmMei0A7//5uL7GAPGzi0ATjf+Df Tv/8lWzNFCv8fzLocCVJhWFbzNVPx79jkGk7qsUe+kDLyZ7m21bAwua8Ovr+LUyIVLV97m nj14wO/nolhfZX7dmWCN5Imf1Sw72DC1y0fNNJkokACznd69slsahwGPnspP06bY6hHJlb PL43s+Hip3z1E7dzyuh77N4Qr3bHN+k+mXtuGdCICyWyVJ7YHHcIDi5LLA6OwQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1EA101FC69; Mon, 21 Mar 2022 17:51:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22LHpI9V074771; Mon, 21 Mar 2022 17:51:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22LHpIEH074770; Mon, 21 Mar 2022 17:51:18 GMT (envelope-from git) Date: Mon, 21 Mar 2022 17:51:18 GMT Message-Id: <202203211751.22LHpIEH074770@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 5308f4b52976 - main - net-im/toxext: Add test target List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5308f4b529765e2e145ea2e7152679e3a75607a2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647885078; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=47nl5TxStaVLxzz764Ej5m7EN0oypt4N3efdt6tB42U=; b=W4bxMFpqO+a/uTnA8xFzLLjlsJMWRGs1GhbISvP5aueDyMdeZODMJiqFVkNONjnA8XFX38 iJBiAShvPYb4kLxfnxhfeu7RQGeAsqYX8vFf90lNkb7Me5JR1AG5hWgRf2nUC8OsyqFYGe lo1CKhFu398vt2XEMeHu9DC9As/vWLcgoLYS+pXcgbivaFhSWJ97V7fsMrIt/vee3UVnfA J1Zuc+NeiQo6VOkUs8axPdkLtPmkkKfodoLHBBiLN17kKsEdufyi6Dn/o+/pVJXOA9JeIn VAkybukx4rOJI1xIvdJwl0iq8dBgW1fO94uyR2P+RbV29J/Jvg+YAnCkCoIs8Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647885078; a=rsa-sha256; cv=none; b=nw/jX19ACC/g9fA6O/n3s6QcklT4rhaz0PJbtr7J8OGYlEfBGZ5b9A+gdcR5oSnsRMoYXV x0/sqTXpgBIHLwl9ukoYXrlpGKmPEI0BIR8V1sA0SZfNFup+ZYU6XkuuShJNqgRQGTAtUY +98gxWJcIX7m6o7aBdL5u5S/UOXcM0v9e8AGXCt8RwvJ4IOeewCTXAmTx6eqAp7RPDbyYi 3I00q0RY8dg3GzPegSjJWswF6ZuPU+uwFjTEzPjq/KAi5957btHS2au/uQj6lQzWGbvBUJ Jap86EGSa6MolycVFNksA6EAPm80zyduqVOGG33bnytDVGtWN/Jn3Va7hNgT7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=5308f4b529765e2e145ea2e7152679e3a75607a2 commit 5308f4b529765e2e145ea2e7152679e3a75607a2 Author: Yuri Victorovich AuthorDate: 2022-03-21 17:50:38 +0000 Commit: Yuri Victorovich CommitDate: 2022-03-21 17:51:15 +0000 net-im/toxext: Add test target Only build tests when tests are run. --- net-im/toxext/Makefile | 3 ++- net-im/toxext/files/patch-CMakeLists.txt | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/net-im/toxext/Makefile b/net-im/toxext/Makefile index a3198e55469d..6a77c0d415d9 100644 --- a/net-im/toxext/Makefile +++ b/net-im/toxext/Makefile @@ -14,10 +14,11 @@ LIB_DEPENDS= libopus.so:audio/opus \ libtoxcore.so:net-im/tox \ libvpx.so:multimedia/libvpx -USES= cmake localbase:ldflags pkgconfig +USES= cmake:testing localbase:ldflags pkgconfig USE_GITHUB= yes CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_TESTING_ON= BUILD_TESTS CFLAGS+= -fPIC # see https://github.com/toxext/toxext/issues/7 diff --git a/net-im/toxext/files/patch-CMakeLists.txt b/net-im/toxext/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..eb0ea86f3616 --- /dev/null +++ b/net-im/toxext/files/patch-CMakeLists.txt @@ -0,0 +1,14 @@ +--- CMakeLists.txt.orig 2022-03-21 17:46:44 UTC ++++ CMakeLists.txt +@@ -15,7 +15,9 @@ endfunction() + add_subdirectory(src) + add_subdirectory(mock) + +-enable_testing() +-add_subdirectory(test) ++if (BUILD_TESTS) ++ enable_testing() ++ add_subdirectory(test) ++endif() + + install(EXPORT ToxExtConfig DESTINATION lib/cmake/ToxExt NAMESPACE ToxExt::)