diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2022-04-05 21:09:10 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2022-04-06 15:58:07 +0200 |
commit | 0ab2e0694d1b9dcbed3a0644b11082aa383c0732 (patch) | |
tree | 6e9c81c4374c54bcb1cf66ea752aea2665568298 /app-misc/qcma | |
parent | dev-python/rpyc: bump to 5.1.0 (diff) | |
download | gentoo-0ab2e0694d1b9dcbed3a0644b11082aa383c0732.tar.gz gentoo-0ab2e0694d1b9dcbed3a0644b11082aa383c0732.tar.bz2 gentoo-0ab2e0694d1b9dcbed3a0644b11082aa383c0732.zip |
app-misc/qcma: Use qt5_get_bindir to find lrelease not in PATH
Pin to dev-qt/linguist-tools SLOT 5.
Actually install translations.
Add missing || die
Closes: https://bugs.gentoo.org/836789
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-misc/qcma')
-rw-r--r-- | app-misc/qcma/qcma-0.4.1-r2.ebuild (renamed from app-misc/qcma/qcma-0.4.1-r1.ebuild) | 12 | ||||
-rw-r--r-- | app-misc/qcma/qcma-0.4.2_pre20181227-r2.ebuild (renamed from app-misc/qcma/qcma-0.4.2_pre20181227-r1.ebuild) | 12 | ||||
-rw-r--r-- | app-misc/qcma/qcma-9999.ebuild | 12 |
3 files changed, 30 insertions, 6 deletions
diff --git a/app-misc/qcma/qcma-0.4.1-r1.ebuild b/app-misc/qcma/qcma-0.4.1-r2.ebuild index ea81a432ca9f..d0bafe67a995 100644 --- a/app-misc/qcma/qcma-0.4.1-r1.ebuild +++ b/app-misc/qcma/qcma-0.4.1-r2.ebuild @@ -27,7 +27,7 @@ DEPEND=" " RDEPEND="${DEPEND}" BDEPEND=" - dev-qt/linguist-tools + dev-qt/linguist-tools:5 " src_prepare() { @@ -40,6 +40,14 @@ src_prepare() { } src_configure() { - lrelease common/resources/translations/*.ts + $(qt5_get_bindir)/lrelease common/resources/translations/*.ts || die eqmake5 PREFIX="${D}"/usr qcma.pro CONFIG+="QT5_SUFFIX" $(usex ffmpeg "" CONFIG+="DISABLE_FFMPEG") } + +src_install() { + emake DESTDIR="${D}" INSTALL_ROOT="${ED}" install + einstalldocs + + insinto /usr/share/${PN}/translations + doins common/resources/translations/${PN}_*.qm +} diff --git a/app-misc/qcma/qcma-0.4.2_pre20181227-r1.ebuild b/app-misc/qcma/qcma-0.4.2_pre20181227-r2.ebuild index 5883caf3eddf..5413cea745d3 100644 --- a/app-misc/qcma/qcma-0.4.2_pre20181227-r1.ebuild +++ b/app-misc/qcma/qcma-0.4.2_pre20181227-r2.ebuild @@ -29,7 +29,7 @@ DEPEND=" " RDEPEND="${DEPEND}" BDEPEND=" - dev-qt/linguist-tools + dev-qt/linguist-tools:5 " src_prepare() { @@ -42,6 +42,14 @@ src_prepare() { } src_configure() { - lrelease common/resources/translations/*.ts + $(qt5_get_bindir)/lrelease common/resources/translations/*.ts || die eqmake5 PREFIX="${D}"/usr qcma.pro CONFIG+="QT5_SUFFIX" $(usex ffmpeg "" CONFIG+="DISABLE_FFMPEG") } + +src_install() { + emake DESTDIR="${D}" INSTALL_ROOT="${ED}" install + einstalldocs + + insinto /usr/share/${PN}/translations + doins common/resources/translations/${PN}_*.qm +} diff --git a/app-misc/qcma/qcma-9999.ebuild b/app-misc/qcma/qcma-9999.ebuild index 8522119a39a7..008ee3ac9e92 100644 --- a/app-misc/qcma/qcma-9999.ebuild +++ b/app-misc/qcma/qcma-9999.ebuild @@ -27,7 +27,7 @@ DEPEND=" " RDEPEND="${DEPEND}" BDEPEND=" - dev-qt/linguist-tools + dev-qt/linguist-tools:5 " src_prepare() { @@ -40,6 +40,14 @@ src_prepare() { } src_configure() { - lrelease common/resources/translations/*.ts + $(qt5_get_bindir)/lrelease common/resources/translations/*.ts || die eqmake5 PREFIX="${D}"/usr qcma.pro CONFIG+="QT5_SUFFIX" $(usex ffmpeg "" CONFIG+="DISABLE_FFMPEG") } + +src_install() { + emake DESTDIR="${D}" INSTALL_ROOT="${ED}" install + einstalldocs + + insinto /usr/share/${PN}/translations + doins common/resources/translations/${PN}_*.qm +} |