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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4E35B15808B for ; Fri, 11 Feb 2022 00:15:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 804CEE0D23; Fri, 11 Feb 2022 00:15:16 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 50F7FE0D23 for ; Fri, 11 Feb 2022 00:15:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 3D613342B99 for ; Fri, 11 Feb 2022 00:15:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CAA331BD for ; Fri, 11 Feb 2022 00:15:13 +0000 (UTC) From: "Jonas Stein" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jonas Stein" Message-ID: <1644538495.52c2f8b518e651417029a6a26835dff02aa4a328.jstein@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/unetbootin/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-boot/unetbootin/Manifest sys-boot/unetbootin/unetbootin-702.ebuild X-VCS-Directories: sys-boot/unetbootin/ X-VCS-Committer: jstein X-VCS-Committer-Name: Jonas Stein X-VCS-Revision: 52c2f8b518e651417029a6a26835dff02aa4a328 X-VCS-Branch: master Date: Fri, 11 Feb 2022 00:15:13 +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: e8847591-2f39-4623-9f5a-de9f4b1d2074 X-Archives-Hash: 0cd7a449dc612f104b16a7e4991e965d commit: 52c2f8b518e651417029a6a26835dff02aa4a328 Author: Jonas Stein gentoo org> AuthorDate: Fri Feb 11 00:14:34 2022 +0000 Commit: Jonas Stein gentoo org> CommitDate: Fri Feb 11 00:14:55 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52c2f8b5 sys-boot/unetbootin: bump to 702 Version bump to 702 and EAPI=8 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Jonas Stein gentoo.org> sys-boot/unetbootin/Manifest | 1 + sys-boot/unetbootin/unetbootin-702.ebuild | 104 ++++++++++++++++++++++++++++++ 2 files changed, 105 insertions(+) diff --git a/sys-boot/unetbootin/Manifest b/sys-boot/unetbootin/Manifest index fd507164f4dd..cc43b7a722c9 100644 --- a/sys-boot/unetbootin/Manifest +++ b/sys-boot/unetbootin/Manifest @@ -1 +1,2 @@ DIST unetbootin-700.tar.gz 16694955 BLAKE2B d8c00b56c5ae2daac696b62ef207c62dc91f67699c8823e2a751eff536d03fd0a50a931e9a4598b05d99be968b7e895ab521f605b4e0080d591a34c9e67f685e SHA512 0d1b23dddf0e0e3eca81f8ef07fe375f0867ee3fa631c3a3cfe33a846b8d704b36e0efe4c947d7c68e5c1bff370ba87c34aa52c5bf8fc414cd89777f9f1858b7 +DIST unetbootin-702.tar.gz 16694922 BLAKE2B 4205b8e5a64ecbd95e3b5f3492a01333691768547e6dbe5f954982dfa35d0794bbf8b4bc7002ff62b13675e9beaa25caf83d999489c9fabd36acc8df171e5d05 SHA512 4794a1c5481a082ab589c213156501697a9c2262102e1d0ca882a6c757d388d0ca768ed9acff29aac89f17a4842a93ab25ecbfceaafa27ea91d578e16fabe153 diff --git a/sys-boot/unetbootin/unetbootin-702.ebuild b/sys-boot/unetbootin/unetbootin-702.ebuild new file mode 100644 index 000000000000..d42e3c699212 --- /dev/null +++ b/sys-boot/unetbootin/unetbootin-702.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop flag-o-matic qmake-utils xdg-utils toolchain-funcs + +DESCRIPTION="UNetbootin installs Linux/BSD distributions to a partition or USB drive" +HOMEPAGE="https://github.com/unetbootin/unetbootin" +SRC_URI="https://github.com/unetbootin/unetbootin/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +UNBI_LINGUAS=" + am ar ast be bg bn ca cs da de el eo es et eu fa fi fo fr gl he hr hu id it + ja lt lv ml ms nan nb nl nn pl pt_BR pt ro ru si sk sl sr sv sw tr uk ur vi + zh_CN zh_TW +" + +for lingua in ${UNBI_LINGUAS}; do + IUSE="${IUSE} l10n_${lingua/_/-}" +done + +S=${WORKDIR}/${P}/src/${PN} + +BDEPEND="dev-qt/linguist-tools:5" +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 +" +RDEPEND="${DEPEND} + app-arch/p7zip + sys-boot/syslinux + sys-fs/mtools +" + +PATCHES=( "${FILESDIR}"/${PN}-675-desktop.patch ) + +src_prepare() { + default + + # QA check in case linguas are added or removed + enum() { + echo ${#} + } + [[ $(enum ${UNBI_LINGUAS}) -eq $(( $(enum $(echo ${PN}_*.ts) ) -1 )) ]] \ + || die "Numbers of recorded and actual linguas do not match" + unset enum + + # Remove localisations + local lingua + for lingua in ${UNBI_LINGUAS}; do + if ! use l10n_${lingua/_/-}; then + sed -i ${PN}.pro -e "/\.*${PN}_${lingua}\.ts.*/d" || die + rm ${PN}_${lingua}.ts || die + fi + done + + sed -i -e '/^RESOURCES/d' unetbootin.pro || die + + append-cflags -DNOSTATIC + append-cxxflags -DNOSTATIC +} + +src_configure() { + export QMAKE_CXX="$(tc-getCXX)" + + "$(qt5_get_bindir)/"lrelease ${PN}.pro || die + + eqmake5 +} + +src_install() { + dobin ${PN} + + domenu ${PN}.desktop + + for file in ${PN}*.png; do + size="${file/${PN}_}" + size="${size/.png}x${size/.png}" + insinto /usr/share/icons/hicolor/${size}/apps + newins ${file} ${PN}.png + done + + local lingua + for lingua in ${UNBI_LINGUAS}; do + if use l10n_${lingua/_/-}; then + insinto /usr/share/${PN} + doins ${PN}_${lingua}.qm + fi + done +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}