summaryrefslogtreecommitdiff
path: root/sci-calculators/orpie
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/orpie
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-calculators/orpie')
-rw-r--r--sci-calculators/orpie/Manifest9
-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/files/orpie-1.5.2-nogsl.patch51
-rw-r--r--sci-calculators/orpie/metadata.xml13
-rw-r--r--sci-calculators/orpie/orpie-1.5.2-r1.ebuild47
7 files changed, 341 insertions, 0 deletions
diff --git a/sci-calculators/orpie/Manifest b/sci-calculators/orpie/Manifest
new file mode 100644
index 000000000000..147ad3af6529
--- /dev/null
+++ b/sci-calculators/orpie/Manifest
@@ -0,0 +1,9 @@
+AUX orpie-1.5.1-ocaml311.patch 5460 SHA256 d01d72de12c65cbabfacb4e9cf296d91d9382072b0334e250b0b67f2ae117f78 SHA512 220b8585953328681c7299d140d5aefb54576a82c7897e900ffd493ec0949dd5bf0f02515305e6ae25f76a8ad7f7d8e3d7ce7d231eee05efe3987638650024a2 WHIRLPOOL 3849bc3b4276479a4ae8c16f7b87cc53969ed97de447042662eb57cc1dec1e935b23e1f099ccb15a95dd975f2be5c9f0f499473737748e655577b04aa0c9f992
+AUX orpie-1.5.1-orpierc.patch 357 SHA256 755643f6564f97742b9024985a1ad03b286b01350c0e0b3037c1ed9b57dec0ed SHA512 8579f8af07fbc43594eb9e7f0b22e9053fbb0d6f30bb0d849592f29edb4df7fae2535b163d7259eef1e6f99cbdfb5fcdbf715c59e24fbc7b7a7250e798e35485 WHIRLPOOL e477c76280172fd808e09180c2ea9d974c6cdb086c965d1d000136a33e6e8ad57a6efac3c90d11baf60f4a3cc9f8cbe5b37eb905b0b2a5c5dc6de55d6f2e17fb
+AUX orpie-1.5.1-tinfo.patch 186 SHA256 53551ae51ac16d77c297f8b9f84f2ade39e2a19cda81b5910d16839f921d1d2e SHA512 efbab46a367dc10e58b2e635d3bce49b9743766c489c2fba20cfc783fd92256c8afc8502c6d1650466400fb32bbca791f1677745b5610a405d369fb7432d7937 WHIRLPOOL 732411d0cf4280df866d1a2e267fb86963791d69c6576323fa82ced7a3ef8498180a2314a030432aa77c972f069c8078a0a8b5d84d181b97d0e4c2f2506aab7b
+AUX orpie-1.5.2-nogsl.patch 1866 SHA256 04a9e3364cc5b929c8a24fe4ebf9b7fc44c7b24004565473222ec6393dc9ec7b SHA512 26b1bcb09e111e87b82424622ec8d5e3ff6c68c3ee5cdd6a2496b175a496296787ff5dc5abde04cb98a8105c3e7a6765bb00912fa1c500fcf7d0e9e6d76f7177 WHIRLPOOL f8b474ddccc4f4580bb8fab82a4f7db72f0f56acf711a38ccd22197e1ef7e5cff91c38b194db357ce4973ed84be2f65f6ac445dc89ad1f69d8d232cdb32e1035
+DIST orpie-1.5.2.tar.gz 379583 SHA256 de557fc7f608c6cb1f44a965d3ae07fc6baf2b02a0d7994b89d6a0e0d87d3d6d SHA512 5deed6d8e8e68ce5286f4d5183315b585adef38f205805ff6ccbbbf3983c97a468e370d0d44ebe2dff596de0ad9dba20401dbc0e4e9bc176bc93b118fd1cc11a WHIRLPOOL 390c681dbc72d9730cbf22551ffa951f77e7a3589bf10c244fd1c0a3bc2ad81107ff8f5ede196b6486f50ed8f106554a8db03b04979cd5a88da31de4c1aeb836
+EBUILD orpie-1.5.2-r1.ebuild 932 SHA256 bdb3ba325889bebd4866e1e969724a1eaf47b3078024215851b044b04da36151 SHA512 ef6065cfb150199474be51992823e7f326f490572382646fe3587a2d5f8a90401e225fef896cb3ceb58cb20012e84976fbecb87b0a4cb2c7d9ca2d80d2f1ce5b WHIRLPOOL e24a407483a2b0752109dc5e3ed10c5314cb61d2cdab27044f2d2ad29ced4b7dec28b78c6ad51e2cf385e0df410758d87471be77981c416ba4063c4fcbd71ab0
+MISC ChangeLog 3367 SHA256 bf5fbe8feee8063f59ee00ae8c0c25018eaf1bc05ae61e47e83b307523a5ae69 SHA512 6616a36cd174f2fad8cc21fa1f27756969f5b371c1e89666cbdf62958c0d3722174ef1191dae8830e466078588fa3a5c2cb02eb7b217e64ec21746203be16efa WHIRLPOOL cdf0bd93cc312d2b68fb4bd915682ae0b10cab77b13b78a79b6860b8b61f48e52c4da779ab355d13840a1612ca6beda805419ae6639cd13aae9632eeeb9cad4c
+MISC ChangeLog-2015 3946 SHA256 d5e566f486ab9deb41868dff7f1314795271b8295f5818c8600908863302a30d SHA512 33e390f336aab9b5ea2215a3cee395103ade073b9965125e4b1ae928df0d89a6839ebe3433fadfec748b34c8d4b0c59f4dffa000b3fa264c5867fe8ab7794f2f WHIRLPOOL d8362da2ff2119562929d5cfdf401e0d48cf4d17ebba1cc56b42398022ddf9b2316f309669b3b3de0cd9a5e785b8d8e923d727a1066841dd117a9871d02a185d
+MISC metadata.xml 482 SHA256 1694b89d7cf6205c011f2e794a81c25ea347899e8c1001f83efde52a9f41680b SHA512 050fe93b668614c50b20ed1355b6c62f2ef2d263863c358f0c4ca303d35fccdc0d9c1879cde065355a097e9898cbdc540dd58544ae5c2a68fa08bf8ea082dd87 WHIRLPOOL b627095cd8db858c873c2d3281626d9f546906277271eb70e60898bb39643e4fd024a14efd7fc92067f5589ea76b0bd20ac4f9193640f683b5b2e4e47a8183f4
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/files/orpie-1.5.2-nogsl.patch b/sci-calculators/orpie/files/orpie-1.5.2-nogsl.patch
new file mode 100644
index 000000000000..75a56a79c0e6
--- /dev/null
+++ b/sci-calculators/orpie/files/orpie-1.5.2-nogsl.patch
@@ -0,0 +1,51 @@
+--- orpie-1.5.2/Makefile.in
++++ orpie-1.5.2/Makefile.in
+@@ -44,7 +44,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'
+@@ -78,17 +78,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_blas_float.o \
+- gsl/mlgsl_blas_complex_float.o gsl/mlgsl_matrix_complex.o gsl/mlgsl_matrix_double.o gsl/mlgsl_matrix_float.o \
+- gsl/mlgsl_matrix_complex_float.o gsl/mlgsl_vector_double.o gsl/mlgsl_vector_float.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)
+@@ -324,7 +305,7 @@
+ config.status: configure
+ ./config.status --recheck
+
+-configure: configure.in
++configure: configure.ac
+ autoconf
+
+ # clean
+--- orpie-1.5.2/curses_keys.ml
++++ orpie-1.5.2/curses_keys.ml
+@@ -19,7 +19,7 @@
+ *)
+
+ open Curses;;
+-
++open Curses_assist;;
+
+ begin
+ let std = initscr () in
diff --git a/sci-calculators/orpie/metadata.xml b/sci-calculators/orpie/metadata.xml
new file mode 100644
index 000000000000..a89b11724745
--- /dev/null
+++ b/sci-calculators/orpie/metadata.xml
@@ -0,0 +1,13 @@
+<?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 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.2-r1.ebuild b/sci-calculators/orpie/orpie-1.5.2-r1.ebuild
new file mode 100644
index 000000000000..c05d7738acd2
--- /dev/null
+++ b/sci-calculators/orpie/orpie-1.5.2-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit 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 ~x86"
+IUSE="doc"
+
+DEPEND="dev-ml/gsl-ocaml
+ sys-libs/ncurses:0=
+ dev-ml/camlp4"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.5.1-ocaml311.patch"
+ "${FILESDIR}/${PN}-1.5.2-nogsl.patch"
+ "${FILESDIR}/${PN}-1.5.1-orpierc.patch"
+ "${FILESDIR}/${PN}-1.5.1-tinfo.patch"
+)
+
+src_prepare() {
+ default
+ sed -i -e "s:/usr:${EPREFIX}/usr:g" Makefile.in || die
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_compile() {
+ # TODO: fix missing edges in dependency graph
+ emake -j1
+}
+
+src_install() {
+ if use doc; then
+ dodoc doc/manual.pdf
+ HTML_DOCS=( doc/manual.html )
+ fi
+ default
+}