summaryrefslogtreecommitdiff
path: root/sci-mathematics/euler
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/euler
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/euler')
-rw-r--r--sci-mathematics/euler/Manifest10
-rw-r--r--sci-mathematics/euler/euler-1.61.0.ebuild42
-rw-r--r--sci-mathematics/euler/files/command-gcc4-gentoo.patch12
-rw-r--r--sci-mathematics/euler/files/configure-gentoo.patch37
-rw-r--r--sci-mathematics/euler/files/euler-fortify.patch36
-rw-r--r--sci-mathematics/euler/files/euler-glibc-2.4-gentoo.patch13
-rw-r--r--sci-mathematics/euler/files/euler-xdg.patch23
-rw-r--r--sci-mathematics/euler/metadata.xml11
8 files changed, 184 insertions, 0 deletions
diff --git a/sci-mathematics/euler/Manifest b/sci-mathematics/euler/Manifest
new file mode 100644
index 000000000000..cd60b01298c7
--- /dev/null
+++ b/sci-mathematics/euler/Manifest
@@ -0,0 +1,10 @@
+AUX command-gcc4-gentoo.patch 341 SHA256 9871a61e1a04efc3780c0a140eb86b055c6d2637e75a4316b3988580e93c0787 SHA512 a7fc90f924798faba502568e0fa44bef3717bf7d6ff4039d2379d837cd820fc05d51bc1ceadb985ec32c87a9f706789c726d9c833f087d5696e3573da0364276 WHIRLPOOL 2c260b806d9bbb2eba5210e3d15e2906a0d26112b126d0dbf5bcf48ab622aa4f68b49d0b94acbe06763472040542ddde0deeba6cb665791102857869270a877b
+AUX configure-gentoo.patch 884 SHA256 d35a06badcb2777db737c0ea26d347df7fb7dd44b00fce23c58920774f25569d SHA512 f5be6b7214c1898dd203b0c3b5cfe7edc7e6e7f47e7c4a39e85113d1affbd740f8cc413d38ace42672a4ac2224ce248092432beda91c0423f8726ac0b0fbd72a WHIRLPOOL 448a0746957356150f403551aa522170d9e1ce92bbb1dbe500bde1be09ed211e35929785d3f77dd02c21af6939282d68b12a8ead382972a4a4d90cffcb901b61
+AUX euler-fortify.patch 1150 SHA256 60e1496a994576fd5948c0dfce20cf75f0a45b0e24a5a71d0568159cfe4c29d7 SHA512 2ae0d856f4147a29f2cfd0e615c9ae39ed48ee765599527f529465b2f42ad64e7c2adb6a5ac4e25c72f09f0ee50ae6f09282d0f6af6cd976ecaecede847c2854 WHIRLPOOL 3842405b8ca97cf76148d46aa5135cbc607aea4370dbaf923595924d8a536f2f9aeecedaad1677589add97c97a9c993e0a353238dd0115f9c901c9fc921e4cf0
+AUX euler-glibc-2.4-gentoo.patch 349 SHA256 90b7dd6d35c38bf18adb64b1312912c4aeb3147ecc65b0899899cc05534d2fe6 SHA512 34cef14fb232a3156f84df23a9132392c03b30677cd067ffcabb866c938a6a0b43d431e8da2295ee431701d232cc6e05f30acecc901dcd4f19fa6424b185d463 WHIRLPOOL 42b24e95c1ba41be2a56414c3b5c307428ada62a8e6e7faaa3ce7d7d281d5c5e0228562fb07368d1114d2e23f5139b1253ac8c370c4abee419bc59fd2d6b8e64
+AUX euler-xdg.patch 918 SHA256 a475529fcab14e7e8f7c08ef84bb73e36c3c4126052b6839ee2962ab1617bfa0 SHA512 fdb89244a2365845857a11682d1499ea03ed37d01aedd4cf8c8869b8f0023fd58d7818ccb771924bc265bd518ba518637a11b2c80ea4e39ffee22431a7ca7ab6 WHIRLPOOL c7add434024723ef0d6805862df2abe6d8e6ef9cf19f4220741d51c1235e0a44f3deca31d9ae6a8ee046639140acd4e05d77f076f436ea3963f13db5b6331ba2
+DIST euler-1.61.0.tgz 1202485 SHA256 1350a3ded26fa8bab2580a1dc3a689aabbb100b872df62819327282773e02d95 SHA512 f8b9b0c6aa5aea4bd42bd33fff986a52c624c268ede11b83c2c53293a5acbda45317ecc719c12f377b236460c7ff0dba1d110ee8e90b526fc70af03ed0327b27 WHIRLPOOL 46967a4d5cb82a3fcc42730c8ecdb5b529e176bd6b9dcf1055e7790f9d15cfc85eda60bae66543a6cca1fda73cf88f15bc200ac1cdc5c10347a1237fcaa06aae
+EBUILD euler-1.61.0.ebuild 1014 SHA256 3731a44b452bc77a3f04485610689a816b7283f54a37327433c7d81ce0562547 SHA512 7d3f85e9ddf1abc0bb5a34729bba84aee784f60c00de7b808d26e8c584f08a209a5d0354c129fb7af739be0d4aff60c0db422e0c46600a60664f9870ab882dd6 WHIRLPOOL 012ed95944d4ac93b63a3d91732c593f98bc4efafa427b4c695bc9b2c8e4d152d533434d1ebdc3c50f76273a1e85b47a2c79e3c671e4cd9e7222c62106cb9af5
+MISC ChangeLog 2588 SHA256 4520e95ffe80a316d414e81d3fb6acd4418c80daeb02a78b96939abe7c0bfc09 SHA512 e3008da88aeb9960b88a77b084d0272851fdc60f37e5043355849d6a5c00fba4326a702b32f105805d6beedfe724069e2643c896bcbefa0b078d9746a642fd92 WHIRLPOOL f09720a17dc0b2001caaf13fab4cb98c9533f1658b386c9ec1a4be9fc65f7ddef75306dcc2eb2f7775f7b1f765efb9986e20ba81b79ce27977ead8bfbe3a4411
+MISC ChangeLog-2015 5487 SHA256 782af35e2ac606b08c03b95299d124d95796b62dd7c7120bbddcaac9cc039af1 SHA512 f99a67efaad65986ffcfc33a90751ac454f97728cd1448936fd189539428ea1b796840ef0a08d93ac3e38556668b8acd06b54b8c7d7498f9aa802cad680c8318 WHIRLPOOL 9a10e237a9554544b1ec1a342677b7841c452447380d557344545a89317b117eeb3a441b2bb2c46cbd07c19a1cb162a8458fa88e5e40110f216ce57b5f676b30
+MISC metadata.xml 344 SHA256 da0533c24b4bf7052321e84d9f8449b3cb5f7aa9d5ec9cf3b6bdee4f9835b411 SHA512 77983d74c782fcccc0b146e8687f29657387bbe048af00078f8decb3c84c1e288f48c8f29c35bf8c606e6a9306d3d258697f8e2ff07129fb59551d05c694cd82 WHIRLPOOL 46ea2a8c0549c6bd00eae91153ad33c7cbae5bebd043deb2013ce1b63e6e21ad42ebcb0ac556cae4ce1f4c6c64978a3ba8930404b90b99570b363de0ec4ef0e1
diff --git a/sci-mathematics/euler/euler-1.61.0.ebuild b/sci-mathematics/euler/euler-1.61.0.ebuild
new file mode 100644
index 000000000000..a938c5786928
--- /dev/null
+++ b/sci-mathematics/euler/euler-1.61.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+inherit autotools-utils
+
+DESCRIPTION="Mathematical programming environment"
+HOMEPAGE="http://euler.sourceforge.net/"
+SRC_URI="mirror://sourceforge/euler/${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc -sparc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="x11-libs/gtk+:2
+ virtual/pkgconfig"
+
+RDEPEND="x11-libs/gtk+:2
+ x11-misc/xdg-utils"
+
+PATCHES=(
+ "${FILESDIR}"/configure-gentoo.patch
+ "${FILESDIR}"/command-gcc4-gentoo.patch
+ "${FILESDIR}"/${PN}-glibc-2.4-gentoo.patch
+ "${FILESDIR}"/${PN}-xdg.patch
+ "${FILESDIR}"/${PN}-fortify.patch
+)
+
+src_prepare() {
+ # gentoo specific stuff
+ sed -i -e '/COPYING/d' -e '/INSTALL/d' Makefile.am || die
+ sed -i \
+ -e "s:doc/euler:doc/${PF}:g" \
+ Makefile.am docs/Makefile.am \
+ docs/*/Makefile.am docs/*/images/Makefile.am src/main.c \
+ || die "sed for docs failed"
+ autotools-utils_src_prepare
+}
diff --git a/sci-mathematics/euler/files/command-gcc4-gentoo.patch b/sci-mathematics/euler/files/command-gcc4-gentoo.patch
new file mode 100644
index 000000000000..c405d65bd76e
--- /dev/null
+++ b/sci-mathematics/euler/files/command-gcc4-gentoo.patch
@@ -0,0 +1,12 @@
+diff -Naur euler-1.61.0/src/command.c euler-1.61.0-new/src/command.c
+--- euler-1.61.0/src/command.c 2005-10-24 00:38:24.000000000 +0000
++++ euler-1.61.0-new/src/command.c 2006-02-08 23:30:43.000000000 +0000
+@@ -732,7 +732,7 @@
+ }
+
+
+-static int command_count;
++int command_count;
+
+ commandtyp command_list[] = {
+ {"quit",c_quit,do_quit},
diff --git a/sci-mathematics/euler/files/configure-gentoo.patch b/sci-mathematics/euler/files/configure-gentoo.patch
new file mode 100644
index 000000000000..e1e7c6ef1e6b
--- /dev/null
+++ b/sci-mathematics/euler/files/configure-gentoo.patch
@@ -0,0 +1,37 @@
+diff -Naur euler-1.61.0/configure.in euler-1.61.0-new/configure.in
+--- euler-1.61.0/configure.in 2005-10-30 16:40:27.000000000 +0000
++++ euler-1.61.0-new/configure.in 2006-02-08 23:38:54.000000000 +0000
+@@ -8,8 +8,6 @@
+ AM_CONFIG_HEADER(config.h)
+
+ AC_ISC_POSIX
+-CFLAGS=""
+-AC_SUBST(CFLAGS)
+ AC_PROG_CC
+ AM_PROG_CC_STDC
+ AC_HEADER_STDC
+@@ -21,6 +19,10 @@
+
+
+ dnl Checks for libraries.
++dnl Check for libm for fmod()
++AC_SEARCH_LIBS([fmod], [m], [], [
++ AC_MSG_ERROR([unable to find the fmod() function])
++])
+
+
+ dnl Checks for header files.
+diff -Naur euler-1.61.0/src/Makefile.am euler-1.61.0-new/src/Makefile.am
+--- euler-1.61.0/src/Makefile.am 2005-10-30 22:48:35.000000000 +0000
++++ euler-1.61.0-new/src/Makefile.am 2006-02-08 23:41:32.000000000 +0000
+@@ -7,10 +7,6 @@
+ INCLUDES = \
+ $(GTK_CFLAGS)
+
+-AM_CFLAGS =\
+- -Wall\
+- -O3
+-
+ bin_PROGRAMS = euler
+
+ euler_SOURCES = \
diff --git a/sci-mathematics/euler/files/euler-fortify.patch b/sci-mathematics/euler/files/euler-fortify.patch
new file mode 100644
index 000000000000..efb366e2cc04
--- /dev/null
+++ b/sci-mathematics/euler/files/euler-fortify.patch
@@ -0,0 +1,36 @@
+diff -Nur euler-1.61.0.orig/src/command.c euler-1.61.0/src/command.c
+--- euler-1.61.0.orig/src/command.c 2010-11-19 17:50:54.000000000 +0000
++++ euler-1.61.0/src/command.c 2010-11-19 18:23:11.000000000 +0000
+@@ -606,7 +606,7 @@
+ void do_help (void)
+ { char name[256];
+ header *hd;
+- int count,i,defaults;
++ size_t count,i,defaults;
+ char *p,*end,*pnote;
+ builtintyp *b;
+ scan_space();
+diff -Nur euler-1.61.0.orig/src/stack.h euler-1.61.0/src/stack.h
+--- euler-1.61.0.orig/src/stack.h 2010-11-19 17:50:54.000000000 +0000
++++ euler-1.61.0/src/stack.h 2010-11-19 18:19:23.000000000 +0000
+@@ -63,7 +63,7 @@
+ #endif
+ } dims;
+
+-typedef struct { unsigned long s; } inttyp;
++typedef struct { size_t s; } inttyp;
+
+ typedef struct { header hd; double val; } realtyp;
+
+diff -Nur euler-1.61.0.orig/src/udf.c euler-1.61.0/src/udf.c
+--- euler-1.61.0.orig/src/udf.c 2010-11-19 17:50:54.000000000 +0000
++++ euler-1.61.0/src/udf.c 2010-11-19 18:21:20.000000000 +0000
+@@ -334,7 +334,7 @@
+ { char name[16];
+ header *hd;
+ char *p,*pnote;
+- int i,count,defaults;
++ size_t i,count,defaults;
+ builtintyp *b;
+ scan_space();
+ scan_name(name); hd=searchudf(name);
diff --git a/sci-mathematics/euler/files/euler-glibc-2.4-gentoo.patch b/sci-mathematics/euler/files/euler-glibc-2.4-gentoo.patch
new file mode 100644
index 000000000000..da377bd5f3ba
--- /dev/null
+++ b/sci-mathematics/euler/files/euler-glibc-2.4-gentoo.patch
@@ -0,0 +1,13 @@
+# patch to fix missing CLK_TCK in glibc 2.4
+
+--- src/main.c. 2006-04-04 15:05:34.000000000 +0200
++++ src/main.c 2006-04-04 15:09:20.000000000 +0200
+@@ -439,7 +439,7 @@
+ gettimer(TIMEOFDAY,&t);
+ return (t.tv_sec+t.tv_nsec/1000000000.0);
+ #else
+- return ((double)(times(NULL)))/CLK_TCK;
++ return ((double)(times(NULL)))/CLOCKS_PER_SEC;
+ #endif
+ }
+
diff --git a/sci-mathematics/euler/files/euler-xdg.patch b/sci-mathematics/euler/files/euler-xdg.patch
new file mode 100644
index 000000000000..cb1bf54a2bbb
--- /dev/null
+++ b/sci-mathematics/euler/files/euler-xdg.patch
@@ -0,0 +1,23 @@
+--- docs/doc.html.orig 2008-01-07 23:11:25.490634852 +0000
++++ docs/doc.html 2008-01-07 23:13:57.652980222 +0000
+@@ -184,7 +184,8 @@
+ <div align=center><img src="images/pref3.gif"></div>
+
+ <p align="justify">Finally, You can set a flag to let Euler save preferences at exit (the default).
+-You may choose another browser than the one suggested (netscape by default). And
++You may choose another browser than the one suggested (your default
++ desktop browser is selected with xdg-open by default). And
+ You can also reset the preferences to the default values.</p>
+ <div align=center><img src="images/pref4.gif"></div>
+
+--- src/rc.h.orig 2008-01-07 23:15:36.617118688 +0000
++++ src/rc.h 2008-01-07 23:15:54.097371330 +0000
+@@ -26,7 +26,7 @@
+ #define E_GSTACK_DEFAULT 4*1024l
+ #define E_GLINES_DEFAULT 40
+
+-#define E_BROWSER_DEFAULT "netscape"
++#define E_BROWSER_DEFAULT "xdg-open"
+
+ #define MAX_COLORS 16
+
diff --git a/sci-mathematics/euler/metadata.xml b/sci-mathematics/euler/metadata.xml
new file mode 100644
index 000000000000..e24974c021f4
--- /dev/null
+++ b/sci-mathematics/euler/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">euler</remote-id>
+ </upstream>
+</pkgmetadata>