mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
math/ump: Finish original "fix on current"
Back on 10 OCT 2014 when the PR was opened, this unmaintained port didn't build on current. The PR stagnanted due to an unanswered question and the port was eventually fixed by amdmi3 on 21 NOV. Let's go ahead and make the remaining changes which include adding a license (GPLv2), defining desktop entries, tweaking pkg-descr, and make real_frac function match its changed header (for clang). PR: 194497 Submitted by: Ports Fury
This commit is contained in:
parent
db0c2c9741
commit
d5bfd7b9e8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378549
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= ump
|
||||
PORTVERSION= 0.8.6
|
||||
PORTREVISION= 9
|
||||
PORTREVISION= 10
|
||||
CATEGORIES= math
|
||||
MASTER_SITES= SF/u-m-p/u-m-p/${PORTVERSION}
|
||||
PKGNAMESUFFIX= -math
|
||||
@ -11,7 +11,7 @@ PKGNAMESUFFIX= -math
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Graphical, easy to use math program
|
||||
|
||||
CONFLICTS= ump-1.[0-9]*
|
||||
LICENSE= GPLv2
|
||||
|
||||
USES= gmake pkgconfig tar:bzip2
|
||||
USE_GNOME= gtk20
|
||||
@ -20,15 +20,15 @@ USE_GL= glu
|
||||
ALL_TARGET= ${PORTNAME}
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
MAKE_ENV+= DATADIR="${DATADIR}"
|
||||
CONFLICTS= ump-1.[0-9]*
|
||||
|
||||
FIND_DIRS= -type d
|
||||
FIND_DATA= -type f
|
||||
DESKTOP_ENTRIES="Ump" "" "" "ump" "Education;Math;Science;GTK;" ""
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/main.cpp
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/ump.conf ${STAGEDIR}${PREFIX}/etc/ump.conf.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/ump.conf \
|
||||
${STAGEDIR}${PREFIX}/etc/ump.conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -7,7 +7,7 @@
|
||||
-BIN_DIR = /usr/bin
|
||||
-DATA_DIR = /usr/share/$(APP_NAME)
|
||||
+BIN_DIR = $(PREFIX)/bin
|
||||
+DATA_DIR = $(DATADIR)
|
||||
+DATA_DIR = $(PREFIX)/share/$(APP_NAME)
|
||||
|
||||
|
||||
## One of these three flags must be uncommented
|
||||
|
11
math/ump/files/patch-src__real.cpp
Normal file
11
math/ump/files/patch-src__real.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/real.cpp.orig
|
||||
+++ src/real.cpp
|
||||
@@ -764,7 +764,7 @@
|
||||
}
|
||||
|
||||
// converts a Real to a fraction
|
||||
-Real frac(const Real &val, int32 highest_bottom_value) throw(error_obj)
|
||||
+Real frac(const Real &val, int32 highest_bottom_value = 1000) throw(error_obj)
|
||||
{
|
||||
if( highest_bottom_value < 1 )
|
||||
THROW_ERROR( ErrorType_Domain, _("Domain error: Value out of range.") );
|
@ -1,5 +1,4 @@
|
||||
ump is a graphical, easy to use math program, which works with complex numbers,
|
||||
matrices, functions and much more.
|
||||
ump is a graphical, easy to use math program, which works with complex
|
||||
numbers, matrices, functions and much more.
|
||||
|
||||
Author: Mattias Hultgren
|
||||
WWW: http://u-m-p.sourceforge.net/
|
||||
|
Loading…
Reference in New Issue
Block a user