From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-libs/libite/Manifest | 5 ++++ dev-libs/libite/files/libite-2.0.0-fix-path.patch | 12 ++++++++++ .../libite/files/libite-2.0.0-fix-which-path.patch | 25 +++++++++++++++++++ dev-libs/libite/libite-2.0.0.ebuild | 28 ++++++++++++++++++++++ dev-libs/libite/metadata.xml | 21 ++++++++++++++++ 5 files changed, 91 insertions(+) create mode 100644 dev-libs/libite/Manifest create mode 100644 dev-libs/libite/files/libite-2.0.0-fix-path.patch create mode 100644 dev-libs/libite/files/libite-2.0.0-fix-which-path.patch create mode 100644 dev-libs/libite/libite-2.0.0.ebuild create mode 100644 dev-libs/libite/metadata.xml (limited to 'dev-libs/libite') diff --git a/dev-libs/libite/Manifest b/dev-libs/libite/Manifest new file mode 100644 index 000000000000..ee5baa5f1068 --- /dev/null +++ b/dev-libs/libite/Manifest @@ -0,0 +1,5 @@ +AUX libite-2.0.0-fix-path.patch 304 BLAKE2B 2f753f52984c5481c76f8b228373ae7d091f8d6baeb43f12e69c7298e876f6edecfb6d3abd9c8b963c9c7ace78ee771c07fba6da9239a0a90b5902e9bf7b25f5 SHA512 1cb45bf3bdf4b80c7ad0ecc3127c036f52a80944087fa30c5f8709bd6af7c6e81f0e397bc4490f4e4ab61f9827519244eae0bc6f3258f3f875d2b89e789b7c1f +AUX libite-2.0.0-fix-which-path.patch 594 BLAKE2B d93f3c500f82f541bbeffd2e418f2430db9e8328ba03a2af39b22042c9c5a6923b69fb9c6a5f0bd64271d2f4761c207a8af01d87c977c7ee09e273b90e64ce64 SHA512 34b091128a9d43202b2d90f01d575a4c03bea38828d65bc6212d601c02a53d8157b9634cf5e0dd4f2be3ddeb18ad0bb3af0dedc68a0a30abfd51e7de2808a115 +DIST libite-2.0.0.tar.xz 259960 BLAKE2B 4c5393daaf2ca6eb830fc5f11b1d38e9c1e2374c5f5d87bb973c7e54b9f81480d4a270a4551689806620cd5a84671d1055d409d6dd090acb64bf7fc454d1c283 SHA512 18516f19d36d81169116562b4b27d76240715424cdde9b87eae831f35adb17d70fb01e2eae5e7e9ce99e2c88344c2c15d2b7d11f4ea2e9ae0deb25ee5ee4c563 +EBUILD libite-2.0.0.ebuild 624 BLAKE2B 4fedd1976a0f0b8a3808dc86c0b1dbd9975f956320fd0caf9eac1c40657aa6ac01b96ca4133ab819d99a60f0e572406a1a3fe5b74960c517195ee78fdd6ce804 SHA512 fe0518a4470535fd2f79fa59b1b2525f8b2bec63e9ed6dace625e45b242640ec889822913b3911b04ab3e646e5ddec714c504d50a1f33c55562427e421f98f51 +MISC metadata.xml 773 BLAKE2B ed6eab8165e4f6a6b37c9c23616d0eacb44f2b15b13fda13093629a8d060e2c9f35b5a5614ad8e205462e0e1c8ec2a1cd71243d377d3a94084f0c1d7d2ab62a4 SHA512 2bb72bae63f07cce65711f13f5268a2bdde04ebdbcc9be4a2a5700f6a68aa3745d91ec83881fa83001fcdfb71675dc4fa1f937ca63273ae763ad899e43e0290f diff --git a/dev-libs/libite/files/libite-2.0.0-fix-path.patch b/dev-libs/libite/files/libite-2.0.0-fix-path.patch new file mode 100644 index 000000000000..47a3dad538b1 --- /dev/null +++ b/dev-libs/libite/files/libite-2.0.0-fix-path.patch @@ -0,0 +1,12 @@ +diff --git a/tests/which.c b/tests/which.c +index cda57c6..3e74867 100644 +--- a/tests/which.c ++++ b/tests/which.c +@@ -21,6 +21,7 @@ int main(void) + { NULL, 0 } + }; + ++ setenv("PATH", "/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin", 1); + for (i = 0; test[i].cmd; i++) { + char *path; + diff --git a/dev-libs/libite/files/libite-2.0.0-fix-which-path.patch b/dev-libs/libite/files/libite-2.0.0-fix-which-path.patch new file mode 100644 index 000000000000..301c43715890 --- /dev/null +++ b/dev-libs/libite/files/libite-2.0.0-fix-which-path.patch @@ -0,0 +1,25 @@ +diff --git a/tests/which.c b/tests/which.c +index 46dcccf..cda57c6 100644 +--- a/tests/which.c ++++ b/tests/which.c +@@ -11,13 +11,13 @@ int main(void) + int result = 0; + size_t i; + struct tc test[] = { +- { "ls", 1 }, +- { "free", 1 }, +- { "modinfo", 1 }, +- { "useradd", 1 }, +- { "/bin/which", 1 }, +- { "/bin/ps aux", 1 }, +- { "/etc/passwd", 0 }, ++ { "ls", 1 }, ++ { "free", 1 }, ++ { "modinfo", 1 }, ++ { "useradd", 1 }, ++ { "/usr/bin/which", 1 }, ++ { "/bin/ps aux", 1 }, ++ { "/etc/passwd", 0 }, + { NULL, 0 } + }; + diff --git a/dev-libs/libite/libite-2.0.0.ebuild b/dev-libs/libite/libite-2.0.0.ebuild new file mode 100644 index 000000000000..0380b8e161c4 --- /dev/null +++ b/dev-libs/libite/libite-2.0.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="A collection of useful BSD APIs" +HOMEPAGE="https://github.com/troglobit/libite" +SRC_URI="https://github.com/troglobit/libite/releases/download/v${PV}/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs" + +PATCHES=( + "${FILESDIR}"/${P}-fix-which-path.patch + "${FILESDIR}"/${P}-fix-path.patch +) + +src_configure(){ + econf --enable-static=$(usex static-libs) +} + +src_install(){ + default + find "${D}" -name '*.la' -delete || die + rm "${D}/usr/share/doc/${PF}/LICENSE" || die +} diff --git a/dev-libs/libite/metadata.xml b/dev-libs/libite/metadata.xml new file mode 100644 index 000000000000..ec1edc5f9935 --- /dev/null +++ b/dev-libs/libite/metadata.xml @@ -0,0 +1,21 @@ + + + + + Oz Tiram + oz.tiram@gmail.com + + + proxy-maint@gentoo.org + + + Libite is a lightweight library of frog DNA. It can be used to fill the + gaps in any dinosaur project. It holds useful functions and macros + developed by both Finit and the OpenBSD project. Most notably the + string functions: strlcpy(3), strlcat(3) and the highly useful *BSD + sys/queue.h and sys/tree.h API's. + + + troglobit/libite + + -- cgit v1.2.3