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
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')
-rw-r--r--sci-calculators/calcoo/Manifest1
-rw-r--r--sci-calculators/calcoo/calcoo-1.3.18.ebuild35
-rw-r--r--sci-calculators/calcoo/files/calcoo-1.3.18-gold.patch16
-rw-r--r--sci-calculators/calcoo/metadata.xml12
-rw-r--r--sci-calculators/calculator/Manifest2
-rw-r--r--sci-calculators/calculator/calculator-1.6.43.ebuild16
-rw-r--r--sci-calculators/calculator/calculator-1.7.49.ebuild19
-rw-r--r--sci-calculators/calculator/metadata.xml21
-rw-r--r--sci-calculators/galculator/Manifest2
-rw-r--r--sci-calculators/galculator/galculator-2.1.2.ebuild28
-rw-r--r--sci-calculators/galculator/galculator-2.1.3.ebuild31
-rw-r--r--sci-calculators/galculator/metadata.xml8
-rw-r--r--sci-calculators/gonvert/Manifest2
-rw-r--r--sci-calculators/gonvert/files/0.2.23-paths.patch64
-rw-r--r--sci-calculators/gonvert/gonvert-0.2.25.ebuild29
-rw-r--r--sci-calculators/gonvert/gonvert-0.2.32.ebuild34
-rw-r--r--sci-calculators/gonvert/metadata.xml16
-rw-r--r--sci-calculators/grpn/Manifest1
-rw-r--r--sci-calculators/grpn/grpn-1.3.4.ebuild36
-rw-r--r--sci-calculators/grpn/metadata.xml9
-rw-r--r--sci-calculators/hcalc/Manifest2
-rw-r--r--sci-calculators/hcalc/files/1.0-gentoo.patch57
-rw-r--r--sci-calculators/hcalc/hcalc-1.0-r1.ebuild36
-rw-r--r--sci-calculators/hcalc/hcalc-1.2.ebuild25
-rw-r--r--sci-calculators/hcalc/metadata.xml11
-rw-r--r--sci-calculators/hexcalc/Manifest1
-rw-r--r--sci-calculators/hexcalc/files/hexcalc-keypad.diff116
-rw-r--r--sci-calculators/hexcalc/files/hexcalc-order.diff51
-rw-r--r--sci-calculators/hexcalc/hexcalc-1.11-r2.ebuild41
-rw-r--r--sci-calculators/hexcalc/metadata.xml9
-rw-r--r--sci-calculators/keurocalc/Manifest1
-rw-r--r--sci-calculators/keurocalc/keurocalc-1.2.3.ebuild32
-rw-r--r--sci-calculators/keurocalc/metadata.xml5
-rw-r--r--sci-calculators/metadata.xml29
-rw-r--r--sci-calculators/orpie/Manifest1
-rw-r--r--sci-calculators/orpie/files/orpie-1.5.1-nogsl.patch30
-rw-r--r--sci-calculators/orpie/files/orpie-1.5.1-ocaml311.patch200
-rw-r--r--sci-calculators/orpie/files/orpie-1.5.1-orpierc.patch11
-rw-r--r--sci-calculators/orpie/files/orpie-1.5.1-tinfo.patch10
-rw-r--r--sci-calculators/orpie/metadata.xml10
-rw-r--r--sci-calculators/orpie/orpie-1.5.1-r1.ebuild33
-rw-r--r--sci-calculators/orpie/orpie-1.5.1.ebuild25
-rw-r--r--sci-calculators/pcalc/Manifest4
-rw-r--r--sci-calculators/pcalc/metadata.xml12
-rw-r--r--sci-calculators/pcalc/pcalc-1.2.ebuild19
-rw-r--r--sci-calculators/pcalc/pcalc-1.3.ebuild27
-rw-r--r--sci-calculators/pcalc/pcalc-2.ebuild28
-rw-r--r--sci-calculators/pcalc/pcalc-3.ebuild27
-rw-r--r--sci-calculators/qalculate-bases/Manifest1
-rw-r--r--sci-calculators/qalculate-bases/files/qalculate-bases-0.9.4-cln-config.patch159
-rw-r--r--sci-calculators/qalculate-bases/metadata.xml8
-rw-r--r--sci-calculators/qalculate-bases/qalculate-bases-0.9.4-r2.ebuild32
-rw-r--r--sci-calculators/qalculate-currency/Manifest1
-rw-r--r--sci-calculators/qalculate-currency/files/qalculate-currency-0.9.4-cln-config.patch159
-rw-r--r--sci-calculators/qalculate-currency/metadata.xml8
-rw-r--r--sci-calculators/qalculate-currency/qalculate-currency-0.9.4-r2.ebuild32
-rw-r--r--sci-calculators/qalculate-gtk/Manifest1
-rw-r--r--sci-calculators/qalculate-gtk/files/qalculate-gtk-0.9.7-entry.patch18
-rw-r--r--sci-calculators/qalculate-gtk/metadata.xml13
-rw-r--r--sci-calculators/qalculate-gtk/qalculate-gtk-0.9.7.ebuild39
-rw-r--r--sci-calculators/qalculate-units/Manifest1
-rw-r--r--sci-calculators/qalculate-units/files/qalculate-units-0.9.4-cln-config.patch159
-rw-r--r--sci-calculators/qalculate-units/files/qalculate-units-0.9.4-desktop.patch11
-rw-r--r--sci-calculators/qalculate-units/metadata.xml8
-rw-r--r--sci-calculators/qalculate-units/qalculate-units-0.9.4-r2.ebuild32
-rw-r--r--sci-calculators/qalculator/Manifest1
-rw-r--r--sci-calculators/qalculator/metadata.xml5
-rw-r--r--sci-calculators/qalculator/qalculator-0.4b.ebuild24
-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
-rw-r--r--sci-calculators/tiemu/Manifest1
-rw-r--r--sci-calculators/tiemu/files/tiemu-3.03-r2820.patch28
-rw-r--r--sci-calculators/tiemu/files/tiemu-3.03-remove_depreciated_gtk_calls.patch232
-rw-r--r--sci-calculators/tiemu/metadata.xml12
-rw-r--r--sci-calculators/tiemu/tiemu-3.03.ebuild61
-rw-r--r--sci-calculators/tilp2/Manifest2
-rw-r--r--sci-calculators/tilp2/metadata.xml14
-rw-r--r--sci-calculators/tilp2/tilp2-1.16-r1.ebuild46
-rw-r--r--sci-calculators/tilp2/tilp2-1.17-r1.ebuild44
-rw-r--r--sci-calculators/transcalc/Manifest1
-rw-r--r--sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch13
-rw-r--r--sci-calculators/transcalc/metadata.xml21
-rw-r--r--sci-calculators/transcalc/transcalc-0.14-r1.ebuild30
-rw-r--r--sci-calculators/units/Manifest2
-rw-r--r--sci-calculators/units/metadata.xml11
-rw-r--r--sci-calculators/units/units-2.11.ebuild61
-rw-r--r--sci-calculators/units/units-2.11a.ebuild61
-rw-r--r--sci-calculators/wcalc/Manifest2
-rw-r--r--sci-calculators/wcalc/files/wcalc-2.3.1-parallel-build.patch11
-rw-r--r--sci-calculators/wcalc/metadata.xml17
-rw-r--r--sci-calculators/wcalc/wcalc-2.2.1.ebuild36
-rw-r--r--sci-calculators/wcalc/wcalc-2.4.ebuild34
96 files changed, 2855 insertions, 0 deletions
diff --git a/sci-calculators/calcoo/Manifest b/sci-calculators/calcoo/Manifest
new file mode 100644
index 000000000000..3365c91f9a16
--- /dev/null
+++ b/sci-calculators/calcoo/Manifest
@@ -0,0 +1 @@
+DIST calcoo-1.3.18.tar.gz 133605 SHA256 7daa6f089922e6a65812d20374803335af4272a2716a4c148747b5620b2aa069 SHA512 e03fd61abb1e5500a1e4eb91e732ced1c963770ddb85824430511cc5c14d1f5af1095e2fdc7b8b483afba94e3ac8381a001e0a42dccaa182c1a888e90afd14a7 WHIRLPOOL 027091bb65af9d9da7ecedbe861abcdcc04bdb7e16dc132e9e0b87d5d52b3b5513e00a631cc34c2b6a4a7320619661374719863f0e02965e08bb928da7ec5ba7
diff --git a/sci-calculators/calcoo/calcoo-1.3.18.ebuild b/sci-calculators/calcoo/calcoo-1.3.18.ebuild
new file mode 100644
index 000000000000..f1f855c434a8
--- /dev/null
+++ b/sci-calculators/calcoo/calcoo-1.3.18.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+AUTOTOOLS_AUTORECONF=yes
+
+inherit eutils autotools-utils
+
+DESCRIPTION="Scientific calculator designed to provide maximum usability"
+HOMEPAGE="http://calcoo.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc sparc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${P}-gold.patch )
+
+src_configure() {
+ local myeconfargs=( --disable-gtktest )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ newicon src/pixmaps/main.xpm ${PN}.xpm
+ make_desktop_entry ${PN} Calcoo ${PN} "Education;Math"
+}
diff --git a/sci-calculators/calcoo/files/calcoo-1.3.18-gold.patch b/sci-calculators/calcoo/files/calcoo-1.3.18-gold.patch
new file mode 100644
index 000000000000..1369dd526b28
--- /dev/null
+++ b/sci-calculators/calcoo/files/calcoo-1.3.18-gold.patch
@@ -0,0 +1,16 @@
+ src/Makefile.am | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index b14dc1e..d713b51 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -36,7 +36,7 @@ output.c \
+ texts.h
+
+ INCLUDES = @GTK_CFLAGS@
+-LDADD = @GTK_LIBS@
++LDADD = @GTK_LIBS@ -lm
+ CLEANFILES = *~
+ DISTCLEANFILES = .deps/*.P
+
diff --git a/sci-calculators/calcoo/metadata.xml b/sci-calculators/calcoo/metadata.xml
new file mode 100644
index 000000000000..c5a8a0875d1a
--- /dev/null
+++ b/sci-calculators/calcoo/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <longdescription>
+ Calcoo is a scientific calculator designed to provide maximum
+ usability.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">calcoo</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-calculators/calculator/Manifest b/sci-calculators/calculator/Manifest
new file mode 100644
index 000000000000..1ad7a256173e
--- /dev/null
+++ b/sci-calculators/calculator/Manifest
@@ -0,0 +1,2 @@
+DIST fox-1.6.43.tar.gz 4368520 SHA256 f09fbe0f11a1e369362a66d6e41029ce137b2704c04970cae990213ac80a838e SHA512 fec0f20017efbbc95402b45cd19088bb491fadd33532ca1b3f700b2f1a2ea94b8a6a7dcbe5ccebbb33528e46f817d65e205892e0bac64c41fca5706fda07edf3 WHIRLPOOL f17f86f53bf9857ade1dd6aed510b0d09bb30dccb25b8ba17e1e6fd1be57a5fd6bebc302ac1db3f7b4bfcb1e986345ad9172eb9eb53ecfc2a78a635627937843
+DIST fox-1.7.49.tar.gz 5336321 SHA256 2435c56cde3ba6617c638af4f3bac39e8f4d5dd5a5c6d0805d274c7ba05c520c SHA512 da6c3478370f1e72091675e49f8458a6722eca4735bf89052b2b7ef02f4e74ee41f10c9fcc39a24a1571dd0bb1cdf779e9dea5bf15be20722ca783c9d59eb6e9 WHIRLPOOL 53ad3d34e57507702fc2ac9bd7b446021a99e3dff5b337cda090a670b06d4733abce2bbca88a7586e8af2d00f16ee84b0bd3c42f66fd6e430cc6d342bb76b1ff
diff --git a/sci-calculators/calculator/calculator-1.6.43.ebuild b/sci-calculators/calculator/calculator-1.6.43.ebuild
new file mode 100644
index 000000000000..f5c00884d531
--- /dev/null
+++ b/sci-calculators/calculator/calculator-1.6.43.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit fox
+
+DESCRIPTION="Scientific calculator based on the FOX Toolkit"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 hppa ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND="x11-libs/fox:1.6"
diff --git a/sci-calculators/calculator/calculator-1.7.49.ebuild b/sci-calculators/calculator/calculator-1.7.49.ebuild
new file mode 100644
index 000000000000..fa3b92e281d8
--- /dev/null
+++ b/sci-calculators/calculator/calculator-1.7.49.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit fox
+
+DESCRIPTION="Scientific calculator based on the FOX Toolkit"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ppc ~ppc64 ~sparc x86"
+IUSE=""
+
+RDEPEND="~x11-libs/fox-${PV}
+ x11-libs/libICE
+ x11-libs/libSM"
+DEPEND="${RDEPEND}"
diff --git a/sci-calculators/calculator/metadata.xml b/sci-calculators/calculator/metadata.xml
new file mode 100644
index 000000000000..82d1363de62e
--- /dev/null
+++ b/sci-calculators/calculator/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>mabi@gentoo.org</email>
+ <name>Matti Bickel</name>
+ </maintainer>
+ <longdescription>
+ The FOX Calculator is a simple desktop calculator geared toward the
+ programmer for the FOX Toolkit. It supports not only a full
+ complement scientific functions, but also common operations that
+ programmers need, such as bitwise operations, bitwise shifting, and
+ base-2 logarithm and exponents, and numeric conversion between
+ hexadecimal, octal, binary, and decimal. The FOX Calculator
+ implements correct operator precedences, so expressions like 2+3*5
+ yield the correct result, which is 17, and not 25. Also featured is
+ a constant memory, which permanently stores its value even if you
+ exit the calculator and restart it later.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-calculators/galculator/Manifest b/sci-calculators/galculator/Manifest
new file mode 100644
index 000000000000..424ef14336d9
--- /dev/null
+++ b/sci-calculators/galculator/Manifest
@@ -0,0 +1,2 @@
+DIST galculator-2.1.2.tar.bz2 427684 SHA256 23e7e8d02ec49bf06e061e7fa56c779fd0f353ec294c30fd88858786d8e4a79b SHA512 e327ca9e6845a3022b4a2bcdaccf68c60d569f839f5cc3706886ff952fbac369f4022887ed4d5b39d6631c67f9de895db4cae4b0f39a681ef9b29747228d81b1 WHIRLPOOL 255a159841ad0bd523fd6933d4b8f3a27cbe14f4465c9db19d68046dd4eed2b1eddeb596795a5782c2114b36f093ab2f51afbd5356b931b50689debb4e88ec48
+DIST galculator-2.1.3.tar.bz2 466288 SHA256 91ac62d6d74da910cb79c68f7bf3f4505ac0efe51091150c4ea54fe1c1306235 SHA512 782b5a672fa40bab01dc39fb32e79e8da08993bace6c37768db2ca11a2bb996fdc07e773a0f70b7bba73c018de6ea6e3f71afc3885ccbc94d345fef62cdfa74a WHIRLPOOL 188c80101d41e93b6ddfaf4c65aadcb65c5639e4cf0c2cd75dba77f7dd4d405164ce0fb5af48c7a5599de7574e06e39d047d42424454310555500f304bd3daf2
diff --git a/sci-calculators/galculator/galculator-2.1.2.ebuild b/sci-calculators/galculator/galculator-2.1.2.ebuild
new file mode 100644
index 000000000000..5646bc0537d8
--- /dev/null
+++ b/sci-calculators/galculator/galculator-2.1.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+GCONF_DEBUG=no
+
+inherit gnome2
+
+DESCRIPTION="GTK+ based algebraic and RPN calculator"
+HOMEPAGE="http://galculator.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~ppc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND="dev-libs/glib:2
+ x11-libs/gtk+:3
+ x11-libs/pango"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/flex
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+DOCS="AUTHORS ChangeLog NEWS README THANKS doc/shortcuts"
diff --git a/sci-calculators/galculator/galculator-2.1.3.ebuild b/sci-calculators/galculator/galculator-2.1.3.ebuild
new file mode 100644
index 000000000000..68439a669a31
--- /dev/null
+++ b/sci-calculators/galculator/galculator-2.1.3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+GCONF_DEBUG=no
+
+inherit gnome2
+
+DESCRIPTION="GTK+ based algebraic and RPN calculator"
+HOMEPAGE="http://galculator.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~ppc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND="
+ dev-libs/glib:2
+ x11-libs/gtk+:3
+ x11-libs/pango
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/flex
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+DOCS="AUTHORS ChangeLog NEWS README THANKS doc/shortcuts"
diff --git a/sci-calculators/galculator/metadata.xml b/sci-calculators/galculator/metadata.xml
new file mode 100644
index 000000000000..2ad6e98df1b7
--- /dev/null
+++ b/sci-calculators/galculator/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>gnome</herd>
+ <upstream>
+ <remote-id type="sourceforge">galculator</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-calculators/gonvert/Manifest b/sci-calculators/gonvert/Manifest
new file mode 100644
index 000000000000..effe02868b36
--- /dev/null
+++ b/sci-calculators/gonvert/Manifest
@@ -0,0 +1,2 @@
+DIST gonvert-0.2.25.tar.gz 123384 SHA256 025e2de285cefaf398b62eb83b2db2e9b2e6e3e4e36615b949c8e596b5e39678 SHA512 7f8fe235afde30394b5abd6b19abeb7282be84e98c4966d260f6542239dbc18c48dcf0e852cd5e077cccc6ecca1582af5cecc46560a4119e461005a438575b90 WHIRLPOOL 0391514dc322e52a55963219da90418ad571a361e3a4485ebb83a0f1ca9f6d4296361c2b412f687cd9a17e4bd994ccbcd9ad12ed64bb0bb2bafd17a9215bb0ee
+DIST gonvert-0.2.32.tar.gz 124613 SHA256 9b4b2b7df01038e5edaee6b45990b4344689cd1c378e207cb2980537b1d12e61 SHA512 82fe2da15808c5efcfff983ad12f82563b4106279a1c07a05c67a4b7cb899569edfda396fceb0e6f3d69c4dca4680719db2cc7842600f0715ced4c6235e233b9 WHIRLPOOL ff845e96f468357cd0ce086ac34106da50c736945748ed49840e439b4a3030124d6993d5077f257cafb03662201e3b622a59dd3f86820062132f55a07f87fd9c
diff --git a/sci-calculators/gonvert/files/0.2.23-paths.patch b/sci-calculators/gonvert/files/0.2.23-paths.patch
new file mode 100644
index 000000000000..72a39758236a
--- /dev/null
+++ b/sci-calculators/gonvert/files/0.2.23-paths.patch
@@ -0,0 +1,64 @@
+diff -uNr gonvert-0.2.23.ORIG//gonvert gonvert-0.2.23/gonvert
+--- gonvert-0.2.23.ORIG//gonvert 2010-05-02 15:56:46.807041971 +0100
++++ gonvert-0.2.23/gonvert 2010-05-02 15:57:06.840166944 +0100
+@@ -739,9 +739,9 @@
+ if os.path.exists('gonvert.glade'):
+ homepath=''
+ pixmapspath='pixmaps/'
+-elif os.path.exists('/usr/local/share/gonvert/gonvert.glade'):
+- homepath='/usr/local/share/gonvert/'
+- pixmapspath='/usr/local/share/pixmaps/'
++elif os.path.exists('/usr/share/gonvert/gonvert.glade'):
++ homepath='/usr/share/gonvert/'
++ pixmapspath='/usr/share/pixmaps/'
+ else:
+ #look for it in the installed directory
+ homepath=sys.path[0] + '/../share/gonvert/'
+diff -uNr gonvert-0.2.23.ORIG//Makefile gonvert-0.2.23/Makefile
+--- gonvert-0.2.23.ORIG//Makefile 2010-05-02 15:56:46.808041940 +0100
++++ gonvert-0.2.23/Makefile 2010-05-02 15:57:06.840166944 +0100
+@@ -4,7 +4,7 @@
+ VERSION=$(shell head -3 $(NAME) | grep version | cut -d\" -f2)
+
+ #DESTDIR can be defined when calling make ie. make install DESTDIR=$RPM_BUILD_ROOT
+-prefix = /usr/local
++prefix = /usr
+ bindir = $(prefix)/bin
+ datadir = $(prefix)/share
+ docdir = $(datadir)/doc
+@@ -18,7 +18,7 @@
+ install -D -m0644 gonvert.glade $(DESTDIR)$(datadir)/gonvert/gonvert.glade
+ install -d -m0755 $(DESTDIR)$(datadir)/pixmaps/
+ install -m0644 pixmaps/*.png $(DESTDIR)$(datadir)/pixmaps/
+- install -D -m0644 gonvert.desktop $(DESTDIR)$(datadir)/gnome/apps/Utilities/gonvert.desktop
++ install -D -m0644 gonvert.desktop $(DESTDIR)$(datadir)/applications/gonvert.desktop
+ install -d -m0755 $(DESTDIR)$(docdir)/gonvert/
+ install -m0644 doc/* $(DESTDIR)$(docdir)/gonvert/
+
+@@ -27,7 +27,7 @@
+ install -D -m0644 gonvert.glade $(DESTDIR)$(datadir)/gonvert/gonvert.glade
+ install -d -m0755 $(DESTDIR)$(datadir)/pixmaps/
+ install -m0644 pixmaps/*.png $(DESTDIR)$(datadir)/pixmaps/
+- install -D -m0644 gonvert.desktop $(DESTDIR)$(datadir)/gnome/apps/Utilities/gonvert.desktop
++ install -D -m0644 gonvert.desktop $(DESTDIR)$(datadir)/applications/gonvert.desktop
+ install -d -m0755 $(DESTDIR)$(docdir)/gonvert/
+ install -m0644 doc/* $(DESTDIR)$(docdir)/gonvert/
+ install -m0644 i18n/pl_messages.gmo /usr/share/locale/pl/LC_MESSAGES/gonvert.mo
+@@ -37,7 +37,7 @@
+ rm -f $(bindir)/gonvert
+ rm -rf $(datadir)/gonvert*
+ rm -rf $(docdir)/gonvert*
+- rm -f /usr/share/gnome/apps/Utilities/$(NAME).desktop
++ rm -f /usr/share/applications/$(NAME).desktop
+ rm -f /usr/share/pixmaps/$(NAME).png
+
+ uninstall_pl:
+@@ -45,7 +45,7 @@
+ rm -f $(bindir)/gonvert
+ rm -rf $(datadir)/gonvert*
+ rm -rf $(docdir)/gonvert*
+- rm -f /usr/share/gnome/apps/Utilities/$(NAME).desktop
++ rm -f /usr/share/applications/$(NAME).desktop
+ rm -f /usr/share/pixmaps/$(NAME).png
+ rm -f /usr/share/locale/pl/LC_MESSAGES/gonvert.mo
+
diff --git a/sci-calculators/gonvert/gonvert-0.2.25.ebuild b/sci-calculators/gonvert/gonvert-0.2.25.ebuild
new file mode 100644
index 000000000000..c85858833a3a
--- /dev/null
+++ b/sci-calculators/gonvert/gonvert-0.2.25.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Unit conversion utility written in PyGTK"
+HOMEPAGE="http://unihedron.com/projects/gonvert/index.php"
+SRC_URI="http://unihedron.com/projects/gonvert/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="dev-python/pygtk:2"
+RDEPEND="${DEPEND}"
+
+src_prepare () {
+ epatch "${FILESDIR}"/0.2.23-paths.patch
+}
+
+src_install () {
+ emake install DESTDIR="${D}" prefix="${EPREFIX}/usr"
+ rm -fr "${ED}/usr/share/doc/${PN}"
+ dodoc doc/CHANGELOG doc/FAQ doc/README doc/THANKS doc/TODO
+}
diff --git a/sci-calculators/gonvert/gonvert-0.2.32.ebuild b/sci-calculators/gonvert/gonvert-0.2.32.ebuild
new file mode 100644
index 000000000000..b41c0bf67928
--- /dev/null
+++ b/sci-calculators/gonvert/gonvert-0.2.32.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="Unit conversion utility written in PyGTK"
+HOMEPAGE="http://unihedron.com/projects/gonvert/index.php"
+SRC_URI="http://unihedron.com/projects/gonvert/downloads/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc ~amd64-linux ~x86-linux"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ dev-python/pygtk:2[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/0.2.23-paths.patch )
+
+src_install () {
+ emake install DESTDIR="${D}" prefix="${EPREFIX}/usr"
+ python_fix_shebang "${ED}"/usr/bin
+ rm -fr "${ED}/usr/share/doc/${PN}"
+ dodoc doc/{CHANGELOG,FAQ,README,THANKS,TODO}
+}
diff --git a/sci-calculators/gonvert/metadata.xml b/sci-calculators/gonvert/metadata.xml
new file mode 100644
index 000000000000..c9d73bdff576
--- /dev/null
+++ b/sci-calculators/gonvert/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <longdescription lang="en">
+ gonvert is a conversion utility that allows conversion between many
+ units like CGS, Ancient, Imperial with many categories like length,
+ mass, numbers, etc. All units converted values shown at once as you
+ type. Easy to add/change your own units. Written in
+ Python,pygtk,libgade.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-calculators/grpn/Manifest b/sci-calculators/grpn/Manifest
new file mode 100644
index 000000000000..8c8f0c39667b
--- /dev/null
+++ b/sci-calculators/grpn/Manifest
@@ -0,0 +1 @@
+DIST grpn_1.3.4-1.tar.gz 59172 RMD160 56f6c1b6a207ffdee308d98890ae93ea199fa27a SHA1 09fb010763b5de362189076b1a913c29d0a2e79c SHA256 e26c9c4648c11d35d3a0ba8bb7855b016e2559fa291036eb2dac0a9d4b2caa6f
diff --git a/sci-calculators/grpn/grpn-1.3.4.ebuild b/sci-calculators/grpn/grpn-1.3.4.ebuild
new file mode 100644
index 000000000000..f5729d2629e6
--- /dev/null
+++ b/sci-calculators/grpn/grpn-1.3.4.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A reverse polish notation (RPN) calculator based on GTK+ and libmath"
+HOMEPAGE="http://www.getreu.net/"
+SRC_URI="http://www.getreu.net/public/downloads/software/${PN}/${P}/${PN}_${PV}-1.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i -e 's:= -g -O2 -I/usr/X11/include:+=:' Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" DFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+
+ newicon icon.png ${PN}.png
+ make_desktop_entry ${PN} "RPN calculator"
+}
diff --git a/sci-calculators/grpn/metadata.xml b/sci-calculators/grpn/metadata.xml
new file mode 100644
index 000000000000..7ece1bced204
--- /dev/null
+++ b/sci-calculators/grpn/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>ssuominen@gentoo.org</email>
+ <name>Samuli Suominen</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-calculators/hcalc/Manifest b/sci-calculators/hcalc/Manifest
new file mode 100644
index 000000000000..0ae91d5134df
--- /dev/null
+++ b/sci-calculators/hcalc/Manifest
@@ -0,0 +1,2 @@
+DIST hcalc-1.2.tar.xz 15456 SHA256 4e453e6ed9f83689c63f913492725e5243d9511eb8892520ba2ea202c1feb5bc SHA512 c21dac80d31f7adc5a1e7a02e5a755ac8d68547a9f25622d55e6d87c924a2535ac496ecfebcae52b1995aa414362a9005be4e2b390d0e01dab22bd692b16bf49 WHIRLPOOL b6232b4535f87db41ed040acb53067de927e30c280b09300807e77dd0c367929ec48c22e80417540f0df49330d41d687edd47752fa729f0641579214a9ccbc6e
+DIST hcalc.tar.gz 6014 SHA256 03f6fcdeb9cfafc54d4d9a138ae3489c90b529b3576434847bcc753359bdccf8
diff --git a/sci-calculators/hcalc/files/1.0-gentoo.patch b/sci-calculators/hcalc/files/1.0-gentoo.patch
new file mode 100644
index 000000000000..a2b24031fab8
--- /dev/null
+++ b/sci-calculators/hcalc/files/1.0-gentoo.patch
@@ -0,0 +1,57 @@
+diff --git a/Makefile b/Makefile
+index 5386821..eb5db3e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,5 +1,5 @@
+-CC = gcc
+-CFLAGS = -g -O2 -MMD
++CC ?= gcc
++CFLAGS += -MMD
+
+ OBJS = \
+ hcalc.o \
+@@ -10,7 +10,7 @@ OBJS = \
+ $E
+
+ hcalc : $(OBJS)
+- gcc -o $@ $^ -L/usr/X11R6/lib -lXpm -lX11
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lXpm -lX11
+
+ clean :
+ -rm -f *.o *.d *~ \#* hcalc core
+diff --git a/draw.c b/draw.c
+index 5bde83d..c3bdeb2 100644
+--- a/draw.c
++++ b/draw.c
+@@ -3,6 +3,7 @@
+ http://www.delorie.com/store/hcalc/
+ */
+ #include "hcalc.h"
++#include <string.h>
+
+ static char shown_offsets[15];
+ static int shown_bitmask;
+diff --git a/input.c b/input.c
+index d7de47c..f1d45f5 100644
+--- a/input.c
++++ b/input.c
+@@ -5,6 +5,7 @@
+ #include "hcalc.h"
+ #include <ctype.h>
+ #include <string.h>
++#include <stdlib.h>
+
+ char pending_op = 0;
+ int making_number = 0;
+diff --git a/setupx.c b/setupx.c
+index 238c1e2..74e574b 100644
+--- a/setupx.c
++++ b/setupx.c
+@@ -3,6 +3,7 @@
+ http://www.delorie.com/store/hcalc/
+ */
+ #include "hcalc.h"
++#include <stdlib.h>
+
+ Display *display=0;
+ int screen=0;
diff --git a/sci-calculators/hcalc/hcalc-1.0-r1.ebuild b/sci-calculators/hcalc/hcalc-1.0-r1.ebuild
new file mode 100644
index 000000000000..a920e559fc90
--- /dev/null
+++ b/sci-calculators/hcalc/hcalc-1.0-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="DJ's Hex Calculator"
+HOMEPAGE="http://www.delorie.com/store/hcalc/"
+SRC_URI="http://www.delorie.com/store/hcalc/${PN}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-gentoo.patch
+ tc-export CC
+}
+
+src_install() {
+ dobin ${PN}
+}
+
+pkg_postinst() {
+ einfo "Enter hcalc to run and use kill or ctrl-c to exit."
+}
diff --git a/sci-calculators/hcalc/hcalc-1.2.ebuild b/sci-calculators/hcalc/hcalc-1.2.ebuild
new file mode 100644
index 000000000000..119a78d99a77
--- /dev/null
+++ b/sci-calculators/hcalc/hcalc-1.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit cmake-utils
+
+DESCRIPTION="DJ's Hex Calculator"
+HOMEPAGE="http://www.delorie.com/store/hcalc/ https://github.com/jlec/hcalc"
+SRC_URI="mirror://github/jlec/hcalc/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}"
+
+pkg_postinst() {
+ einfo "Enter hcalc to run and use kill or ctrl-c to exit."
+}
diff --git a/sci-calculators/hcalc/metadata.xml b/sci-calculators/hcalc/metadata.xml
new file mode 100644
index 000000000000..cc77603f55d0
--- /dev/null
+++ b/sci-calculators/hcalc/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <longdescription>
+ Small X hexadecimal calculator
+</longdescription>
+ <upstream>
+ <remote-id type="github">jlec/hcalc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-calculators/hexcalc/Manifest b/sci-calculators/hexcalc/Manifest
new file mode 100644
index 000000000000..2dada031e275
--- /dev/null
+++ b/sci-calculators/hexcalc/Manifest
@@ -0,0 +1 @@
+DIST hexcalc.tar.Z 18033 SHA256 726dae5803538cdae658e6b8b9184ec34f23af7fdfdc4412fecae040d66c5480 SHA512 f684d6d6bd6df3f7f0dd626345d8ef166b12513bb378e74f8c59c2b92970f99c665ca32585217e75d55bf0fd93b5fc5c6a5b73e8b438f4821c13219f8ac74766 WHIRLPOOL b044a468d43adf45adde1f315c79ee2f8f42f7e4f762f32045ab4a5a913c40bc2737d2eba18ea54fc9570fd9b765abb61db9b960ab763a98ada481fda187bf2d
diff --git a/sci-calculators/hexcalc/files/hexcalc-keypad.diff b/sci-calculators/hexcalc/files/hexcalc-keypad.diff
new file mode 100644
index 000000000000..1becd895c1c3
--- /dev/null
+++ b/sci-calculators/hexcalc/files/hexcalc-keypad.diff
@@ -0,0 +1,116 @@
+--- hexcalc.c 1989-11-22 22:29:06.000000000 +0100
++++ hexcalc.c.new 2006-11-27 11:38:07.000000000 +0100
+@@ -208,46 +208,73 @@
+ };
+
+ static String defaultTranslations =
+- ":<Key>(: DoKey(\"(\")\n\
+- :<Key>&: DoKey(&)\n\
+- :<Key>^: DoKey(^)\n\
+- :<Key>): DoKey(\")\")\n\
+- Ctrl<Key>c: DoKey(off)\n\
+- :<Key>H: DoKey(hex)\n\
+- :<Key>O: DoKey(oct)\n\
+- :<Key>D: DoKey(dec)\n\
+- :<Key>B: DoKey(bin)\n\
+- :<Key>R: DoKey(Rcl)\n\
+- :<Key>S: DoKey(Sto)\n\
+- :<Key>s: DoKey(16)\n\
+- :<Key>l: DoKey(32)\n\
+- :<Key>+: DoKey(+)\n\
+- :<Key>-: DoKey(-)\n\
+- :<Key>*: DoKey(*)\n\
+- :<Key>/: DoKey(/)\n\
+- :<Key>%: DoKey(%)\n\
+- :<Key>>: DoKey(>>)\n\
+- :<Key><: DoKey(<<)\n\
+- :<Key>0: DoKey(0)\n\
+- :<Key>1: DoKey(1)\n\
+- :<Key>2: DoKey(2)\n\
+- :<Key>3: DoKey(3)\n\
+- :<Key>4: DoKey(4)\n\
+- :<Key>5: DoKey(5)\n\
+- :<Key>6: DoKey(6)\n\
+- :<Key>7: DoKey(7)\n\
+- :<Key>8: DoKey(8)\n\
+- :<Key>9: DoKey(9)\n\
+- :<Key>a: DoKey(a)\n\
+- :<Key>b: DoKey(b)\n\
+- :<Key>c: DoKey(c)\n\
+- :<Key>d: DoKey(d)\n\
+- :<Key>e: DoKey(e)\n\
+- :<Key>f: DoKey(f)\n\
+- Ctrl<Key>h: Delete()\n\
+- <Key>Delete: Delete()\n\
+- :<Key>=: DoKey(=)\n\
+- :<Key>Return: DoKey(=)"
++ ":<Key>(: DoKey(\"(\")\n\
++ :<Key>&: DoKey(&)\n\
++ :<Key>^: DoKey(^)\n\
++ :<Key>): DoKey(\")\")\n\
++ Ctrl<Key>c: DoKey(off)\n\
++ :<Key>H: DoKey(hex)\n\
++ :<Key>O: DoKey(oct)\n\
++ :<Key>D: DoKey(dec)\n\
++ :<Key>B: DoKey(bin)\n\
++ :<Key>R: DoKey(Rcl)\n\
++ :<Key>S: DoKey(Sto)\n\
++ :<Key>s: DoKey(16)\n\
++ :<Key>l: DoKey(32)\n\
++ :<Key>+: DoKey(+)\n\
++ :<Key>KP_Add: DoKey(+)\n\
++ :<Key>-: DoKey(-)\n\
++ :<Key>KP_Subtract: DoKey(-)\n\
++ :<Key>*: DoKey(*)\n\
++ :<Key>KP_Multiply: DoKey(*)\n\
++ :<Key>/: DoKey(/)\n\
++ :<Key>KP_Divide: DoKey(/)\n\
++ :<Key>%: DoKey(%)\n\
++ :<Key>>: DoKey(>>)\n\
++ :<Key><: DoKey(<<)\n\
++ :<Key>0: DoKey(0)\n\
++ :<Key>KP_0: DoKey(0)\n\
++ :<Key>KP_Insert: DoKey(0)\n\
++ :<Key>1: DoKey(1)\n\
++ :<Key>KP_1: DoKey(1)\n\
++ :<Key>KP_End: DoKey(1)\n\
++ :<Key>2: DoKey(2)\n\
++ :<Key>KP_2: DoKey(2)\n\
++ :<Key>KP_Down: DoKey(2)\n\
++ :<Key>3: DoKey(3)\n\
++ :<Key>KP_3: DoKey(3)\n\
++ :<Key>KP_Next: DoKey(3)\n\
++ :<Key>4: DoKey(4)\n\
++ :<Key>KP_4: DoKey(4)\n\
++ :<Key>KP_Left: DoKey(4)\n\
++ :<Key>5: DoKey(5)\n\
++ :<Key>KP_5: DoKey(5)\n\
++ :<Key>KP_Begin: DoKey(5)\n\
++ :<Key>6: DoKey(6)\n\
++ :<Key>KP_6: DoKey(6)\n\
++ :<Key>KP_Right: DoKey(6)\n\
++ :<Key>7: DoKey(7)\n\
++ :<Key>KP_7: DoKey(7)\n\
++ :<Key>KP_Home: DoKey(7)\n\
++ :<Key>8: DoKey(8)\n\
++ :<Key>KP_8: DoKey(8)\n\
++ :<Key>KP_Up: DoKey(8)\n\
++ :<Key>9: DoKey(9)\n\
++ :<Key>KP_9: DoKey(9)\n\
++ :<Key>KP_Prior: DoKey(9)\n\
++ :<Key>a: DoKey(a)\n\
++ :<Key>b: DoKey(b)\n\
++ :<Key>c: DoKey(c)\n\
++ :<Key>d: DoKey(d)\n\
++ :<Key>e: DoKey(e)\n\
++ :<Key>f: DoKey(f)\n\
++ Ctrl<Key>h: Delete()\n\
++ <Key>Delete: Delete()\n\
++ <Key>KP_Delete: Delete()\n\
++ <Key>KP_Decimal: Delete()\n\
++ :<Key>=: DoKey(=)\n\
++ :<Key>KP_Enter: DoKey(=)\n\
++ :<Key>Return: DoKey(=)"
+ ;
+
+
diff --git a/sci-calculators/hexcalc/files/hexcalc-order.diff b/sci-calculators/hexcalc/files/hexcalc-order.diff
new file mode 100644
index 000000000000..cdc4a93fedce
--- /dev/null
+++ b/sci-calculators/hexcalc/files/hexcalc-order.diff
@@ -0,0 +1,51 @@
+--- a/hexcalc.c 1989-11-22 16:29:06.000000000 -0500
++++ b/hexcalc.c 2006-07-18 17:36:40.000000000 -0400
+@@ -37,6 +37,7 @@
+ #endif
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <ctype.h>
+ #include <X11/IntrinsicP.h>
+ #include <X11/StringDefs.h>
+@@ -509,14 +508,16 @@
+
+ switch(topOp) {
+ case '+' :
+- ac = PopArg() + PopArg();
++ temp = PopArg();
++ ac = PopArg() + temp;
+ break;
+ case '-' :
+ temp = PopArg();
+ ac = PopArg() - temp;
+ break;
+ case '*' :
+- ac = PopArg() * PopArg();
++ temp = PopArg();
++ ac = temp * PopArg();
+ break;
+ case '/' :
+ temp = PopArg();
+@@ -528,15 +529,18 @@
+ break;
+
+ case '|' :
+- ac = PopArg() | PopArg();
++ temp = PopArg();
++ ac = temp | PopArg();
+ break;
+
+ case '&' :
+- ac = PopArg() & PopArg();
++ temp = PopArg();
++ ac = temp & PopArg();
+ break;
+
+ case '^' :
+- ac = PopArg() ^ PopArg();
++ temp = PopArg();
++ ac = temp ^ PopArg();
+ break;
+
+ case '<' :
diff --git a/sci-calculators/hexcalc/hexcalc-1.11-r2.ebuild b/sci-calculators/hexcalc/hexcalc-1.11-r2.ebuild
new file mode 100644
index 000000000000..5702a0f062bb
--- /dev/null
+++ b/sci-calculators/hexcalc/hexcalc-1.11-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A simple hex calculator for X"
+HOMEPAGE="ftp://ftp.x.org/R5contrib/"
+SRC_URI="ftp://ftp.x.org/R5contrib/${PN}.tar.Z"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="x11-libs/libXaw"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ app-text/rman"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-*
+}
+
+src_compile() {
+ xmkmf || die
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ CCLINK="$(tc-getCC)" \
+ LDOPTIONS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ newman ${PN}.{man,1}
+}
diff --git a/sci-calculators/hexcalc/metadata.xml b/sci-calculators/hexcalc/metadata.xml
new file mode 100644
index 000000000000..e5e99f310994
--- /dev/null
+++ b/sci-calculators/hexcalc/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription>
+ hexcalc is a mutli-radix calculator that offers the standard C
+ integer operations.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-calculators/keurocalc/Manifest b/sci-calculators/keurocalc/Manifest
new file mode 100644
index 000000000000..432cb7c93f0a
--- /dev/null
+++ b/sci-calculators/keurocalc/Manifest
@@ -0,0 +1 @@
+DIST keurocalc-1.2.3.tgz 1809685 SHA256 f6e33fcce3b8670b00c021ee3b2b3ecd5a6f1e7422af28b19a8c18a1cd10ec88 SHA512 5b87fd1b3c53c9aa226cae5a7ad2dfe223bf6d557ea5dd4ade4dea884bb9ca03a89e642e66ae5a906d29116d58be1d7e999d271a9122355b8ac265ff33b991d6 WHIRLPOOL 7c4765ec9d98fd8f9776fde6902ecc4fd22b4838b4e4c9b58e30cba8602e87cc651294d6b818d4b12e674cb766dd04e6aa202056ffff159e647b994eb33d832e
diff --git a/sci-calculators/keurocalc/keurocalc-1.2.3.ebuild b/sci-calculators/keurocalc/keurocalc-1.2.3.ebuild
new file mode 100644
index 000000000000..171f2abf72b5
--- /dev/null
+++ b/sci-calculators/keurocalc/keurocalc-1.2.3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_LINGUAS="bg bs ca ca@valencia cs da de el en_GB es et fi fr ga gl hu it
+ja ko nb nds nl pl pt pt_BR ru sk sl sr sr@Latn sv tr ug uk zh_TW"
+KDE_HANDBOOK="optional"
+inherit kde4-base
+
+DESCRIPTION="A universal currency converter and calculator"
+HOMEPAGE="http://opensource.bureau-cornavin.com/keurocalc/index.html"
+SRC_URI="http://opensource.bureau-cornavin.com/keurocalc/sources/${P}.tgz"
+
+LICENSE="GPL-2+ FDL-1.2"
+SLOT="4"
+KEYWORDS="amd64 x86"
+IUSE="debug"
+
+DOCS=( AUTHORS TODO )
+
+src_prepare() {
+ # bug 500560
+ sed -e "s/PO_FILES //" -i po/*/CMakeLists.txt || die
+
+ # bug 518070
+ sed -e "/cmake_minimum_required/a cmake_policy(SET CMP0002 OLD)" \
+ -i CMakeLists.txt || die
+
+ kde4-base_src_prepare
+}
diff --git a/sci-calculators/keurocalc/metadata.xml b/sci-calculators/keurocalc/metadata.xml
new file mode 100644
index 000000000000..a23f444b67d6
--- /dev/null
+++ b/sci-calculators/keurocalc/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>kde</herd>
+</pkgmetadata>
diff --git a/sci-calculators/metadata.xml b/sci-calculators/metadata.xml
new file mode 100644
index 000000000000..00a8c125e6a9
--- /dev/null
+++ b/sci-calculators/metadata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The sci-calculators category contains scientific calculator packages.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie sci-calculators enthält wissenschaftliche Rechenprogramme.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría sci-calculators contiene calculadoras científicas.
+ </longdescription>
+ <longdescription lang="ja">
+ sci-calculatorsカテゴリーには科学計算機のパッケージが含まれています。
+ </longdescription>
+ <longdescription lang="nl">
+ De sci-calculators categorie bevat wetenschappelijke calculators.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm sci-calculators chứa các phần mềm tính toán khoa học.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria sci-calculators contiene calcolatori scientifici.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria sci-calculators zawiera kalkulatory naukowe.
+ </longdescription>
+</catmetadata>
+
diff --git a/sci-calculators/orpie/Manifest b/sci-calculators/orpie/Manifest
new file mode 100644
index 000000000000..06f3378036db
--- /dev/null
+++ b/sci-calculators/orpie/Manifest
@@ -0,0 +1 @@
+DIST orpie-1.5.1.tar.gz 370851 SHA256 f68ee37a5351c1dd32a68edae253a22a913fc2124bace1f6cf19cc2d422100cd SHA512 026afcaf37016f07397ba19629a92c5bdffbbec6d25b5f96e9367274afbf7468a7d6626b4ae81d1c9b426dde3a2c66a97e9b48c54dfb3a8079f0d59906f0efb7 WHIRLPOOL 30ba5f026ffc1f704a08d6090eabe6d47f8dfe96ec49ba6a6a772dd85337a54fe7de2b382015e832fc0058e7449a1829fedc6fc87683a074d0cac82dad48150e
diff --git a/sci-calculators/orpie/files/orpie-1.5.1-nogsl.patch b/sci-calculators/orpie/files/orpie-1.5.1-nogsl.patch
new file mode 100644
index 000000000000..45894f2039dc
--- /dev/null
+++ b/sci-calculators/orpie/files/orpie-1.5.1-nogsl.patch
@@ -0,0 +1,30 @@
+--- Makefile.in.orig 2010-06-03 21:02:14.000000000 +0100
++++ Makefile.in 2010-06-03 21:02:49.000000000 +0100
+@@ -38,7 +38,7 @@
+ CURSES_LIB = @CURSES_LIB@
+ GSL_LIB = @GSL_LIB@
+
+-INCLUDES = -I ./curses -I ./gsl -I ./units
++INCLUDES = -I ./curses -I /usr/lib/ocaml/gsl -I ./units
+ BFLAGS = -pp camlp4o -g $(INCLUDES) -thread
+ OFLAGS = -pp camlp4o $(INCLUDES) -thread
+ BLFLAGS = -custom -cclib '@LDFLAGS@ $(CURSES_LIB) $(GSL_LIB) -lm'
+@@ -72,16 +72,8 @@
+ CURSES_BOBJS = $(CURSES_CMO) $(CURSES_COBJS)
+ CURSES_OOBJS = $(CURSES_CMX) $(CURSES_COBJS)
+
+-GSL_CMO = gsl/gsl_error.cmo gsl/gsl_blas.cmo gsl/gsl_complex.cmo gsl/gsl_matrix.cmo gsl/gsl_matrix_complex.cmo \
+- gsl/gsl_vector.cmo gsl/gsl_vector_complex.cmo gsl/gsl_vector_flat.cmo gsl/gsl_matrix_flat.cmo \
+- gsl/gsl_vector_complex_flat.cmo gsl/gsl_matrix_complex_flat.cmo gsl/gsl_vectmat.cmo \
+- gsl/gsl_permut.cmo gsl/gsl_linalg.cmo gsl/gsl_fun.cmo
+-GSL_CMX = $(GSL_CMO:.cmo=.cmx)
+-GSL_COBJS = gsl/mlgsl_error.o gsl/mlgsl_blas.o gsl/mlgsl_blas_complex.o gsl/mlgsl_complex.o \
+- gsl/mlgsl_matrix_complex.o gsl/mlgsl_matrix_double.o gsl/mlgsl_vector_double.o gsl/mlgsl_permut.o \
+- gsl/mlgsl_linalg.o gsl/mlgsl_linalg_complex.o gsl/mlgsl_fun.o gsl/mlgsl_math.o gsl/mlgsl_sf.o
+-GSL_BOBJS = $(GSL_COBJS) $(GSL_CMO)
+-GSL_OOBJS = $(GSL_COBJS) $(GSL_CMX)
++GSL_BOBJS = /usr/lib/ocaml/gsl/gsl.cma
++GSL_OOBJS = /usr/lib/ocaml/gsl/gsl.cmxa
+
+ UNITS_CMO = units/units.cmo
+ UNITS_CMX = $(UNITS_CMO:.cmo=.cmx)
diff --git a/sci-calculators/orpie/files/orpie-1.5.1-ocaml311.patch b/sci-calculators/orpie/files/orpie-1.5.1-ocaml311.patch
new file mode 100644
index 000000000000..d1535f900958
--- /dev/null
+++ b/sci-calculators/orpie/files/orpie-1.5.1-ocaml311.patch
@@ -0,0 +1,200 @@
+diff -Naru orpie-1.5.1/Makefile.in orpie-1.5.1_1/Makefile.in
+--- orpie-1.5.1/Makefile.in 2007-09-13 23:31:23.000000000 -0400
++++ orpie-1.5.1_1/Makefile.in 2010-05-12 11:44:33.000000000 -0400
+@@ -257,10 +257,7 @@
+ units/%.cmo : units/%.ml
+ $(OCAMLC) -c $(UNITS_BFLAGS) $<
+
+-units/%.o : units/%.ml
+- $(OCAMLOPT) -c $(UNITS_OFLAGS) $<
+-
+-units/%.cmx : units/%.ml
++units/%.o units/%.cmx : units/%.ml
+ $(OCAMLOPT) -c $(UNITS_OFLAGS) $<
+
+
+@@ -271,22 +268,15 @@
+ %.cmo : %.ml
+ $(OCAMLC) -c $(BFLAGS) $<
+
+-%.o : %.ml
+- $(OCAMLOPT) -c $(OFLAGS) $<
+-
+-%.cmx : %.ml
++%.o %.cmx : %.ml
+ $(OCAMLOPT) -c $(OFLAGS) $<
+
+ %.ml : %.mll
+ $(OCAMLLEX) $<
+
+-%.ml : %.mly
++%.ml %.mli : %.mly
+ $(OCAMLYACC) -v $<
+
+-%.mli : %.mly
+- $(OCAMLYACC) -v $<
+-
+-
+
+ # Emacs tags
+ ############
+diff -Naru orpie-1.5.1/gsl/gsl_blas.ml orpie-1.5.1_1/gsl/gsl_blas.ml
+--- orpie-1.5.1/gsl/gsl_blas.ml 2007-09-13 23:31:23.000000000 -0400
++++ orpie-1.5.1_1/gsl/gsl_blas.ml 2010-05-12 11:24:11.000000000 -0400
+@@ -118,6 +118,7 @@
+
+ (** {3 Single precision} *)
+
++(*
+ open Gsl_vector.Single
+ open Gsl_matrix.Single
+
+@@ -187,6 +188,7 @@
+ alpha:float -> a:matrix -> b:matrix -> unit
+ = "ml_gsl_blas_strsm_bc" "ml_gsl_blas_strsm"
+ end
++*)
+
+
+ (** {3 Complex} *)
+@@ -274,6 +276,7 @@
+
+ (** {3 Complex single precision} *)
+
++(*
+ open Gsl_vector_complex.Single
+ open Gsl_matrix_complex.Single
+ open Gsl_complex
+@@ -354,3 +357,4 @@
+ a:matrix -> b:matrix -> beta:float -> c:matrix -> unit
+ = "ml_gsl_blas_cher2k_bc" "ml_gsl_blas_cher2k"
+ end
++*)
+diff -Naru orpie-1.5.1/gsl/gsl_blas.mli orpie-1.5.1_1/gsl/gsl_blas.mli
+--- orpie-1.5.1/gsl/gsl_blas.mli 2007-09-13 23:31:23.000000000 -0400
++++ orpie-1.5.1_1/gsl/gsl_blas.mli 2010-05-12 11:23:36.000000000 -0400
+@@ -118,6 +118,7 @@
+
+ (** {3 Single precision} *)
+
++(*
+ open Gsl_vector.Single
+ open Gsl_matrix.Single
+
+@@ -187,6 +188,7 @@
+ alpha:float -> a:matrix -> b:matrix -> unit
+ = "ml_gsl_blas_strsm_bc" "ml_gsl_blas_strsm"
+ end
++*)
+
+
+ (** {3 Complex} *)
+@@ -274,6 +276,7 @@
+
+ (** {3 Complex single precision} *)
+
++(*
+ open Gsl_vector_complex.Single
+ open Gsl_matrix_complex.Single
+ open Gsl_complex
+@@ -354,3 +357,4 @@
+ a:matrix -> b:matrix -> beta:float -> c:matrix -> unit
+ = "ml_gsl_blas_cher2k_bc" "ml_gsl_blas_cher2k"
+ end
++*)
+diff -Naru orpie-1.5.1/gsl/gsl_matrix.ml orpie-1.5.1_1/gsl/gsl_matrix.ml
+--- orpie-1.5.1/gsl/gsl_matrix.ml 2007-09-13 23:31:23.000000000 -0400
++++ orpie-1.5.1_1/gsl/gsl_matrix.ml 2010-05-12 11:22:51.000000000 -0400
+@@ -86,6 +86,7 @@
+
+
+
++(*
+ module Single =
+ struct
+ type float_mat_bigarr =
+@@ -164,3 +165,4 @@
+ external transpose : matrix -> matrix -> unit = "ml_gsl_matrix_float_transpose_memcpy"
+ external transpose_in_place : matrix -> unit = "ml_gsl_matrix_float_transpose"
+ end
++*)
+diff -Naru orpie-1.5.1/gsl/gsl_matrix.mli orpie-1.5.1_1/gsl/gsl_matrix.mli
+--- orpie-1.5.1/gsl/gsl_matrix.mli 2007-09-13 23:31:23.000000000 -0400
++++ orpie-1.5.1_1/gsl/gsl_matrix.mli 2010-05-12 11:22:42.000000000 -0400
+@@ -45,6 +45,7 @@
+ external transpose_in_place : matrix -> unit = "ml_gsl_matrix_transpose"
+
+
++(*
+ module Single : sig
+
+ type float_mat_bigarr =
+@@ -87,3 +88,4 @@
+ external transpose : matrix -> matrix -> unit = "ml_gsl_matrix_float_transpose_memcpy"
+ external transpose_in_place : matrix -> unit = "ml_gsl_matrix_float_transpose"
+ end
++*)
+diff -Naru orpie-1.5.1/gsl/gsl_matrix_complex.ml orpie-1.5.1_1/gsl/gsl_matrix_complex.ml
+--- orpie-1.5.1/gsl/gsl_matrix_complex.ml 2007-09-13 23:31:23.000000000 -0400
++++ orpie-1.5.1_1/gsl/gsl_matrix_complex.ml 2010-05-12 11:24:59.000000000 -0400
+@@ -108,6 +108,7 @@
+
+
+
++(*
+ module Single =
+ struct
+ type complex_float_mat_bigarr =
+@@ -208,3 +209,4 @@
+ external transpose : matrix -> matrix -> unit = "ml_gsl_matrix_complex_float_transpose_memcpy"
+ external transpose_in_place : matrix -> unit = "ml_gsl_matrix_complex_float_transpose"
+ end
++*)
+diff -Naru orpie-1.5.1/gsl/gsl_matrix_complex.mli orpie-1.5.1_1/gsl/gsl_matrix_complex.mli
+--- orpie-1.5.1/gsl/gsl_matrix_complex.mli 2007-09-13 23:31:23.000000000 -0400
++++ orpie-1.5.1_1/gsl/gsl_matrix_complex.mli 2010-05-12 11:25:00.000000000 -0400
+@@ -51,6 +51,7 @@
+ external transpose_in_place : matrix -> unit = "ml_gsl_matrix_complex_transpose"
+
+
++(*
+ module Single : sig
+
+ type complex_float_mat_bigarr =
+@@ -96,3 +97,4 @@
+ external transpose : matrix -> matrix -> unit = "ml_gsl_matrix_complex_float_transpose_memcpy"
+ external transpose_in_place : matrix -> unit = "ml_gsl_matrix_complex_float_transpose"
+ end
++*)
+diff -Naru orpie-1.5.1/gsl/gsl_vector.ml orpie-1.5.1_1/gsl/gsl_vector.ml
+--- orpie-1.5.1/gsl/gsl_vector.ml 2007-09-13 23:31:23.000000000 -0400
++++ orpie-1.5.1_1/gsl/gsl_vector.ml 2010-05-12 11:22:19.000000000 -0400
+@@ -95,6 +95,7 @@
+
+
+
++(*
+ module Single =
+ struct
+ type float_vector_bigarr =
+@@ -178,3 +179,4 @@
+ external minmax_index : vector -> int * int
+ = "ml_gsl_vector_float_minmaxindex"
+ end
++*)
+diff -Naru orpie-1.5.1/gsl/gsl_vector.mli orpie-1.5.1_1/gsl/gsl_vector.mli
+--- orpie-1.5.1/gsl/gsl_vector.mli 2007-09-13 23:31:23.000000000 -0400
++++ orpie-1.5.1_1/gsl/gsl_vector.mli 2010-05-12 11:22:19.000000000 -0400
+@@ -65,6 +65,7 @@
+
+ (** {3 Single precision} *)
+
++(*
+ module Single : sig
+ type float_vector_bigarr =
+ (float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t
+@@ -121,3 +122,4 @@
+
+ val subvector : vector -> off:int -> len:int -> vector
+ end
++*)
diff --git a/sci-calculators/orpie/files/orpie-1.5.1-orpierc.patch b/sci-calculators/orpie/files/orpie-1.5.1-orpierc.patch
new file mode 100644
index 000000000000..a9ca1dd366f0
--- /dev/null
+++ b/sci-calculators/orpie/files/orpie-1.5.1-orpierc.patch
@@ -0,0 +1,11 @@
+--- orpie-1.5.1.orig/orpierc
++++ orpie-1.5.1/orpierc
+@@ -4,7 +4,7 @@
+ # directory for storing Orpie data
+ set datadir="~/.orpie/"
+ # editor used for fullscreen viewing of stack elements
+-set editor="vi"
++set editor="${EDITOR}"
+ # whether or not to hide the help panel
+ set hide_help="false"
+ # whether or not to conserve memory in favor of faster rendering
diff --git a/sci-calculators/orpie/files/orpie-1.5.1-tinfo.patch b/sci-calculators/orpie/files/orpie-1.5.1-tinfo.patch
new file mode 100644
index 000000000000..f9611cbb5198
--- /dev/null
+++ b/sci-calculators/orpie/files/orpie-1.5.1-tinfo.patch
@@ -0,0 +1,10 @@
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -34,6 +34,7 @@
+ fi
+ fi
+ LIBS="$mp_save_LIBS"
++ AC_SEARCH_LIBS([stdscr], [tinfo curses], [CURSES_LIB="$CURSES_LIB $ac_res"],)
+ ])dnl
+
+
diff --git a/sci-calculators/orpie/metadata.xml b/sci-calculators/orpie/metadata.xml
new file mode 100644
index 000000000000..c3fb63e00ce6
--- /dev/null
+++ b/sci-calculators/orpie/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">
+ Orpie is a fullscreen RPN calculator for the console. Its operation is
+ similar to that of modern HP calculators, but data entry has been
+ optimized for efficiency on a PC keyboard.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-calculators/orpie/orpie-1.5.1-r1.ebuild b/sci-calculators/orpie/orpie-1.5.1-r1.ebuild
new file mode 100644
index 000000000000..c1bce7cabd45
--- /dev/null
+++ b/sci-calculators/orpie/orpie-1.5.1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils autotools
+
+DESCRIPTION="A fullscreen RPN calculator for the console"
+HOMEPAGE="http://pessimization.com/software/orpie/"
+SRC_URI="http://pessimization.com/software/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+DEPEND="dev-ml/ocamlgsl
+ sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ocaml311.patch
+ epatch "${FILESDIR}"/${P}-nogsl.patch
+ epatch "${FILESDIR}"/${P}-orpierc.patch
+ epatch "${FILESDIR}"/${P}-tinfo.patch
+ sed -i -e "s:/usr:${EPREFIX}/usr:g" Makefile.in || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ use doc && dodoc doc/manual.pdf && dohtml doc/manual.html
+}
diff --git a/sci-calculators/orpie/orpie-1.5.1.ebuild b/sci-calculators/orpie/orpie-1.5.1.ebuild
new file mode 100644
index 000000000000..ad57b018bfdf
--- /dev/null
+++ b/sci-calculators/orpie/orpie-1.5.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="A fullscreen RPN calculator for the console"
+HOMEPAGE="http://pessimization.com/software/orpie/"
+SRC_URI="http://pessimization.com/software/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="amd64 ppc -sparc x86"
+IUSE=""
+
+DEPEND="dev-lang/ocaml
+ sys-libs/ncurses
+ sci-libs/gsl"
+
+RDEPEND="${DEPEND}"
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README ChangeLog doc/TODO || die
+ insinto /usr/share/doc/${PF}
+ doins doc/manual.pdf doc/manual.html || die
+}
diff --git a/sci-calculators/pcalc/Manifest b/sci-calculators/pcalc/Manifest
new file mode 100644
index 000000000000..145b6d50f005
--- /dev/null
+++ b/sci-calculators/pcalc/Manifest
@@ -0,0 +1,4 @@
+DIST pcalc-1.2.tar.bz2 95921 SHA256 ae7548463492c931c24b89143a2c3301f0c0a035a97907bf6d30fa5feffbc5f0
+DIST pcalc-1.3.tar.lzma 88669 SHA256 3016d257062094292269b9637b21ae5cd34dd8efd2844ba802d12f1a4dd91810
+DIST pcalc-2.tar.lzma 92758 SHA256 be93062e8a15029ea50e4f9f9d0fd4fdbab82c927b7b93afa6f7fa398081c78f SHA512 f36db3d960a2feeaad5717349a6fff461f01ca074d016a3faab1141729e9f25d17e650f0e108c950f5ae7115ac4a778427687639fde52b2d28419cb9b9526adb WHIRLPOOL 7b8256d9a478f56ae5f3ef2f92276ee3487ad3146922e80ab836ad9731da92770c7c47ba97a604f4a05fb39dd4779f33879d4873df95d86abbc9e69447430739
+DIST pcalc-3.tar.xz 66908 SHA256 13db2b0594e61deedb07640b21b20b5242aae955d6febf1806e1f295408f694c SHA512 55b6644300a8eb5224df5a0885907c10847df7ab6296d012eb2bb638876687ddbe23d5b76e31ac6ff4c159e44940d5cf6ba747f2a410943fdc25c9d9855fd60e WHIRLPOOL ea2d44694cb30284d782e84a43422c597ef75ef7442718ff5288db74a3a3413bd79b5e237e443bbc3be4a030262911b283180daae5f00dcee772fc65ecce8345
diff --git a/sci-calculators/pcalc/metadata.xml b/sci-calculators/pcalc/metadata.xml
new file mode 100644
index 000000000000..f7f2c211445a
--- /dev/null
+++ b/sci-calculators/pcalc/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>vapier@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">pcalc</remote-id>
+ <remote-id type="github">vapier/pcalc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-calculators/pcalc/pcalc-1.2.ebuild b/sci-calculators/pcalc/pcalc-1.2.ebuild
new file mode 100644
index 000000000000..d8d9dcd55397
--- /dev/null
+++ b/sci-calculators/pcalc/pcalc-1.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="the programmers calculator"
+HOMEPAGE="https://github.com/vapier/pcalc"
+SRC_URI="mirror://sourceforge/pcalc/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc AUTHORS ChangeLog EXAMPLE README
+}
diff --git a/sci-calculators/pcalc/pcalc-1.3.ebuild b/sci-calculators/pcalc/pcalc-1.3.ebuild
new file mode 100644
index 000000000000..e4715a7dc768
--- /dev/null
+++ b/sci-calculators/pcalc/pcalc-1.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="the programmers calculator"
+HOMEPAGE="https://github.com/vapier/pcalc"
+SRC_URI="mirror://sourceforge/pcalc/${P}.tar.lzma"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+DEPEND="sys-devel/flex"
+RDEPEND=""
+
+src_compile() {
+ tc-export CC
+ emake pcalc || die
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc AUTHORS ChangeLog EXAMPLE README
+}
diff --git a/sci-calculators/pcalc/pcalc-2.ebuild b/sci-calculators/pcalc/pcalc-2.ebuild
new file mode 100644
index 000000000000..d99ec312836a
--- /dev/null
+++ b/sci-calculators/pcalc/pcalc-2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="the programmers calculator"
+HOMEPAGE="https://github.com/vapier/pcalc"
+SRC_URI="mirror://sourceforge/pcalc/${P}.tar.lzma"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="sys-devel/flex"
+RDEPEND=""
+
+src_prepare() {
+ sed -i -e "s:/usr:${EPREFIX}/usr:g" Makefile || die
+}
+
+src_compile() {
+ tc-export CC
+ emake pcalc
+}
diff --git a/sci-calculators/pcalc/pcalc-3.ebuild b/sci-calculators/pcalc/pcalc-3.ebuild
new file mode 100644
index 000000000000..05f100bd15db
--- /dev/null
+++ b/sci-calculators/pcalc/pcalc-3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="the programmers calculator"
+HOMEPAGE="https://github.com/vapier/pcalc"
+SRC_URI="mirror://sourceforge/pcalc/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="sys-devel/flex"
+RDEPEND=""
+
+src_prepare() {
+ sed -i -e "s:/usr:${EPREFIX}/usr:g" Makefile || die
+}
+
+src_configure() {
+ tc-export CC
+}
diff --git a/sci-calculators/qalculate-bases/Manifest b/sci-calculators/qalculate-bases/Manifest
new file mode 100644
index 000000000000..bd4bc44b7fda
--- /dev/null
+++ b/sci-calculators/qalculate-bases/Manifest
@@ -0,0 +1 @@
+DIST qalculate-bases-0.9.4.tar.gz 368685 SHA256 def8ce0aad4e974a0f373c26342f2ac31bfc6393408d0d699b93d978bfd30e54 SHA512 bd5ff424bf49da811637c9c1d7bce020d3d9a33241467fbdb5a0d4918735e0ab1eda2892d1d20b868c95bac88e2c8cddd7f55649e0d8ee679e1043519e8a75b8 WHIRLPOOL 8ed29d8b89c822ec0f73141d4dad7214ec2256330341faac9dd761a7dcfc2a89c839a88e7578c437590ac092891c6a7261f3e95c15c23589df9d3d8c1c8d5626
diff --git a/sci-calculators/qalculate-bases/files/qalculate-bases-0.9.4-cln-config.patch b/sci-calculators/qalculate-bases/files/qalculate-bases-0.9.4-cln-config.patch
new file mode 100644
index 000000000000..459445dc692d
--- /dev/null
+++ b/sci-calculators/qalculate-bases/files/qalculate-bases-0.9.4-cln-config.patch
@@ -0,0 +1,159 @@
+diff -Naur libqalculate-0.9.6/aclocal.m4 libqalculate-0.9.6.new/aclocal.m4
+--- libqalculate-0.9.6/aclocal.m4 2007-06-17 04:45:44.000000000 -0400
++++ libqalculate-0.9.6.new/aclocal.m4 2008-02-02 11:04:21.000000000 -0500
+@@ -7836,146 +7836,27 @@
+ [dnl
+ dnl Get the cppflags and libraries from the cln-config script
+ dnl
+-AC_ARG_WITH(cln-prefix,[ --with-cln-prefix=PFX Prefix where CLN is installed (optional)],
+- cln_config_prefix="$withval", cln_config_prefix="")
+-AC_ARG_WITH(cln-exec-prefix,[ --with-cln-exec-prefix=PFX Exec prefix where CLN is installed (optional)],
+- cln_config_exec_prefix="$withval", cln_config_exec_prefix="")
+-AC_ARG_ENABLE(clntest, [ --disable-clntest Do not try to compile and run a test CLN program],
+- , enable_clntest=yes)
+-
+-if test x$cln_config_exec_prefix != x ; then
+- cln_config_args="$cln_config_args --exec-prefix=$cln_config_exec_prefix"
+- if test x${CLN_CONFIG+set} != xset ; then
+- CLN_CONFIG=$cln_config_exec_prefix/bin/cln-config
+- fi
+-fi
+-if test x$cln_config_prefix != x ; then
+- cln_config_args="$cln_config_args --prefix=$cln_config_prefix"
+- if test x${CLN_CONFIG+set} != xset ; then
+- CLN_CONFIG=$cln_config_prefix/bin/cln-config
+- fi
+-fi
+
+-AC_PATH_PROG(CLN_CONFIG, cln-config, no)
++AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+ cln_min_version=ifelse([$1], ,1.1.0,$1)
+ AC_MSG_CHECKING(for CLN - version >= $cln_min_version)
+-if test "$CLN_CONFIG" = "no" ; then
++if test "$PKG_CONFIG" = "no" ; then
+ AC_MSG_RESULT(no)
+- echo "*** The cln-config script installed by CLN could not be found"
+- echo "*** If CLN was installed in PREFIX, make sure PREFIX/bin is in"
+- echo "*** your path, or set the CLN_CONFIG environment variable to the"
+- echo "*** full path to cln-config."
++ echo "*** could not find pkg-config"
+ ifelse([$3], , :, [$3])
+ else
+ dnl Parse required version and the result of cln-config.
+- cln_min_major_version=`echo $cln_min_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+- cln_min_minor_version=`echo $cln_min_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+- cln_min_micro_version=`echo $cln_min_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+- CLN_CPPFLAGS=`$CLN_CONFIG $cln_config_args --cppflags`
+- CLN_LIBS=`$CLN_CONFIG $cln_config_args --libs`
+- cln_config_version=`$CLN_CONFIG $cln_config_args --version`
+- cln_config_major_version=`echo $cln_config_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+- cln_config_minor_version=`echo $cln_config_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+- cln_config_micro_version=`echo $cln_config_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+-dnl Check if the installed CLN is sufficiently new according to cln-config.
+- if test \( $cln_config_major_version -lt $cln_min_major_version \) -o \
+- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -lt $cln_min_minor_version \) -o \
+- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -eq $cln_min_minor_version -a $cln_config_micro_version -lt $cln_min_micro_version \); then
+- echo -e "\n*** 'cln-config --version' returned $cln_config_major_version.$cln_config_minor_version.$cln_config_micro_version, but the minimum version"
+- echo "*** of CLN required is $cln_min_major_version.$cln_min_minor_version.$cln_min_micro_version. If cln-config is correct, then it is"
+- echo "*** best to upgrade to the required version."
+- echo "*** If cln-config was wrong, set the environment variable CLN_CONFIG"
+- echo "*** to point to the correct copy of cln-config, and remove the file"
+- echo "*** config.cache before re-running configure."
+- ifelse([$3], , :, [$3])
++ if $PKG_CONFIG cln --atleast-version=${cln_min_version}; then
++ echo "Found cln >= ${cln_min_version}"
++ CLN_CPPFLAGS=`$PKG_CONFIG cln --cflags`
++ CLN_LIBS=`$PKG_CONFIG cln --libs`
+ else
+-dnl The versions match so far. Now do a sanity check: Does the result of cln-config
+-dnl match the version of the headers and the version built into the library, too?
+- no_cln=""
+- if test "x$enable_clntest" = "xyes" ; then
+- ac_save_CPPFLAGS="$CPPFLAGS"
+- ac_save_LIBS="$LIBS"
+- CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS"
+- LIBS="$LIBS $CLN_LIBS"
+- rm -f conf.clntest
+- AC_TRY_RUN([
+-#include <stdio.h>
+-#include <string.h>
+-#include <cln/version.h>
+-
+-/* we do not #include <stdlib.h> because autoconf in C++ mode inserts a
+- prototype for exit() that conflicts with the one in stdlib.h */
+-extern "C" int system(const char *);
+-
+-int main(void)
+-{
+- system("touch conf.clntest");
+-
+- if ((CL_VERSION_MAJOR != $cln_config_major_version) ||
+- (CL_VERSION_MINOR != $cln_config_minor_version) ||
+- (CL_VERSION_PATCHLEVEL != $cln_config_micro_version)) {
+- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the header file I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version);
+- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", CL_VERSION_MAJOR, CL_VERSION_MINOR, CL_VERSION_PATCHLEVEL);
+- printf("*** is corrupted or you have specified some wrong -I compiler flags.\n");
+- printf("*** Please inquire and consider reinstalling CLN.\n");
+- return 1;
+- }
+- if ((cln::version_major != $cln_config_major_version) ||
+- (cln::version_minor != $cln_config_minor_version) ||
+- (cln::version_patchlevel != $cln_config_micro_version)) {
+- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the library I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version);
+- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", cln::version_major, cln::version_minor, cln::version_patchlevel);
+- printf("*** is corrupted or you have specified some wrong -L compiler flags.\n");
+- printf("*** Please inquire and consider reinstalling CLN.\n");
+- return 1;
+- }
+- return 0;
+-}
+-],, no_cln=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+- CPPFLAGS="$ac_save_CPPFLAGS"
+- LIBS="$ac_save_LIBS"
+- fi
+- if test "x$no_cln" = x ; then
+- AC_MSG_RESULT([yes, $cln_config_version])
+- ifelse([$2], , :, [$2])
+- else
+- AC_MSG_RESULT(no)
+- if test ! -f conf.clntest ; then
+- echo "*** Could not run CLN test program, checking why..."
+- CPPFLAGS="$CFLAGS $CLN_CPPFLAGS"
+- LIBS="$LIBS $CLN_LIBS"
+- AC_TRY_LINK([
+-#include <stdio.h>
+-#include <cln/version.h>
+-], [ return 0; ],
+- [ echo "*** The test program compiled, but did not run. This usually means"
+- echo "*** that the run-time linker is not finding CLN or finding the wrong"
+- echo "*** version of CLN. If it is not finding CLN, you'll need to set your"
+- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
+- echo "*** to the installed location. Also, make sure you have run ldconfig if that"
+- echo "*** is required on your system."],
+- [ echo "*** The test program failed to compile or link. See the file config.log for the"
+- echo "*** exact error that occured. This usually means CLN was incorrectly installed"
+- echo "*** or that you have moved CLN since it was installed. In the latter case, you"
+- echo "*** may want to edit the cln-config script: $CLN_CONFIG." ])
+- CPPFLAGS="$ac_save_CPPFLAGS"
+- LIBS="$ac_save_LIBS"
+- fi
+- CLN_CPPFLAGS=""
+- CLN_LIBS=""
+- ifelse([$3], , :, [$3])
+- fi
++ echo "ERROR: cln >= ${cln_min_version} not found"
++ ifelse([$3], , :, [$3])
+ fi
+ fi
+ AC_SUBST(CLN_CPPFLAGS)
+ AC_SUBST(CLN_LIBS)
+-rm -f conf.clntest
+ ])
+
+ # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
diff --git a/sci-calculators/qalculate-bases/metadata.xml b/sci-calculators/qalculate-bases/metadata.xml
new file mode 100644
index 000000000000..2a0407dd1c41
--- /dev/null
+++ b/sci-calculators/qalculate-bases/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <upstream>
+ <remote-id type="sourceforge">qalculate</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-calculators/qalculate-bases/qalculate-bases-0.9.4-r2.ebuild b/sci-calculators/qalculate-bases/qalculate-bases-0.9.4-r2.ebuild
new file mode 100644
index 000000000000..4e34aefbab0e
--- /dev/null
+++ b/sci-calculators/qalculate-bases/qalculate-bases-0.9.4-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit autotools eutils
+
+DESCRIPTION="GTK+ base conversion tool"
+HOMEPAGE="http://qalculate.sourceforge.net/"
+SRC_URI="mirror://sourceforge/qalculate/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="nls"
+KEYWORDS="~amd64 x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ sci-libs/libqalculate
+ x11-libs/gtk+:2
+ nls? ( sys-devel/gettext )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cln-config.patch
+ eautoconf
+}
+
+src_configure() {
+ econf --disable-clntest
+}
diff --git a/sci-calculators/qalculate-currency/Manifest b/sci-calculators/qalculate-currency/Manifest
new file mode 100644
index 000000000000..d3f0443170e5
--- /dev/null
+++ b/sci-calculators/qalculate-currency/Manifest
@@ -0,0 +1 @@
+DIST qalculate-currency-0.9.4.tar.gz 370506 SHA256 1b3e6f971c3a9d44645a3e644d8db188653a48f44659979f9d9493230f6d3755 SHA512 4d6d1e976e97b15c660c7033f0b2b77299741b661598e692c7d11979174ff1541aff48a4b8345bc2aae72f82303540e25fa8131a96d2bab8cddf5de3f4007444 WHIRLPOOL f602a8f304f947691def5522b339b234b5012c5c9510cef22a53145f903c8ab75bd93e9a9a167860e1091f7e505725866ca718ef0fe89b07a66e1d8bad0409f1
diff --git a/sci-calculators/qalculate-currency/files/qalculate-currency-0.9.4-cln-config.patch b/sci-calculators/qalculate-currency/files/qalculate-currency-0.9.4-cln-config.patch
new file mode 100644
index 000000000000..459445dc692d
--- /dev/null
+++ b/sci-calculators/qalculate-currency/files/qalculate-currency-0.9.4-cln-config.patch
@@ -0,0 +1,159 @@
+diff -Naur libqalculate-0.9.6/aclocal.m4 libqalculate-0.9.6.new/aclocal.m4
+--- libqalculate-0.9.6/aclocal.m4 2007-06-17 04:45:44.000000000 -0400
++++ libqalculate-0.9.6.new/aclocal.m4 2008-02-02 11:04:21.000000000 -0500
+@@ -7836,146 +7836,27 @@
+ [dnl
+ dnl Get the cppflags and libraries from the cln-config script
+ dnl
+-AC_ARG_WITH(cln-prefix,[ --with-cln-prefix=PFX Prefix where CLN is installed (optional)],
+- cln_config_prefix="$withval", cln_config_prefix="")
+-AC_ARG_WITH(cln-exec-prefix,[ --with-cln-exec-prefix=PFX Exec prefix where CLN is installed (optional)],
+- cln_config_exec_prefix="$withval", cln_config_exec_prefix="")
+-AC_ARG_ENABLE(clntest, [ --disable-clntest Do not try to compile and run a test CLN program],
+- , enable_clntest=yes)
+-
+-if test x$cln_config_exec_prefix != x ; then
+- cln_config_args="$cln_config_args --exec-prefix=$cln_config_exec_prefix"
+- if test x${CLN_CONFIG+set} != xset ; then
+- CLN_CONFIG=$cln_config_exec_prefix/bin/cln-config
+- fi
+-fi
+-if test x$cln_config_prefix != x ; then
+- cln_config_args="$cln_config_args --prefix=$cln_config_prefix"
+- if test x${CLN_CONFIG+set} != xset ; then
+- CLN_CONFIG=$cln_config_prefix/bin/cln-config
+- fi
+-fi
+
+-AC_PATH_PROG(CLN_CONFIG, cln-config, no)
++AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+ cln_min_version=ifelse([$1], ,1.1.0,$1)
+ AC_MSG_CHECKING(for CLN - version >= $cln_min_version)
+-if test "$CLN_CONFIG" = "no" ; then
++if test "$PKG_CONFIG" = "no" ; then
+ AC_MSG_RESULT(no)
+- echo "*** The cln-config script installed by CLN could not be found"
+- echo "*** If CLN was installed in PREFIX, make sure PREFIX/bin is in"
+- echo "*** your path, or set the CLN_CONFIG environment variable to the"
+- echo "*** full path to cln-config."
++ echo "*** could not find pkg-config"
+ ifelse([$3], , :, [$3])
+ else
+ dnl Parse required version and the result of cln-config.
+- cln_min_major_version=`echo $cln_min_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+- cln_min_minor_version=`echo $cln_min_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+- cln_min_micro_version=`echo $cln_min_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+- CLN_CPPFLAGS=`$CLN_CONFIG $cln_config_args --cppflags`
+- CLN_LIBS=`$CLN_CONFIG $cln_config_args --libs`
+- cln_config_version=`$CLN_CONFIG $cln_config_args --version`
+- cln_config_major_version=`echo $cln_config_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+- cln_config_minor_version=`echo $cln_config_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+- cln_config_micro_version=`echo $cln_config_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+-dnl Check if the installed CLN is sufficiently new according to cln-config.
+- if test \( $cln_config_major_version -lt $cln_min_major_version \) -o \
+- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -lt $cln_min_minor_version \) -o \
+- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -eq $cln_min_minor_version -a $cln_config_micro_version -lt $cln_min_micro_version \); then
+- echo -e "\n*** 'cln-config --version' returned $cln_config_major_version.$cln_config_minor_version.$cln_config_micro_version, but the minimum version"
+- echo "*** of CLN required is $cln_min_major_version.$cln_min_minor_version.$cln_min_micro_version. If cln-config is correct, then it is"
+- echo "*** best to upgrade to the required version."
+- echo "*** If cln-config was wrong, set the environment variable CLN_CONFIG"
+- echo "*** to point to the correct copy of cln-config, and remove the file"
+- echo "*** config.cache before re-running configure."
+- ifelse([$3], , :, [$3])
++ if $PKG_CONFIG cln --atleast-version=${cln_min_version}; then
++ echo "Found cln >= ${cln_min_version}"
++ CLN_CPPFLAGS=`$PKG_CONFIG cln --cflags`
++ CLN_LIBS=`$PKG_CONFIG cln --libs`
+ else
+-dnl The versions match so far. Now do a sanity check: Does the result of cln-config
+-dnl match the version of the headers and the version built into the library, too?
+- no_cln=""
+- if test "x$enable_clntest" = "xyes" ; then
+- ac_save_CPPFLAGS="$CPPFLAGS"
+- ac_save_LIBS="$LIBS"
+- CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS"
+- LIBS="$LIBS $CLN_LIBS"
+- rm -f conf.clntest
+- AC_TRY_RUN([
+-#include <stdio.h>
+-#include <string.h>
+-#include <cln/version.h>
+-
+-/* we do not #include <stdlib.h> because autoconf in C++ mode inserts a
+- prototype for exit() that conflicts with the one in stdlib.h */
+-extern "C" int system(const char *);
+-
+-int main(void)
+-{
+- system("touch conf.clntest");
+-
+- if ((CL_VERSION_MAJOR != $cln_config_major_version) ||
+- (CL_VERSION_MINOR != $cln_config_minor_version) ||
+- (CL_VERSION_PATCHLEVEL != $cln_config_micro_version)) {
+- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the header file I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version);
+- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", CL_VERSION_MAJOR, CL_VERSION_MINOR, CL_VERSION_PATCHLEVEL);
+- printf("*** is corrupted or you have specified some wrong -I compiler flags.\n");
+- printf("*** Please inquire and consider reinstalling CLN.\n");
+- return 1;
+- }
+- if ((cln::version_major != $cln_config_major_version) ||
+- (cln::version_minor != $cln_config_minor_version) ||
+- (cln::version_patchlevel != $cln_config_micro_version)) {
+- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the library I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version);
+- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", cln::version_major, cln::version_minor, cln::version_patchlevel);
+- printf("*** is corrupted or you have specified some wrong -L compiler flags.\n");
+- printf("*** Please inquire and consider reinstalling CLN.\n");
+- return 1;
+- }
+- return 0;
+-}
+-],, no_cln=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+- CPPFLAGS="$ac_save_CPPFLAGS"
+- LIBS="$ac_save_LIBS"
+- fi
+- if test "x$no_cln" = x ; then
+- AC_MSG_RESULT([yes, $cln_config_version])
+- ifelse([$2], , :, [$2])
+- else
+- AC_MSG_RESULT(no)
+- if test ! -f conf.clntest ; then
+- echo "*** Could not run CLN test program, checking why..."
+- CPPFLAGS="$CFLAGS $CLN_CPPFLAGS"
+- LIBS="$LIBS $CLN_LIBS"
+- AC_TRY_LINK([
+-#include <stdio.h>
+-#include <cln/version.h>
+-], [ return 0; ],
+- [ echo "*** The test program compiled, but did not run. This usually means"
+- echo "*** that the run-time linker is not finding CLN or finding the wrong"
+- echo "*** version of CLN. If it is not finding CLN, you'll need to set your"
+- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
+- echo "*** to the installed location. Also, make sure you have run ldconfig if that"
+- echo "*** is required on your system."],
+- [ echo "*** The test program failed to compile or link. See the file config.log for the"
+- echo "*** exact error that occured. This usually means CLN was incorrectly installed"
+- echo "*** or that you have moved CLN since it was installed. In the latter case, you"
+- echo "*** may want to edit the cln-config script: $CLN_CONFIG." ])
+- CPPFLAGS="$ac_save_CPPFLAGS"
+- LIBS="$ac_save_LIBS"
+- fi
+- CLN_CPPFLAGS=""
+- CLN_LIBS=""
+- ifelse([$3], , :, [$3])
+- fi
++ echo "ERROR: cln >= ${cln_min_version} not found"
++ ifelse([$3], , :, [$3])
+ fi
+ fi
+ AC_SUBST(CLN_CPPFLAGS)
+ AC_SUBST(CLN_LIBS)
+-rm -f conf.clntest
+ ])
+
+ # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
diff --git a/sci-calculators/qalculate-currency/metadata.xml b/sci-calculators/qalculate-currency/metadata.xml
new file mode 100644
index 000000000000..2a0407dd1c41
--- /dev/null
+++ b/sci-calculators/qalculate-currency/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <upstream>
+ <remote-id type="sourceforge">qalculate</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-calculators/qalculate-currency/qalculate-currency-0.9.4-r2.ebuild b/sci-calculators/qalculate-currency/qalculate-currency-0.9.4-r2.ebuild
new file mode 100644
index 000000000000..1eaf36d96534
--- /dev/null
+++ b/sci-calculators/qalculate-currency/qalculate-currency-0.9.4-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit autotools eutils
+
+DESCRIPTION="A GTK+ currency converter"
+HOMEPAGE="http://qalculate.sourceforge.net/"
+SRC_URI="mirror://sourceforge/qalculate/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="nls"
+KEYWORDS="~amd64 x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ sci-libs/libqalculate
+ x11-libs/gtk+:2
+ nls? ( sys-devel/gettext )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cln-config.patch
+ eautoconf
+}
+
+src_configure() {
+ econf --disable-clntest
+}
diff --git a/sci-calculators/qalculate-gtk/Manifest b/sci-calculators/qalculate-gtk/Manifest
new file mode 100644
index 000000000000..acee3820c81e
--- /dev/null
+++ b/sci-calculators/qalculate-gtk/Manifest
@@ -0,0 +1 @@
+DIST qalculate-gtk-0.9.7.tar.gz 1511036 SHA256 a4ea8ee2366ac3ad53bb17fd2f76a7bed7211640cf2fdadfcf3b79eb4b37282d SHA512 d9dca6298caba85ac763a734c06b29d8786edd6769b81ddeef70d81e6d3cda529a92e2489a1b450de3b42edbd076a30f616b894e10100469e42edcc0a47016af WHIRLPOOL e0086c43ca8c419595a558fbc8e0b6b2b45a25429f40870076a553b5ccba19ae612fca27246b6bf93127603a53b46fc0fb587cf5e0487bb76ad1f73435b7b5a7
diff --git a/sci-calculators/qalculate-gtk/files/qalculate-gtk-0.9.7-entry.patch b/sci-calculators/qalculate-gtk/files/qalculate-gtk-0.9.7-entry.patch
new file mode 100644
index 000000000000..37fa0c02aa77
--- /dev/null
+++ b/sci-calculators/qalculate-gtk/files/qalculate-gtk-0.9.7-entry.patch
@@ -0,0 +1,18 @@
+Update to latest freedesktop spec.
+
+--- data/qalculate-gtk.desktop.in
++++ data/qalculate-gtk.desktop.in
+@@ -1,11 +1,9 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+ _Name=Qalculate!
+ _Comment=Powerful and easy to use calculator
+ Exec=qalculate-gtk
+-Icon=qalculate.png
++Icon=qalculate
+ Terminal=false
+ Type=Application
+ StartupNotify=true
+-Categories=GNOME;Application;Utility;
+-
++Categories=GTK;Utility;
diff --git a/sci-calculators/qalculate-gtk/metadata.xml b/sci-calculators/qalculate-gtk/metadata.xml
new file mode 100644
index 000000000000..5260b5c72e5f
--- /dev/null
+++ b/sci-calculators/qalculate-gtk/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <longdescription lang="en">
+ Qalculate! is a multi-purpose desktop calculator for GNU/Linux. It is
+ small and simple to use but with much power and versatility
+ underneath.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">qalculate</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-calculators/qalculate-gtk/qalculate-gtk-0.9.7.ebuild b/sci-calculators/qalculate-gtk/qalculate-gtk-0.9.7.ebuild
new file mode 100644
index 000000000000..ad6dd4f1dc7c
--- /dev/null
+++ b/sci-calculators/qalculate-gtk/qalculate-gtk-0.9.7.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+GCONF_DEBUG=no
+inherit eutils gnome2
+
+DESCRIPTION="Modern multi-purpose calculator"
+HOMEPAGE="http://qalculate.sourceforge.net/"
+SRC_URI="mirror://sourceforge/qalculate/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ppc sparc x86 ~amd64-linux ~x86-linux"
+IUSE="gnome"
+
+RDEPEND=">=sci-libs/libqalculate-0.9.7
+ >=sci-libs/cln-1.2
+ x11-libs/gtk+:2
+ gnome-base/libglade:2.0
+ gnome? ( >=gnome-base/libgnome-2 )"
+DEPEND="${RDEPEND}
+ app-text/rarian
+ sys-devel/gettext
+ dev-util/intltool
+ virtual/pkgconfig"
+
+pkg_setup() {
+ DOCS="AUTHORS ChangeLog NEWS README TODO"
+ G2CONF="$(use_with gnome libgnome)"
+}
+
+src_prepare() {
+ # Required by src_test() and `make check`
+ echo data/periodictable.glade > po/POTFILES.skip
+ epatch "${FILESDIR}"/${P}-entry.patch
+ gnome2_src_prepare
+}
diff --git a/sci-calculators/qalculate-units/Manifest b/sci-calculators/qalculate-units/Manifest
new file mode 100644
index 000000000000..5ee5450356b6
--- /dev/null
+++ b/sci-calculators/qalculate-units/Manifest
@@ -0,0 +1 @@
+DIST qalculate-units-0.9.4.tar.gz 375642 SHA256 1f0269c15a61d69e209ebdc4d38c1812c53a1becb8e9335ef2d5539385939398 SHA512 14a3430275f4c398bf63fddb54ec029b26132883dbd59dbdae2dd5d45e56df0b624f051bca02fa3d1fcedab0b265a6744dedb36032535885f3608f6ca3598338 WHIRLPOOL a08fce5c8f96ae44f62a42876e77180e344ec1fe41a07626b80efd28e251c48b48739bdc20593ae492c8e401a4287349851024f93acc2a655b816602597ec2f6
diff --git a/sci-calculators/qalculate-units/files/qalculate-units-0.9.4-cln-config.patch b/sci-calculators/qalculate-units/files/qalculate-units-0.9.4-cln-config.patch
new file mode 100644
index 000000000000..459445dc692d
--- /dev/null
+++ b/sci-calculators/qalculate-units/files/qalculate-units-0.9.4-cln-config.patch
@@ -0,0 +1,159 @@
+diff -Naur libqalculate-0.9.6/aclocal.m4 libqalculate-0.9.6.new/aclocal.m4
+--- libqalculate-0.9.6/aclocal.m4 2007-06-17 04:45:44.000000000 -0400
++++ libqalculate-0.9.6.new/aclocal.m4 2008-02-02 11:04:21.000000000 -0500
+@@ -7836,146 +7836,27 @@
+ [dnl
+ dnl Get the cppflags and libraries from the cln-config script
+ dnl
+-AC_ARG_WITH(cln-prefix,[ --with-cln-prefix=PFX Prefix where CLN is installed (optional)],
+- cln_config_prefix="$withval", cln_config_prefix="")
+-AC_ARG_WITH(cln-exec-prefix,[ --with-cln-exec-prefix=PFX Exec prefix where CLN is installed (optional)],
+- cln_config_exec_prefix="$withval", cln_config_exec_prefix="")
+-AC_ARG_ENABLE(clntest, [ --disable-clntest Do not try to compile and run a test CLN program],
+- , enable_clntest=yes)
+-
+-if test x$cln_config_exec_prefix != x ; then
+- cln_config_args="$cln_config_args --exec-prefix=$cln_config_exec_prefix"
+- if test x${CLN_CONFIG+set} != xset ; then
+- CLN_CONFIG=$cln_config_exec_prefix/bin/cln-config
+- fi
+-fi
+-if test x$cln_config_prefix != x ; then
+- cln_config_args="$cln_config_args --prefix=$cln_config_prefix"
+- if test x${CLN_CONFIG+set} != xset ; then
+- CLN_CONFIG=$cln_config_prefix/bin/cln-config
+- fi
+-fi
+
+-AC_PATH_PROG(CLN_CONFIG, cln-config, no)
++AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+ cln_min_version=ifelse([$1], ,1.1.0,$1)
+ AC_MSG_CHECKING(for CLN - version >= $cln_min_version)
+-if test "$CLN_CONFIG" = "no" ; then
++if test "$PKG_CONFIG" = "no" ; then
+ AC_MSG_RESULT(no)
+- echo "*** The cln-config script installed by CLN could not be found"
+- echo "*** If CLN was installed in PREFIX, make sure PREFIX/bin is in"
+- echo "*** your path, or set the CLN_CONFIG environment variable to the"
+- echo "*** full path to cln-config."
++ echo "*** could not find pkg-config"
+ ifelse([$3], , :, [$3])
+ else
+ dnl Parse required version and the result of cln-config.
+- cln_min_major_version=`echo $cln_min_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+- cln_min_minor_version=`echo $cln_min_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+- cln_min_micro_version=`echo $cln_min_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+- CLN_CPPFLAGS=`$CLN_CONFIG $cln_config_args --cppflags`
+- CLN_LIBS=`$CLN_CONFIG $cln_config_args --libs`
+- cln_config_version=`$CLN_CONFIG $cln_config_args --version`
+- cln_config_major_version=`echo $cln_config_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+- cln_config_minor_version=`echo $cln_config_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+- cln_config_micro_version=`echo $cln_config_version | \
+- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+-dnl Check if the installed CLN is sufficiently new according to cln-config.
+- if test \( $cln_config_major_version -lt $cln_min_major_version \) -o \
+- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -lt $cln_min_minor_version \) -o \
+- \( $cln_config_major_version -eq $cln_min_major_version -a $cln_config_minor_version -eq $cln_min_minor_version -a $cln_config_micro_version -lt $cln_min_micro_version \); then
+- echo -e "\n*** 'cln-config --version' returned $cln_config_major_version.$cln_config_minor_version.$cln_config_micro_version, but the minimum version"
+- echo "*** of CLN required is $cln_min_major_version.$cln_min_minor_version.$cln_min_micro_version. If cln-config is correct, then it is"
+- echo "*** best to upgrade to the required version."
+- echo "*** If cln-config was wrong, set the environment variable CLN_CONFIG"
+- echo "*** to point to the correct copy of cln-config, and remove the file"
+- echo "*** config.cache before re-running configure."
+- ifelse([$3], , :, [$3])
++ if $PKG_CONFIG cln --atleast-version=${cln_min_version}; then
++ echo "Found cln >= ${cln_min_version}"
++ CLN_CPPFLAGS=`$PKG_CONFIG cln --cflags`
++ CLN_LIBS=`$PKG_CONFIG cln --libs`
+ else
+-dnl The versions match so far. Now do a sanity check: Does the result of cln-config
+-dnl match the version of the headers and the version built into the library, too?
+- no_cln=""
+- if test "x$enable_clntest" = "xyes" ; then
+- ac_save_CPPFLAGS="$CPPFLAGS"
+- ac_save_LIBS="$LIBS"
+- CPPFLAGS="$CPPFLAGS $CLN_CPPFLAGS"
+- LIBS="$LIBS $CLN_LIBS"
+- rm -f conf.clntest
+- AC_TRY_RUN([
+-#include <stdio.h>
+-#include <string.h>
+-#include <cln/version.h>
+-
+-/* we do not #include <stdlib.h> because autoconf in C++ mode inserts a
+- prototype for exit() that conflicts with the one in stdlib.h */
+-extern "C" int system(const char *);
+-
+-int main(void)
+-{
+- system("touch conf.clntest");
+-
+- if ((CL_VERSION_MAJOR != $cln_config_major_version) ||
+- (CL_VERSION_MINOR != $cln_config_minor_version) ||
+- (CL_VERSION_PATCHLEVEL != $cln_config_micro_version)) {
+- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the header file I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version);
+- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", CL_VERSION_MAJOR, CL_VERSION_MINOR, CL_VERSION_PATCHLEVEL);
+- printf("*** is corrupted or you have specified some wrong -I compiler flags.\n");
+- printf("*** Please inquire and consider reinstalling CLN.\n");
+- return 1;
+- }
+- if ((cln::version_major != $cln_config_major_version) ||
+- (cln::version_minor != $cln_config_minor_version) ||
+- (cln::version_patchlevel != $cln_config_micro_version)) {
+- printf("\n*** 'cln-config --version' returned %d.%d.%d, but the library I found\n", $cln_config_major_version, $cln_config_minor_version, $cln_config_micro_version);
+- printf("*** corresponds to %d.%d.%d. This mismatch suggests your installation of CLN\n", cln::version_major, cln::version_minor, cln::version_patchlevel);
+- printf("*** is corrupted or you have specified some wrong -L compiler flags.\n");
+- printf("*** Please inquire and consider reinstalling CLN.\n");
+- return 1;
+- }
+- return 0;
+-}
+-],, no_cln=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+- CPPFLAGS="$ac_save_CPPFLAGS"
+- LIBS="$ac_save_LIBS"
+- fi
+- if test "x$no_cln" = x ; then
+- AC_MSG_RESULT([yes, $cln_config_version])
+- ifelse([$2], , :, [$2])
+- else
+- AC_MSG_RESULT(no)
+- if test ! -f conf.clntest ; then
+- echo "*** Could not run CLN test program, checking why..."
+- CPPFLAGS="$CFLAGS $CLN_CPPFLAGS"
+- LIBS="$LIBS $CLN_LIBS"
+- AC_TRY_LINK([
+-#include <stdio.h>
+-#include <cln/version.h>
+-], [ return 0; ],
+- [ echo "*** The test program compiled, but did not run. This usually means"
+- echo "*** that the run-time linker is not finding CLN or finding the wrong"
+- echo "*** version of CLN. If it is not finding CLN, you'll need to set your"
+- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
+- echo "*** to the installed location. Also, make sure you have run ldconfig if that"
+- echo "*** is required on your system."],
+- [ echo "*** The test program failed to compile or link. See the file config.log for the"
+- echo "*** exact error that occured. This usually means CLN was incorrectly installed"
+- echo "*** or that you have moved CLN since it was installed. In the latter case, you"
+- echo "*** may want to edit the cln-config script: $CLN_CONFIG." ])
+- CPPFLAGS="$ac_save_CPPFLAGS"
+- LIBS="$ac_save_LIBS"
+- fi
+- CLN_CPPFLAGS=""
+- CLN_LIBS=""
+- ifelse([$3], , :, [$3])
+- fi
++ echo "ERROR: cln >= ${cln_min_version} not found"
++ ifelse([$3], , :, [$3])
+ fi
+ fi
+ AC_SUBST(CLN_CPPFLAGS)
+ AC_SUBST(CLN_LIBS)
+-rm -f conf.clntest
+ ])
+
+ # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
diff --git a/sci-calculators/qalculate-units/files/qalculate-units-0.9.4-desktop.patch b/sci-calculators/qalculate-units/files/qalculate-units-0.9.4-desktop.patch
new file mode 100644
index 000000000000..121dcbb82833
--- /dev/null
+++ b/sci-calculators/qalculate-units/files/qalculate-units-0.9.4-desktop.patch
@@ -0,0 +1,11 @@
+--- data/qalculate-units.desktop.in.orig 2014-07-04 08:38:13.960379573 -0700
++++ data/qalculate-units.desktop.in 2014-07-04 08:38:29.628489423 -0700
+@@ -4,7 +4,7 @@
+ _GenericName=Unit Converter
+ _Comment=Converts between many different units
+ Exec=qalculate-units
+-Icon=gnome-calc3.png
++Icon=gnome-calc3
+ Terminal=false
+ Type=Application
+ StartupNotify=true
diff --git a/sci-calculators/qalculate-units/metadata.xml b/sci-calculators/qalculate-units/metadata.xml
new file mode 100644
index 000000000000..2a0407dd1c41
--- /dev/null
+++ b/sci-calculators/qalculate-units/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <upstream>
+ <remote-id type="sourceforge">qalculate</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-calculators/qalculate-units/qalculate-units-0.9.4-r2.ebuild b/sci-calculators/qalculate-units/qalculate-units-0.9.4-r2.ebuild
new file mode 100644
index 000000000000..48c5158b2d80
--- /dev/null
+++ b/sci-calculators/qalculate-units/qalculate-units-0.9.4-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="A GTK+ unit conversion tool"
+HOMEPAGE="http://qalculate.sourceforge.net/"
+SRC_URI="mirror://sourceforge/qalculate/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="nls"
+KEYWORDS="~amd64 x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ dev-libs/libxml2:2=
+ sci-libs/libqalculate:0=
+ x11-libs/gdk-pixbuf:2=
+ x11-libs/gtk+:2=
+ nls? ( sys-devel/gettext )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-cln-config.patch \
+ "${FILESDIR}"/${P}-desktop.patch
+ eautoconf
+}
diff --git a/sci-calculators/qalculator/Manifest b/sci-calculators/qalculator/Manifest
new file mode 100644
index 000000000000..212a889824f3
--- /dev/null
+++ b/sci-calculators/qalculator/Manifest
@@ -0,0 +1 @@
+DIST 101326-qalculator-0.4b-src.tar.bz2 3422 SHA256 2fc897b0ee020c5936cc437e4c3b4411b30621a4ae2f89e7ad0ca16b50eea19d
diff --git a/sci-calculators/qalculator/metadata.xml b/sci-calculators/qalculator/metadata.xml
new file mode 100644
index 000000000000..3cbebd85b7e2
--- /dev/null
+++ b/sci-calculators/qalculator/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+</pkgmetadata>
diff --git a/sci-calculators/qalculator/qalculator-0.4b.ebuild b/sci-calculators/qalculator/qalculator-0.4b.ebuild
new file mode 100644
index 000000000000..a8e5a180b176
--- /dev/null
+++ b/sci-calculators/qalculator/qalculator-0.4b.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils qt4-r2
+
+DESCRIPTION="A Qt4 based small calculator application"
+HOMEPAGE="http://www.qt-apps.org/content/show.php/Qalculator?content=101326"
+SRC_URI="http://www.qt-apps.org/CONTENT/content-files/101326-${P}-src.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-qt/qtgui:4"
+
+S=${WORKDIR}/${P}-src
+
+src_install() {
+ dobin Qalculator
+ make_desktop_entry Qalculator Qalculator accessories-calculator
+}
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
+}
diff --git a/sci-calculators/tiemu/Manifest b/sci-calculators/tiemu/Manifest
new file mode 100644
index 000000000000..6e7251f19458
--- /dev/null
+++ b/sci-calculators/tiemu/Manifest
@@ -0,0 +1 @@
+DIST tiemu_3.03.orig.tar.gz 27343892 SHA256 c47b1c58640622c0fac9049d83eb8953d5805e54dede32cb2d3aa6453fb9ce8b SHA512 417f57b14ff603bc35ec1dcd7e6a884c28dc9decddcf775318cac1db383907a59d24dcef3c96324703a896672bd54caa51220126edd9e6c1642d87c4e75e127a WHIRLPOOL 4e09ea96d0f18d387c5bb1cb4a2f4acdb05fe401c2d1340f8891aeb590423a36a35e98b095d824be10546db772afebbff4b75ca29f86ce022db334dfeb5d32d0
diff --git a/sci-calculators/tiemu/files/tiemu-3.03-r2820.patch b/sci-calculators/tiemu/files/tiemu-3.03-r2820.patch
new file mode 100644
index 000000000000..cf563e8d4c67
--- /dev/null
+++ b/sci-calculators/tiemu/files/tiemu-3.03-r2820.patch
@@ -0,0 +1,28 @@
+Removed obsolete virtual link cable.
+
+http://svn.tilp.info/cgi-bin/viewvc.cgi?view=rev&root=tiemu&revision=2820
+https://bugs.gentoo.org/show_bug.cgi?id=363383
+
+--- src/gui/device.c
++++ src/gui/device.c
+@@ -102,10 +102,6 @@
+ gtk_option_menu_set_history(GTK_OPTION_MENU(data), 7);
+ break;
+
+- case CABLE_VTL:
+- gtk_option_menu_set_history(GTK_OPTION_MENU(data), 8);
+- break;
+-
+ case CABLE_ILP:
+ gtk_option_menu_set_history(GTK_OPTION_MENU(data), 9);
+ break;
+@@ -194,8 +190,7 @@
+ case 5: tmp.cable_model = CABLE_USB; break;
+ case 6: tmp.cable_model = CABLE_VTI; break;
+ case 7: tmp.cable_model = CABLE_TIE; break;
+- case 8: tmp.cable_model = CABLE_VTL; break;
+- case 9: tmp.cable_model = CABLE_ILP; break;
++ case 8: tmp.cable_model = CABLE_ILP; break;
+ }
+ }
+
diff --git a/sci-calculators/tiemu/files/tiemu-3.03-remove_depreciated_gtk_calls.patch b/sci-calculators/tiemu/files/tiemu-3.03-remove_depreciated_gtk_calls.patch
new file mode 100644
index 000000000000..10a0e1a11341
--- /dev/null
+++ b/sci-calculators/tiemu/files/tiemu-3.03-remove_depreciated_gtk_calls.patch
@@ -0,0 +1,232 @@
+--- src/gui/debugger/dbg_bkpts.c
++++ src/gui/debugger/dbg_bkpts.c
+@@ -29,10 +29,15 @@
+ # include <config.h>
+ #endif
+
++#include <string.h>
+ #include <gtk/gtk.h>
+ #include <glade/glade.h>
+-#include <string.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include "intl.h"
+ #include "paths.h"
+ #include "support.h"
+--- src/gui/debugger/dbg_regs.c
++++ src/gui/debugger/dbg_regs.c
+@@ -28,14 +28,19 @@
+ # include <config.h>
+ #endif
+
+-#include <gtk/gtk.h>
+-#include <glade/glade.h>
+ #include <stdio.h>
+ #include <stdint.h>
+ #include <string.h>
+ #include <ctype.h>
++#include <gtk/gtk.h>
++#include <glade/glade.h>
+ #include <gdk/gdkkeysyms.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include "intl.h"
+ #include "paths.h"
+ #include "support.h"
+--- src/gui/debugger/dbg_pclog.c
++++ src/gui/debugger/dbg_pclog.c
+@@ -31,6 +31,11 @@
+ #include <gtk/gtk.h>
+ #include <glade/glade.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include "intl.h"
+ #include "paths.h"
+ #include "support.h"
+--- src/gui/debugger/dbg_wnds.c
++++ src/gui/debugger/dbg_wnds.c
+@@ -38,6 +38,11 @@
+ #include <windows.h>
+ #endif
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include "intl.h"
+ #include "ti68k_int.h"
+ #include "struct.h"
+--- src/gui/debugger/dbg_mem.c
++++ src/gui/debugger/dbg_mem.c
+@@ -33,6 +33,11 @@
+ #include <glade/glade.h>
+ #include <gdk/gdkkeysyms.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include <stdio.h>
+ #include <stdint.h>
+ #include <string.h>
+--- src/gui/debugger/dbg_iop.c
++++ src/gui/debugger/dbg_iop.c
+@@ -28,13 +28,18 @@
+ # include <config.h>
+ #endif
+
+-#include <gtk/gtk.h>
+-#include <glade/glade.h>
+ #include <stdio.h>
+ #include <stdint.h>
+ #include <string.h>
+ #include <ctype.h>
++#include <gtk/gtk.h>
++#include <glade/glade.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include "intl.h"
+ #include "paths.h"
+ #include "support.h"
+--- src/gui/debugger/dbg_stack.c
++++ src/gui/debugger/dbg_stack.c
+@@ -28,11 +28,16 @@
+ # include <config.h>
+ #endif
+
++#include <stdlib.h>
+ #include <gtk/gtk.h>
+ #include <glade/glade.h>
+ #include <gdk/gdkkeysyms.h>
+-#include <stdlib.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include "intl.h"
+ #include "paths.h"
+ #include "support.h"
+--- src/gui/debugger/dbg_all.c
++++ src/gui/debugger/dbg_all.c
+@@ -38,6 +38,13 @@
+ #include <windows.h>
+ #endif
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_SENSITIVE
++#define GTK_WIDGET_SENSITIVE(wid) (gtk_widget_get_sensitive(wid))
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include "ti68k_int.h"
+ #include "struct.h"
+ #include "dbg_all.h"
+--- src/gui/debugger/dbg_code.c
++++ src/gui/debugger/dbg_code.c
+@@ -28,11 +28,16 @@
+ # include <config.h>
+ #endif
+
++#include <string.h>
+ #include <gtk/gtk.h>
+ #include <glade/glade.h>
+ #include <gdk/gdkkeysyms.h>
+-#include <string.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_SENSITIVE
++#define GTK_WIDGET_SENSITIVE(wid) (gtk_widget_get_sensitive(wid))
++#endif
++
+ #include "intl.h"
+ #include "paths.h"
+ #include "support.h"
+--- src/gui/debugger/dbg_heap.c
++++ src/gui/debugger/dbg_heap.c
+@@ -31,6 +31,11 @@
+ #include <gtk/gtk.h>
+ #include <glade/glade.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include "intl.h"
+ #include "paths.h"
+ #include "support.h"
+--- src/gui/debugger/dbg_dock.c
++++ src/gui/debugger/dbg_dock.c
+@@ -37,11 +37,16 @@
+ # include <config.h>
+ #endif
+
++#include <string.h>
+ #include <gtk/gtk.h>
+ #include <glade/glade.h>
+ #include <gdk/gdkkeysyms.h>
+-#include <string.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_VISIBLE
++#define GTK_WIDGET_VISIBLE(wid) (gtk_widget_get_visible(wid))
++#endif
++
+ #include "intl.h"
+ #include "paths.h"
+ #include "support.h"
+--- src/gui/calc/calc.c
++++ src/gui/calc/calc.c
+@@ -39,6 +39,11 @@
+ #include <glade/glade.h>
+ #include <gdk-pixbuf/gdk-pixbuf.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_STATE
++#define GTK_WIDGET_STATE(wid) (gtk_widget_get_state(wid))
++#endif
++
+ #include "intl.h"
+ #include "paths.h"
+ #include "skinops.h"
+--- src/gui/calc/screen.c
++++ src/gui/calc/screen.c
+@@ -29,11 +29,16 @@
+ # include <config.h>
+ #endif /* */
+
++#include <string.h>
+ #include <gtk/gtk.h>
+ #include <glade/glade.h>
+ #include <gdk-pixbuf/gdk-pixbuf.h>
+-#include <string.h>
+
++#if GTK_CHECK_VERSION(2,18,0)
++#undef GTK_WIDGET_STATE
++#define GTK_WIDGET_STATE(wid) (gtk_widget_get_state(wid))
++#endif
++
+ #include "intl.h"
+ #include "paths.h"
+ #include "skinops.h"
diff --git a/sci-calculators/tiemu/metadata.xml b/sci-calculators/tiemu/metadata.xml
new file mode 100644
index 000000000000..3f72a1c51b7d
--- /dev/null
+++ b/sci-calculators/tiemu/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ This project aims to develop a fast emulator for the
+ TI89(titanium), 92(+), and V200PLT calculators. This emulator
+ started on the Jonas Minnberg's (X)Tiger emulator which is
+ based on UAE (the Universal Amiga Emulator). It was deeply
+ reworked and improved thus it's very different now.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-calculators/tiemu/tiemu-3.03.ebuild b/sci-calculators/tiemu/tiemu-3.03.ebuild
new file mode 100644
index 000000000000..730bde9e19ff
--- /dev/null
+++ b/sci-calculators/tiemu/tiemu-3.03.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="Texas Instruments hand-helds emulator"
+HOMEPAGE="http://lpg.ticalc.org/prj_tiemu/"
+SRC_URI="http://repo.calcforge.org/debian/source/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="dbus nls sdl threads xinerama"
+
+RDEPEND="sci-libs/libticables2
+ sci-libs/libticalcs2
+ sci-libs/libtifiles2
+ sci-libs/libticonv
+ gnome-base/libglade:2.0
+ x11-libs/gtk+:2
+ dbus? ( >=dev-libs/dbus-glib-0.60 )
+ nls? ( virtual/libintl )
+ sdl? ( media-libs/libsdl )
+ xinerama? ( x11-libs/libXinerama )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ xinerama? ( x11-proto/xineramaproto )"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-remove_depreciated_gtk_calls.patch \
+ "${FILESDIR}"/${P}-r2820.patch
+
+ # Don't use GTK_DISABLE_DEPRECATED flags
+ sed 's:-DGTK_DISABLE_DEPRECATED::g' -i configure.ac configure || die
+}
+
+src_configure() {
+ econf \
+ --disable-rpath \
+ --disable-debugger \
+ --disable-gdb \
+ $(use_enable nls) \
+ $(use_enable sdl sound) \
+ $(use_enable threads) \
+ $(use_enable threads threading) \
+ $(use_with dbus) \
+ --without-kde \
+ $(use_with xinerama)
+}
+
+src_install() {
+ default
+ rm -f "${ED}"usr/share/tiemu/{Manpage.txt,COPYING,RELEASE,AUTHORS,LICENSES}
+ make_desktop_entry tiemu "TiEmu Calculator" \
+ "${EPREFIX}"/usr/share/tiemu/pixmaps/icon.xpm
+}
diff --git a/sci-calculators/tilp2/Manifest b/sci-calculators/tilp2/Manifest
new file mode 100644
index 000000000000..539112da797c
--- /dev/null
+++ b/sci-calculators/tilp2/Manifest
@@ -0,0 +1,2 @@
+DIST tilp2-1.16.tar.bz2 2837735 SHA256 8064c045d90f734d10c0c3baa9d61f46ac6c6c1af3fc3c96255c4d6cb27a325d SHA512 eeb48b4b3f7044059bcb172b915f72c8af2e0d1c5eac56eff66d41c44d18e52c4249cc68a06e59ff03636b67ecbeb4ebacc690702cc43f296792ac77f358880f WHIRLPOOL 2da29a9bea5eb0a3075829bc1611e75a442d15e809de48957802251ed32a11a1e38ad91bd2c85d77329c2f7e084b3f2890f7ff40973906679f5a0f08b40af4f3
+DIST tilp2-1.17.tar.bz2 892549 SHA256 0bc744463450843c0f1e9deebf45af84a282304aff37865077ca7146d54ff6e7 SHA512 78f0242710a8c86a6db7d764e6e524b373aef0384f649b0e538ac1f4a57044fc9adf3aa32da9dc69509b6d835d020026bbdf574cdbb7f1f5a53ab316b987c572 WHIRLPOOL 4e6414d36996f59da39911aea7acdd0afbd37bb5131f8c7c5d14e1d683f788634194e5fad809d18fe19c217846c44ae747495de0a58ff4583847c5168a34a368
diff --git a/sci-calculators/tilp2/metadata.xml b/sci-calculators/tilp2/metadata.xml
new file mode 100644
index 000000000000..e3505ed44c9e
--- /dev/null
+++ b/sci-calculators/tilp2/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <longdescription lang="en">
+ TiLP is a linking program for Texas Instruments' graphing
+ calculators. It can handle any TI calculator (from TI73 to V200) with
+ any link cable. TiLP has all the functions of a linking program and
+ more.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">tilp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-calculators/tilp2/tilp2-1.16-r1.ebuild b/sci-calculators/tilp2/tilp2-1.16-r1.ebuild
new file mode 100644
index 000000000000..374b981a4706
--- /dev/null
+++ b/sci-calculators/tilp2/tilp2-1.16-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Communication program for Texas Instruments calculators "
+HOMEPAGE="http://lpg.ticalc.org/prj_tilp"
+SRC_URI="mirror://sourceforge/tilp/tilp2-linux/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="nls threads xinerama"
+
+RDEPEND="
+ dev-libs/glib:2
+ gnome-base/libglade:2.0
+ x11-libs/gtk+:2
+ >=sci-libs/libticalcs2-1.1.7
+ >=sci-libs/libticables2-1.3.3
+ >=sci-libs/libtifiles2-1.1.5
+ >=sci-libs/libticonv-1.1.3
+ nls? ( virtual/libintl )
+ xinerama? ( x11-libs/libXinerama )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ xinerama? ( x11-proto/xineramaproto )"
+
+src_configure() {
+ # kde seems to be kde3 only
+ econf \
+ --disable-rpath \
+ --without-kde \
+ $(use_enable nls) \
+ $(use_enable threads threading) \
+ $(use_with xinerama)
+}
+
+src_install() {
+ default
+ rm -f "${ED}"usr/share/${PN}/{Manpage.txt,COPYING,RELEASE,AUTHORS,LICENSES}
+}
diff --git a/sci-calculators/tilp2/tilp2-1.17-r1.ebuild b/sci-calculators/tilp2/tilp2-1.17-r1.ebuild
new file mode 100644
index 000000000000..e1f4e2e2a052
--- /dev/null
+++ b/sci-calculators/tilp2/tilp2-1.17-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+inherit autotools-utils
+
+DESCRIPTION="Communication program for Texas Instruments calculators "
+HOMEPAGE="http://lpg.ticalc.org/prj_tilp"
+SRC_URI="mirror://sourceforge/tilp/tilp2-linux/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="nls threads xinerama"
+
+RDEPEND="
+ dev-libs/glib:2
+ gnome-base/libglade:2.0
+ x11-libs/gtk+:2
+ >=sci-libs/libticalcs2-1.1.8
+ >=sci-libs/libticables2-1.3
+ >=sci-libs/libtifiles2-1.1.6
+ >=sci-libs/libticonv-1.1.4
+ nls? ( virtual/libintl )
+ xinerama? ( x11-libs/libXinerama )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ xinerama? ( x11-proto/xineramaproto )"
+
+src_configure() {
+ # kde seems to be kde3 only
+ local myeconfargs=(
+ --disable-rpath
+ --without-kde
+ $(use_enable nls)
+ $(use_enable threads threading)
+ $(use_with xinerama)
+ )
+ autotools-utils_src_configure
+}
diff --git a/sci-calculators/transcalc/Manifest b/sci-calculators/transcalc/Manifest
new file mode 100644
index 000000000000..b64d6916801c
--- /dev/null
+++ b/sci-calculators/transcalc/Manifest
@@ -0,0 +1 @@
+DIST transcalc-0.14.tar.gz 186434 SHA256 02213d5fc20cb147a51ea771364a8acd0d340ffdc8d582deb5bf478ff0e6a82e SHA512 b8c2cfbe3ea9787a2c694732baaf0e7c734f9a58c825f3791f21527f54398fcc79e24570d4f5f5c942b138b164cc6dc39744e0a66bafd888122608b641dcfa05 WHIRLPOOL c736396b38885f83e0d82f3b3d2cdaf99c30191ea01960b8316d94980ee3a9b62881675b0807265d6dca6dd52deb5fffac93bdb25a83ce07768ead9a2ca2e1a1
diff --git a/sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch b/sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch
new file mode 100644
index 000000000000..534f3a92d8ac
--- /dev/null
+++ b/sci-calculators/transcalc/files/transcalc-0.14-fd-perm.patch
@@ -0,0 +1,13 @@
+Index: transcalc-0.14/src/transcalc.c
+===================================================================
+--- transcalc-0.14.orig/src/transcalc.c 2009-05-19 22:00:01.000000000 -0400
++++ transcalc-0.14/src/transcalc.c 2009-05-19 22:01:22.000000000 -0400
+@@ -146,7 +146,7 @@
+ /* see if config file exists */
+ if (stat (config_filename, config_file_stat) != 0) {
+ /* config file missing, so touch it */
+- config_file_fd = open (config_filename, O_CREAT);
++ config_file_fd = open (config_filename, O_CREAT, 0644);
+ if (config_file_fd == -1)
+ {
+ perror ("open[config_file]");
diff --git a/sci-calculators/transcalc/metadata.xml b/sci-calculators/transcalc/metadata.xml
new file mode 100644
index 000000000000..e8863d7196a2
--- /dev/null
+++ b/sci-calculators/transcalc/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription>
+ Transcalc is an analysis and synthesis tool for calculating the
+ electrical and physical properties of different kinds of RF and
+ microwave transmission lines. Transcalc was somewhat inspired by the
+ functionality of Agilent Technologies' commercial program linecalc.
+ Transcalc aspires to be more functional in the long run and
+ well-documented with appropriate references to formulas that are used.
+ Transcalc is built using the GIMP toolkit (GTK) for its GUI interface.
+ For each type of transmission line, using dialog boxes, you can enter
+ values for the various parameters, and either calculate its electrical
+ properties (analyze), or use the given electrical requirements to
+ sythesize physical parameters of the required transmission line.
+ Available transmission lines (this list will expand with subsequent
+ releases): microstrip, rectangular waveguide, coaxial line, coupled
+ microstrip.
+</longdescription>
+</pkgmetadata>
diff --git a/sci-calculators/transcalc/transcalc-0.14-r1.ebuild b/sci-calculators/transcalc/transcalc-0.14-r1.ebuild
new file mode 100644
index 000000000000..33cd9518b7af
--- /dev/null
+++ b/sci-calculators/transcalc/transcalc-0.14-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="Microwave and RF transmission line calculator"
+HOMEPAGE="http://transcalc.sourceforge.net"
+SRC_URI="http://transcalc.sourceforge.net/${P}.tar.gz"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="x11-libs/gtk+:2"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # respect flags
+ sed -i -e 's|^CFLAGS=|#CFLAGS=|g' configure || die
+ # patch from debian
+ epatch "${FILESDIR}"/${P}-fd-perm.patch
+ # syntax errors
+ sed -i \
+ -e 's/ythesize/ynthesize/g' \
+ src/{setup_menu.c,help.h} docs/transcalc.sgml README || die
+}
diff --git a/sci-calculators/units/Manifest b/sci-calculators/units/Manifest
new file mode 100644
index 000000000000..4acd6bebf414
--- /dev/null
+++ b/sci-calculators/units/Manifest
@@ -0,0 +1,2 @@
+DIST units-2.11.tar.gz 861772 SHA256 53b6daf2a03d9a060449944b0a6c1aca0d18a84d1d9a93098e4a8920181f5abe SHA512 83e062a0daf9541454cdcaa4efe03bf9f03afdcfdbe2013d5e913a53e1b5e37ef846a3129185898ad2d25e3ea632533f8eb8d89681c855b19a3998aca6e733ce WHIRLPOOL 4c405e0a81af2b02d05156225c26573631ddb02d323d160b0850fcfda52b4a84a36f3ddbfdc732aa8a9dc06c8fc59a41141f985d6025ea6cb18b87749b78d500
+DIST units-2.11a.tar.gz 865120 SHA256 cdc1ef5adf0701f9bf0f9e3c890cd832554e5bf3f078dab852e5a6783e525b8b SHA512 d942194b73a4d920d711bdcf07481aefff8fc1403f47ca73c1c0fd9837cb7c385a45f326d9537ba1aa77283c4f812be346a1b5ac15ca1e508c268857cc9d78db WHIRLPOOL 72efc473f9105796bdbdc92e2e355a0a2c8ede0ae5febbc017a112b6524e6ad9081a581cc22666ed4e7e74a87bf1b8d45e3a262df53358cbe32107edbe4b6230
diff --git a/sci-calculators/units/metadata.xml b/sci-calculators/units/metadata.xml
new file mode 100644
index 000000000000..d9728cf1d724
--- /dev/null
+++ b/sci-calculators/units/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>jer@gentoo.org</email>
+<name>Jeroen Roovers</name>
+</maintainer>
+<use>
+<flag name='units_cur'>Install the units_cur python script that updates currencies</flag>
+</use>
+</pkgmetadata>
diff --git a/sci-calculators/units/units-2.11.ebuild b/sci-calculators/units/units-2.11.ebuild
new file mode 100644
index 000000000000..195064807337
--- /dev/null
+++ b/sci-calculators/units/units-2.11.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+PYTHON_REQ_USE="xml"
+inherit eutils python-r1
+
+DESCRIPTION="Unit conversion program"
+HOMEPAGE="http://www.gnu.org/software/units/units.html"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="FDL-1.3 GPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ppc sparc x86 ~amd64-linux ~x86-linux"
+IUSE="+units_cur"
+
+DEPEND="
+ >=sys-libs/readline-4.1-r2
+ units_cur? (
+ dev-lang/python-exec:2
+ )
+"
+RDEPEND="
+ ${DEPEND}
+ units_cur? (
+ dev-python/unidecode[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+ )
+"
+
+DOCS=( ChangeLog NEWS README )
+
+units_cur_prepare() {
+ local UNITS_PYTHON_MAJOR
+ UNITS_PYTHON_MAJOR=$(
+ UNITS_PYTHON_MAJOR=${EPYTHON/.*}
+ shopt -s extglob
+ echo ${UNITS_PYTHON_MAJOR/*([[:alpha:]])}
+ )
+ sed -e "/^outfile/s|'.*'|'/usr/share/units/currency.units'|g" units_cur${UNITS_PYTHON_MAJOR} > units_cur-${EPYTHON}
+}
+
+src_prepare() {
+ use units_cur && python_foreach_impl units_cur_prepare
+}
+
+src_compile() {
+ emake HAVE_PYTHON=no
+}
+
+units_cur_install() {
+ python_newexe units_cur-${EPYTHON} units_cur
+}
+
+src_install() {
+ emake DESTDIR="${D}" HAVE_PYTHON=no install
+
+ use units_cur && python_foreach_impl units_cur_install
+}
diff --git a/sci-calculators/units/units-2.11a.ebuild b/sci-calculators/units/units-2.11a.ebuild
new file mode 100644
index 000000000000..1fcb59208e70
--- /dev/null
+++ b/sci-calculators/units/units-2.11a.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+PYTHON_REQ_USE="xml"
+inherit eutils python-r1
+
+DESCRIPTION="Unit conversion program"
+HOMEPAGE="http://www.gnu.org/software/units/units.html"
+SRC_URI="mirror://gnu-alpha/${PN}/${P}.tar.gz"
+
+LICENSE="FDL-1.3 GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="+units_cur"
+
+DEPEND="
+ >=sys-libs/readline-4.1-r2
+ units_cur? (
+ dev-lang/python-exec:2
+ )
+"
+RDEPEND="
+ ${DEPEND}
+ units_cur? (
+ dev-python/unidecode[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+ )
+"
+
+DOCS=( ChangeLog NEWS README )
+
+units_cur_prepare() {
+ local UNITS_PYTHON_MAJOR
+ UNITS_PYTHON_MAJOR=$(
+ UNITS_PYTHON_MAJOR=${EPYTHON/.*}
+ shopt -s extglob
+ echo ${UNITS_PYTHON_MAJOR/*([[:alpha:]])}
+ )
+ sed -e "/^outfile/s|'.*'|'/usr/share/units/currency.units'|g" units_cur${UNITS_PYTHON_MAJOR} > units_cur-${EPYTHON}
+}
+
+src_prepare() {
+ use units_cur && python_foreach_impl units_cur_prepare
+}
+
+src_compile() {
+ emake HAVE_PYTHON=no
+}
+
+units_cur_install() {
+ python_newexe units_cur-${EPYTHON} units_cur
+}
+
+src_install() {
+ emake DESTDIR="${D}" HAVE_PYTHON=no install
+
+ use units_cur && python_foreach_impl units_cur_install
+}
diff --git a/sci-calculators/wcalc/Manifest b/sci-calculators/wcalc/Manifest
new file mode 100644
index 000000000000..b4b995a7c6cf
--- /dev/null
+++ b/sci-calculators/wcalc/Manifest
@@ -0,0 +1,2 @@
+DIST Wcalc-2.2.1.tar.bz2 214551 SHA256 82d3ed064c934a7791e8866f7ac25f2a600c2b435b5551101a2897b78d47a9af
+DIST wcalc-2.4.tar.bz2 361865 SHA256 aa2342078b9e75f821b0cc5d30f3434aa9cdf9af170e8a3e9af82286682be226
diff --git a/sci-calculators/wcalc/files/wcalc-2.3.1-parallel-build.patch b/sci-calculators/wcalc/files/wcalc-2.3.1-parallel-build.patch
new file mode 100644
index 000000000000..15ca95a2ae4a
--- /dev/null
+++ b/sci-calculators/wcalc/files/wcalc-2.3.1-parallel-build.patch
@@ -0,0 +1,11 @@
+diff -Naur Wcalc-2.3.1/Makefile.am Wcalc-2.3.1.new/Makefile.am
+--- Wcalc-2.3.1/Makefile.am 2007-02-25 21:09:18.000000000 -0500
++++ Wcalc-2.3.1.new/Makefile.am 2008-10-11 06:38:08.000000000 -0400
+@@ -1,6 +1,7 @@
+ bin_PROGRAMS = wcalc
+ AM_YFLAGS = -dt
+ #AM_LFLAGS = -w
++BUILT_SOURCES = parser.c
+ wcalc_SOURCES = calculator.h variables.h string_manip.h help.h parser.y \
+ string_manip.h historyManager.h files.h conversion.h \
+ scanner.l help.c calculator.c string_manip.c historyManager.c \
diff --git a/sci-calculators/wcalc/metadata.xml b/sci-calculators/wcalc/metadata.xml
new file mode 100644
index 000000000000..2f71e70ac84f
--- /dev/null
+++ b/sci-calculators/wcalc/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <longdescription lang="en">
+ Wcalc is a very capable calculator. It has standard functions (sin,
+ asin, and sinh for example, in either radians or degrees), many
+ pre-defined constants (pi, e, c, etc.), support for using variables,
+ "active" variables, a command history, hex/octal/binary input and
+ output, unit conversions, embedded comments, and an expandable
+ expression entry field. It evaluates expressions using the standard
+ order of operations.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">w-calc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-calculators/wcalc/wcalc-2.2.1.ebuild b/sci-calculators/wcalc/wcalc-2.2.1.ebuild
new file mode 100644
index 000000000000..91fdfaac09e0
--- /dev/null
+++ b/sci-calculators/wcalc/wcalc-2.2.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="A flexible command-line scientific calculator"
+HOMEPAGE="http://w-calc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/w-calc/Wcalc-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE="readline"
+
+DEPEND="
+ dev-libs/gmp
+ dev-libs/mpfr
+ readline? ( sys-libs/readline )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/Wcalc-${PV}
+
+src_configure() {
+ econf $(use_with readline)
+}
+
+src_install() {
+ default
+
+ # Wcalc icons
+ newicon w.png wcalc.png
+ newicon Wred.png wcalc-red.png
+}
diff --git a/sci-calculators/wcalc/wcalc-2.4.ebuild b/sci-calculators/wcalc/wcalc-2.4.ebuild
new file mode 100644
index 000000000000..dd64c6d941fe
--- /dev/null
+++ b/sci-calculators/wcalc/wcalc-2.4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="A flexible command-line scientific calculator"
+HOMEPAGE="http://w-calc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/w-calc/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="readline"
+
+DEPEND="
+ dev-libs/gmp
+ dev-libs/mpfr
+ readline? ( sys-libs/readline )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ econf $(use_with readline)
+}
+
+src_install() {
+ default
+
+ # Wcalc icons
+ newicon w.png wcalc.png
+ newicon Wred.png wcalc-red.png
+}