sys-libs/argp-standalone: build with gcc6, bug #582776
authorAnthony G. Basile <blueness@gentoo.org>
Sat, 11 Jun 2016 01:05:49 +0000 (21:05 -0400)
committerAnthony G. Basile <blueness@gentoo.org>
Sat, 11 Jun 2016 01:06:07 +0000 (21:06 -0400)
Package-Manager: portage-2.2.28

sys-libs/argp-standalone/argp-standalone-1.3-r1.ebuild [new file with mode: 0644]

diff --git a/sys-libs/argp-standalone/argp-standalone-1.3-r1.ebuild b/sys-libs/argp-standalone/argp-standalone-1.3-r1.ebuild
new file mode 100644 (file)
index 0000000..17c1c57
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="Standalone argp library for use with uclibc"
+HOMEPAGE="http://www.lysator.liu.se/~nisse/misc/"
+SRC_URI="http://www.lysator.liu.se/~nisse/misc/argp-standalone-1.3.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~m68k ~mips ~ppc ~s390 ~sh ~x86"
+IUSE=""
+
+DEPEND="!sys-libs/glibc"
+
+src_prepare() {
+       epatch "${FILESDIR}/${P}-throw-in-funcdef.patch"
+}
+
+src_configure() {
+       append-cflags -fgnu89-inline
+       default
+}
+
+src_install() {
+       dolib.a libargp.a
+
+       insinto /usr/include
+       doins argp.h
+}