From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-text/pinfo/Manifest | 17 ++++ .../files/pinfo-0.6.10-clearfilenameprefix.patch | 10 ++ app-text/pinfo/files/pinfo-0.6.10-dir-file.patch | 11 +++ .../pinfo/files/pinfo-0.6.10-gettext-0.19.patch | 110 +++++++++++++++++++++ .../pinfo/files/pinfo-0.6.10-info-suffix.patch | 28 ++++++ .../pinfo/files/pinfo-0.6.10-libc-basename.patch | 33 +++++++ .../pinfo/files/pinfo-0.6.10-ncurses-check.patch | 14 +++ app-text/pinfo/files/pinfo-0.6.10-tinfo.patch | 40 ++++++++ app-text/pinfo/files/pinfo-0.6.10-version.patch | 11 +++ .../pinfo/files/pinfo-0.6.9-GROFF_NO_SGR.patch | 10 ++ app-text/pinfo/files/pinfo-0.6.9-as-needed.patch | 22 +++++ app-text/pinfo/files/pinfo-0.6.9-lzma-xz.patch | 21 ++++ app-text/pinfo/metadata.xml | 7 ++ app-text/pinfo/pinfo-0.6.10-r5.ebuild | 55 +++++++++++ app-text/pinfo/pinfo-0.6.10-r6.ebuild | 58 +++++++++++ 15 files changed, 447 insertions(+) create mode 100644 app-text/pinfo/Manifest create mode 100644 app-text/pinfo/files/pinfo-0.6.10-clearfilenameprefix.patch create mode 100644 app-text/pinfo/files/pinfo-0.6.10-dir-file.patch create mode 100644 app-text/pinfo/files/pinfo-0.6.10-gettext-0.19.patch create mode 100644 app-text/pinfo/files/pinfo-0.6.10-info-suffix.patch create mode 100644 app-text/pinfo/files/pinfo-0.6.10-libc-basename.patch create mode 100644 app-text/pinfo/files/pinfo-0.6.10-ncurses-check.patch create mode 100644 app-text/pinfo/files/pinfo-0.6.10-tinfo.patch create mode 100644 app-text/pinfo/files/pinfo-0.6.10-version.patch create mode 100644 app-text/pinfo/files/pinfo-0.6.9-GROFF_NO_SGR.patch create mode 100644 app-text/pinfo/files/pinfo-0.6.9-as-needed.patch create mode 100644 app-text/pinfo/files/pinfo-0.6.9-lzma-xz.patch create mode 100644 app-text/pinfo/metadata.xml create mode 100644 app-text/pinfo/pinfo-0.6.10-r5.ebuild create mode 100644 app-text/pinfo/pinfo-0.6.10-r6.ebuild (limited to 'app-text/pinfo') diff --git a/app-text/pinfo/Manifest b/app-text/pinfo/Manifest new file mode 100644 index 000000000000..d7079081230e --- /dev/null +++ b/app-text/pinfo/Manifest @@ -0,0 +1,17 @@ +AUX pinfo-0.6.10-clearfilenameprefix.patch 278 SHA256 20d728aa624413c08abb6cde3fd7c942799cd73a8c9cd2d10eeadd7a5628a9ac SHA512 6d4b0e19c94011eacdaca85e6a566f296d8e41e89c7687d25e5aa6c3e155f0a51112d59fe9bebafa83144469a1bce85400559812adc7d7ad8990b80712b45906 WHIRLPOOL b89db2f944c660702a90b01bbcaf0c197fa1f354f1e07886244fb6219ea62f4d6b7eb8f8757e6325ead689be710eaf48ab5eb3b4082da967547dde9a134747ec +AUX pinfo-0.6.10-dir-file.patch 280 SHA256 9d133edb6882a1eb30a74e96976105b32ece189aad4b62070264d2dd0bea48e5 SHA512 bcc16752f2c98b7c013ec1dae84ada89f44d6c00298ed5069b2098674bedcb31bf9e29d3e5c821398518fd59e0fbd84e9141dad2885c55d5a3c76ef728a24b50 WHIRLPOOL 2b23ff84d0a62c48698fd3688176452ea64ac69a4727299f42693a76af52770dcabc84f9f346d392eb3561dec5dac9fdd51a6b2fe5368620fb8e3c55ad089e2d +AUX pinfo-0.6.10-gettext-0.19.patch 3622 SHA256 cc56673e43bef4284c99fd94b262f38a9898653d6360035bcb906f5e7d587422 SHA512 52e4aaebe829e1d10846dadb96b03d973d8b5fe0c40b5c3c2ee8d107b020dc8efff175018cca81c42cecc2631a4e4efe74c6655c38d2d819db0224d16b15babf WHIRLPOOL 8bccd7c36748b456e4bb031422f62839e6e594c836933dfe40401017b6ff182212d259f1b6f525e16da95d62de9c90af3cf9f5fa10f1000a00938b39ceb9a406 +AUX pinfo-0.6.10-info-suffix.patch 968 SHA256 52f7f5d737a550947175a324980dffe489138f11a52a8614202d669bf54183e4 SHA512 882c80eb6d36f264e20cc532aa1cb00f3a1982b887bd199e4879e4e5845d18cd7a5e01c023ef723290c174a8534bc60060758f31ad7d1dd995f1441a4c496ada WHIRLPOOL 80dd67d9690888e366e8e37078938b4936762609296e41322e4d5afe2291338d9fb2fd04a12ad4af83ed8a2e53ef9e838514e4230e2722cf8ed08626b13dc617 +AUX pinfo-0.6.10-libc-basename.patch 736 SHA256 8d86dc85c86946c24377c3a317e8b86be9e19a33c4f7d89505cf32effa80d895 SHA512 b415aeebca3dc4a4d064781b70908ec70af522928428214e090f23e9ea82cbfde2bab2a08a88ebca88b30daf702b06a934157674bfd8d5f56ee4f973a2732e6e WHIRLPOOL e194b79e6d561de7273c72befd0e7589d9d1068430eac20f65a958c5e777c0e6af9e5822aa65689df1e470f0850535f3251c26a54f0d8a7f24dca1fa07d0ed06 +AUX pinfo-0.6.10-ncurses-check.patch 408 SHA256 4d4deee90c41ee187d1ecebe6d03c59f00f3643086d5e89dbb9274d943a8a490 SHA512 c7ed7036b5e629882129b559cbdeec3ebe1a8f6f72ad91db4b743bbce45ea7f55d49fd4c8884fb424a6df048f52f680d880fb2cba2125367cdbf993222203d30 WHIRLPOOL 35dae9b4d03d06c0e664d003ab58e3cbfc3b460950ea857485378f54e12ade309e03e408ee79d0bdbf3acc677d587b4f328ec506389a2026f184e8e0946d0625 +AUX pinfo-0.6.10-tinfo.patch 944 SHA256 70518777b63c738346f19fcc86855344f316220628a12f2325615019c6f32bd5 SHA512 9a4ff5fdc9a461c205f46e71cd43873270cfa1b4e5d897145bf30e51a0a0ffd350add33ff812a8870272f5e30bb8173c0a30af9fadd9f09ee9916512c106e42c WHIRLPOOL 3899b79bda32ab9c7d08a4135fffa713881640cdb0753c47d6d9c6418fb77c4140a56fcdec31839a944951ae32624b48921bb0ba69a99531c6b449682df83566 +AUX pinfo-0.6.10-version.patch 264 SHA256 cbabed690a4116ec639918e5a15f41ac51264e56923ae931f3b47f9598ee2ac2 SHA512 aa998d5b63d50c844dcfdc6e6419dafab3d31c32e6e6a2e67101d124a5badf0968eb0e52fb46aea8ca2e8ac7e8eed7c4aabbdadffe9e99165d7525d89990625d WHIRLPOOL 6e0e8f5aa4106b967011fadcb85004f91aba6b2c2c00e76e87e4e5721f4c0c0819343aee652d20817c89743167e172cd8db5b9172cf490df88553178a33fc0ca +AUX pinfo-0.6.9-GROFF_NO_SGR.patch 259 SHA256 4ce70f8db368b69785fe28a9574dd2267a69e33ef6d98922c513080ea860211b SHA512 373eea0e8feca230c14bf658ca5e73698ea16d35b5ca790c46b5bf02a83aaf1d55628183f89666913dfea96ef0f3653789255f8dfd616fe5b3a19be195d46ce6 WHIRLPOOL ad812f647963156a8b4dff867aff7afb3035e16e69422b68a113ff81ffe193e9efa331dfc9bddf4509e8014c1adda23f73a6bb8e4af348793724cf06771b085e +AUX pinfo-0.6.9-as-needed.patch 457 SHA256 b3e6fa18a7e3a9a1938c44ebd43184983b32adf1df24fd556cb9675b480600de SHA512 c4b23c4f273b35d2594af81ee4bf9aca60cd5208f1c3ab4a084805a63fdecc8bb7f2a7ee6118130ba691e3fa17e79f2671a90b7bc0af7e3cccaf12d2baecfe7f WHIRLPOOL 503e94d4db24a0387a4fdc60f8bf541ec34ae1e19faea5346a38709f641e46d20c05c7974e18fd1c42c2a31a5f328198597560a6478e3125fa960dc960315d3f +AUX pinfo-0.6.9-lzma-xz.patch 614 SHA256 5c8923ee6dce84a114ad27aefaa2a3ced2a98b971958c56eefdabe26ed0fb804 SHA512 8e3ec8a98347c061826cc913c09fd2177d0f8625947c319b527e85d5ae3dcbf7dafb34b5f4a5e2fc9639bcc4db45afdea7dda6db6a88001e1c6a3994b4847ae4 WHIRLPOOL 62500cf2d5736a3c92ba321c012165df2f37577d3557a088ce414e8c1a613c30fe4640d6ec82f60d9d4c80631a4ef9e50c5803efbb2794e75f41bea98856a254 +DIST pinfo-0.6.10.tar.bz2 133059 SHA256 122180a0c23d11bc9eb569a4de3ff97d3052af96e32466fa62f2daf46ff61c5d SHA512 d3aeb93a668b939a2be7dd397ef5c918a8d108a1a7613ce39d4ef2faafbd549582a35d95c74c1dc74f4c86c9f2bf09b7bca7b5006c5a79302403dd906e8d376e WHIRLPOOL 92878e887f52729a266e99b25ea671f54f0cb5f11680c018bfb92a70de4ff2927ee59cf01e4fddbfe9c78c7c61b8c0dfd6edfcc761a0e6ddb6e751e0e6220047 +EBUILD pinfo-0.6.10-r5.ebuild 1327 SHA256 bb9c97b6c77e8ddbae20b24a8e23f6eba3d62f42078e085cd71993650e9fe2e3 SHA512 f5132c2d41aba6c9cc41076571d70266db613f28ce63c1c3d3b3902c011d3860004cd910280527090b72c97a7735928ae2c3e8f85f96139134bf847d6ec624ba WHIRLPOOL fef46d98e8fba6222360a97a539b71077874c0b766f561bad9215c84ed10473135070c6082e6890a23c6a0d14a684fb53d68e2cce1fed2b1eced12d17b952382 +EBUILD pinfo-0.6.10-r6.ebuild 1373 SHA256 8b3d7d761b039af64b0b1c7704babc06a5e5fdd5be45e2515b36d606eebd6e4b SHA512 2215891f197a9d456afff3ff1b26e15b89f6b1edb66e81936e3f495d1ac83b255f30dbbd1c533642ea0f080c2d4bc2809029eaabe2519a746bcb194167e76ed7 WHIRLPOOL 7a4aab14926e353a5e571ad27a81bbea0b52a7696a973655c6e42c0fba7c07aa1ae2ebe1350606d70897689b8a88de222d2821bf99c042b792e70cf58090c4eb +MISC ChangeLog 3262 SHA256 ea2badfdeaa85c2e1e343dc03c2418004c2ca663e61d1819926480ca76c66d7f SHA512 8dfd39524930a04bab57fc7c18dd3515fb242517853025a55a88c0215dc492e2e782751da8db6d50b31038365240c4b1b46c4e72da8b11819f22b140ba7e1f68 WHIRLPOOL abfe3115d1138143af094904be3f404a065e795351d33c775c1f83ce3bf6946cdd5f9b57b3dcb74540ee734ac7eb6e097670102ad69a70a4560b0b66871ed5af +MISC ChangeLog-2015 11320 SHA256 778c497f93c6b8a945262ef9dd04ee8ac23aca8b8bfac9ec524359bfbb2d76b0 SHA512 78c0abc2ccfaeb2d5722084f4a6349b2b170161a8d624c3a84389b95d88e9ca91fcd96c503a4937e84868110e41ed9e0412fdf3559824f6f060df98c99640973 WHIRLPOOL a77bdac63d66118b6bd4f4b1f170a40bf1702c246cd87e35eaecb2595b300bf49f225b4845bc6c5a95a4206016e279cb4da47d451b7f8f799c16ecf6ae023da7 +MISC metadata.xml 214 SHA256 066ee5930f6189098f8f9e16b343a5a1144d3edb4bb5cebfd5096b320967b096 SHA512 6bd18312d33fe28edbaf93fa559dab76a4eb813f37bf3accccd113e111507617827f4423e81f6448edc51245f86c73a5b1d65c0a9310c3aa1d1b910597303fc1 WHIRLPOOL 90d93fa4efb176a2039bbd120ccef48a0652aed82b079c11645923730f790b0831b00d6d7a619eccbc0a53d1538a0896d406ff8002871283c1999856f1e4b52e 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-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 \n" + "Language-Team: Czech \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 \n" + "Language-Team: German \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 \n" + "Language-Team: 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 \n" + "Language-Team: Japanese \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 \n" + "Language-Team: Dutch \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) \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) \n" + "Language-Team: l10n portuguese \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 \n" + "Language-Team: Romanian \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 \n" + "Language-Team: Russian \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 \n" + "Language-Team: Swedish \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 \n" + "Language-Team: Vietnamese \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 @@ + + + + + jer@gentoo.org + + 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..f18ab4f78a9b --- /dev/null +++ b/app-text/pinfo/pinfo-0.6.10-r6.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2017 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 +) + +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 +} -- cgit v1.2.3