From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1063107-garchives=archives.gentoo.org@lists.gentoo.org> 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 0AA34138334 for <garchives@archives.gentoo.org>; Fri, 21 Dec 2018 15:45:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6033E07C7; Fri, 21 Dec 2018 15:45:49 +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 8EA0AE07C7 for <gentoo-commits@lists.gentoo.org>; Fri, 21 Dec 2018 15:45:49 +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 11251335C07 for <gentoo-commits@lists.gentoo.org>; Fri, 21 Dec 2018 15:45:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F2DAD42F for <gentoo-commits@lists.gentoo.org>; Fri, 21 Dec 2018 15:45:45 +0000 (UTC) From: "Jeroen Roovers" <jer@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" <jer@gentoo.org> Message-ID: <1545407139.7c26355a62f1fb2109259931b8958358de4ed21c.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/unetbootin/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-boot/unetbootin/unetbootin-661-r1.ebuild X-VCS-Directories: sys-boot/unetbootin/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 7c26355a62f1fb2109259931b8958358de4ed21c X-VCS-Branch: master Date: Fri, 21 Dec 2018 15:45:45 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0ddd1515-c80a-4052-b4ed-87db64e6bb13 X-Archives-Hash: 7ada4c50ea7a7700e32c0d9abad97da9 commit: 7c26355a62f1fb2109259931b8958358de4ed21c Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> AuthorDate: Fri Dec 21 15:45:13 2018 +0000 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> CommitDate: Fri Dec 21 15:45:39 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c26355a sys-boot/unetbootin: Fix finding syslinux Patch by Samuel Bauer Fixes: https://bugs.gentoo.org/604812 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> sys-boot/unetbootin/unetbootin-661-r1.ebuild | 101 +++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) diff --git a/sys-boot/unetbootin/unetbootin-661-r1.ebuild b/sys-boot/unetbootin/unetbootin-661-r1.ebuild new file mode 100644 index 00000000000..5363afc4eec --- /dev/null +++ b/sys-boot/unetbootin/unetbootin-661-r1.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PATCHSET="${P}-qt5.patch.tar.xz" +inherit desktop flag-o-matic qmake-utils + +DESCRIPTION="UNetbootin installs Linux/BSD distributions to a partition or USB drive" +HOMEPAGE="https://github.com/unetbootin/unetbootin" +SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" + +SLOT="0" +LICENSE="GPL-2" +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} + +COMMON_DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 +" +BDEPEND="${COMMON_DEPEND} + dev-qt/linguist-tools:5 +" +RDEPEND="${COMMON_DEPEND} + app-arch/p7zip + sys-boot/syslinux + sys-fs/mtools +" + +PATCHES=( + "${FILESDIR}/${PN}-581-desktop.patch" + "${WORKDIR}"/${PATCHSET/.tar.xz/} +) + +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 + append-cflags -DNOSTATIC + append-cxxflags -DNOSTATIC +} + +src_configure() { + sed -i -e '/^RESOURCES/d' unetbootin.pro || die + + UNBN_QTPATH="$(qt5_get_bindir)/" + "${UNBN_QTPATH}"lrelease ${PN}.pro || die + + eqmake5 ${PN}.pro || die +} + +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 +}