From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3B266139084 for ; Mon, 4 Dec 2017 00:17:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3A65BE0F25; Mon, 4 Dec 2017 00:17:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1C18EE0F00 for ; Mon, 4 Dec 2017 00:17:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0EA1333BF3C for ; Mon, 4 Dec 2017 00:17:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AC234AD74 for ; Mon, 4 Dec 2017 00:17:04 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1512346507.c04941c80ba5444bd75d49f1bd5c625fb80b34fd.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/moolticute/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/moolticute/moolticute-9999.ebuild X-VCS-Directories: app-crypt/moolticute/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: c04941c80ba5444bd75d49f1bd5c625fb80b34fd X-VCS-Branch: master Date: Mon, 4 Dec 2017 00:17:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: df37ff6f-7b98-4692-b3f9-5518a96116ec X-Archives-Hash: 6ca93f3fd35f76bb212030a533ac12e6 commit: c04941c80ba5444bd75d49f1bd5c625fb80b34fd Author: Pierre-Olivier Mercier nemunai re> AuthorDate: Wed Sep 27 22:58:27 2017 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Dec 4 00:15:07 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c04941c8 app-crypt/moolticute: fill version.h with package version Closes: https://github.com/gentoo/gentoo/pull/6021 app-crypt/moolticute/moolticute-9999.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app-crypt/moolticute/moolticute-9999.ebuild b/app-crypt/moolticute/moolticute-9999.ebuild index 8609d2fec94..789f753ee72 100644 --- a/app-crypt/moolticute/moolticute-9999.ebuild +++ b/app-crypt/moolticute/moolticute-9999.ebuild @@ -34,6 +34,15 @@ DEPEND="${RDEPEND}" S="${WORKDIR}/${P/_/-}" +src_prepare() { + default + + # Fill version.h with package version + if [[ ${PV} != 9999* ]]; then + sed -i "s/\"git\"/\"v${PV/_/-}\"/" src/version.h || die + fi +} + src_configure() { eqmake5 PREFIX="/usr" Moolticute.pro }