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 --- sys-libs/suacomp/Manifest | 7 +++ .../suacomp/files/suacomp-0.6.14-strtoll.patch | 44 +++++++++++++++ sys-libs/suacomp/metadata.xml | 16 ++++++ sys-libs/suacomp/suacomp-0.6.14.ebuild | 63 ++++++++++++++++++++++ sys-libs/suacomp/suacomp-9999.ebuild | 59 ++++++++++++++++++++ 5 files changed, 189 insertions(+) create mode 100644 sys-libs/suacomp/Manifest create mode 100644 sys-libs/suacomp/files/suacomp-0.6.14-strtoll.patch create mode 100644 sys-libs/suacomp/metadata.xml create mode 100644 sys-libs/suacomp/suacomp-0.6.14.ebuild create mode 100644 sys-libs/suacomp/suacomp-9999.ebuild (limited to 'sys-libs/suacomp') diff --git a/sys-libs/suacomp/Manifest b/sys-libs/suacomp/Manifest new file mode 100644 index 000000000000..3713a37c8a2d --- /dev/null +++ b/sys-libs/suacomp/Manifest @@ -0,0 +1,7 @@ +AUX suacomp-0.6.14-strtoll.patch 1456 SHA256 774318dfb6e7505362c03a240f38817bef7b28d59e562cb140579fba85fef2fb SHA512 603c49683d7cce6f6edc0b12a1aefddfffd0e9d3c57b34ae176fa94139d3b427bee5993f7d2cd35a575113a8c42becce8b49c4c334dc8cc8fe4902b49bf9cda3 WHIRLPOOL e21dea456f2017d7659d04a55ca329c09b07a5424d9987f6cd35599566a5cf91e8c42561026b426af29e97fedcc31ff87f5de1690b0785e7f5da37564c257f30 +DIST suacomp-0.6.14.tar.gz 36712 SHA256 453c64c9c6c7f255a14fa19250696e7f3acc3a72498340b76eb681eb648df1a2 SHA512 6e559059c18c1412611d837bf2f5fad08deaf9145464347f712fdb0cd4e0dfae1b7b46253ef086bd4c98cc1555111872b6b5af5272b77a88c767e9008143b7f1 WHIRLPOOL 2e95569a5884c382682ed9ddfb2516246a2898eba8a24a5d9365152b55440ca3d1909392009fdf0f4134a1476865e0a2c8284c555d5ccdf6fa84ee38f62a46d8 +EBUILD suacomp-0.6.14.ebuild 1319 SHA256 075c8500bae5c90ae1d4319457afeb6af31bd7615f8bba79cbcc323961d8d239 SHA512 0371812d7a64eb176e2095a278c2b73456587f5f47abe8d7c02846c44cb1d6ffaeaf129598a9717646c474a5611b49d0f2b2d5c340997d6e48f55242c2aee054 WHIRLPOOL c6056a20e1b48de82cd86e48da1c979355a74a3fb3466036c612502d760158e6924ae78bcc43eae1abd8754489970dd345b6008569ba42bf345fab5b63493b19 +EBUILD suacomp-9999.ebuild 1150 SHA256 a8b6d3ec16d2696ab946202cd6f39035d3a8928ddd4f56daafe3db4cafbd09a0 SHA512 51d3774eb0fe134150ff13b82629fb9be1debef49ce870eaf329cfbde3666c4289829ff1d3703a6ce8535f659383331047e8e255b1d30747c72909d40491db4f WHIRLPOOL ae8c80f4e137b93a5a15f209442f86d987d9aa3c46b36e5205d780623403e46f4284f0c8699e16a1fa49b100acc6221d32d2856d80e20794d1f26f26b09afa2a +MISC ChangeLog 2867 SHA256 b33763dbd93b52a763dad17abed1750e19bd75fc1daa22a21bea252a5db537b2 SHA512 94a58bb0690b9fe3ba2b1e1e51d76ae5d3aacff797210e1d96e4481bfe898dea2ae1cd5bedd6bd7b3a0b94c87191c868e027beab5733ff0e2197a1c8ffb08bbe WHIRLPOOL b09b365f143bfcdd7c1f01f94f8c88bb1af9c3e98f9ad234dce98a43635c66f344aff42b9db01b5d6c8feba9f598d53380ec267753a68c5b80815ac5ed2dc4e1 +MISC ChangeLog-2015 2836 SHA256 26c7ab0f66bd4279e708559f66d6c257e740f79e000576f5b128fc3266787f1f SHA512 0d05b1be5b2dc8f6112cb062c87793a1f41ecf7744b750266a088a36a2975858e628eff9abca1014d84d19bf28feda70caf417e4f1e2369b254f9c8a0e462b91 WHIRLPOOL f10017fff04b63b0877b511abafe42f150c806b62618630f9cf3dae880ac287bb0b419ac8a0263b3d685179bc1adc548ab0bac7a6f39d3b32ff9f3958839bc0f +MISC metadata.xml 548 SHA256 699d1ec8a88d76212f750f00d007b33d90137365e1d58f664483b25c381a8b44 SHA512 a7a233b0f745af85c510fa021dded0cf5d6c57845c1517451d6e939c2784453fda9413c450cb9e8160ac2cdfbb7a898f45733f6505b19102bcfe7c1d28b81b99 WHIRLPOOL 948bc1ca4e3e19b1ed2815a7b64ddd7e7782ba904dff9fa576813398d71750d843453930a1e651d044b6926e9a480491c922a2c6c439b31ef5dd13c7e6091127 diff --git a/sys-libs/suacomp/files/suacomp-0.6.14-strtoll.patch b/sys-libs/suacomp/files/suacomp-0.6.14-strtoll.patch new file mode 100644 index 000000000000..16ee7f4e5c41 --- /dev/null +++ b/sys-libs/suacomp/files/suacomp-0.6.14-strtoll.patch @@ -0,0 +1,44 @@ +From a498772e5fe942eafe06ed62a00a21c4b99164b5 Mon Sep 17 00:00:00 2001 +From: David Holm +Date: Fri, 14 Sep 2012 20:57:30 +0200 +Subject: [PATCH] Fixes build issues on SUA 6.0 + +The prototypes for strto[u]ll.c in SUA 6.0 use C99 and are defined using (u_)quad_t. This will cause compilation to fail since there is a mismatch between stdlib.h and the implementation in suacomp. This change switches to the C99 definition and undefines strto[u]ll in case stdlib.h wants to map them to existing implementations. + +https://sourceforge.net/p/suacomp/tickets/1/ +--- + strtoll.c | 3 ++- + strtoull.c | 3 ++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/strtoll.c b/strtoll.c +index 12f9886..c9e34b8 100644 +--- a/strtoll.c ++++ b/strtoll.c +@@ -9,7 +9,8 @@ + #include + #include + +-long long int strtoll(const char* nptr, char** endptr, int base) { ++#undef strtoll ++quad_t strtoll(const char* nptr, char** endptr, int base) { + long long int ret; + DT("enter: %p, %p, %d\n", nptr, endptr, base); + +diff --git a/strtoull.c b/strtoull.c +index d0e0e67..622ee9b 100644 +--- a/strtoull.c ++++ b/strtoull.c +@@ -9,7 +9,8 @@ + #include + #include + +-long long int strtoull(const char* nptr, char** endptr, int base) { ++#undef strtoull ++u_quad_t strtoull(const char* nptr, char** endptr, int base) { + long long int ret; + DT("enter: %p, %p, %d\n", nptr, endptr, base); + +-- +1.7.6.1 + diff --git a/sys-libs/suacomp/metadata.xml b/sys-libs/suacomp/metadata.xml new file mode 100644 index 000000000000..0d95d5d4e805 --- /dev/null +++ b/sys-libs/suacomp/metadata.xml @@ -0,0 +1,16 @@ + + + + + haubi@gentoo.org + Michael Haubenwallner + + + A small library, trying to overcome the problems occuring when building + (and using) gentoo-prefix on an interix based system. This has no use + on non-interix systems. + + + suacomp + + diff --git a/sys-libs/suacomp/suacomp-0.6.14.ebuild b/sys-libs/suacomp/suacomp-0.6.14.ebuild new file mode 100644 index 000000000000..be3cecaf4bfc --- /dev/null +++ b/sys-libs/suacomp/suacomp-0.6.14.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=3 + +inherit toolchain-funcs flag-o-matic eutils + +DESCRIPTION="library wrapping the interix lib-c to make it less buggy" +HOMEPAGE="http://suacomp.sf.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BEER-WARE" +SLOT="0" +KEYWORDS="" +IUSE="debug" + +DEPEND="" +RDEPEND="" + +get_opts() { + local shlibc= + local stlibc= + + for dir in /usr/lib /usr/lib/x86; do + [[ -f ${dir}/libc.a ]] && stlibc=${dir}/libc.a + + for name in libc.so.5.2 libc.so.3.5; do + [[ -f ${dir}/${name} ]] && { shlibc=${dir}/${name}; break; } + done + + [[ -f ${shlibc} && -f ${stlibc} ]] && break + done + + echo "SHARED_LIBC=${shlibc} STATIC_LIBC=${stlibc}" +} + +pkg_setup() { + if use debug; then + append-flags -D_DEBUG -D_DEBUG_TRACE + fi +} + +src_prepare() { + [[ ${CHOST} == *-interix6* ]] && epatch "${FILESDIR}"/${P}-strtoll.patch +} + +src_compile() { + emake all CC=$(tc-getCC) $(get_opts) CFLAGS="${CFLAGS}" || die "emake failed" +} + +src_install() { + emake install PREFIX="${EPREFIX}/usr" DESTDIR="${D}" $(get_opts) \ + CFLAGS="${CFLAGS}" || die "emake install failed" +} + +src_test() { + local v= + + use debug && v="TEST_VERBOSE=1" + use debug && export SUACOMP_DEBUG_OUT=stderr + + emake check $(get_opts) ${v} || die "emake check failed" +} diff --git a/sys-libs/suacomp/suacomp-9999.ebuild b/sys-libs/suacomp/suacomp-9999.ebuild new file mode 100644 index 000000000000..c40821304da1 --- /dev/null +++ b/sys-libs/suacomp/suacomp-9999.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit toolchain-funcs flag-o-matic git-2 + +DESCRIPTION="library wrapping the interix lib-c to make it less buggy" +HOMEPAGE="http://suacomp.sf.net" +EGIT_REPO_URI="https://git.code.sf.net/p/suacomp/git" + +LICENSE="BEER-WARE" +SLOT="0" +KEYWORDS="" +IUSE="debug" + +DEPEND="" +RDEPEND="" + +get_opts() { + local shlibc= + local stlibc= + + for dir in /usr/lib /usr/lib/x86; do + [[ -f ${dir}/libc.a ]] && stlibc=${dir}/libc.a + + for name in libc.so.5.2 libc.so.3.5; do + [[ -f ${dir}/${name} ]] && { shlibc=${dir}/${name}; break; } + done + + [[ -f ${shlibc} && -f ${stlibc} ]] && break + done + + echo "SHARED_LIBC=${shlibc} STATIC_LIBC=${stlibc}" +} + +pkg_setup() { + if use debug; then + append-flags -D_DEBUG -D_DEBUG_TRACE + fi +} + +src_compile() { + emake all CC=$(tc-getCC) $(get_opts) CFLAGS="${CFLAGS}" +} + +src_install() { + emake install PREFIX="${EPREFIX}/usr" DESTDIR="${D}" $(get_opts) \ + CFLAGS="${CFLAGS}" +} + +src_test() { + local v= + + use debug && v="TEST_VERBOSE=1" + use debug && export SUACOMP_DEBUG_OUT=stderr + + emake check $(get_opts) ${v} +} -- cgit v1.2.3