From 7228eca4c8afd6afd92b4bac2eea426357833302 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Tue, 21 Jan 2020 13:13:18 +0100 Subject: sys-boot/unetbootin: Call xdg_icon_cache_update Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jeroen Roovers --- sys-boot/unetbootin/unetbootin-677-r1.ebuild | 111 +++++++++++++++++++++++++++ sys-boot/unetbootin/unetbootin-677.ebuild | 103 ------------------------- 2 files changed, 111 insertions(+), 103 deletions(-) create mode 100644 sys-boot/unetbootin/unetbootin-677-r1.ebuild delete mode 100644 sys-boot/unetbootin/unetbootin-677.ebuild (limited to 'sys-boot/unetbootin') diff --git a/sys-boot/unetbootin/unetbootin-677-r1.ebuild b/sys-boot/unetbootin/unetbootin-677-r1.ebuild new file mode 100644 index 000000000000..0a9a25ac4678 --- /dev/null +++ b/sys-boot/unetbootin/unetbootin-677-r1.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit desktop flag-o-matic qmake-utils xdg-utils + +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 + https://dev.gentoo.org/~jer/${PN}-675-qt5.patch.xz +" + +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}-675-desktop.patch + "${WORKDIR}"/${PN}-675-qt5.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 + 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 +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +} diff --git a/sys-boot/unetbootin/unetbootin-677.ebuild b/sys-boot/unetbootin/unetbootin-677.ebuild deleted file mode 100644 index 9742705bd495..000000000000 --- a/sys-boot/unetbootin/unetbootin-677.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -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=" - https://github.com/unetbootin/unetbootin/archive/${PV}.tar.gz -> ${P}.tar.gz - https://dev.gentoo.org/~jer/${PN}-675-qt5.patch.xz -" - -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}-675-desktop.patch - "${WORKDIR}"/${PN}-675-qt5.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 - 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 -} -- cgit v1.2.3-65-gdbad