summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-calculators/speedcrunch
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-calculators/speedcrunch')
-rw-r--r--sci-calculators/speedcrunch/Manifest2
-rw-r--r--sci-calculators/speedcrunch/files/speedcrunch-0.10.1-iconname.patch11
-rw-r--r--sci-calculators/speedcrunch/metadata.xml10
-rw-r--r--sci-calculators/speedcrunch/speedcrunch-0.10.1.ebuild47
-rw-r--r--sci-calculators/speedcrunch/speedcrunch-0.11-r1.ebuild49
-rw-r--r--sci-calculators/speedcrunch/speedcrunch-0.11-r2.ebuild49
6 files changed, 168 insertions, 0 deletions
diff --git a/sci-calculators/speedcrunch/Manifest b/sci-calculators/speedcrunch/Manifest
new file mode 100644
index 000000000000..62da5f46f12c
--- /dev/null
+++ b/sci-calculators/speedcrunch/Manifest
@@ -0,0 +1,2 @@
+DIST speedcrunch-0.10.1.tar.gz 1722124 SHA256 9d4e4ddd8bc6a60d59b9cb4815511ba20a5767719928eae3729e4df6c96dec84 SHA512 cafd2dc80d4925e0228648883e0117dfe8f7f80b715fc1a97586c19d4f5790833d422aacc117f5beafc18918c116004cb8fce5701b801280f1e9e74a5933d037 WHIRLPOOL b58527f0337fea4c1798802e9d16b1a26de563b963334c8215f06e0502836c1c6eeff590f66222780645050642904600fd44eaee490e86344506cc6cc45ff1cd
+DIST speedcrunch-0.11.tar.gz 1516510 SHA256 3632f2b40ac628d2665c838643cc99c50e89b60f54ac2a82b4533d254f0cb6eb SHA512 19d7d5b80709063768abf7076a95e25b7c16956dd20ab181d3876b87bc26e7d8c18820a7ca23af22ea3b52d67de12238b7a106e575415ee755c8c204f732eaf1 WHIRLPOOL 14bca4dfc37e3d9c7fa1ae998a9b30831bf1d9b49ba6370ad38a545d56a37d7b0b7cfbc44040f605d1b95b3a373774d1ef5013eba9afc9a45e62d05f47ab1f30
diff --git a/sci-calculators/speedcrunch/files/speedcrunch-0.10.1-iconname.patch b/sci-calculators/speedcrunch/files/speedcrunch-0.10.1-iconname.patch
new file mode 100644
index 000000000000..3e716e869114
--- /dev/null
+++ b/sci-calculators/speedcrunch/files/speedcrunch-0.10.1-iconname.patch
@@ -0,0 +1,11 @@
+--- src/gui/aboutbox.cpp.orig 2008-11-17 20:12:32.000000000 +0000
++++ src/gui/aboutbox.cpp 2008-11-17 20:12:50.000000000 +0000
+@@ -209,7 +209,7 @@
+ infoLabel->setOpenExternalLinks( true );
+
+ QLabel * iconLabel = new QLabel( this );
+- iconLabel->setPixmap( QPixmap( ":/crunch.png" ) );
++ iconLabel->setPixmap( QPixmap( ":/speedcrunch.png" ) );
+ iconLabel->setAlignment( Qt::AlignVCenter | Qt::AlignRight );
+
+ MarqueeText * marqueeText = new MarqueeText( this );
diff --git a/sci-calculators/speedcrunch/metadata.xml b/sci-calculators/speedcrunch/metadata.xml
new file mode 100644
index 000000000000..8568f761ebc5
--- /dev/null
+++ b/sci-calculators/speedcrunch/metadata.xml
@@ -0,0 +1,10 @@
+<?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>
+ <remote-id type="github">speedcrunch/SpeedCrunch</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-calculators/speedcrunch/speedcrunch-0.10.1.ebuild b/sci-calculators/speedcrunch/speedcrunch-0.10.1.ebuild
new file mode 100644
index 000000000000..94f51630baa7
--- /dev/null
+++ b/sci-calculators/speedcrunch/speedcrunch-0.10.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils cmake-utils
+
+DESCRIPTION="A fast and usable calculator for power users"
+HOMEPAGE="https://code.google.com/p/speedcrunch/"
+SRC_URI="http://speedcrunch.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+DEPEND="dev-qt/qtgui:4"
+RDEPEND="${DEPEND}"
+
+LANGS="ca cs de en es es_AR eu fi fr he id it nb nl no pl
+ pt pt_BR ro ru sv tr zh_CN"
+for lang in ${LANGS}; do
+ IUSE="${IUSE} linguas_${lang}"
+done
+
+S="${WORKDIR}/${P}/src"
+
+src_prepare( ) {
+ epatch "${FILESDIR}"/${P}-iconname.patch
+ # regenerate translations
+ lrelease speedcrunch.pro || die
+ local lang
+ for lang in ${LANGS}; do
+ if ! use linguas_${lang}; then
+ sed -i -e "s:i18n/${lang}\.qm::" Translations.cmake || die
+ sed -i -e "s:books/${lang}::" CMakeLists.txt || die
+ fi
+ done
+}
+
+src_install() {
+ cmake-utils_src_install
+ cd ..
+ dodoc ChangeLog ChangeLog.floatnum HACKING.txt LISEZMOI README TRANSLATORS
+ use doc && dodoc doc/*.pdf
+}
diff --git a/sci-calculators/speedcrunch/speedcrunch-0.11-r1.ebuild b/sci-calculators/speedcrunch/speedcrunch-0.11-r1.ebuild
new file mode 100644
index 000000000000..137bcb35f964
--- /dev/null
+++ b/sci-calculators/speedcrunch/speedcrunch-0.11-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PLOCALES="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 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
+}
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..455e00cd44a9
--- /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
+# $Id$
+
+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
+}