summaryrefslogtreecommitdiff
path: root/sci-calculators/hexcalc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-calculators/hexcalc
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-calculators/hexcalc')
-rw-r--r--sci-calculators/hexcalc/Manifest7
-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-r3.ebuild38
-rw-r--r--sci-calculators/hexcalc/metadata.xml12
5 files changed, 224 insertions, 0 deletions
diff --git a/sci-calculators/hexcalc/Manifest b/sci-calculators/hexcalc/Manifest
new file mode 100644
index 000000000000..bf231cb871c3
--- /dev/null
+++ b/sci-calculators/hexcalc/Manifest
@@ -0,0 +1,7 @@
+AUX hexcalc-keypad.diff 3715 SHA256 ceb87c62d41b12859be40b2980d1c40e1ac199fb2a2ebcf391de33e028a777ed SHA512 812c6bd3b53a18a75b1ed553f1e58f6a08b48ba264787fa69f9577798b483797871ff47dd5ccd4c075989c9f9f6a6f00b7457deafc463b90e76e78e0507af259 WHIRLPOOL 0b28ca4443a151136c108687c804d86d24366d909eeda58a7166dbd1bf0a51f0c7b55fc80c340101a9aa94c335bf79766ad489bbe7e45a7dad4bb9cf1210e473
+AUX hexcalc-order.diff 972 SHA256 d7a7b4317b97b2ba45a8fb6180b772fb213d08d11efc151aa72223e15fd66ff9 SHA512 8a1049372f638822e7197ca56ee336d1b5ac4a0fcf24846705f14f80495c13bad390b7ddd5e43c84e47739521a5fab1a35c435125b4b919aedbd35c09ee583d7 WHIRLPOOL 60ec6a7f82b16cc0ff111cfe8cf8bf79c54e273e145b7623d33230f18cd5888279a163d21eaecd49cf8862bd65f7e1d094a489fd2b6f8d0e3895e7ea49247d2e
+DIST hexcalc.tar.Z 18033 SHA256 726dae5803538cdae658e6b8b9184ec34f23af7fdfdc4412fecae040d66c5480 SHA512 f684d6d6bd6df3f7f0dd626345d8ef166b12513bb378e74f8c59c2b92970f99c665ca32585217e75d55bf0fd93b5fc5c6a5b73e8b438f4821c13219f8ac74766 WHIRLPOOL b044a468d43adf45adde1f315c79ee2f8f42f7e4f762f32045ab4a5a913c40bc2737d2eba18ea54fc9570fd9b765abb61db9b960ab763a98ada481fda187bf2d
+EBUILD hexcalc-1.11-r3.ebuild 695 SHA256 28611c7c9bcca1bc97f22e1af5d2defb880f27f7f459c2225d6f91d2798014ad SHA512 43d8c11f0430e2c22deb8862d598af2f96a03998687de530e93af005d730e09e48e1d6f4fce0557b593fc55a8fb5c1112acf47bd839b5ab8e5bfc702fbc56e56 WHIRLPOOL 3cf2c51d0bd141dd24adcab50dab53b0946c4bf157a4e118cf431c0b6998c58c1e2d5c4463385c5d886bd1e6cdecaf49524149912fd77083231800a067b5ac7c
+MISC ChangeLog 2785 SHA256 147b85984ef2135d2539a70cb9c87391c4a959959d808662669e4c375240246a SHA512 584167a401a6172064b94d1e8967752856b8f8f723f73a920a39ad120a00f20324f9a4f2a47d79526349a317a217b3523b3d36eede5b63eb30701f9a33da5404 WHIRLPOOL 65b1cd4d7a297568c1b4c58033226281a2a20a69287f1e299753fc928aa04622e1268b0e42567010d9a94a419d32ba28927f34656bbe7c53eae33cd7980499ad
+MISC ChangeLog-2015 2283 SHA256 8ccf934ef782118288d9d06b49e653849c7fe977ed19d7e9aff0eae16ea39077 SHA512 2e61cd6a5864ce62610d69236c841f530e75e953f73a72a68bcf4c3f07956f9a366948cf39a2f9406afef9185e25aed397c12fc23f97742f4b7f7af6ba3d59a5 WHIRLPOOL 65d54fa57034633d5a68b0f9b3fb9a063b8663bc16f3e784c0570fc94c3dca64581a00d4abbcecff165dfa8bc64f1d10634902cbf4114c3320f0f19eb6cc315c
+MISC metadata.xml 378 SHA256 49133e901f96d40bb2745b2c277725eeaafb5921ec05ca60d3fb059e3d00fe80 SHA512 2a263edbfe1fff78d201e3c6340126fb9e4509a3559eaf9077450c6d948d2d6f9404e31de22d0a7b05fb021063c15fbb6184d0e651f07192327a1c256b9c130e WHIRLPOOL 4111bfa3020af44bd28a44e98e3aaadb4687d1b344c7f8b4b53bd79e12b64a0d345480209ea37dcdf41b86631b25bec986203ffb03aa3999b7bdd3069458fd88
diff --git a/sci-calculators/hexcalc/files/hexcalc-keypad.diff b/sci-calculators/hexcalc/files/hexcalc-keypad.diff
new file mode 100644
index 000000000000..c24bc07f7a20
--- /dev/null
+++ b/sci-calculators/hexcalc/files/hexcalc-keypad.diff
@@ -0,0 +1,116 @@
+--- a/hexcalc.c
++++ b/hexcalc.c
+@@ -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-r3.ebuild b/sci-calculators/hexcalc/hexcalc-1.11-r3.ebuild
new file mode 100644
index 000000000000..47681a7b93fe
--- /dev/null
+++ b/sci-calculators/hexcalc/hexcalc-1.11-r3.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit 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}
+
+PATCHES=( "${FILESDIR}"/${PN}-{keypad,order}.diff )
+
+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..b1603edfbf93
--- /dev/null
+++ b/sci-calculators/hexcalc/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription>
+ hexcalc is a mutli-radix calculator that offers the standard C
+ integer operations.
+</longdescription>
+</pkgmetadata>