commit:     79af85fc5f101a70f1aafcf5565904ff42de3d8a
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  7 22:43:01 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Feb  7 22:43:29 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79af85fc

sci-calculators/orpie: Version bump to 1.5.2

Gentoo-Bug: 532776
* EAPI=6
* Add missing dependency on dev-ml/camlp4 (thanks Quentin Minster)
* Amend patches for -p1

Package-Manager: portage-2.2.27

 sci-calculators/orpie/Manifest                     |  1 +
 .../orpie/files/orpie-1.5.1-nogsl.patch            |  4 +-
 ...e-1.5.1-nogsl.patch => orpie-1.5.2-nogsl.patch} | 37 ++++++++++++----
 sci-calculators/orpie/orpie-1.5.2.ebuild           | 49 ++++++++++++++++++++++
 4 files changed, 81 insertions(+), 10 deletions(-)

diff --git a/sci-calculators/orpie/Manifest b/sci-calculators/orpie/Manifest
index 06f3378..3945241 100644
--- a/sci-calculators/orpie/Manifest
+++ b/sci-calculators/orpie/Manifest
@@ -1 +1,2 @@
 DIST orpie-1.5.1.tar.gz 370851 SHA256 
f68ee37a5351c1dd32a68edae253a22a913fc2124bace1f6cf19cc2d422100cd SHA512 
026afcaf37016f07397ba19629a92c5bdffbbec6d25b5f96e9367274afbf7468a7d6626b4ae81d1c9b426dde3a2c66a97e9b48c54dfb3a8079f0d59906f0efb7
 WHIRLPOOL 
30ba5f026ffc1f704a08d6090eabe6d47f8dfe96ec49ba6a6a772dd85337a54fe7de2b382015e832fc0058e7449a1829fedc6fc87683a074d0cac82dad48150e
+DIST orpie-1.5.2.tar.gz 379583 SHA256 
de557fc7f608c6cb1f44a965d3ae07fc6baf2b02a0d7994b89d6a0e0d87d3d6d SHA512 
5deed6d8e8e68ce5286f4d5183315b585adef38f205805ff6ccbbbf3983c97a468e370d0d44ebe2dff596de0ad9dba20401dbc0e4e9bc176bc93b118fd1cc11a
 WHIRLPOOL 
390c681dbc72d9730cbf22551ffa951f77e7a3589bf10c244fd1c0a3bc2ad81107ff8f5ede196b6486f50ed8f106554a8db03b04979cd5a88da31de4c1aeb836

diff --git a/sci-calculators/orpie/files/orpie-1.5.1-nogsl.patch 
b/sci-calculators/orpie/files/orpie-1.5.1-nogsl.patch
index 45894f2..8719bfd 100644
--- a/sci-calculators/orpie/files/orpie-1.5.1-nogsl.patch
+++ b/sci-calculators/orpie/files/orpie-1.5.1-nogsl.patch
@@ -1,5 +1,5 @@
---- Makefile.in.orig   2010-06-03 21:02:14.000000000 +0100
-+++ Makefile.in        2010-06-03 21:02:49.000000000 +0100
+--- orpie-1.5.1/Makefile.in.orig       2010-06-03 21:02:14.000000000 +0100
++++ orpie-1.5.1/Makefile.in    2010-06-03 21:02:49.000000000 +0100
 @@ -38,7 +38,7 @@
  CURSES_LIB = @CURSES_LIB@
  GSL_LIB    = @GSL_LIB@

diff --git a/sci-calculators/orpie/files/orpie-1.5.1-nogsl.patch 
b/sci-calculators/orpie/files/orpie-1.5.2-nogsl.patch
similarity index 54%
copy from sci-calculators/orpie/files/orpie-1.5.1-nogsl.patch
copy to sci-calculators/orpie/files/orpie-1.5.2-nogsl.patch
index 45894f2..75a56a7 100644
--- a/sci-calculators/orpie/files/orpie-1.5.1-nogsl.patch
+++ b/sci-calculators/orpie/files/orpie-1.5.2-nogsl.patch
@@ -1,6 +1,6 @@
---- 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 @@
+--- orpie-1.5.2/Makefile.in
++++ orpie-1.5.2/Makefile.in
+@@ -44,7 +44,7 @@
  CURSES_LIB = @CURSES_LIB@
  GSL_LIB    = @GSL_LIB@
  
@@ -8,8 +8,8 @@
 +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 @@
+ 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)
  
@@ -18,9 +18,10 @@
 -              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_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
@@ -28,3 +29,23 @@
  
  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/orpie-1.5.2.ebuild 
b/sci-calculators/orpie/orpie-1.5.2.ebuild
new file mode 100644
index 0000000..ed7cc74
--- /dev/null
+++ b/sci-calculators/orpie/orpie-1.5.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+DEPEND="dev-ml/ocamlgsl
+       sys-libs/ncurses:0=
+       || ( <dev-lang/ocaml-4.02 dev-ml/camlp4 )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-1.5.1-ocaml311.patch"
+       "${FILESDIR}/${P}-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() {
+       default
+       if use doc; then
+               dodoc doc/manual.pdf
+               docinto html/
+               dodoc doc/manual.html
+       fi
+}

Reply via email to