diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/bogosort |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/bogosort')
-rw-r--r-- | app-text/bogosort/Manifest | 7 | ||||
-rw-r--r-- | app-text/bogosort/bogosort-0.4.2-r1.ebuild | 34 | ||||
-rw-r--r-- | app-text/bogosort/files/bogosort-0.4.2-glibc-2.10.patch | 41 | ||||
-rw-r--r-- | app-text/bogosort/files/xmalloc.patch | 15 | ||||
-rw-r--r-- | app-text/bogosort/metadata.xml | 13 |
5 files changed, 110 insertions, 0 deletions
diff --git a/app-text/bogosort/Manifest b/app-text/bogosort/Manifest new file mode 100644 index 000000000000..f5944c03e116 --- /dev/null +++ b/app-text/bogosort/Manifest @@ -0,0 +1,7 @@ +AUX bogosort-0.4.2-glibc-2.10.patch 1479 SHA256 8c0aeb13b37d7d41b1a93ef85c887aa0aa30c6b6ca5f7a80a0fdbe7894baac60 SHA512 742b473df18b8eee876857fc3fa14bacc95bce4e14d083deb066d4451385437cd040cf40b6c572762c047b1aaa3e2ee973f2d880c5915993bf6a4ba130a776e4 WHIRLPOOL f41a42ff2eb02f1e3e81167b5516c508e7d13899992b2b54d5f20c7de02fae55bbeb15799ff704e77b0eacdbd3510af9df23a3240292f9e8b41b80386482c696 +AUX xmalloc.patch 395 SHA256 40bcf7bb6475d1c69f7777da6ef27ba7e96e3ecf99aa3ebfccc842e89485f953 SHA512 c1479f342d71e1c53a2b038bc7bf858292c6585b8360b41c6006a4ef0efbafc3260cf8523efedee945c084247851186dda3450ab0533465c33176b038a8c0243 WHIRLPOOL d85104ea2a67f7ed5f8fcf165c7026562731fddef10dd9fb7a8cd48ff82f57d8b2f391c9a8d8d029ebea5a4d6ad65b1711b9f670e44b798346f74064d7d903b7 +DIST bogosort-0.4.2.tar.gz 161628 SHA256 bfd66ce866bb8935088873c52323a06997f627a209da1017491425d93e5510ef SHA512 2d2f7be36ec08aa78323cbdc5f1030297706c364d6fc82554065cf737295d11c90dd6061323f2732b63c70401d710b2018075bff6d1e6ab0078069b405ea62e9 WHIRLPOOL 35402daa7555d86327d4bc9534b8d92bd0f34413241b8a24914a7bbf32a2f4c7708ea3e8fcc0420c0ba2b73a6708581df8dbfdaead3da05b77a0a9a72c6bb241 +EBUILD bogosort-0.4.2-r1.ebuild 702 SHA256 da107dcc93c5ea38cbe3037575f113fdcb3dbf4f41d2621bd35cf04442185600 SHA512 7baec5a2de60f5bbef8689c12d6fdc54a3fd40dee3b64877af819422f986c50fb706c52906486a055af2ef16650e908a3c5b960181dba14b1ee14955d5c7a769 WHIRLPOOL 35c8de0eaa149ba1b93515c2d41616a52329a62ab65eee03b4ed0a88e1ad764e0c7ecabae53a7d042816f5cc4d067b276758dcb587b3645521ba779fcb55aa98 +MISC ChangeLog 2500 SHA256 42d40a79d78def9eec61ba34650ef416c77c37f625faf23b4274a5f01b4d31f8 SHA512 26495beadb3bf3bc8c7add444ac0f0d60fdaaff5bb24d727db4010cace2d88e0ad9da23c76aa5eb030754e271d6a48bfb4ff5e390a18136ece2466d2ab1eea50 WHIRLPOOL 60b2b407c56af431f14c689bd4f664d81bf148ddb9f89b394b5410ef2876c1ea3c3eaae4a3020d9ba90df3c579641b4ad4bac7e8c490e5f4e55c00945ad21e2f +MISC ChangeLog-2015 2959 SHA256 e66f0d7736c748ff278b0f4b77b07f43cff876bc2bfe668ec6e3f33209c846c0 SHA512 ebf7dd087942d7fd14660da9ef0b88b94aa307f018fa75b114b30e77cea150a223aa150617828e4b156293a0710be90958122fc41fbff0060f5707904b3a0482 WHIRLPOOL 67f81fd9bb96950432e716d5ee8613920bfa23587f0511fa1a2857d9c1e7149acfd6426adec8d13bfa739108bcb42e1931e8f14ee23b147a9552a8a0f5d74cb4 +MISC metadata.xml 507 SHA256 a3c182e5db58642fa02ee9365ef42da34bb729bae7e9f18061036ef203a4ae73 SHA512 6ae8689da9f5a0628f5543ca7958fe0dfab379c2c6a7e2ce3fd8aa67e6b2ffdad15b18e6f7d132019d59511b036e1dbcaabd28bd7ce710962fe6c21a52719a68 WHIRLPOOL b3d545ba46ea471c3afc3933ace135c7b24068b1a175840bdd6280074b18459e8110f8cad48d5ffe947565ddf1fce1d4a8da5492e0f8eb5ff8bb18c72bcc3ce3 diff --git a/app-text/bogosort/bogosort-0.4.2-r1.ebuild b/app-text/bogosort/bogosort-0.4.2-r1.ebuild new file mode 100644 index 000000000000..5eff84f8ed58 --- /dev/null +++ b/app-text/bogosort/bogosort-0.4.2-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="A file sorting program which uses the bogosort algorithm" +HOMEPAGE="http://www.lysator.liu.se/~qha/bogosort/" +SRC_URI="ftp://ulrik.haugen.se/pub/unix/bogosort/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 hppa ~mips ppc sparc x86 ~x86-linux ~ppc-macos" +IUSE="" + +DEPEND="" +RDEPEND="" + +src_prepare() { + epatch \ + "${FILESDIR}"/xmalloc.patch \ + "${FILESDIR}"/${P}-glibc-2.10.patch +} + +src_configure() { + tc-export CC + econf || die +} + +src_install() { + make DESTDIR="${D}" install || die + dodoc README NEWS ChangeLog AUTHORS || die +} diff --git a/app-text/bogosort/files/bogosort-0.4.2-glibc-2.10.patch b/app-text/bogosort/files/bogosort-0.4.2-glibc-2.10.patch new file mode 100644 index 000000000000..ac54c8b61b05 --- /dev/null +++ b/app-text/bogosort/files/bogosort-0.4.2-glibc-2.10.patch @@ -0,0 +1,41 @@ +diff -ur bogosort-0.4.2.orig/getlines.c bogosort-0.4.2/getlines.c +--- bogosort-0.4.2.orig/getlines.c 2002-05-04 23:22:22.000000000 +0300 ++++ bogosort-0.4.2/getlines.c 2009-08-06 14:32:22.000000000 +0300 +@@ -49,7 +49,7 @@ + char **ss = NULL; + + /* read all lines available */ +- while ((s = getline(stream)) != NULL) { ++ while ((s = get_line(stream)) != NULL) { + if (numlines == allocated) /* make more room if needed */ + ss = (char **)xrealloc(ss, + (allocated += LINESTEP) * sizeof (char *)); +@@ -81,7 +81,7 @@ + allocated = numlines + 1; /* this is a lie, but it's close enough */ + + /* read all lines available */ +- while ((s = getline(stream)) != NULL) { ++ while ((s = get_line(stream)) != NULL) { + if (numlines == allocated) /* make more room if needed */ + ss = (char **)xrealloc(ss, + (allocated += LINESTEP) * sizeof (char *)); +@@ -100,7 +100,7 @@ + * line in stream, return NULL on EOF + */ + char * +-getline(FILE *stream) ++get_line(FILE *stream) + { + int c, numchars = 0, allocated = 0; + char *s = NULL; +diff -ur bogosort-0.4.2.orig/getlines.h bogosort-0.4.2/getlines.h +--- bogosort-0.4.2.orig/getlines.h 2002-03-16 00:04:38.000000000 +0200 ++++ bogosort-0.4.2/getlines.h 2009-08-06 14:32:48.000000000 +0300 +@@ -39,6 +39,6 @@ + * getline: return a pointer to a newly allocated string containing the next + * line in stream + */ +-char *getline(FILE *stream); ++char *get_line(FILE *stream); + + #endif /* GETLINES_H */ diff --git a/app-text/bogosort/files/xmalloc.patch b/app-text/bogosort/files/xmalloc.patch new file mode 100644 index 000000000000..41545ca34ba8 --- /dev/null +++ b/app-text/bogosort/files/xmalloc.patch @@ -0,0 +1,15 @@ +--- xmalloc.c.orig 2004-12-15 23:44:16.880786468 +0100 ++++ xmalloc.c 2004-12-15 23:44:21.846546805 +0100 +@@ -68,12 +68,6 @@ + The caller may set it to some other value. */ + int xmalloc_exit_failure = EXIT_FAILURE; + +-#if __STDC__ && (HAVE_VPRINTF || HAVE_DOPRNT) +-void error (int, int, const char *, ...); +-#else +-void error (); +-#endif +- + static VOID * + fixup_null_alloc (n) + size_t n; diff --git a/app-text/bogosort/metadata.xml b/app-text/bogosort/metadata.xml new file mode 100644 index 000000000000..8d70e291eb67 --- /dev/null +++ b/app-text/bogosort/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>shell-tools@gentoo.org</email> + <name>Gentoo Shell Tools Project</name> + </maintainer> + <longdescription lang="en"> + The bogosort will sort a file in a similar way to sort(1), but using + the bogosort algorithm rather than the conventional qsort. The tool + can also randomise the lines in its input. + </longdescription> +</pkgmetadata> |