mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
Add orpie 1.3.1, a fullscreen RPN calculator for the console.
PR: 70054 Submitted by: Dylan Simon
This commit is contained in:
parent
0f39a6456b
commit
499e98584d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115770
@ -113,6 +113,7 @@
|
||||
SUBDIR += octave
|
||||
SUBDIR += octave-forge
|
||||
SUBDIR += oleo
|
||||
SUBDIR += orpie
|
||||
SUBDIR += p5-AI-DecisionTree
|
||||
SUBDIR += p5-AI-NeuralNet-BackProp
|
||||
SUBDIR += p5-AI-NeuralNet-Mesh
|
||||
|
30
math/orpie/Makefile
Normal file
30
math/orpie/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# New ports collection makefile for: orpie
|
||||
# Date created: 4 August 2004
|
||||
# Whom: Dylan Simon <dylan@dylex.net>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= orpie
|
||||
PORTVERSION= 1.3.1
|
||||
CATEGORIES+= math
|
||||
MASTER_SITES= http://www.eecs.umich.edu/~pelzlpj/orpie/
|
||||
|
||||
MAINTAINER= dylan@dylex.net
|
||||
COMMENT= A fullscreen RPN calculator for the console
|
||||
|
||||
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
|
||||
LIB_DEPENDS= gsl.6:${PORTSDIR}/math/gsl
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
PLIST_FILES= bin/orpie bin/orpie-curses-keys etc/orpierc
|
||||
|
||||
MAN1= orpie.1 orpie-curses-keys.1
|
||||
MAN5= orpierc.5
|
||||
|
||||
.include <bsd.port.mk>
|
2
math/orpie/distinfo
Normal file
2
math/orpie/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (orpie-1.3.1.tar.gz) = d8736e97113d15ff690e6d09f35c710e
|
||||
SIZE (orpie-1.3.1.tar.gz) = 274790
|
53
math/orpie/files/patch-Makefile
Normal file
53
math/orpie/files/patch-Makefile
Normal file
@ -0,0 +1,53 @@
|
||||
--- Makefile.in.orig Thu Jul 22 11:33:41 2004
|
||||
+++ Makefile.in Thu Aug 5 11:49:03 2004
|
||||
@@ -41,8 +41,8 @@
|
||||
INCLUDES = -I ./curses -I ./gsl
|
||||
BFLAGS = -pp camlp4o -g $(INCLUDES) -thread
|
||||
OFLAGS = -pp camlp4o $(INCLUDES) -thread
|
||||
-BLFLAGS = -custom -cclib '$(CURSES_LIB) $(GSL_LIB) -lm'
|
||||
-OLFLAGS = -cclib '$(CURSES_LIB) $(GSL_LIB) -lm'
|
||||
+BLFLAGS = -custom -cclib '@LDFLAGS@ $(CURSES_LIB) $(GSL_LIB) -lm'
|
||||
+OLFLAGS = -cclib '@LDFLAGS@ $(CURSES_LIB) $(GSL_LIB) -lm'
|
||||
DEPFLAGS = -pp camlp4o
|
||||
|
||||
# main target
|
||||
@@ -144,21 +144,21 @@
|
||||
mkdir -p $(DESTDIR)/$(prefix)/etc; \
|
||||
install -m 644 orpierc $(DESTDIR)/$(prefix)/etc; \
|
||||
fi
|
||||
- install -m 644 -D doc/orpie.1 $(MANDIR)/man1/orpie.1
|
||||
- install -m 644 -D doc/orpie-curses-keys.1 $(MANDIR)/man1/orpie-curses-keys.1
|
||||
- install -m 644 -D doc/orpierc.5 $(MANDIR)/man5/orpierc.5
|
||||
+ install -m 644 doc/orpie.1 $(MANDIR)/man1/orpie.1
|
||||
+ install -m 644 doc/orpie-curses-keys.1 $(MANDIR)/man1/orpie-curses-keys.1
|
||||
+ install -m 644 doc/orpierc.5 $(MANDIR)/man5/orpierc.5
|
||||
|
||||
install: install-indep
|
||||
- install -m 755 -D $(NAME).$(OCAMLBEST) $(BINDIR)/$(NAME)$(EXE)
|
||||
- install -m 755 -D $(NAME2).$(OCAMLBEST) $(BINDIR)/$(NAME2)$(EXE)
|
||||
+ install -m 755 $(NAME).$(OCAMLBEST) $(BINDIR)/$(NAME)$(EXE)
|
||||
+ install -m 755 $(NAME2).$(OCAMLBEST) $(BINDIR)/$(NAME2)$(EXE)
|
||||
|
||||
install-byte: install-indep
|
||||
- install -m 755 -D $(NAME).byte $(BINDIR)/$(NAME)$(EXE)
|
||||
- install -m 755 -D $(NAME2).byte $(BINDIR)/$(NAME2)$(EXE)
|
||||
+ install -m 755 $(NAME).byte $(BINDIR)/$(NAME)$(EXE)
|
||||
+ install -m 755 $(NAME2).byte $(BINDIR)/$(NAME2)$(EXE)
|
||||
|
||||
install-opt: install-indep
|
||||
- install -m 755 -D $(NAME).opt $(BINDIR)/$(NAME)$(EXE)
|
||||
- install -m 755 -D $(NAME2).opt $(BINDIR)/$(NAME2)$(EXE)
|
||||
+ install -m 755 $(NAME).opt $(BINDIR)/$(NAME)$(EXE)
|
||||
+ install -m 755 $(NAME2).opt $(BINDIR)/$(NAME2)$(EXE)
|
||||
|
||||
uninstall:
|
||||
rm -f $(BINDIR)/$(NAME)$(EXE)
|
||||
@@ -185,7 +185,7 @@
|
||||
GSL_INCLUDES = -I ./gsl
|
||||
GSL_BFLAGS = -g $(GSL_INCLUDES) -thread
|
||||
GSL_OFLAGS = $(GSL_INCLUDES) -thread
|
||||
-GSL_CFLAGS = -Wall -fPIC -DPIC
|
||||
+GSL_CFLAGS = -Wall -fPIC -DPIC @CPPFLAGS@
|
||||
|
||||
gsl/%.cmi : gsl/%.mli
|
||||
$(OCAMLC) -c $(GSL_BFLAGS) $<
|
11
math/orpie/files/patch-gsl::wrappers.h
Normal file
11
math/orpie/files/patch-gsl::wrappers.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- gsl/wrappers.h.orig Thu Jul 22 11:33:38 2004
|
||||
+++ gsl/wrappers.h Thu Aug 5 11:10:31 2004
|
||||
@@ -70,7 +70,7 @@
|
||||
#define CONCAT3(a,b,c) CONCAT3x(a,b,c)
|
||||
|
||||
#ifndef DONT_USE_ALLOCA
|
||||
-#include <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
#define LOCALARRAY(type, x, len) type * x = ( type *) alloca(sizeof( type ) * (len))
|
||||
#else
|
||||
#define LOCALARRAY(type, x, len) type x [(len)]
|
10
math/orpie/pkg-descr
Normal file
10
math/orpie/pkg-descr
Normal file
@ -0,0 +1,10 @@
|
||||
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. Features include extensive scientific calculator
|
||||
functionality, command completion, and a visible interactive stack.
|
||||
|
||||
Orpie is the successor of math/rpc by the same author; it has been completely
|
||||
rewritten in Ocaml, and offers a number of features that were not available in
|
||||
the older program.
|
||||
|
||||
WWW: http://www.eecs.umich.edu/~pelzlpj/orpie/
|
Loading…
Reference in New Issue
Block a user