summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-calculators/speedcrunch')
-rw-r--r--sci-calculators/speedcrunch/Manifest1
-rw-r--r--sci-calculators/speedcrunch/speedcrunch-0.12.0.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/sci-calculators/speedcrunch/Manifest b/sci-calculators/speedcrunch/Manifest
index 11ab180808ba..f643d29bc8ff 100644
--- a/sci-calculators/speedcrunch/Manifest
+++ b/sci-calculators/speedcrunch/Manifest
@@ -1 +1,2 @@
DIST speedcrunch-0.11.tar.gz 1516510 SHA256 3632f2b40ac628d2665c838643cc99c50e89b60f54ac2a82b4533d254f0cb6eb SHA512 19d7d5b80709063768abf7076a95e25b7c16956dd20ab181d3876b87bc26e7d8c18820a7ca23af22ea3b52d67de12238b7a106e575415ee755c8c204f732eaf1 WHIRLPOOL 14bca4dfc37e3d9c7fa1ae998a9b30831bf1d9b49ba6370ad38a545d56a37d7b0b7cfbc44040f605d1b95b3a373774d1ef5013eba9afc9a45e62d05f47ab1f30
+DIST speedcrunch-0.12.0.tar.gz 3667420 SHA256 8ed64d335c7ff16d1f895d0288ed5c6b0759e14615ba7225705ffd5903cae048 SHA512 9f93936311e227ed0aff374adae408f212e6d63174154931ecb19a31f1a6f360b9548989bbdc5988d03a7600f2d3e466ef18bf5f071002b99f22b22e773143eb WHIRLPOOL a2a2b1ca13132ca8eaf022480eaf32f372f53463c7a523d5886dc4bb85210dc0d14c5043a088f0d2e5194d6997bb2d1b641d98920a4c3c7aca9c2ea1b69d74a7
diff --git a/sci-calculators/speedcrunch/speedcrunch-0.12.0.ebuild b/sci-calculators/speedcrunch/speedcrunch-0.12.0.ebuild
new file mode 100644
index 000000000000..ce832a1c11e3
--- /dev/null
+++ b/sci-calculators/speedcrunch/speedcrunch-0.12.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PLOCALES=(
+ar ca cs da de el en-GB en-US es-AR es-ES et eu fi fr he hu id it ja ko
+lt lv nb nl pl pt-BR pt-PT ro ru sk sv tr uz vi zh-CN
+)
+
+CMAKE_MAKEFILE_GENERATOR=ninja
+
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Fast and usable calculator for power users"
+HOMEPAGE="http://speedcrunch.org/"
+SRC_URI="https://bitbucket.org/heldercorreia/${PN}/get/release-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc ${PLOCALES[@]/#/l10n_}"
+
+DEPEND="
+dev-qt/qtcore:5
+dev-qt/qthelp:5
+dev-qt/qtsql:5
+dev-qt/qtwidgets:5
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/heldercorreia-speedcrunch-ea93b21f9498/src"
+
+src_prepare() {
+ local i
+ for i in "${PLOCALES[@]}" ; do
+ use l10n_${i} || \
+ sed "\|locale/${i/-/_}|d" -i resources/speedcrunch.qrc || die
+ done
+
+ cmake-utils_src_prepare
+}
+
+src_install() {
+ cmake-utils_src_install
+ cd .. || die
+ doicon -s scalable gfx/speedcrunch.svg
+
+ if use doc ; then
+ local i doclangs
+ for i in de en_US es_ES fr ; do
+ use l10n_${i/_/-} && doclangs+=" ${i}"
+ done
+
+ if [[ -z ${doclangs} ]] ; then
+ ewarn "Couldn't find a matching translation for documentation. Defaulting to: en_US"
+ doclangs="en_US"
+ fi
+
+ for i in ${doclangs} ; do
+ dodoc -r doc/build_html_embedded/${i}*/
+ done
+ fi
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}