diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2009-08-10 10:21:40 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2009-08-10 10:21:40 +0000 |
commit | f8f82506ce73179d218f9abf55202c3ab905a05b (patch) | |
tree | cc572e91e19d50e6aabbd9505700fbad50d33dda /dev-libs/dietlibc/dietlibc-0.33_pre20090721.ebuild | |
parent | bump libass requirement (diff) | |
download | gentoo-2-f8f82506ce73179d218f9abf55202c3ab905a05b.tar.gz gentoo-2-f8f82506ce73179d218f9abf55202c3ab905a05b.tar.bz2 gentoo-2-f8f82506ce73179d218f9abf55202c3ab905a05b.zip |
version bump
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'dev-libs/dietlibc/dietlibc-0.33_pre20090721.ebuild')
-rw-r--r-- | dev-libs/dietlibc/dietlibc-0.33_pre20090721.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-libs/dietlibc/dietlibc-0.33_pre20090721.ebuild b/dev-libs/dietlibc/dietlibc-0.33_pre20090721.ebuild new file mode 100644 index 000000000000..224907626848 --- /dev/null +++ b/dev-libs/dietlibc/dietlibc-0.33_pre20090721.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.33_pre20090721.ebuild,v 1.1 2009/08/10 10:21:40 hollow Exp $ + +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="A minimal libc" +HOMEPAGE="http://www.fefe.de/dietlibc/" +SRC_URI="http://bb.xnull.de/projects/dietlibc/dist/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug" + +DEPEND="" +RDEPEND="" + +DIETHOME=/usr/diet + +pkg_setup() { + # Replace sparc64 related C[XX]FLAGS (see bug #45716) + use sparc && replace-sparc64-flags + + # gcc-hppa suffers support for SSP, compilation will fail + use hppa && strip-unsupported-flags + + # debug flags + use debug && append-flags -g + + # Makefile does not append CFLAGS + append-flags -nostdinc -W -Wall -Wextra -Wchar-subscripts \ + -Wmissing-prototypes -Wmissing-declarations -Wno-switch \ + -Wno-unused -Wredundant-decls +} + +src_compile() { + emake prefix=${DIETHOME} CC="$(tc-getCC)" CFLAGS="${CFLAGS}" -j1 || die "make failed" +} + +src_install() { + emake prefix=${DIETHOME} DESTDIR="${D}" -j1 install || die "make install failed" + dobin "${D}"${DIETHOME}/bin/* || die "dobin failed" + doman "${D}"${DIETHOME}/man/*/* || die "doman failed" + rm -r "${D}"${DIETHOME}/{man,bin} + dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING +} |