Move to ubuntu dietlibc package and patches

Package-Manager: portage-2.2.0_alpha142
RepoMan-Options: --force
This commit is contained in:
Mario Fetka 2012-11-29 09:39:07 +01:00
parent bce14e8935
commit d22421e334
4 changed files with 97 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# ChangeLog for dev-libs/dietlibc
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*dietlibc-0.33_pre20120325 (29 Nov 2012)
29 Nov 2012; Mario Fetka <mario.fetka@gmail.com>
+dietlibc-0.33_pre20120325.ebuild, +metadata.xml:
Move to ubuntu dietlibc package and patches

View File

@ -0,0 +1,5 @@
DIST dietlibc_0.33~cvs20120325-3.debian.tar.gz 36857 SHA256 3abe1d5ed8721b54de5ea67fb8cb965ac428c1efaffe29e752f577f25b2667fa SHA512 4bb8a2548b5f0ae6afaba805789f8726d62a1e9a979a9d0c0ea799a96a748277fdacb1f5b7d4a37a640f7344734ef38673ec7d36820174dcb4a6649b10bda322 WHIRLPOOL 8b495ed9dd5b89f79ab94e573e34fe46686eda6fc0b38e5452cf35a8f42c4cd8bbd0c4609b1e7912fa08fdf752aa81ddd347b3f836f146e00d1b86591e30a027
DIST dietlibc_0.33~cvs20120325.orig.tar.gz 726798 SHA256 6366f152587ba167e36ceec78cea505330c84750497aa6c8d853784abedae20a SHA512 618687d37300ecebfd3c1e315939ab05bd81372484a4f14d582a7e033a27ca498ddcd9472b41977a1830aa25aa03716f5c277e58bfa2cb2021758551a00e9f00 WHIRLPOOL 6fbdcd9b094a1137389a5380a25605f082349355f410d48b76117fc2b60ca2b790c717fe307c25df62e417b126de2abecdcb7b278e452ba9694d1fa16f291a2d
EBUILD dietlibc-0.33_pre20120325.ebuild 1938 SHA256 612bd63c719ea36dee66f64bfc081afd2e493be83cf2d796febf719c61f30984 SHA512 5f83066042ebe06708ec00c576e5f6aae43db921b1d56e1edfb2d611f77e03196b438e0a17498690dfa6eea9bb98c794098dcf537efd4ba5e5dbe280631bbe27 WHIRLPOOL bceeca8afb33ea43ca0b79272830e2b992b88fc454c78ae28a5d743041d098dea9a0690341d8dd4ee71fa2efb1c08c4caa0ea87021393bc60f274384f68db9cb
MISC ChangeLog 309 SHA256 c589e3cf15cc7534bfb795b7f1b89a2f069cfff1c021792ed72495d81d4b5eb5 SHA512 4b4f3e5a0ec417ae250289d041a0586eddded9863cfd1eeb4c2fc3a6aebb1bb87b568beae7a05ce7ee282234b89e2b33538bdcc38df588c2622a6eb8682396f9 WHIRLPOOL 34aeff97d9e997e487b58c225de223d92b2ee8a3a2c6255d9d4db26746e8c8873c8c3167ab3be13363728ee4d57b2dcdd480d6a8ff7a514d2edf24b25fcc8974
MISC metadata.xml 410 SHA256 3fc38345f9430d71c6369f84fc1b6248bc8aa0ec74cb4ae5b2797fe01cf48721 SHA512 d0819fcafbbc30e86adb68974c4bf0a09dc049a46a264647e05aa7b2f41543ac7c6fd0e206e73720404f0392cbd55b2736cbb54d63486882d439b8801a3b7547 WHIRLPOOL 1e559e60d0e43f84d18bac49ef2f338257d723fc4531d767c5f3d13511a790bbe94a93f0c60436aa86375cdb1df897e8e2fa58fc2cf8575b6a2da335721b6090

View File

@ -0,0 +1,73 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.33_pre20110403.ebuild,v 1.7 2012/08/21 03:29:23 ottxor Exp $
EAPI="3"
inherit eutils flag-o-matic toolchain-funcs
MY_PV=${PV/_pre/~cvs}
DEB_PV="3"
DESCRIPTION="A libc optimized for small size"
HOMEPAGE="http://www.fefe.de/dietlibc/"
SRC_URI="https://launchpad.net/ubuntu/+archive/primary/+files/dietlibc_${MY_PV}.orig.tar.gz
https://launchpad.net/ubuntu/+archive/primary/+files/dietlibc_${MY_PV}-${DEB_PV}.debian.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm -hppa ~mips ~sparc x86 ~amd64-linux ~x86-linux"
IUSE="debug"
DEPEND=""
RDEPEND=""
S="${WORKDIR}"/dietlibc-${MY_PV}
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 -fno-strict-aliasing
# only use -nopie on archs that support it
gcc-specs-pie && append-flags -nopie
}
src_prepare() {
EPATCH_SOURCE="${WORKDIR}/debian/patches" EPATCH_SUFFIX="diff" \
EPATCH_FORCE="yes" epatch
}
src_compile() {
emake prefix="${EPREFIX}"${DIETHOME} \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
STRIP=":" \
|| die "make failed"
}
src_install() {
emake prefix="${EPREFIX}"${DIETHOME} \
DESTDIR="${D}" \
install-bin \
install-headers \
|| die "make install failed"
dobin "${ED}"${DIETHOME}/bin/* || die "dobin failed"
doman "${ED}"${DIETHOME}/man/*/* || die "doman failed"
rm -r "${ED}"${DIETHOME}/{man,bin}
dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
}

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>vserver</herd>
<longdescription>
The diet libc is a libc that is optimized for small size. It can be
used to create small statically linked binaries for Linux on alpha, arm,
hppa, ia64, i386, mips, s390, sparc, sparc64, ppc and x86_64.
</longdescription>
</pkgmetadata>