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 B76EA138330 for ; Tue, 29 May 2018 14:11:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ADCECE07A5; Tue, 29 May 2018 14:11:28 +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 6B1E4E07A5 for ; Tue, 29 May 2018 14:11:28 +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 BB15A335C71 for ; Tue, 29 May 2018 14:11:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6B09F2AB for ; Tue, 29 May 2018 14:11:24 +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: <1527601296.24d7224ac9e01b3da45520f9204d4d4393f5cb4b.asturm@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-661.ebuild X-VCS-Directories: sys-boot/unetbootin/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 24d7224ac9e01b3da45520f9204d4d4393f5cb4b X-VCS-Branch: master Date: Tue, 29 May 2018 14:11:24 +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: 21da9a07-2ab6-45b4-9872-c8fa1d6f6da3 X-Archives-Hash: d53fcdf0e1807117eb50f4c4f0a382dd commit: 24d7224ac9e01b3da45520f9204d4d4393f5cb4b Author: Andreas Sturmlechner gentoo org> AuthorDate: Tue May 29 13:41:36 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Tue May 29 13:41:36 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24d7224a sys-boot/unetbootin: 661 version bump w/ Qt5 patch Disabling FTP sources. See also: https://github.com/unetbootin/unetbootin/pull/137 Bug: https://bugs.gentoo.org/644360 Package-Manager: Portage-2.3.36, Repoman-2.3.9 sys-boot/unetbootin/Manifest | 2 + sys-boot/unetbootin/unetbootin-661.ebuild | 97 +++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) diff --git a/sys-boot/unetbootin/Manifest b/sys-boot/unetbootin/Manifest index b88b338d6af..17aef8fed7e 100644 --- a/sys-boot/unetbootin/Manifest +++ b/sys-boot/unetbootin/Manifest @@ -1 +1,3 @@ DIST unetbootin-657.tar.gz 16258176 BLAKE2B 7124e3a4cace41b1ca61ca468e37adc90ae7d3099f54dc5da200cc7b7d94567afa5b4a597ba7d7e3a1327951fd7e61f320bc676b72ba68c7255e9145e5791adc SHA512 69ffdbc23f372c795e84267dfbed2221783a7efc9b1d5f589e7c308384cdfd0d9cf0950058f665e2c10bf6f17e0efd3eff81a1bedb98da316583f2462dfed2d9 +DIST unetbootin-661-qt5.patch.tar.xz 8060 BLAKE2B 58cb323166e344ecabf5d372e80ff0367a1344866a6e8dea4b2677a85ea6ae0b5591480a3bcbbfc3a51d391b07adf0d5f370ee77e4c7e1d6f2b727aedf274cf0 SHA512 c1226575484fa63c94ca4da875a26c7bd64bcb27d8e07ea5b67bb3f2546f31d1360d10c363cd7301476811e332c9524c96d6ba482c894b86a5b28ca8a1c8b385 +DIST unetbootin-661.tar.gz 16257579 BLAKE2B 2f92cf286c8010a80d4d4cc48a7ece55e159af9f3729277d97eb99ef2ebe8945023d03c51d6e97d7101d8547240e3c2152004222ec4c825ef4ab954c4018e7b0 SHA512 bbf74a4c4ca9b52f4da672eb54524b7fcb796c65ba80700dc3c6f2677bde37574f42a11c213cc4d4eee38783aed650beee1e2894f60185745e509a2e9571f70a diff --git a/sys-boot/unetbootin/unetbootin-661.ebuild b/sys-boot/unetbootin/unetbootin-661.ebuild new file mode 100644 index 00000000000..7f9aafaf7b2 --- /dev/null +++ b/sys-boot/unetbootin/unetbootin-661.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PATCHSET="${P}-qt5.patch.tar.xz" +inherit desktop 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} + +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}-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 +} + +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 +}