diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-11-18 17:16:38 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-11-18 17:16:38 +0000 |
commit | 5e58135ccba76418e9335f74d07ab904b1e54945 (patch) | |
tree | 3c37bf3aabe58c33a575024166affdfa2141a7b6 | |
parent | Version bump. Fix underlinking issue (bug #369879). Respect CFLAGS (no -g or ... (diff) | |
download | gentoo-2-5e58135ccba76418e9335f74d07ab904b1e54945.tar.gz gentoo-2-5e58135ccba76418e9335f74d07ab904b1e54945.tar.bz2 gentoo-2-5e58135ccba76418e9335f74d07ab904b1e54945.zip |
Version bump wrt #376487 by Agostino Sarubbo
(Portage version: 2.2.0_alpha73/cvs/Linux x86_64)
-rw-r--r-- | dev-libs/libbsd/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/libbsd/libbsd-0.3.0.ebuild | 56 |
2 files changed, 62 insertions, 1 deletions
diff --git a/dev-libs/libbsd/ChangeLog b/dev-libs/libbsd/ChangeLog index 5c17effa6344..8fc3711395a0 100644 --- a/dev-libs/libbsd/ChangeLog +++ b/dev-libs/libbsd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/libbsd # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libbsd/ChangeLog,v 1.3 2011/10/24 20:21:18 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libbsd/ChangeLog,v 1.4 2011/11/18 17:16:38 ssuominen Exp $ + +*libbsd-0.3.0 (18 Nov 2011) + + 18 Nov 2011; Samuli Suominen <ssuominen@gentoo.org> +libbsd-0.3.0.ebuild: + Version bump wrt #376487 by Agostino Sarubbo 24 Oct 2011; Markus Meier <maekke@gentoo.org> libbsd-0.2.0.ebuild: x86 stable, bug #387929 diff --git a/dev-libs/libbsd/libbsd-0.3.0.ebuild b/dev-libs/libbsd/libbsd-0.3.0.ebuild new file mode 100644 index 000000000000..9237d6b9ccd0 --- /dev/null +++ b/dev-libs/libbsd/libbsd-0.3.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libbsd/libbsd-0.3.0.ebuild,v 1.1 2011/11/18 17:16:38 ssuominen Exp $ + +EAPI=4 +inherit multilib toolchain-funcs + +DESCRIPTION="A BSD compatibility library" +HOMEPAGE="http://libbsd.freedesktop.org/wiki/" +SRC_URI="http://libbsd.freedesktop.org/releases/${P}.tar.gz" + +LICENSE="BSD BSD-2 BSD-4 ISC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs" + +pkg_setup() { + mylibbsdconf=( + AR="$(tc-getAR)" + CC="$(tc-getCC)" + libdir=/usr/$(get_libdir) + usrlibdir=/usr/$(get_libdir) + ) + + local f="${ROOT}"usr/$(get_libdir)/libbsd.a + if ! has_version dev-libs/libbsd; then + if [[ -e ${f} ]]; then + eerror "You need to remove ${f} by hand or re-emerge sys-libs/glibc first." + die "You need to remove ${f} by hand or re-emerge sys-libs/glibc first." + fi + fi +} + +src_prepare() { + # Instead of replacing upstream warning flags, append to them + sed -i -e 's:CFLAGS ?= -g:CFLAGS +=:' Makefile || die + + if ! use static-libs; then + sed -i \ + -e '/^libs/s:$(LIB_STATIC)::' \ + -e 's:install -m644 $(LIB_STATIC):-&:' \ + Makefile || die + fi +} + +src_compile() { + emake "${mylibbsdconf[@]}" +} + +src_install() { + emake DESTDIR="${D}" "${mylibbsdconf[@]}" install + dodoc ChangeLog README TODO + + # Fix file collision with dev-libs/elfutils by removing deprecated include + rm -f "${ED}"usr/include/nlist.h +} |