View | Details | Raw Unified | Return to bug 194497
Collapse All | Expand All

(-)math/ump/Makefile (-8 / +9 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	ump
4
PORTNAME=	ump
5
PORTVERSION=	0.8.6
5
PORTVERSION=	0.8.6
6
PORTREVISION=	9
6
PORTREVISION=	10
7
CATEGORIES=	math
7
CATEGORIES=	math
8
MASTER_SITES=	SF/u-m-p/u-m-p/${PORTVERSION}
8
MASTER_SITES=	SF/u-m-p/u-m-p/${PORTVERSION}
9
PKGNAMESUFFIX=	-math
9
PKGNAMESUFFIX=	-math
Lines 11-34 Link Here
11
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
12
COMMENT=	Graphical, easy to use math program
12
COMMENT=	Graphical, easy to use math program
13
13
14
CONFLICTS=	ump-1.[0-9]*
14
LICENSE=	GPLv2
15
16
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
15
17
16
USES=		gmake pkgconfig tar:bzip2
18
USES=		gmake pkgconfig tar:bzip2
17
USE_GNOME=	gtk20
19
USE_GNOME=	gtk20
18
USE_GL=		glu
20
USE_GL=		glu
19
20
ALL_TARGET=	${PORTNAME}
21
ALL_TARGET=	${PORTNAME}
21
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
22
22
23
MAKE_ENV+=	DATADIR="${DATADIR}"
23
CONFLICTS=	ump-1.[0-9]*
24
25
DESKTOP_ENTRIES="Ump" "" "" "ump" "Education;Math;Science;GTK;" ""
24
26
25
FIND_DIRS=	-type d
26
FIND_DATA=	-type f
27
27
28
post-patch:
28
post-patch:
29
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/main.cpp
29
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/main.cpp
30
30
31
post-install:
31
post-install:
32
	${INSTALL_DATA} ${WRKSRC}/ump.conf ${STAGEDIR}${PREFIX}/etc/ump.conf.sample
32
	(cd ${WRKSRC} && ${INSTALL_DATA} ump.conf \
33
		${STAGEDIR}${PREFIX}/etc/ump.conf.sample)
33
34
34
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)math/ump/files/patch-Makefile (-1 / +1 lines)
Lines 7-13 Link Here
7
-BIN_DIR = /usr/bin
7
-BIN_DIR = /usr/bin
8
-DATA_DIR = /usr/share/$(APP_NAME)
8
-DATA_DIR = /usr/share/$(APP_NAME)
9
+BIN_DIR = $(PREFIX)/bin
9
+BIN_DIR = $(PREFIX)/bin
10
+DATA_DIR = $(DATADIR)
10
+DATA_DIR = $(PREFIX)/share/$(APP_NAME)
11
 
11
 
12
 
12
 
13
 ## One of these three flags must be uncommented
13
 ## One of these three flags must be uncommented
(-)math/ump/files/patch-src__real.cpp (+11 lines)
Line 0 Link Here
1
--- src/real.cpp.orig
2
+++ src/real.cpp
3
@@ -764,7 +764,7 @@
4
 }
5
 
6
 // converts a Real to a fraction
7
-Real frac(const Real &val, int32 highest_bottom_value) throw(error_obj)
8
+Real frac(const Real &val, int32 highest_bottom_value = 1000) throw(error_obj)
9
 {
10
 	if( highest_bottom_value < 1 )
11
 		THROW_ERROR( ErrorType_Domain, _("Domain error: Value out of range.") );
(-)math/ump/files/patch-src__real.h (+11 lines)
Line 0 Link Here
1
--- src/real.h.orig
2
+++ src/real.h
3
@@ -145,7 +145,7 @@
4
 	friend Real ipart(const Real &val) throw(error_obj);
5
 	friend Real fpart(const Real &val) throw(error_obj);
6
 	// converts a Real to a fraction
7
-	friend Real frac(const Real &val, int32 highest_bottom_value = 1000) throw(error_obj);
8
+	friend Real frac(const Real &val, int32 highest_bottom_value) throw(error_obj);
9
 	friend Real sign(const Real &val) throw(error_obj);
10
 
11
 	// val.isExact() must return true
(-)math/ump/pkg-descr (-3 / +3 lines)
Lines 1-5 Link Here
1
ump is a graphical, easy to use math program, which works with complex numbers,
1
ump is a graphical, easy to use math program, which works with complex
2
matrices, functions and much more.
2
numbers, matrices, functions and much more.
3
3
4
Author:	Mattias Hultgren
4
Author: Mattias Hultgren
5
WWW: http://u-m-p.sourceforge.net/
5
WWW: http://u-m-p.sourceforge.net/
(-)math/ump/pkg-plist (-2 lines)
Lines 19-23 Link Here
19
%%DATADIR%%/ump-files/lcm.ump
19
%%DATADIR%%/ump-files/lcm.ump
20
%%DATADIR%%/ump-files/sign.ump
20
%%DATADIR%%/ump-files/sign.ump
21
%%DATADIR%%/ump-files/trans.ump
21
%%DATADIR%%/ump-files/trans.ump
22
@dirrm %%DATADIR%%/ump-files
23
@dirrm %%DATADIR%%

Return to bug 194497