commit: cb3dd164201c3d256fa90861d00e839cc6b49560 Author: Huang Rui <vowstar <AT> gmail <DOT> com> AuthorDate: Fri Mar 24 03:31:09 2023 +0000 Commit: Rui Huang <vowstar <AT> gmail <DOT> com> CommitDate: Fri Mar 24 03:31:09 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cb3dd164
dev-util/wxformbuilder: new package, add 3.10.1-r1 Signed-off-by: Huang Rui <vowstar <AT> gmail.com> dev-util/wxformbuilder/Manifest | 2 + dev-util/wxformbuilder/metadata.xml | 20 ++++++++++ .../wxformbuilder/wxformbuilder-3.10.1-r1.ebuild | 43 ++++++++++++++++++++++ 3 files changed, 65 insertions(+) diff --git a/dev-util/wxformbuilder/Manifest b/dev-util/wxformbuilder/Manifest new file mode 100644 index 000000000..b93717dae --- /dev/null +++ b/dev-util/wxformbuilder/Manifest @@ -0,0 +1,2 @@ +DIST wxformbuilder-1fa5400695f68ee22718f4a4a28b2fb63f275145.tar.gz 1136549 BLAKE2B f007a7198cfe50c3b66055ec5937b7b5776ca83e9bdd2b0d3620bd9a65f58d112f15e9bbf2b5b672f499cde1e3bb0620d3073f34909930c9a0fa042491d76154 SHA512 d15e4d25d9ecedebc3c05f14cb09a29ced53648167aa50a89519bfdce88a874d6c0a01a78eeaeac0523649f951cd56b1dfbe59cb816a5532226f59b15eba2058 +DIST wxformbuilder-ticpp-6f45ec628cbf34784bb3b3132c0d00aac8e491c6.tar.gz 85795 BLAKE2B 5c8d83dd50a5d3cfd4f679692a32e7c3b60d6118ac79b40bf4da21552a26beeb7a74b46d822d79ac4a7cbdbab69017ef194e80da795f1e0550fee6d1ed9a442f SHA512 2f16d6b4b96ebf02bd03d5fa5e12566b3e34ae674397a8b38e136a17cdcafc4fc87fd48efc3bf5592b4f61eaaf20e6d9f437df2a07ad4a12e0abf5f2084d63c1 diff --git a/dev-util/wxformbuilder/metadata.xml b/dev-util/wxformbuilder/metadata.xml new file mode 100644 index 000000000..743341e42 --- /dev/null +++ b/dev-util/wxformbuilder/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Huang Rui</name> + </maintainer> + <upstream> + <changelog>https://github.com/wxFormBuilder/wxFormBuilder/releases</changelog> + <bugs-to>https://github.com/wxFormBuilder/wxFormBuilder/issues</bugs-to> + <remote-id type="github">wxFormBuilder/wxFormBuilder</remote-id> + </upstream> + <longdescription lang="en"> + wxFormBuilder is a GUI builder for the wxWidgets framework. + Code generation is supported for C++, Python, Lua and PHP. Additionally, + the import and export of XRC code is possible. To support additional + widgets, custom plugins can be used. + wxFormBuilder runs on Windows, various Linux distributions and macOS. + </longdescription> +</pkgmetadata> diff --git a/dev-util/wxformbuilder/wxformbuilder-3.10.1-r1.ebuild b/dev-util/wxformbuilder/wxformbuilder-3.10.1-r1.ebuild new file mode 100644 index 000000000..9b9b698b4 --- /dev/null +++ b/dev-util/wxformbuilder/wxformbuilder-3.10.1-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_BUILD_TYPE="Release" +WX_GTK_VER="3.2-gtk3" + +MY_PN="wxFormBuilder" +MY_PV="1fa5400695f68ee22718f4a4a28b2fb63f275145" +TICPP_PV="6f45ec628cbf34784bb3b3132c0d00aac8e491c6" + +inherit cmake wxwidgets xdg + +DESCRIPTION="A wxWidgets GUI Builder" +HOMEPAGE="https://github.com/wxFormBuilder/wxFormBuilder" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git" +else + SRC_URI=" + https://github.com/${MY_PN}/${MY_PN}/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz + https://github.com/${MY_PN}/ticpp/archive/${TICPP_PV}.tar.gz -> ${PN}-ticpp-${TICPP_PV}.tar.gz + " + S="${WORKDIR}/${MY_PN}-${MY_PV}" + KEYWORDS="~amd64 ~arm64 ~riscv ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" + +RDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X]" +DEPEND="${RDEPEND}" + +src_prepare() { + # Remove bundled ticpp and symlink to downloaded ticpp + rmdir "${S}/third_party/ticpp" || die + ln -s "${WORKDIR}/ticpp-${TICPP_PV}/" "${S}/third_party/ticpp" || die + # Disable update-mime-database command, shouldn't be doing this here. + sed -i "s/NAMES update-mime-database/NAMES echo/g" "${S}"/src/CMakeLists.txt || die + cmake_src_prepare +}
