diff options
Diffstat (limited to 'dev-libs/dietlibc')
-rw-r--r-- | dev-libs/dietlibc/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/dietlibc/dietlibc-0.34_pre20140729-r1.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-libs/dietlibc/Manifest b/dev-libs/dietlibc/Manifest index 7234e90ee167..fad333496efc 100644 --- a/dev-libs/dietlibc/Manifest +++ b/dev-libs/dietlibc/Manifest @@ -1,5 +1,6 @@ DIST dietlibc-0.33_pre20110403.tar.gz 743758 BLAKE2B e6c4a6bf3198833ef309ce8035453d0c75b2e365dd4da3710c00200004ca6200f8f629bacfcaa1a4507dc43ab3b5c13ddc79ef285a77426a5c64608e308559fb SHA512 32f9d752a77bcca5703a388ba64dcb53de75999043c1b2fabe973eba05fce4e9f48a6bdb71e061939eee339ca723234d33d2acb3677a8030accaccba31a5932e DIST dietlibc-0.34_pre20140729.tar.bz2 670195 BLAKE2B 9479c97c09b0c8c7e5d85536afd962613e9f5fbcb1aff3ef9b2aace19d246b2d0b637f00c3abee0a2c06f170263e85ffba94247171afc47e40c8ab0e95fe5191 SHA512 a0bb5465f7fc985fd074dfcc4039003ec26b6b5fde5f2ccc53322067bd1a6459e742c9debeffda0b5146e287baa8e49f74f4a8ffafdf1daacacec4768d13db36 EBUILD dietlibc-0.33_pre20110403.ebuild 1688 BLAKE2B 26dddfa9f951ffec44b53749403ebb2ceca663778874b1498ae7a53e375b4069b19cbb201a398af8c2adf92f81fbbbeab170cb35530aaa0f75fe32bb6cfc1831 SHA512 96382993aeb9d91f4512f354691988a6683957a5bfb4a4009fee48b9d0ec1205a13bb574bab953839b20a4b278f41e94fce31c811bd125d5d138609fa90487ec +EBUILD dietlibc-0.34_pre20140729-r1.ebuild 1578 BLAKE2B 98afe30dfd64a7adbeddd1236eac393e50f0be6a621208dd1f7988dcebc282fc7cbbf29fd624cb69739365b621a466d2a7677e39cf7ff8a4c3995c02752e6441 SHA512 5f7a30d563188980e751d78afc7aced3f157f6de4889f2aa46b9f0b48756da8182d73b3a6a2bde48d6701cb19032dd1c0e32c154438973d703400c38abd7e452 EBUILD dietlibc-0.34_pre20140729.ebuild 1577 BLAKE2B f4aa508e7c55a86917295819b54f963c5e19117801bde8dba4d0463430f751e749bf72f241b0302ea9ff4ebe42f9ca50d7f2947f06e76ce8bcd47cc9f74009d6 SHA512 fb72a140962341c26031080959a5da32f156e92e97b53c72e46256d86c9c325577ea868643d4474dd15e93c279fc6ec636493ce0c4e0f83d32a3cd966c140143 MISC metadata.xml 416 BLAKE2B 1484805b8b75b745a2cb7409aeab9f5d934f3c6f92cae880c650a34e0d05e4e97a889a9390a9c0a25da93458f8f74349006737307dfe86382d5b07cfc9fb9be4 SHA512 7d39c127ffecbfc46fc6987189f2d28e92b35effbd71d4aadc465ac5fe1e47d088574700b26bb0bc27f1fd17b3487de85317f34a87393597f99b38a9be3c0c0d diff --git a/dev-libs/dietlibc/dietlibc-0.34_pre20140729-r1.ebuild b/dev-libs/dietlibc/dietlibc-0.34_pre20140729-r1.ebuild new file mode 100644 index 000000000000..ab312bfd8734 --- /dev/null +++ b/dev-libs/dietlibc/dietlibc-0.34_pre20140729-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic toolchain-funcs + +DESCRIPTION="A libc optimized for small size" +HOMEPAGE="http://www.fefe.de/dietlibc/" +SRC_URI="https://dev.gentoo.org/~patrick/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ~ia64 ~mips sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +DEPEND="" +RDEPEND="" + +DIETHOME=/usr/diet + +S=${WORKDIR}/dietlibc + +src_prepare() { + # 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 + + # 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 + + # Disable ssp for we default to it on >=gcc-4.8.3 + append-flags $(test-flags -fno-stack-protector) + + # only use -nopie on archs that support it + tc-enables-pie && append-flags -no-pie + + sed -i -e 's:strip::' Makefile || die + append-flags -Wa,--noexecstack +} + +src_compile() { + emake -j1 prefix="${EPREFIX}"${DIETHOME} \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + STRIP=":" +} + +src_install() { + emake -j1 prefix="${EPREFIX}"${DIETHOME} \ + DESTDIR="${D}" \ + install-bin \ + install-headers \ + install-profiling + + dobin "${ED}"${DIETHOME}/bin/* + doman "${ED}"${DIETHOME}/man/*/* + rm -r "${ED}"${DIETHOME}/{man,bin} || die + + dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING +} |