Import galculator 1.1.1. ok marcm@
galculator is a GTK2-based scientific calculator with ordinary notation/reverse polish notation, different number bases (DEC, HEX, OCT, BIN) and different units of angular measure (DEG, RAD, GRAD).
This commit is contained in:
parent
2113a2a99d
commit
044ec4c6fd
27
math/galculator/Makefile
Normal file
27
math/galculator/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/06/25 21:58:05 naddy Exp $
|
||||
|
||||
COMMENT= "GTK2-based scientific calculator"
|
||||
|
||||
DISTNAME= galculator-1.1.1
|
||||
CATEGORIES= math
|
||||
HOMEPAGE= http://galculator.sourceforge.net/
|
||||
|
||||
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=galculator/}
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
LIB_DEPENDS= glade-2.0.0.1::devel/libglade2
|
||||
|
||||
USE_GMAKE= Yes
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
.include <bsd.port.mk>
|
3
math/galculator/distinfo
Normal file
3
math/galculator/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (galculator-1.1.1.tar.bz2) = 58e495b9ceb8ac8f16a8d1ab344fe1b1
|
||||
RMD160 (galculator-1.1.1.tar.bz2) = 8cd6ae2160f415c69cc7c9c3c937dfa23167b07d
|
||||
SHA1 (galculator-1.1.1.tar.bz2) = c05b761c75c2b6316b6877af3e8f8d330edc68d3
|
20
math/galculator/patches/patch-configure
Normal file
20
math/galculator/patches/patch-configure
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2003/06/25 21:58:05 naddy Exp $
|
||||
--- configure.orig Wed Jun 25 16:24:13 2003
|
||||
+++ configure Wed Jun 25 17:13:12 2003
|
||||
@@ -4003,6 +4003,8 @@ done
|
||||
fi
|
||||
|
||||
if test "$gt_cv_have_gettext" = "yes"; then
|
||||
+save_LIBS=$LIBS
|
||||
+LIBS="$INTLLIBS $LIBS"
|
||||
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define HAVE_GETTEXT 1
|
||||
@@ -4334,6 +4336,7 @@ rm -f conftest.$ac_objext conftest$ac_ex
|
||||
gt_cv_have_gettext=no
|
||||
fi
|
||||
fi
|
||||
+LIBS=$save_LIBS
|
||||
|
||||
fi
|
||||
|
12
math/galculator/patches/patch-galculator_desktop_in
Normal file
12
math/galculator/patches/patch-galculator_desktop_in
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-galculator_desktop_in,v 1.1.1.1 2003/06/25 21:58:05 naddy Exp $
|
||||
--- galculator.desktop.in.orig Wed Jun 25 21:41:08 2003
|
||||
+++ galculator.desktop.in Wed Jun 25 21:41:16 2003
|
||||
@@ -1,7 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Name=galculator
|
||||
_Comment=Scientific calculator
|
||||
-Exec=/usr/bin/galculator
|
||||
+Exec=galculator
|
||||
Icon=gnome-calc2.png
|
||||
Terminal=false
|
||||
Type=Application
|
56
math/galculator/patches/patch-src_general_functions_c
Normal file
56
math/galculator/patches/patch-src_general_functions_c
Normal file
@ -0,0 +1,56 @@
|
||||
$OpenBSD: patch-src_general_functions_c,v 1.1.1.1 2003/06/25 21:58:05 naddy Exp $
|
||||
--- src/general_functions.c.orig Wed Jun 25 15:52:20 2003
|
||||
+++ src/general_functions.c Wed Jun 25 15:52:55 2003
|
||||
@@ -512,14 +512,6 @@ void set_object_data (GladeXML *xml)
|
||||
{"button_parclose", ')'},\
|
||||
{NULL}\
|
||||
};
|
||||
-
|
||||
- while (operation_map[counter].button_name != NULL) {
|
||||
- g_object_set_data (G_OBJECT (glade_xml_get_widget (xml,
|
||||
- operation_map[counter].button_name)),
|
||||
- "operation", GINT_TO_POINTER(operation_map[counter].operation));
|
||||
- counter++;
|
||||
- }
|
||||
- counter = 0;
|
||||
|
||||
s_gfunc_map gfunc_map[] = {\
|
||||
{"button_sign", display_result_toggle_sign},\
|
||||
@@ -530,14 +522,6 @@ void set_object_data (GladeXML *xml)
|
||||
{NULL}\
|
||||
};
|
||||
|
||||
- while (gfunc_map[counter].button_name != NULL) {
|
||||
- g_object_set_data (G_OBJECT (glade_xml_get_widget (xml,
|
||||
- gfunc_map[counter].button_name)),
|
||||
- "func", gfunc_map[counter].func);
|
||||
- counter++;
|
||||
- };
|
||||
- counter = 0;
|
||||
-
|
||||
s_function_map function_map[] = {\
|
||||
{"button_sin", {sin, asin, sinh, sin}, TRUE},\
|
||||
{"button_cos", {cos, acos, cosh, cos}, TRUE},\
|
||||
@@ -551,6 +535,22 @@ void set_object_data (GladeXML *xml)
|
||||
{"button_cmp", {cmp, cmp, cmp, cmp}, FALSE},\
|
||||
{NULL}\
|
||||
};
|
||||
+
|
||||
+ while (operation_map[counter].button_name != NULL) {
|
||||
+ g_object_set_data (G_OBJECT (glade_xml_get_widget (xml,
|
||||
+ operation_map[counter].button_name)),
|
||||
+ "operation", GINT_TO_POINTER(operation_map[counter].operation));
|
||||
+ counter++;
|
||||
+ }
|
||||
+ counter = 0;
|
||||
+
|
||||
+ while (gfunc_map[counter].button_name != NULL) {
|
||||
+ g_object_set_data (G_OBJECT (glade_xml_get_widget (xml,
|
||||
+ gfunc_map[counter].button_name)),
|
||||
+ "func", gfunc_map[counter].func);
|
||||
+ counter++;
|
||||
+ };
|
||||
+ counter = 0;
|
||||
|
||||
while (function_map[counter].button_name != NULL) {
|
||||
func = (void *) malloc (sizeof (function_map[counter].func));
|
5
math/galculator/pkg/DESCR
Normal file
5
math/galculator/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
galculator is a GTK2-based scientific calculator with ordinary
|
||||
notation/reverse polish notation, different number bases (DEC, HEX,
|
||||
OCT, BIN) and different units of angular measure (DEG, RAD, GRAD).
|
||||
|
||||
WWW: ${HOMEPAGE}
|
16
math/galculator/pkg/PLIST
Normal file
16
math/galculator/pkg/PLIST
Normal file
@ -0,0 +1,16 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/06/25 21:58:05 naddy Exp $
|
||||
bin/galculator
|
||||
man/man1/galculator.1
|
||||
share/applications/galculator.desktop
|
||||
share/galculator/glade/about.glade
|
||||
share/galculator/glade/color.glade
|
||||
share/galculator/glade/font.glade
|
||||
share/galculator/glade/main.glade
|
||||
share/galculator/glade/prefs.glade
|
||||
share/locale/de/LC_MESSAGES/galculator.mo
|
||||
@comment @dirrm share/locale/de/LC_MESSAGES
|
||||
@comment @dirrm share/locale/de
|
||||
@comment @dirrm share/locale
|
||||
@dirrm share/galculator/glade
|
||||
@dirrm share/galculator
|
||||
@comment @dirrm share/applications
|
Loading…
Reference in New Issue
Block a user