diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2012-05-25 11:19:39 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2012-05-25 11:19:39 +0000 |
commit | 1951ce23e256539bc72bab4e063e21d72134c75a (patch) | |
tree | e7514fa32664b3eb96abe573db7e4844951d2e00 /sys-libs | |
parent | Fix passing of O3 to cflags. Thanks to ago. (diff) | |
download | gentoo-2-1951ce23e256539bc72bab4e063e21d72134c75a.tar.gz gentoo-2-1951ce23e256539bc72bab4e063e21d72134c75a.tar.bz2 gentoo-2-1951ce23e256539bc72bab4e063e21d72134c75a.zip |
Initial commit, thanks Ed Wildgoose, bug #292189
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/argp-standalone/ChangeLog | 11 | ||||
-rw-r--r-- | sys-libs/argp-standalone/argp-standalone-1.3.ebuild | 27 | ||||
-rw-r--r-- | sys-libs/argp-standalone/files/argp-standalone-1.3-throw-in-funcdef.patch | 79 | ||||
-rw-r--r-- | sys-libs/argp-standalone/metadata.xml | 12 |
4 files changed, 129 insertions, 0 deletions
diff --git a/sys-libs/argp-standalone/ChangeLog b/sys-libs/argp-standalone/ChangeLog new file mode 100644 index 000000000000..079f56ca001b --- /dev/null +++ b/sys-libs/argp-standalone/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-libs/argp-standalone +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/argp-standalone/ChangeLog,v 1.1 2012/05/25 11:19:38 blueness Exp $ + +*argp-standalone-1.3 (25 May 2012) + + 25 May 2012; Anthony G. Basile <blueness@gentoo.org> + +argp-standalone-1.3.ebuild, + +files/argp-standalone-1.3-throw-in-funcdef.patch, +metadata.xml: + Initial commit, thanks Ed Wildgoose, bug #292189 + diff --git a/sys-libs/argp-standalone/argp-standalone-1.3.ebuild b/sys-libs/argp-standalone/argp-standalone-1.3.ebuild new file mode 100644 index 000000000000..7e617cae1398 --- /dev/null +++ b/sys-libs/argp-standalone/argp-standalone-1.3.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/argp-standalone/argp-standalone-1.3.ebuild,v 1.1 2012/05/25 11:19:38 blueness Exp $ + +EAPI="4" + +inherit eutils + +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 ~mips ~ppc ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}/${P}-throw-in-funcdef.patch" +} + +src_install() { + dolib.a libargp.a + + insinto /usr/include + doins argp.h +} diff --git a/sys-libs/argp-standalone/files/argp-standalone-1.3-throw-in-funcdef.patch b/sys-libs/argp-standalone/files/argp-standalone-1.3-throw-in-funcdef.patch new file mode 100644 index 000000000000..4a90751e1e62 --- /dev/null +++ b/sys-libs/argp-standalone/files/argp-standalone-1.3-throw-in-funcdef.patch @@ -0,0 +1,79 @@ +# --- T2-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# T2 SDE: package/.../rng-tools/throw-in-funcdef.patch.argp-standalone +# Copyright (C) 2006 The T2 SDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- T2-COPYRIGHT-NOTE-END --- + + +No __THROW in function implementation. + --jsaw + +--- argp-standalone-1.4-test2/argp.h.orig 2006-01-06 02:29:59.000000000 +0100 ++++ argp-standalone-1.4-test2/argp.h 2006-01-06 02:41:10.000000000 +0100 +@@ -560,17 +560,17 @@ + # endif + + # ifndef ARGP_EI +-# define ARGP_EI extern __inline__ ++# define ARGP_EI extern inline + # endif + + ARGP_EI void +-__argp_usage (__const struct argp_state *__state) __THROW ++__argp_usage (__const struct argp_state *__state) + { + __argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE); + } + + ARGP_EI int +-__option_is_short (__const struct argp_option *__opt) __THROW ++__option_is_short (__const struct argp_option *__opt) + { + if (__opt->flags & OPTION_DOC) + return 0; +@@ -582,7 +582,7 @@ + } + + ARGP_EI int +-__option_is_end (__const struct argp_option *__opt) __THROW ++__option_is_end (__const struct argp_option *__opt) + { + return !__opt->key && !__opt->name && !__opt->doc && !__opt->group; + } +--- argp-standalone-1.4-test2/argp-parse.c.orig 2006-01-06 02:47:48.000000000 +0100 ++++ argp-standalone-1.4-test2/argp-parse.c 2006-01-06 02:48:16.000000000 +0100 +@@ -1290,13 +1290,13 @@ + /* Defined here, in case a user is not inlining the definitions in + * argp.h */ + void +-__argp_usage (__const struct argp_state *__state) __THROW ++__argp_usage (__const struct argp_state *__state) + { + __argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE); + } + + int +-__option_is_short (__const struct argp_option *__opt) __THROW ++__option_is_short (__const struct argp_option *__opt) + { + if (__opt->flags & OPTION_DOC) + return 0; +@@ -1310,7 +1310,7 @@ + } + + int +-__option_is_end (__const struct argp_option *__opt) __THROW ++__option_is_end (__const struct argp_option *__opt) + { + return !__opt->key && !__opt->name && !__opt->doc && !__opt->group; + } diff --git a/sys-libs/argp-standalone/metadata.xml b/sys-libs/argp-standalone/metadata.xml new file mode 100644 index 000000000000..d4bc42416584 --- /dev/null +++ b/sys-libs/argp-standalone/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> + <maintainer> + <email>gentoo@wildgooses.com</email> + <name>Ed Wildgoose</name> + </maintainer> +</pkgmetadata> |