From nobody Sat Jul 22 19:24:04 2023 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 4R7bvS5Gvgz4nWwn; Sat, 22 Jul 2023 19:24:04 +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 4R7bvS3p2lz41R0; Sat, 22 Jul 2023 19:24:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690053844; 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=AmYmVRVD3wKtlXqRXvpe4QOrXpMm7rBGl9P5HeFpPI8=; b=X3EXlLNNbxYIgVuS37k9eEYh1PByfO5p8N8LwiaG/AzHfXkDBWG1GTA5JJAL45XlbkHOU/ 4kx8275GauCsrnjWFJAjZfMHiE1/hLfZ/Ef2tmAdgzIbyOG0Ubko8RXXweBRZjmvcGRHci sFjVJlc+PiQ8980IWv9bFCN1qod0nxPIT4SdCmEcPghtNvvew4nEMGSnDxgfgq5ZYZ3Kk7 M7GYBodPNBcJJVxQD8PguMfduAhe6iopIyZogeehhKYLUAYbRMLk+s5l3m1O+RqTfgwhLt wQYS0BgiVh9s5E44KpzPXeDrhhNx4HT91QHq0AGgD5anuI+C7/fTNTiptQpidw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690053844; 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=AmYmVRVD3wKtlXqRXvpe4QOrXpMm7rBGl9P5HeFpPI8=; b=acjFbIXgqoSggjyDh/9mgCeW1ZO5R0D5XUvlS5CBH8c1925Ww10zRhrfWjc/tK2H/jQ9F3 NzQ165Jpbov1+62vFeSzCHs1FoFww4FQvdmTuTtbirq3OBqckJgSIjvT39z8ZKKP8BMJOh xeP+DyIJEzaZfLNT7jLtIYR47VbgKpSHBko9QH4KphZAFfuraMBo2RKzNuktYhaBBjN7i8 Qyhfv+pznsZk46ULeaokM4uuvV5C44yDzqykU4VyKqTlX09HZMp/f/sUcVrtIxg/dxqEni hL1dS9bFl4LBCWPzCRBsmw0dov/sfiA20cHC9pPoMShga5l5Um9E+SiciUMoIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690053844; a=rsa-sha256; cv=none; b=ay6EWKGXYBFTukrQpc9IyxIRqu2LJ1NOHzTyWdkHldorE2EOSEdN1sa3gZPm+rWaeSBHGE gjcnmbudtY7+khQJ+Qupr/tQdVvajamYzS6yW8dmB9EcUf1gLy1QyZGDFbxjj14ycyUNwB f6wO5pK18a05kEF2tRLupSviYo8N6PVPeevLtr3n0pPltS3gKnDS/OzZpoxu2KKASTItaz +zOtMYjSQ8pWzqDBq27EugZPQrkcbZ5g3bmNatDjIlVH8ocZoYwnrzi0EXtrGuysBmYPtR v/h2KPkWnR05N+92GkKLdH6MG93IFbwOZFlMUKrX7LjNQufkYJkuEBmdamzTTQ== 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 4R7bvS1tZ1z163y; Sat, 22 Jul 2023 19:24:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36MJO4NC075388; Sat, 22 Jul 2023 19:24:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36MJO4rt075387; Sat, 22 Jul 2023 19:24:04 GMT (envelope-from git) Date: Sat, 22 Jul 2023 19:24:04 GMT Message-Id: <202307221924.36MJO4rt075387@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: aa953ce86cbf - main - multimedia/wl-screenrec: make --version report Git hash 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: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aa953ce86cbf06c8cbd3577ff633c57674e1f6f4 Auto-Submitted: auto-generated The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=aa953ce86cbf06c8cbd3577ff633c57674e1f6f4 commit aa953ce86cbf06c8cbd3577ff633c57674e1f6f4 Author: Jan Beich AuthorDate: 2023-07-22 19:07:57 +0000 Commit: Jan Beich CommitDate: 2023-07-22 19:23:26 +0000 multimedia/wl-screenrec: make --version report Git hash Based on `git describe --tags`. As upstream doesn't have any tags yet use snapshot date as an offset with a synthetic tag to unbreak build. $ wl-screenrec --version -wl-screenrec 0.1.0 +wl-screenrec 0.1.0-s20230716-g20c6da9 --- multimedia/wl-screenrec/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/multimedia/wl-screenrec/Makefile b/multimedia/wl-screenrec/Makefile index 69bf48b019a4..5665be271aa1 100644 --- a/multimedia/wl-screenrec/Makefile +++ b/multimedia/wl-screenrec/Makefile @@ -1,5 +1,6 @@ PORTNAME= wl-screenrec PORTVERSION= s20230716 +PORTREVISION= 1 CATEGORIES= multimedia wayland MAINTAINER= jbeich@FreeBSD.org @@ -17,6 +18,9 @@ GH_TAGNAME= 20c6da9 PLIST_FILES= bin/${PORTNAME} post-patch: +# Extract (snapshot) version from the port instead of Cargo.toml + @${REINPLACE_CMD} -i .nogit -e '/^version/s/0\.1\.0/&-${DISTVERSION}-g${GH_TAGNAME}/' \ + ${WRKSRC}/Cargo.toml @${REINPLACE_CMD} -e 's,"llvm-config,"${LLVM_CONFIG},' \ ${WRKSRC_crate_clang-sys}/build/common.rs \ ${WRKSRC_crate_clang-sys}/src/support.rs