summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-calculators/speedcrunch')
-rw-r--r--sci-calculators/speedcrunch/ChangeLog8
-rw-r--r--sci-calculators/speedcrunch/metadata.xml10
-rw-r--r--sci-calculators/speedcrunch/speedcrunch-0.11-r2.ebuild49
3 files changed, 61 insertions, 6 deletions
diff --git a/sci-calculators/speedcrunch/ChangeLog b/sci-calculators/speedcrunch/ChangeLog
index af96d9b95321..f1e38e588454 100644
--- a/sci-calculators/speedcrunch/ChangeLog
+++ b/sci-calculators/speedcrunch/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-calculators/speedcrunch
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-calculators/speedcrunch/ChangeLog,v 1.7 2014/02/04 12:01:38 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-calculators/speedcrunch/ChangeLog,v 1.8 2014/06/14 20:06:17 jlec Exp $
+
+*speedcrunch-0.11-r2 (14 Jun 2014)
+
+ 14 Jun 2014; Justin Lecher <jlec@gentoo.org> +speedcrunch-0.11-r2.ebuild,
+ metadata.xml:
+ Add missing locales, #500266
*speedcrunch-0.11-r1 (04 Feb 2014)
diff --git a/sci-calculators/speedcrunch/metadata.xml b/sci-calculators/speedcrunch/metadata.xml
index f44ed3b4eb0d..c1ce0cec3d6e 100644
--- a/sci-calculators/speedcrunch/metadata.xml
+++ b/sci-calculators/speedcrunch/metadata.xml
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>sci</herd>
- <longdescription lang="en">A fast and usable calculator for power users.</longdescription>
- <upstream>
- <remote-id type="google-code">speedcrunch</remote-id>
- </upstream>
+ <herd>sci</herd>
+ <longdescription lang="en">A fast and usable calculator for power users.</longdescription>
+ <upstream>
+ <remote-id type="google-code">speedcrunch</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-calculators/speedcrunch/speedcrunch-0.11-r2.ebuild b/sci-calculators/speedcrunch/speedcrunch-0.11-r2.ebuild
new file mode 100644
index 000000000000..75f9ea6999c2
--- /dev/null
+++ b/sci-calculators/speedcrunch/speedcrunch-0.11-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-calculators/speedcrunch/speedcrunch-0.11-r2.ebuild,v 1.1 2014/06/14 20:06:17 jlec Exp $
+
+EAPI=5
+
+PLOCALES="ar_JO ca_ES cs_CZ de_DE en_GB en_US es_AR es_ES et_EE eu_ES fi_FI
+ fr_FR he_IL hu_HU id_ID it_IT ja_JP ko_KR lv_LV nb_NO nl_NL pl_PL pt_BR
+ pt_PT ro_RO ru_RU sv_SE tr_TR uz_UZ vi_VN zh_CN"
+
+CMAKE_MAKEFILE_GENERATOR=ninja
+
+inherit cmake-utils l10n
+
+DESCRIPTION="Fast and usable calculator for power users"
+HOMEPAGE="http://speedcrunch.org/"
+SRC_URI="https://github.com/${PN}/SpeedCrunch/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+DEPEND="dev-qt/qtgui:4"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/SpeedCrunch-${PV}/src"
+
+src_prepare() {
+ my_rm_loc() {
+ rm "resources/locale/${1}.qm" || die
+ sed -i resources/speedcrunch.qrc \
+ -e "s|<file>locale/${1}.qm</file>||" || die
+ sed -i gui/mainwindow.cpp \
+ -e "s|map.insert(QString::fromUtf8(\".*, QLatin1String(\"${1}\"));||" || die
+ }
+
+ l10n_find_plocales_changes 'resources/locale' '' '.qm'
+ l10n_for_each_disabled_locale_do my_rm_loc
+
+ cmake-utils_src_prepare
+}
+
+src_install() {
+ cmake-utils_src_install
+ cd .. || die
+ doicon -s scalable gfx/speedcrunch.svg
+ use doc && dodoc doc/*.pdf
+}