summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2016-01-15 21:05:31 +0100
committerDavid Seifert <soap@gentoo.org>2016-01-15 21:05:50 +0100
commited17eafae70d603a08e343986b6dc6ad7b963c04 (patch)
tree18031c2c8b7b033624dffae24b464e9c9fa7e7ae /sci-libs/primegen/files
parentgames-fps/doomsday: fix building with USE=-openal (bug #571982); add missing ... (diff)
downloadgentoo-ed17eafae70d603a08e343986b6dc6ad7b963c04.tar.gz
gentoo-ed17eafae70d603a08e343986b6dc6ad7b963c04.tar.bz2
gentoo-ed17eafae70d603a08e343986b6dc6ad7b963c04.zip
sci-libs/primegen: Fix man page to remove 'struct' keyword
Gentoo-Bug: 562570 In addition, modernize to EAPI=6 and amend patches accordingly. Package-Manager: portage-2.2.26
Diffstat (limited to 'sci-libs/primegen/files')
-rw-r--r--sci-libs/primegen/files/primegen-0.97-man.patch19
-rw-r--r--sci-libs/primegen/files/primegen-0.97-missing-headers.patch20
2 files changed, 25 insertions, 14 deletions
diff --git a/sci-libs/primegen/files/primegen-0.97-man.patch b/sci-libs/primegen/files/primegen-0.97-man.patch
index 025b88cbabd9..069409f1df76 100644
--- a/sci-libs/primegen/files/primegen-0.97-man.patch
+++ b/sci-libs/primegen/files/primegen-0.97-man.patch
@@ -1,7 +1,18 @@
-diff -Naurp primegen-0.97-orig/primegen.3 primegen-0.97/primegen.3
---- primegen-0.97-orig/primegen.3 2008-07-23 22:27:52.000000000 +0200
-+++ primegen-0.97/primegen.3 2008-07-23 22:26:52.000000000 +0200
-@@ -21,6 +21,9 @@ uint64 \fIbound\fR;
+Fix incorrect man page and include mention of the possibility
+of linking to a static libary only.
+https://bugs.gentoo.org/show_bug.cgi?id=562570
+
+--- primegen-0.97/primegen.3
++++ primegen-0.97/primegen.3
+@@ -14,13 +14,16 @@
+ .br
+ void \fBprimegen_skipto\fP(&\fIpg\fR,\fIbound\fR);
+
+-struct primegen \fIpg\fR;
++primegen \fIpg\fR;
+ .br
+ uint64 \fIbound\fR;
+ .SH DESCRIPTION
The primegen library generates prime numbers in order:
2, 3, 5, 7, etc.
It can generate primes as large as 10^15.
diff --git a/sci-libs/primegen/files/primegen-0.97-missing-headers.patch b/sci-libs/primegen/files/primegen-0.97-missing-headers.patch
index 4f919d92ee8d..51f1aaac3823 100644
--- a/sci-libs/primegen/files/primegen-0.97-missing-headers.patch
+++ b/sci-libs/primegen/files/primegen-0.97-missing-headers.patch
@@ -1,5 +1,5 @@
---- eratspeed.c.orig 2009-03-27 09:16:52.000000000 -0300
-+++ eratspeed.c 2009-03-27 09:18:29.000000000 -0300
+--- primegen-0.97/eratspeed.c.orig 2009-03-27 09:16:52.000000000 -0300
++++ primegen-0.97/eratspeed.c 2009-03-27 09:18:29.000000000 -0300
@@ -1,6 +1,8 @@
#define B32 1001
#define B (B32 * 32)
@@ -9,32 +9,32 @@
#include "timing.h"
#include "uint32.h"
---- primegaps.c.orig 2009-03-27 09:17:07.000000000 -0300
-+++ primegaps.c 2009-03-27 09:17:19.000000000 -0300
+--- primegen-0.97/primegaps.c.orig 2009-03-27 09:17:07.000000000 -0300
++++ primegen-0.97/primegaps.c 2009-03-27 09:17:19.000000000 -0300
@@ -1,4 +1,5 @@
#include <math.h>
+#include <stdio.h>
#include "primegen.h"
primegen pg;
---- primes.c.orig 2009-03-27 09:19:08.000000000 -0300
-+++ primes.c 2009-03-27 09:19:14.000000000 -0300
+--- primegen-0.97/primes.c.orig 2009-03-27 09:19:08.000000000 -0300
++++ primegen-0.97/primes.c 2009-03-27 09:19:14.000000000 -0300
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include "primegen.h"
#include "fs64.h"
---- primespeed.c.orig 2009-03-27 09:17:41.000000000 -0300
-+++ primespeed.c 2009-03-27 09:18:54.000000000 -0300
+--- primegen-0.97/primespeed.c.orig 2009-03-27 09:17:41.000000000 -0300
++++ primegen-0.97/primespeed.c 2009-03-27 09:18:54.000000000 -0300
@@ -1,3 +1,5 @@
+#include <stdio.h>
+#include <stdlib.h>
#include "timing.h"
#include "primegen.h"
#include "primegen_impl.h"
---- error.h.orig 2009-09-11 19:40:53.000000000 +0100
-+++ error.h 2009-09-11 19:41:02.000000000 +0100
+--- primegen-0.97/error.h.orig 2009-09-11 19:40:53.000000000 +0100
++++ primegen-0.97/error.h 2009-09-11 19:41:02.000000000 +0100
@@ -1,7 +1,7 @@
#ifndef ERROR_H
#define ERROR_H