summaryrefslogtreecommitdiff
path: root/app-text/pinfo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/pinfo
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/pinfo')
-rw-r--r--app-text/pinfo/Manifest16
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-clearfilenameprefix.patch10
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-dir-file.patch11
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-gcc-7-inline.patch42
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-gettext-0.19.patch110
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch28
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-libc-basename.patch33
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-ncurses-check.patch14
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-tinfo.patch40
-rw-r--r--app-text/pinfo/files/pinfo-0.6.10-version.patch11
-rw-r--r--app-text/pinfo/files/pinfo-0.6.9-GROFF_NO_SGR.patch10
-rw-r--r--app-text/pinfo/files/pinfo-0.6.9-as-needed.patch22
-rw-r--r--app-text/pinfo/files/pinfo-0.6.9-lzma-xz.patch21
-rw-r--r--app-text/pinfo/metadata.xml7
-rw-r--r--app-text/pinfo/pinfo-0.6.10-r5.ebuild55
-rw-r--r--app-text/pinfo/pinfo-0.6.10-r6.ebuild59
16 files changed, 489 insertions, 0 deletions
diff --git a/app-text/pinfo/Manifest b/app-text/pinfo/Manifest
new file mode 100644
index 000000000000..9cb8f4f0f1a0
--- /dev/null
+++ b/app-text/pinfo/Manifest
@@ -0,0 +1,16 @@
+AUX pinfo-0.6.10-clearfilenameprefix.patch 278 BLAKE2B 678ebf0333898651407e36315a38f6ca1e0ca8b3e7f1597496796de0d8a55d37ccfe94c77740e9b92e6f708fadc2511ce3d4c8a098d91ed2211a56e048d1e7c1 SHA512 6d4b0e19c94011eacdaca85e6a566f296d8e41e89c7687d25e5aa6c3e155f0a51112d59fe9bebafa83144469a1bce85400559812adc7d7ad8990b80712b45906
+AUX pinfo-0.6.10-dir-file.patch 280 BLAKE2B 32b728969d23902dde2aed942cf5c21dc87fb5c1bff11c90dcece36fe67698b242a74b8ab74f91a172b28d3c548afd46404e0d956f4673980f8abfe0944932e4 SHA512 bcc16752f2c98b7c013ec1dae84ada89f44d6c00298ed5069b2098674bedcb31bf9e29d3e5c821398518fd59e0fbd84e9141dad2885c55d5a3c76ef728a24b50
+AUX pinfo-0.6.10-gcc-7-inline.patch 835 BLAKE2B 41c2bfe79b6b2afc86ba20718d6cbfa414ef0045c8d64262639e7731ebfd2e340d6f7217bd25020f6dbd333f6a994c5fde368bd882a5417b2cb695c5405d9e16 SHA512 1f4d458917966367333027e1cc5c6e8a376da31f62b2d5be37a4ea287a1a340c55f64f1653b3afa7c0a13bcad8309aae16ca12e91c12ca409eedef7de5cd7049
+AUX pinfo-0.6.10-gettext-0.19.patch 3622 BLAKE2B ebffa03b6df06a4ea96f628ff1ff009aae43b637ee2089b2ac622eefcd745894eff9d94cc648bec4b53b6a9e6aece0ed3e002320c10f615acf2cd7405b5dd051 SHA512 52e4aaebe829e1d10846dadb96b03d973d8b5fe0c40b5c3c2ee8d107b020dc8efff175018cca81c42cecc2631a4e4efe74c6655c38d2d819db0224d16b15babf
+AUX pinfo-0.6.10-info-suffix.patch 968 BLAKE2B 86e442f381c6523e374259db9903426e4f6db769099ff2fffb56af23500aa394a63739f1d8681c550282e122a495a9de99b63242e7743349028e7dce63c14078 SHA512 882c80eb6d36f264e20cc532aa1cb00f3a1982b887bd199e4879e4e5845d18cd7a5e01c023ef723290c174a8534bc60060758f31ad7d1dd995f1441a4c496ada
+AUX pinfo-0.6.10-libc-basename.patch 736 BLAKE2B 3e7a83dc07aff65003dc45ccbdfb69818102aafa4debb80916784acef724396d6c7305939896b6dc85dd00de4dd28208f745305c2c5e9acef57d2b3cad44eb02 SHA512 b415aeebca3dc4a4d064781b70908ec70af522928428214e090f23e9ea82cbfde2bab2a08a88ebca88b30daf702b06a934157674bfd8d5f56ee4f973a2732e6e
+AUX pinfo-0.6.10-ncurses-check.patch 408 BLAKE2B a100e5e31424a1f846eb053c601b52969c4b8e190ed7dedab2583e1da6651600dbd604b0f735854e4d2407628a4c41055a6206c0f605d99936a861da978bfab6 SHA512 c7ed7036b5e629882129b559cbdeec3ebe1a8f6f72ad91db4b743bbce45ea7f55d49fd4c8884fb424a6df048f52f680d880fb2cba2125367cdbf993222203d30
+AUX pinfo-0.6.10-tinfo.patch 944 BLAKE2B 240107160cb76fef695fe826400dd4986d21c6c2707c50dbfe90f92d15663c915f7e2d22a709d8d25efd0161c2328d4b3a716dfa7def13006734e456bd9633d8 SHA512 9a4ff5fdc9a461c205f46e71cd43873270cfa1b4e5d897145bf30e51a0a0ffd350add33ff812a8870272f5e30bb8173c0a30af9fadd9f09ee9916512c106e42c
+AUX pinfo-0.6.10-version.patch 264 BLAKE2B 65bcfcdc4f49cdc011b5db956bc296e4b3ed25900fc25c8df667a8f221c5454b0b369e59df07b61604004ef2d0df1b9e98caaf7dc0597daf4ba294655e4ebc7d SHA512 aa998d5b63d50c844dcfdc6e6419dafab3d31c32e6e6a2e67101d124a5badf0968eb0e52fb46aea8ca2e8ac7e8eed7c4aabbdadffe9e99165d7525d89990625d
+AUX pinfo-0.6.9-GROFF_NO_SGR.patch 259 BLAKE2B a49a7addbf822436bc5cb8cf2da9964eca3b354274de1fb5f64cf4d634164fbe55e634c99282f87b3cbda5ac9f334b25d9123237b4cc64e7e5286b57ddf2a057 SHA512 373eea0e8feca230c14bf658ca5e73698ea16d35b5ca790c46b5bf02a83aaf1d55628183f89666913dfea96ef0f3653789255f8dfd616fe5b3a19be195d46ce6
+AUX pinfo-0.6.9-as-needed.patch 457 BLAKE2B 5e104b202a66c377cad570d3427043fe8273e6c907738283ed596185852cfb5713d430250d2ae83b11d7708139fa7f2dd962add064c3e3c96fe6112359faee26 SHA512 c4b23c4f273b35d2594af81ee4bf9aca60cd5208f1c3ab4a084805a63fdecc8bb7f2a7ee6118130ba691e3fa17e79f2671a90b7bc0af7e3cccaf12d2baecfe7f
+AUX pinfo-0.6.9-lzma-xz.patch 614 BLAKE2B 0b84247de91a42f75d0664f4ccab23e3d57bc66f6af2444e8b9dee2c0e6edb5afad1d467725507c9618947463cdd2f221024c7feb387282ebafcb6bc62741c89 SHA512 8e3ec8a98347c061826cc913c09fd2177d0f8625947c319b527e85d5ae3dcbf7dafb34b5f4a5e2fc9639bcc4db45afdea7dda6db6a88001e1c6a3994b4847ae4
+DIST pinfo-0.6.10.tar.bz2 133059 BLAKE2B aaac23583510f42ac8a0c71a380f2bc76c4db6d78518bb4d5399c100bf0aec291c869576b18313e00f8572610cb967c3acb5f8d643c48f1295fd2efa8e16e3e6 SHA512 d3aeb93a668b939a2be7dd397ef5c918a8d108a1a7613ce39d4ef2faafbd549582a35d95c74c1dc74f4c86c9f2bf09b7bca7b5006c5a79302403dd906e8d376e
+EBUILD pinfo-0.6.10-r5.ebuild 1327 BLAKE2B fa65a2d59989d50982921aaf64b2f7e98fb3c4ea82e2c1537656d30159d44a29df0ffb0c8034dbabcfb4b82386bf15b7f4ccf86f5fcfb577eaa667cab7ee22b2 SHA512 f5132c2d41aba6c9cc41076571d70266db613f28ce63c1c3d3b3902c011d3860004cd910280527090b72c97a7735928ae2c3e8f85f96139134bf847d6ec624ba
+EBUILD pinfo-0.6.10-r6.ebuild 1420 BLAKE2B 3f262260f2def1fec675c3176f906ed911642e5145968abf7e25b0b5bc1f8ea2b60a0076202d1dc57ae9717b485fd6a3b0ffc26d51ab8e2a43b393dcb8bf47fd SHA512 ba6224108807b0bcd71edc86a0ec073319490453d14d278d9fe39c5d67abe6e1f15abd5b7d12f578e08a8febc506a33ed537f6d93e94b98fb47e83c135d94c91
+MISC metadata.xml 214 BLAKE2B 2714d2d15a382508ac07f9e3cf3c042bbba715d1a3f679a37d45fb68cbb7931bffe3479e8a9c3ef61c0f76d1b5822f9696d203ed0153a2e713865cce16ed2403 SHA512 6bd18312d33fe28edbaf93fa559dab76a4eb813f37bf3accccd113e111507617827f4423e81f6448edc51245f86c73a5b1d65c0a9310c3aa1d1b910597303fc1
diff --git a/app-text/pinfo/files/pinfo-0.6.10-clearfilenameprefix.patch b/app-text/pinfo/files/pinfo-0.6.10-clearfilenameprefix.patch
new file mode 100644
index 000000000000..0835d166932e
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-clearfilenameprefix.patch
@@ -0,0 +1,10 @@
+--- a/src/filehandling_functions.c
++++ b/src/filehandling_functions.c
+@@ -758,6 +758,7 @@
+ tmpfilename = tmpfilename2; /* later we will refere only to tmp2 */
+ }
+
++ clearfilenameprefix();
+ for (i = -1; i < infopathcount; i++) /* go through all paths */
+ {
+ if (i == -1)
diff --git a/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch b/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch
new file mode 100644
index 000000000000..7a282f354baa
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-dir-file.patch
@@ -0,0 +1,11 @@
+--- a/src/filehandling_functions.c
++++ b/src/filehandling_functions.c
+@@ -742,7 +742,7 @@
+ int i, j;
+ char *tmpfilename;
+
+- if (strncmp(filename, "dir", 3) == 0)
++ if (strncmp(filename, "dir", 3) == 0 && !isalnum(filename[3]))
+ {
+ xfree(buf);
+ return opendirfile(number);
diff --git a/app-text/pinfo/files/pinfo-0.6.10-gcc-7-inline.patch b/app-text/pinfo/files/pinfo-0.6.10-gcc-7-inline.patch
new file mode 100644
index 000000000000..d73ad947c7df
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-gcc-7-inline.patch
@@ -0,0 +1,42 @@
+--- a/src/initializelinks.c
++++ b/src/initializelinks.c
+@@ -75,7 +75,7 @@
+ * checks if an item belongs to tag table. returns 1 on success and 0 on
+ * failure. It should be optimised...
+ */
+-inline int
++int
+ exists_in_tag_table(char *item)
+ {
+ if (gettagtablepos(item) != -1)
+--- a/src/filehandling_functions.c
++++ b/src/filehandling_functions.c
+@@ -554,7 +554,7 @@
+ return 1;
+ }
+
+-inline void
++void
+ buildcommand(char *dest, char *command, char *filename, const char *tmpfilename)
+ {
+ strcpy(dest, command);
+@@ -564,7 +564,7 @@
+ strcat(dest, tmpfilename);
+ }
+
+-inline void
++void
+ builddircommand(char *dest, char *command, char *filename, const char *tmpfilename)
+ {
+ strcpy(dest, command);
+--- a/src/utils.c
++++ b/src/utils.c
+@@ -193,7 +193,7 @@
+ return value;
+ }
+
+-inline void
++void
+ initlocale()
+ {
+ #ifdef ___DEBUG___
diff --git a/app-text/pinfo/files/pinfo-0.6.10-gettext-0.19.patch b/app-text/pinfo/files/pinfo-0.6.10-gettext-0.19.patch
new file mode 100644
index 000000000000..6679e51acb20
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-gettext-0.19.patch
@@ -0,0 +1,110 @@
+--- a/po/cs.po
++++ b/po/cs.po
+@@ -9,6 +9,7 @@
+ "PO-Revision-Date: 2005-10-11 16:59+0200\n"
+ "Last-Translator: Katarina Machalkova <bubli@bubli.org>\n"
+ "Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
++"Language: cs\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-2\n"
+ "Content-Transfer-Encoding: 8bit\n"
+--- a/po/de.po
++++ b/po/de.po
+@@ -10,6 +10,7 @@
+ "PO-Revision-Date: 1999-04-21 01:50+0200\n"
+ "Last-Translator: René van Bevern <rvb@pro-linux.de>\n"
+ "Language-Team: German <de@li.org>\n"
++"Language: de\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-1\n"
+ "Content-Transfer-Encoding: 8bit\n"
+--- a/po/eu.po
++++ b/po/eu.po
+@@ -12,6 +12,7 @@
+ "PO-Revision-Date: 2005-09-28 23:14+0200\n"
+ "Last-Translator: Piarres Beobide <pi@beobide.net>\n"
+ "Language-Team: librezale.org <librezale@librezale.org>\n"
++"Language: eu\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=UTF-8\n"
+ "Content-Transfer-Encoding: 8bit\n"
+--- a/po/ja.po
++++ b/po/ja.po
+@@ -10,6 +10,7 @@
+ "PO-Revision-Date: 2001-11-21 17:42+0900\n"
+ "Last-Translator: Masayuki Hatta <mhatta@gnu.org>\n"
+ "Language-Team: Japanese <ja@li.org>\n"
++"Language: ja\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=euc-jp\n"
+ "Content-Transfer-Encoding: 8bit\n"
+--- a/po/nl.po
++++ b/po/nl.po
+@@ -11,6 +11,7 @@
+ "PO-Revision-Date: 2005-09-01 21:21+0200\n"
+ "Last-Translator: Bas Zoetekouw <bas@debian.org>\n"
+ "Language-Team: Dutch <nl@li.org>\n"
++"Language: nl\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-15\n"
+ "Content-Transfer-Encoding: 8bit\n"
+--- a/po/pl.po
++++ b/po/pl.po
+@@ -10,6 +10,7 @@
+ "PO-Revision-Date: 2005-09-29 21:59+0200\n"
+ "Last-Translator: Krzysztof Krzy¿aniak (eloy) <eloy@debian.org>\n"
+ "Language-Team:\n"
++"Language: pl\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=ISO-8859-2\n"
+ "Content-Transfer-Encoding: 8bit\n"
+--- a/po/pt_BR.po
++++ b/po/pt_BR.po
+@@ -13,6 +13,7 @@
+ "Last-Translator: Felipe Augusto van de Wiel (faw) <felipe@cathedrallabs."
+ "org>\n"
+ "Language-Team: l10n portuguese <debian-l10n-portuguese@lists.debian.org>\n"
++"Language: pt_BR\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=utf-8\n"
+ "Content-Transfer-Encoding: 8bit\n"
+--- a/po/ro.po
++++ b/po/ro.po
+@@ -11,6 +11,7 @@
+ "PO-Revision-Date: 2005-09-30 03:42+0300\n"
+ "Last-Translator: Eddy Petrisor <eddy.petrisor@gmail.com>\n"
+ "Language-Team: Romanian <debian-l10n-romanian@lists.debian.org>\n"
++"Language: ro\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=UTF-8\n"
+ "Content-Transfer-Encoding: 8bit\n"
+--- a/po/ru.po
++++ b/po/ru.po
+@@ -11,6 +11,7 @@
+ "PO-Revision-Date: 2005-10-01 10:47+0400\n"
+ "Last-Translator: Yuri Kozlov <kozlov.y@gmail.com>\n"
+ "Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
++"Language: ru\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=UTF-8\n"
+ "Content-Transfer-Encoding: 8bit\n"
+--- a/po/sv.po
++++ b/po/sv.po
+@@ -11,6 +11,7 @@
+ "PO-Revision-Date: 2005-10-06 12:00+0200\n"
+ "Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
+ "Language-Team: Swedish <sv@li.org>\n"
++"Language: sv\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=iso-8859-1\n"
+ "Content-Transfer-Encoding: 8bit\n"
+--- a/po/vi.po
++++ b/po/vi.po
+@@ -11,6 +11,7 @@
+ "PO-Revision-Date: 2005-12-21 15:11+1030\n"
+ "Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
+ "Language-Team: Vietnamese <gnomevi-list@lists.sourceforge.net>\n"
++"Language: vi\n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=UTF-8\n"
+ "Content-Transfer-Encoding: 8bit\n"
diff --git a/app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch b/app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch
new file mode 100644
index 000000000000..45be53cd1bf6
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch
@@ -0,0 +1,28 @@
+--- a/src/filehandling_functions.c
++++ b/src/filehandling_functions.c
+@@ -96,11 +96,14 @@ matchfile(char **buf, char *name)
+ {
+ /* use strcat rather than strdup, because xmalloc handles all
+ * malloc errors */
+- char *thisfile = xmalloc(strlen(dp->d_name)+1);
++ int len = strlen(dp->d_name)+1;
++ char *thisfile = xmalloc(len * 2);
++ char *thisfile_info = thisfile + len;
+ strcat(thisfile, dp->d_name);
+
+ /* strip suffixes (so "gcc.info.gz" -> "gcc") */
+ strip_compression_suffix(thisfile);
++ strcat(thisfile_info, thisfile);
+ strip_info_suffix(thisfile);
+
+ /* compare this file with the file we're looking for */
+@@ -109,8 +112,7 @@ matchfile(char **buf, char *name)
+ /* we found a match! */
+ matched++;
+ /* put it in the buffer */
+- strncat(Buf, thisfile, 1023-strlen(Buf));
+- strncat(Buf, ".info", 1023-strlen(Buf));
++ strncat(Buf, thisfile_info, 1023-strlen(Buf));
+
+ /* clean up, and exit the loop */
+ xfree(thisfile);
diff --git a/app-text/pinfo/files/pinfo-0.6.10-libc-basename.patch b/app-text/pinfo/files/pinfo-0.6.10-libc-basename.patch
new file mode 100644
index 000000000000..6e9d4954792a
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-libc-basename.patch
@@ -0,0 +1,33 @@
+do not redefine the basename that the C library provides
+
+--- a/src/filehandling_functions.c
++++ b/src/filehandling_functions.c
+@@ -31,7 +31,6 @@ typedef struct
+ }
+ Suffixes;
+
+-char * basename(char *filename);
+
+
+ /******************************************************************************
+@@ -713,20 +712,6 @@ opendirfile(int number)
+ return NULL;
+ }
+
+-char *
+-basename(char *filename)
+-{
+- int len = strlen(filename);
+- char *a = filename + len;
+- while (a > filename)
+- {
+- a--;
+- if (*a == '/')
+- return a + 1;
+- }
+- return filename; /* when it was a basename */
+-}
+-
+ /*
+ * Note: openinfo is a function for reading info files, and putting
+ * uncompressed content into a temporary filename. For a flexibility, there
diff --git a/app-text/pinfo/files/pinfo-0.6.10-ncurses-check.patch b/app-text/pinfo/files/pinfo-0.6.10-ncurses-check.patch
new file mode 100644
index 000000000000..a5f14c593f44
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-ncurses-check.patch
@@ -0,0 +1,14 @@
+curses_wchar is set to true/false, so trying to assign it to the compiler
+flags variable makes no sense. it's already been set up the right value
+at this point, so delete the assignment.
+
+--- a/macros/curses.m4
++++ b/macros/curses.m4
+@@ -130,7 +130,6 @@ AC_DEFUN([AC_CHECK_CURSES],[
+ else
+ AC_DEFINE(CURSES_WCHAR)
+ CURSES_WCHAR=true
+- CURSES_FLAGS=$curses_wchar
+ AC_SUBST(CURSES_FLAGS)
+ fi
+
diff --git a/app-text/pinfo/files/pinfo-0.6.10-tinfo.patch b/app-text/pinfo/files/pinfo-0.6.10-tinfo.patch
new file mode 100644
index 000000000000..bbb6ecfe421d
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-tinfo.patch
@@ -0,0 +1,40 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -118,7 +118,24 @@
+
+
+ # curses
++PKG_CHECK_MODULES(ncursesw,ncursesw,[
++ curses_includes="$ncursesw_CFLAGS"
++ curses_libs="$ncursesw_LIBS"
++ curses_h=ncurses.h
++ stop_searching=true
++ found_curses_h=true
++ USE_CURSES=true],[
++ PKG_CHECK_MODULES(ncurses,ncurses,[
++ curses_includes="$ncurses_CFLAGS"
++ curses_libs="$ncurses_LIBS"
++ curses_h=ncurses.h
++ stop_searching=true
++ found_curses_h=true
++ USE_CURSES=true],
++ [])])
++
+ AC_CHECK_CURSES
++
+ if ! test "x$USE_CURSES" = "xtrue"; then
+ AC_MSG_ERROR([Curses not found. You need curses to compile pinfo])
+ fi
+--- a/macros/curses.m4
++++ b/macros/curses.m4
+@@ -175,8 +175,8 @@
+ AC_DEFUN([AC_SEARCH_CURSES_H], [
+ AC_MSG_CHECKING([location of curses.h file])
+
+- stop_searching=false
+- found_curses_h=false
++# stop_searching=false
++# found_curses_h=false
+
+ dnl if a particular location was specified
+ if test "x$curses_location" != "xfalse"
diff --git a/app-text/pinfo/files/pinfo-0.6.10-version.patch b/app-text/pinfo/files/pinfo-0.6.10-version.patch
new file mode 100644
index 000000000000..8038fe0879e8
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.10-version.patch
@@ -0,0 +1,11 @@
+--- a/doc/pinfo.texi 2006-03-16 16:40:41.000000000 +0100
++++ b/doc/pinfo.texi 2010-06-18 16:20:24.000000000 +0200
+@@ -5,7 +5,7 @@
+ @c %**end of header
+
+ @set EDITION 0.2.1
+-@set VERSION 0.6.4
++@set VERSION 0.6.10
+ @set DATE 1 Dec 2001
+ @set DATEMAN 21 Mar 1999
+
diff --git a/app-text/pinfo/files/pinfo-0.6.9-GROFF_NO_SGR.patch b/app-text/pinfo/files/pinfo-0.6.9-GROFF_NO_SGR.patch
new file mode 100644
index 000000000000..dc902c0cae0a
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.9-GROFF_NO_SGR.patch
@@ -0,0 +1,10 @@
+--- a/src/manual.c 2006-03-16 15:14:30.000000000 +0100
++++ b/src/manual.c 2010-06-03 19:47:11.000000000 +0200
+@@ -261,6 +261,7 @@
+ xfree(tmpfilename1);
+ }
+ tmpfilename1 = make_tempfile();
++ putenv("GROFF_NO_SGR=true");
+
+ #ifdef getmaxyx
+ init_curses();
diff --git a/app-text/pinfo/files/pinfo-0.6.9-as-needed.patch b/app-text/pinfo/files/pinfo-0.6.9-as-needed.patch
new file mode 100644
index 000000000000..85a80e6f2602
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.9-as-needed.patch
@@ -0,0 +1,22 @@
+--- a/macros/curses.m4
++++ b/macros/curses.m4
+@@ -257,8 +257,8 @@
+ dnl save CFLAGS and LDFLAGS and set new ones
+ CFLAGS_OLD=$CFLAGS
+ CFLAGS="$CFLAGS $curses_includes"
+- LDFLAGS_OLD=$LDFLAGS
+- LDFLAGS="$LDFLAGS $curses_libs"
++ LIBS_OLD=$LIBS
++ LIBS="$LIBS $curses_libs"
+
+ dnl do the compile test
+ AC_MSG_CHECKING([if curses is usable])
+@@ -288,7 +288,7 @@
+
+ dnl restore variables
+ CFLAGS=$CFLAGS_OLD
+- LDFLAGS=$LDFLAGS_OLD
++ LIBS=$LIBS_OLD
+
+ ])
+
diff --git a/app-text/pinfo/files/pinfo-0.6.9-lzma-xz.patch b/app-text/pinfo/files/pinfo-0.6.9-lzma-xz.patch
new file mode 100644
index 000000000000..6ae0766fb803
--- /dev/null
+++ b/app-text/pinfo/files/pinfo-0.6.9-lzma-xz.patch
@@ -0,0 +1,21 @@
+--- a/src/filehandling_functions.c
++++ b/src/filehandling_functions.c
+@@ -41,14 +41,16 @@
+ * you dump the file through `gunzip -d -c', etc. *
+ ******************************************************************************/
+
+-#define SuffixesNumber 4
++#define SuffixesNumber 6
+
+ Suffixes suffixes[SuffixesNumber] =
+ {
+ {"", "cat"},
+ {".gz", "gzip -d -q -c"},
+ {".Z", "gzip -d -q -c"},
+- {".bz2", "bzip2 -d -c"}
++ {".bz2", "bzip2 -d -c"},
++ {".lzma", "lzma -d -c"},
++ {".xz", "xz -d -c"}
+ };
+
+ /*****************************************************************************/
diff --git a/app-text/pinfo/metadata.xml b/app-text/pinfo/metadata.xml
new file mode 100644
index 000000000000..ece6b81bfbdf
--- /dev/null
+++ b/app-text/pinfo/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>jer@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-text/pinfo/pinfo-0.6.10-r5.ebuild b/app-text/pinfo/pinfo-0.6.10-r5.ebuild
new file mode 100644
index 000000000000..ddab3ae23eab
--- /dev/null
+++ b/app-text/pinfo/pinfo-0.6.10-r5.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="Hypertext info and man viewer based on (n)curses"
+HOMEPAGE="http://pinfo.alioth.debian.org/"
+SRC_URI="https://alioth.debian.org/frs/download.php/3351/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="nls readline"
+
+RDEPEND="sys-libs/ncurses:0=
+ sys-libs/readline:0=
+ nls? ( virtual/libintl )
+"
+
+DEPEND="
+ ${RDEPEND}
+ sys-devel/bison
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-0.6.9-as-needed.patch \
+ "${FILESDIR}"/${PN}-0.6.9-GROFF_NO_SGR.patch \
+ "${FILESDIR}"/${PN}-0.6.9-lzma-xz.patch \
+ "${FILESDIR}"/${PN}-0.6.10-version.patch \
+ "${FILESDIR}"/${PN}-0.6.10-info-suffix.patch \
+ "${FILESDIR}"/${PN}-0.6.10-dir-file.patch \
+ "${FILESDIR}"/${PN}-0.6.10-tinfo.patch \
+ "${FILESDIR}"/${PN}-0.6.10-gettext-0.19.patch \
+ "${FILESDIR}"/${PN}-0.6.10-ncurses-check.patch \
+ "${FILESDIR}"/${PN}-0.6.10-libc-basename.patch
+
+ eautoreconf
+
+ append-cflags -D_BSD_SOURCE -D_DEFAULT_SOURCE # sbrk()
+}
+
+src_configure() {
+ econf \
+ $(use_with readline) \
+ $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" sysconfdir=/etc install
+}
diff --git a/app-text/pinfo/pinfo-0.6.10-r6.ebuild b/app-text/pinfo/pinfo-0.6.10-r6.ebuild
new file mode 100644
index 000000000000..633f0825ca01
--- /dev/null
+++ b/app-text/pinfo/pinfo-0.6.10-r6.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils flag-o-matic
+
+DESCRIPTION="Hypertext info and man viewer based on (n)curses"
+HOMEPAGE="http://pinfo.alioth.debian.org/"
+SRC_URI="https://alioth.debian.org/frs/download.php/3351/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="nls readline"
+
+RDEPEND="
+ sys-libs/ncurses:0=
+ sys-libs/readline:0=
+ nls? ( virtual/libintl )
+"
+
+DEPEND="
+ ${RDEPEND}
+ sys-devel/bison
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.6.9-as-needed.patch
+ "${FILESDIR}"/${PN}-0.6.9-GROFF_NO_SGR.patch
+ "${FILESDIR}"/${PN}-0.6.9-lzma-xz.patch
+ "${FILESDIR}"/${PN}-0.6.10-version.patch
+ "${FILESDIR}"/${PN}-0.6.10-info-suffix.patch
+ "${FILESDIR}"/${PN}-0.6.10-dir-file.patch
+ "${FILESDIR}"/${PN}-0.6.10-tinfo.patch
+ "${FILESDIR}"/${PN}-0.6.10-gettext-0.19.patch
+ "${FILESDIR}"/${PN}-0.6.10-ncurses-check.patch
+ "${FILESDIR}"/${PN}-0.6.10-libc-basename.patch
+ "${FILESDIR}"/${PN}-0.6.10-clearfilenameprefix.patch
+ "${FILESDIR}"/${PN}-0.6.10-gcc-7-inline.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+
+ append-cflags -D_BSD_SOURCE -D_DEFAULT_SOURCE # sbrk()
+}
+
+src_configure() {
+ econf \
+ $(use_with readline) \
+ $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" sysconfdir=/etc install
+}