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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9F1E715800F for ; Sat, 21 Jan 2023 11:58:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 892D6E0809; Sat, 21 Jan 2023 11:58:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6DA0EE0809 for ; Sat, 21 Jan 2023 11:58:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5B377340DDE for ; Sat, 21 Jan 2023 11:58:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8FE967FC for ; Sat, 21 Jan 2023 11:58:10 +0000 (UTC) From: "Arsen Arsenović" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arsen Arsenović" Message-ID: <1674302031.3c1f3ac92423d0c4d4bf63c997b4ff36be39cfde.arsen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-wxwidgets/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114-r1.ebuild X-VCS-Directories: app-eselect/eselect-wxwidgets/ X-VCS-Committer: arsen X-VCS-Committer-Name: Arsen Arsenović X-VCS-Revision: 3c1f3ac92423d0c4d4bf63c997b4ff36be39cfde X-VCS-Branch: master Date: Sat, 21 Jan 2023 11:58:10 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f21d6190-8407-491d-a565-5c28ae169691 X-Archives-Hash: f8e44b4d48d0bdbb92676b6ff2d38ec7 commit: 3c1f3ac92423d0c4d4bf63c997b4ff36be39cfde Author: Arsen Arsenović gentoo org> AuthorDate: Sat Jan 21 11:50:58 2023 +0000 Commit: Arsen Arsenović gentoo org> CommitDate: Sat Jan 21 11:53:51 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c1f3ac9 app-eselect/eselect-wxwidgets: add 20230114-r1, drop broken sed Signed-off-by: Arsen Arsenović gentoo.org> .../eselect-wxwidgets-20230114-r1.ebuild | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114-r1.ebuild b/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114-r1.ebuild new file mode 100644 index 000000000000..6a3f5190a859 --- /dev/null +++ b/app-eselect/eselect-wxwidgets/eselect-wxwidgets-20230114-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib + +WXWRAP_VER=1.4 + +DESCRIPTION="Eselect module and wrappers for wxWidgets" +HOMEPAGE="https://gitweb.gentoo.org/proj/eselect-wxwidgets.git/" +SRC_URI="https://dev.gentoo.org/~sam/distfiles/app-eselect/eselect-wxwidgets/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" + +RDEPEND=">=app-admin/eselect-1.4.13" + +src_prepare() { + sed \ + -e "/^LIBDIR=/s:lib:$(get_libdir):" \ + -e "/^EPREFIX=/s:'':'${EPREFIX}':" \ + -i {wx-config,wxrc}-"${WXWRAP_VER}" || die + eapply_user +} + +src_install() { + insinto /usr/share/eselect/modules + doins wxwidgets.eselect + + insinto /usr/share/aclocal + newins wxwin.m4-3.0 wxwin.m4 + + newbin "wx-config-${WXWRAP_VER}" wx-config + newbin "wxrc-${WXWRAP_VER}" wxrc + + keepdir /var/lib/wxwidgets + keepdir /usr/share/bakefile/presets +} + +pkg_postinst() { + if [[ ! -e ${EROOT}/var/lib/wxwidgets/current ]]; then + echo 'WXCONFIG="none"' > "${EROOT}"/var/lib/wxwidgets/current + fi + + elog "This eselect module only controls the version of wxGTK used when" + elog "building packages outside of portage. If you are not doing development" + elog "with wxWidgets or bakefile you will never need to use it." +}