dev-libs/ustr: delete unnecessary package

This commit is contained in:
Dongsu Park 2021-09-02 17:33:33 +02:00
parent 725637b6e6
commit 569f97ea33
9 changed files with 0 additions and 527 deletions

View File

@ -1,128 +0,0 @@
# ChangeLog for dev-libs/ustr
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# (auto-generated from git log)
*ustr-1.0.4-r5 (09 Aug 2015)
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org> +metadata.xml,
+ustr-1.0.4-r5.ebuild:
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
the bikeshed
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Use https by default
Convert all URLs for sites supporting encrypted connections from http to
https
Signed-off-by: Justin Lecher <jlec@gentoo.org>
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
Revert DOCTYPE SYSTEM https changes in metadata.xml
repoman does not yet accept the https version.
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
Bug: https://bugs.gentoo.org/552720
*ustr-1.0.4-r6 (13 Sep 2015)
13 Sep 2015; Ian Delaney <idella4@gentoo.org>
+files/ustr-1.0.4-gcc_5-check.patch, +ustr-1.0.4-r6.ebuild:
revbump; patch and ebuild submitted in bug #556452
Package-Manager: portage-2.2.20.1
*ustr-1.0.4-r7 (15 Sep 2015)
15 Sep 2015; Ian Delaney <idella4@gentoo.org> -ustr-1.0.4-r6.ebuild,
+ustr-1.0.4-r7.ebuild:
revbump
ustr-1.0.4-r7.ebuild made from base of ustr-1.0.4-r5.ebuild with
changes from Bug #556452 correcting patch submitted by user which
added changes to the stabled ustr-1.0.4-r5 as the base, removed the
brokenustr-1.0.4-r6 ebuild, ack to Arfrever for reporting and
providing support to make ustr-1.0.4-r7.
Package-Manager: portage-2.2.20.1
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Replace all herds with appropriate projects (GLEP 67)
Replace all uses of herd with appropriate project maintainers, or no
maintainers in case of herds requested to be disbanded.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Set appropriate maintainer types in metadata.xml (GLEP 67)
17 Feb 2016; Mike Frysinger <vapier@gentoo.org> ustr-1.0.4-r7.ebuild:
unify emake calls
Also fix $EPREFIX usage in more paths, and respect CPPFLAGS settings.
17 Feb 2016; Mike Frysinger <vapier@gentoo.org> ustr-1.0.4-r7.ebuild:
add a configure stage for cross-compiling
The build system likes to compile & run programs to figure out host
features. This fails when cross-compiling and such, so add a func
to do all with compile tests.
*ustr-1.0.4-r8 (17 Feb 2016)
17 Feb 2016; Mike Frysinger <vapier@gentoo.org>
+files/ustr-1.0.4-build-libs.patch, metadata.xml, +ustr-1.0.4-r8.ebuild:
make installed file set more minimal
Add USE=static-libs to control install of the static archive.
Add USE=ustr-import to control install of the dev tool and source tree.
Punt the xxx-debug libs as this isn't how we handle debugging in Gentoo.
17 Feb 2016; Mike Frysinger <vapier@gentoo.org> ustr-1.0.4-r8.ebuild:
add arm64 love
10 Jun 2016; Agostino Sarubbo <ago@gentoo.org> ustr-1.0.4-r8.ebuild:
amd64 stable wrt bug #584758
Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
25 Jun 2016; Agostino Sarubbo <ago@gentoo.org> ustr-1.0.4-r8.ebuild:
x86 stable wrt bug #584758
Package-Manager: portage-2.2.28
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>

View File

