summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-calculators')
-rw-r--r--sci-calculators/qalculate-gtk/Manifest1
-rw-r--r--sci-calculators/qalculate-gtk/files/qalculate-gtk-2.8.1-entry.patch15
-rw-r--r--sci-calculators/qalculate-gtk/qalculate-gtk-2.8.1.ebuild39
3 files changed, 55 insertions, 0 deletions
diff --git a/sci-calculators/qalculate-gtk/Manifest b/sci-calculators/qalculate-gtk/Manifest
index d4a13de87e5c..e990d604f205 100644
--- a/sci-calculators/qalculate-gtk/Manifest
+++ b/sci-calculators/qalculate-gtk/Manifest
@@ -1,2 +1,3 @@
DIST qalculate-gtk-0.9.9.tar.gz 1283947 BLAKE2B 68904e19a4810ef7c83b2508d952195a38690def54816ecfde227a5f1bac847973ff67df62d5c174c00f6f9490a3ad8dce0d418cb2317b0c9c461126d54c5695 SHA512 944fad21d96de4a9d6b01fe259efb72f4872dd555357577fff18dca5bc4022c77d894b5cf8a0b470fbb02331de21210a6f034627346e08dc57be2f7c08e9faef
DIST qalculate-gtk-2.2.0.tar.gz 2339951 BLAKE2B 87a2a9328314b994a780f2f616b6f43b53848131db3e5940863432360da44f1e50084076b63c2fac01fe339d5845a55133f5d453bf3d6eec432ce8e43a524921 SHA512 a761383021448f2d8542fad2c51a57e9d98a09264a1467e8e4555ab1930151651f0a40cd9869bb88e18b716fdbe4c664ce69ec02b6623698f42f34e708f55dea
+DIST qalculate-gtk-2.8.1.tar.gz 2650577 BLAKE2B 9a28afb846f28730bf29c705ec51abda96ccca1864d973588bfd855ae3dc2027765d0bb9b26d817d4b5cfd9189f02c0b889ac74d66d48ebde4bdda2790eb1234 SHA512 fa5ede37bfed3b5f5b46cdf07e3d83456d8144f9b9eda1ae081267d73c06ea032e1012cb7bd01ff36c87aa1a88fc20794fd9477a8d3ece2950785e7aa0b32acc
diff --git a/sci-calculators/qalculate-gtk/files/qalculate-gtk-2.8.1-entry.patch b/sci-calculators/qalculate-gtk/files/qalculate-gtk-2.8.1-entry.patch
new file mode 100644
index 000000000000..02819fdd5c57
--- /dev/null
+++ b/sci-calculators/qalculate-gtk/files/qalculate-gtk-2.8.1-entry.patch
@@ -0,0 +1,15 @@
+--- a/data/qalculate-gtk.desktop.in
++++ b/data/qalculate-gtk.desktop.in
+@@ -1,5 +1,4 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+ _Name=Qalculate!
+ _Comment=Powerful and easy to use calculator
+ Exec=qalculate-gtk
+@@ -7,5 +6,5 @@
+ Terminal=false
+ Type=Application
+ StartupNotify=true
+-Categories=GTK;Application;Utility;Calculator;Science;Math;
++Categories=GTK;Utility;Calculator;Science;Math;
+
diff --git a/sci-calculators/qalculate-gtk/qalculate-gtk-2.8.1.ebuild b/sci-calculators/qalculate-gtk/qalculate-gtk-2.8.1.ebuild
new file mode 100644
index 000000000000..d1a312b7b58d
--- /dev/null
+++ b/sci-calculators/qalculate-gtk/qalculate-gtk-2.8.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2
+
+DESCRIPTION="Modern multi-purpose calculator"
+HOMEPAGE="https://qalculate.github.io/"
+SRC_URI="https://github.com/Qalculate/${PN}/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="dev-libs/glib:2
+ >=sci-libs/libqalculate-2.8.1:=
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:3
+ x11-libs/pango"
+DEPEND="${RDEPEND}
+ app-text/rarian
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.8.1-entry.patch"
+)
+
+src_prepare() {
+ # Required by src_test() and `make check`
+ echo data/calendarconversion.ui > po/POTFILES.skip || die
+ echo data/periodictable.ui >> po/POTFILES.skip || die
+
+ gnome2_src_prepare
+}