@ -1,73 +0,0 @@
# ChangeLog for dev-libs/ustr
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ustr/ChangeLog,v 1.17 2015/05/05 19:33:04 mrueg Exp $
05 May 2015; Manuel Rüger <mrueg@gentoo.org> -ustr-1.0.4-r1.ebuild,
-ustr-1.0.4-r2.ebuild, -ustr-1.0.4-r3.ebuild, -ustr-1.0.4-r4.ebuild:
Remove old.
02 Dec 2014; Pacho Ramos <pacho@gentoo.org> ustr-1.0.4-r5.ebuild:
amd64/x86 stable, bug #525988
*ustr-1.0.4-r5 (02 Jun 2014)
02 Jun 2014; Sven Vermeulen <swift@gentoo.org> +ustr-1.0.4-r5.ebuild:
Update multilib support in ustr with many thanks to Arfrever
*ustr-1.0.4-r4 (30 May 2014)
30 May 2014; Sven Vermeulen <swift@gentoo.org> +ustr-1.0.4-r4.ebuild:
Add multilib support, needed for libsemanage (bug #506460) thanks to Sven Eden
14 Jan 2014; Agostino Sarubbo <ago@gentoo.org> ustr-1.0.4-r3.ebuild:
Stable for x86, wrt bug #495414
12 Jan 2014; Pacho Ramos <pacho@gentoo.org> ustr-1.0.4-r3.ebuild:
amd64 stable, bug #495414
07 Jan 2014; Sergey Popov <pinkbyte@gentoo.org> ustr-1.0.4-r3.ebuild:
Add ~arm and ~mips keywords
*ustr-1.0.4-r3 (09 Nov 2013)
09 Nov 2013; Markos Chandras <hwoarang@gentoo.org> +ustr-1.0.4-r3.ebuild,
metadata.xml:
Fix installation path. Patch by Sven Eden <Yamakuzure@gmx.net> who will also
be the maintainer
*ustr-1.0.4-r2 (13 Oct 2013)
13 Oct 2013; Jeroen Roovers <jer@gentoo.org> +ustr-1.0.4-r2.ebuild:
Respect AR/CC/CFLAGS, build verbosely (in src_test() as well). Remove
unneeded die().
12 Oct 2013; Pacho Ramos <pacho@gentoo.org> metadata.xml:
Cleanup due #237340
12 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-ustr-1.0.4.ebuild:
Delete.
12 Feb 2011; Markos Chandras <hwoarang@gentoo.org> ustr-1.0.4-r1.ebuild:
Stable on amd64 wrt bug #353781
10 Feb 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> ustr-1.0.4-r1.ebuild:
x86 stable wrt bug #353781
05 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
ustr-1.0.4-r1.ebuild:
Fix installation with FEATURES="multilib-strict".
*ustr-1.0.4-r1 (02 Aug 2009)
02 Aug 2009; Chris PeBenito <pebenito@gentoo.org> +ustr-1.0.4-r1.ebuild:
Fix bugs #240230, #241280, and #243954.
22 Jul 2009; Chris PeBenito <pebenito@gentoo.org> ustr-1.0.4.ebuild:
Mark stable. Remove old ebuilds.
*ustr-1.0.4 (03 Oct 2008)
03 Oct 2008; Chris PeBenito <pebenito@gentoo.org> +metadata.xml,
+ustr-1.0.4.ebuild:
Initial commit.

View File

@ -1,9 +0,0 @@
AUX ustr-1.0.4-build-libs.patch 2058 SHA256 a9bc75555f33a86168ba25b09c570ddefb5341c5120266fa20ccfd3e788db4ba SHA512 122c38e4779526ae821341b10757454b28c35d59d99aee919d23f691fc06b019983467c5bdd0b8ca8d3e939e357e9bb588f61d4dd2ebb33235d720d637f20f86 WHIRLPOOL 9c7c13249d563d894fd182c79918b6864493ff3546befb68bda11415d16f20698fa08d401ccc8adfacefe3a2db3b16a06ff09039d6e9faa3503703a2b0a342a7
AUX ustr-1.0.4-gcc_5-check.patch 1087 SHA256 e68b420be7595f99ac48379bf645bad3e939f1d842435e3931b503873f3c54ab SHA512 b669a40929cf45cb83aa5c738cb58676cc9c08ee6c84dd7c79352c6aaa7aa36526a0878e98d78b45cfe3c7f62e9b014fe9eaf01fb1b4b460658cfcb1e77d7dab WHIRLPOOL cee638bac514d57de6a492791a54b56372d84ab66e52ebb2b2877f3d64b2f73bfbde0e4eed4954563439cb1d2ae34accfd539eedbdd27c2b781aafed73251260
DIST ustr-1.0.4.tar.bz2 233723 SHA256 3daf6eae9f78de1e872c0b2b83cce35515b94d4bb8a074e48f331fd99e1fc2c4 SHA512 b7df6ca3a9f25ee6f5c9ab4325732d348de27c5e02ebff36a7d5706f56b2df994df35bd652825a28e27bbde731c6a5933248d99c670d192b1952e7534eec1510 WHIRLPOOL b37783d844e85c3bd7725ac92ca2c84f27f03914d5cf79da2a1c2e48f737d869c49763d1c1ed799cc117d7b414aa8792e6d5833e028521ffaf500735ad4084c2
EBUILD ustr-1.0.4-r5.ebuild 1261 SHA256 ae0cf4b99933915d7a2140f73576628a0f94197ecf7988de6241fb1ecebeeba7 SHA512 ba232e09d91544be24bada5ea64499c40a2c1c13d96def6a9c9b4259c033d0dde3ca1ee9e20e1383bb07b5a67d6cbad68396c886a05595e186bd41bed02df850 WHIRLPOOL 48c31b16d265562008dd1a405401a6a99626cb92a2689efaf99f6a471eba03b48fa80f0ba4d3e1ef7b68191a7bb6febbb445945808774a3adf279c1a313ad081
EBUILD ustr-1.0.4-r7.ebuild 1786 SHA256 771637957e8a5f05a26214db966c828adb886f7f130d68e993ca3407b44303df SHA512 61dad5bf8a9ed48074d6d2858b16ba233aeb030e27606be7d25573a8a2ce61dbf61f66e45c0f667421f2c227d48fa770a5dd1f4b41980f4d0a58a7e2bb607f41 WHIRLPOOL 406ad29f126e789033692f7542ce3772c2808e29049b8ecedf371c748c65901a4b464f91d6ca46bddac0a24195f5e2bdb4118d4f84bff0d588e45f9ecf4df7e9
EBUILD ustr-1.0.4-r8.ebuild 2066 SHA256 4992b9ec8de363df0c4fa9ceb9899d530f915b93798af15010a61c7f0e888950 SHA512 353403890647d431bfcd0cb7cae9cf61cf2e4933263a941d128b7cfeafc89f716d756b6001a5f40b5aa515efd810c7211868a50303c6ad362964301ae0fed2ea WHIRLPOOL 16def44cab1f15a07fb02fa9e4101df4b0f647e54ce1987fa07a37b3e1989e6cf557372191d9f94fadea43a8ec595a797cab54ae9af56c20c46f9758b9f1ef21
MISC ChangeLog 4560 SHA256 3935ac0a792982f5be792b0eda7a69d68604a5d407c4fed146e76a0d048d6990 SHA512 9d30d7763361ff7e39e231c896503bdaa943f47a69ad322e993c031de802125875a2bbfec086900c224e23ad28e79ca70eb1f0e7dc4483c237fcfccf5679491e WHIRLPOOL 40d56941b01e9eaef12d8aa83d5a74f720d24e72d9b1c8ba7b994a3b4b430cdfef689627e87692a8dc1bf211647767a194a77a187e3ff81128d425af3c1be7ed
MISC ChangeLog-2015 2471 SHA256 036dc588a3139866469aaec5fe0c7fe02525936ac42e1ac95e42a1183ad911ec SHA512 b28cab020696002d48eaba2c606ebe3814a0cf7c134e664e9619333fa9f82acd775ea880d414864f1b8db2428cb63bdbff6ccbb35b1c556ba3c46de4bdfeafd3 WHIRLPOOL 3b66c5d3d55dd78fec05fad0563bdacc72b32914efbfd9f717e05fdfc66250140578650ac840f4847c6c1a835370450ea35b858230478ba6e78d9bbb0f4c9898
MISC metadata.xml 525 SHA256 2757c2384bdfba67fafa5780aead6901a4302c74b915fb2dd06c714bfddb33cf SHA512 29eeec1073b67bf0fcc11f30b9ee0f41db40fb976937e6b6397e80d1019856cf2e08da8da956c6bbe34ac1d48323b2521d7b57dfbf3e379bfe6ed1aa90aada14 WHIRLPOOL c5a1eeaa0a850ff6bff94221bdb4afb95ff0fd1a9e7dffff07e2b7cd2ee493c6e5cb9ca7be5f04dce7ff43df794d69658bd05f7b36bd3ff29f75e8cd97468140

View File

@ -1,49 +0,0 @@
make static lib build/install controllable so we can disable it by default
punt the -debug lib variants ... if people want debug libs, they can rebuild
the package using their desired build settings.
--- a/Makefile
+++ b/Makefile
@@ -291,8 +291,10 @@
OPT_LIB_SHARED = libustr-$(VERS_BSO).so.$(VERS_ESO)
OPT_LIB_STATIC = libustr.a
-LIB_SHARED = $(DBG_LIB_SHARED) $(OPT_LIB_SHARED)
-LIB_STATIC = $(DBG_LIB_STATIC) $(OPT_LIB_STATIC)
+LIB_SHARED = $(OPT_LIB_SHARED)
+ifeq ($(USE_STATIC),yes)
+LIB_STATIC = $(OPT_LIB_STATIC)
+endif
DEPS_NONC_ALL = $(SRC_HDRS) $(SRC_SRCS_H)
DEPS_C_ALL = $(SRC_HDRS)
@@ -388,17 +390,14 @@
install -d $(DESTDIR)$(bindir)
install -d $(DESTDIR)$(libdir)/pkgconfig
$(HIDE)echo Installing files
+ifeq ($(USE_STATIC),yes)
install -m 644 -t $(DESTDIR)$(libdir) $(LIB_STATIC)
+endif
install -m 755 -t $(DESTDIR)$(libdir) $(LIB_SHARED)
-rm -f $(DESTDIR)$(libdir)/$(OPT_LIB_SHARED_NAME)
ln -s $(OPT_LIB_SHARED) $(DESTDIR)$(libdir)/$(OPT_LIB_SHARED_NAME)
-rm -f $(DESTDIR)$(libdir)/$(OPT_LIB_SHAREDEV)
ln -s $(OPT_LIB_SHARED_NAME) $(DESTDIR)$(libdir)/$(OPT_LIB_SHAREDEV)
- -rm -f $(DESTDIR)$(libdir)/$(DBG_LIB_SHARED_NAME)
- ln -s $(DBG_LIB_SHARED) $(DESTDIR)$(libdir)/$(DBG_LIB_SHARED_NAME)
- -rm -f $(DESTDIR)$(libdir)/$(DBG_LIB_SHAREDEV)
- ln -s $(DBG_LIB_SHARED_NAME) $(DESTDIR)$(libdir)/$(DBG_LIB_SHAREDEV)
- $(LDCONFIG) -n $(DESTDIR)$(libdir)
install -pm 644 -t $(DESTDIR)$(includedir) $(SRC_HDRS)
install -pm 644 -t $(DESTDIR)$(SHRDIR) $(SRC_SRCS)
install -pm 644 -t $(DESTDIR)$(SHRDIR) $(XSRC_SRCS)
@@ -406,7 +406,7 @@ endif
install -pm 644 -t $(DESTDIR)$(mandir)/man1 $(MAN_PAGES_1)
install -pm 644 -t $(DESTDIR)$(mandir)/man3 $(MAN_PAGES_3)
install -m 755 -t $(DESTDIR)$(bindir) ustr-import
- install -pm 644 -t $(DESTDIR)$(libdir)/pkgconfig ustr.pc ustr-debug.pc
+ install -pm 644 -t $(DESTDIR)$(libdir)/pkgconfig ustr.pc
ustr-import-multilib: ustr-import-multilib.in
sed -e 's,@INCLUDEDIR@,$(includedir),g' -e 's,@MBINDIR@,$(MBINDIR),g' < $< > $@

View File

@ -1,28 +0,0 @@
--- a/ustr-conf.h.in 2007-10-22 08:00:55.000000000 +0200
+++ b/ustr-conf.h.in 2015-09-10 12:24:34.998796842 +0200
@@ -4,13 +4,24 @@
/* this is the custom version for the library itself, for everyone else
* ustr-import generates one depending on the options. */
+/* If this is GCC with major version 5 and up, the default C standard
+ * has changed from C89 to C99 so the old inline behaviour must be
+ * restored:
+ */
+#if defined(__GNUC__) \
+ && (__GNUC__ > 4) \
+ && defined(__STDC_VERSION__) \
+ && (__STDC_VERSION__ >= 199901L)
+# define inline inline __attribute__ ((gnu_inline))
+#endif /* GCC greater than major version 4 and not -std=c89 set */
+
/* The default is now to link against libc. */
#ifndef USTR_CONF_INCLUDE_CODEONLY_HEADERS
#define USTR_CONF_INCLUDE_CODEONLY_HEADERS 0
#endif
/* We can't: if defined(__GLIBC__) && (!defined(_GNU_SOURCE) || !_GNU_SOURCE)
- * because by the time we've included a libc header it's too late. */
+ * because by the time we've included a libc header it's too late. */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif

View File

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>Yamakuzure@gmx.net</email>
<name>Sven Eden</name>
<description>Maintainer. Assign bugs to him</description>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<use>
<flag name="ustr-import">Install ustr-import developer program and source code for bundling.</flag>
</use>
</pkgmetadata>

View File

@ -1,66 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit toolchain-funcs multilib-minimal
DESCRIPTION="Low-overhead managed string library for C"
HOMEPAGE="http://www.and.org/ustr"
SRC_URI="ftp://ftp.and.org/pub/james/ustr/${PV}/${P}.tar.bz2"
LICENSE="|| ( BSD-2 MIT LGPL-2 )"
SLOT="0"
KEYWORDS="amd64 ~arm ~mips x86"
IUSE=""
DEPEND=""
RDEPEND=""
DOCS=(ChangeLog README README-DEVELOPERS AUTHORS NEWS TODO)
MULTILIB_WRAPPED_HEADERS=(
/usr/include/ustr-conf.h
/usr/include/ustr-conf-debug.h
)
src_prepare() {
multilib_copy_sources
}
multilib_src_compile() {
emake \
AR="$(tc-getAR)" \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
prefix="${EPREFIX}/usr" \
SHRDIR="/usr/share/${P}" \
HIDE= \
all-shared
}
multilib_src_install() {
emake \
DESTDIR="${D}" \
prefix="${EPREFIX}/usr" \
libdir="${EPREFIX}/usr/$(get_libdir)" \
mandir="/usr/share/man" \
SHRDIR="/usr/share/${P}" \
DOCSHRDIR="/usr/share/doc/${PF}" \
HIDE= \
install
}
multilib_src_test() {
emake \
AR="$(tc-getAR)" \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
prefix="${EPREFIX}/usr" \
SHRDIR="/usr/share/${P}" \
HIDE= \
check
}

View File

@ -1,74 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit toolchain-funcs multilib-minimal
DESCRIPTION="Low-overhead managed string library for C"
HOMEPAGE="http://www.and.org/ustr"
SRC_URI="ftp://ftp.and.org/pub/james/ustr/${PV}/${P}.tar.bz2"
LICENSE="|| ( BSD-2 MIT LGPL-2 )"
SLOT="0"
KEYWORDS="~amd64 ~arm ~mips ~x86"
DOCS=(ChangeLog README README-DEVELOPERS AUTHORS NEWS TODO)
MULTILIB_WRAPPED_HEADERS=(
/usr/include/ustr-conf.h
/usr/include/ustr-conf-debug.h
)
src_prepare() {
epatch "${FILESDIR}/${P}-gcc_5-check.patch"
multilib_copy_sources
}
_emake() {
emake \
AR="$(tc-getAR)" \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS} ${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" \
prefix="${EPREFIX}/usr" \
libdir="${EPREFIX}/usr/$(get_libdir)" \
mandir="${EPREFIX}/usr/share/man" \
SHRDIR="${EPREFIX}/usr/share/${P}" \
DOCSHRDIR="${EPREFIX}/usr/share/doc/${PF}" \
HIDE= \
"$@"
}
multilib_src_configure() {
# The included configure tests require execution.
# We require vsnprintf everywhere as it's in POSIX.
printf '#!/bin/sh\necho 0\n' > autoconf_vsnprintf
chmod a+rx autoconf_vsnprintf
# Always use stdint.h as it's in POSIX.
sed -i '/have_stdint_h=0/s:=0:=1:' Makefile || die
# Figure out the size of size_t.
printf '#include <sys/types.h>\nint main() { char buf[sizeof(size_t) - 8]; }\n' > sizet_test.c
$(tc-getCC) ${CPPFLAGS} ${CFLAGS} -c sizet_test.c 2>/dev/null
printf '#!/bin/sh\necho %s\n' $(( $? == 0 )) > autoconf_64b
chmod a+rx autoconf_64b
# Generate the config file now to avoid bad makefile deps.
_emake ustr-import
}
multilib_src_compile() {
_emake all-shared
}
multilib_src_install() {
_emake DESTDIR="${D}" install
}
multilib_src_test() {
_emake check
}

View File

@ -1,84 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit toolchain-funcs multilib-minimal
DESCRIPTION="Low-overhead managed string library for C"
HOMEPAGE="http://www.and.org/ustr"
SRC_URI="ftp://ftp.and.org/pub/james/ustr/${PV}/${P}.tar.bz2"
LICENSE="|| ( BSD-2 MIT LGPL-2 )"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~mips x86"
IUSE="static-libs ustr-import"
DOCS=(ChangeLog README README-DEVELOPERS AUTHORS NEWS TODO)
MULTILIB_WRAPPED_HEADERS=(
/usr/include/ustr-conf.h
/usr/include/ustr-conf-debug.h
)
src_prepare() {
epatch "${FILESDIR}/${P}-gcc_5-check.patch"
epatch "${FILESDIR}/${PN}-1.0.4-build-libs.patch"
multilib_copy_sources
}
_emake() {
emake \
USE_STATIC=$(usex static-libs) \
AR="$(tc-getAR)" \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS} ${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" \
prefix="${EPREFIX}/usr" \
libdir="${EPREFIX}/usr/$(get_libdir)" \
mandir="${EPREFIX}/usr/share/man" \
SHRDIR="${EPREFIX}/usr/share/${P}" \
DOCSHRDIR="${EPREFIX}/usr/share/doc/${PF}" \
HIDE= \
"$@"
}
multilib_src_configure() {
# The included configure tests require execution.
# We require vsnprintf everywhere as it's in POSIX.
printf '#!/bin/sh\necho 0\n' > autoconf_vsnprintf
chmod a+rx autoconf_vsnprintf
# Always use stdint.h as it's in POSIX.
sed -i '/have_stdint_h=0/s:=0:=1:' Makefile || die
# Figure out the size of size_t.
printf '#include <sys/types.h>\nint main() { char buf[sizeof(size_t) - 8]; }\n' > sizet_test.c
$(tc-getCC) ${CPPFLAGS} ${CFLAGS} -c sizet_test.c 2>/dev/null
printf '#!/bin/sh\necho %s\n' $(( $? == 0 )) > autoconf_64b
chmod a+rx autoconf_64b
# Generate the config file now to avoid bad makefile deps.
_emake ustr-import
}
multilib_src_compile() {
_emake all-shared
}
multilib_src_install() {
_emake DESTDIR="${D}" install
if ! use ustr-import ; then
rm -r \
"${ED}/usr/bin/ustr-import" \
"${ED}/usr/share/man/man1/ustr-import.1" \
"${ED}/usr/share/${P}" || die
fi
}
multilib_src_test() {
_emake check
}