diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-11-18 03:42:19 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-11-18 03:42:19 +0000 |
commit | f2f93b4fe206303a29d501cb8b9b643ea8ff9647 (patch) | |
tree | 0890b86e1d3472c8e1c1bd7267416134342ffb82 /sys-libs/uclibc/uclibc-0.9.27-r1.ebuild | |
parent | mips stable (diff) | |
download | gentoo-2-f2f93b4fe206303a29d501cb8b9b643ea8ff9647.tar.gz gentoo-2-f2f93b4fe206303a29d501cb8b9b643ea8ff9647.tar.bz2 gentoo-2-f2f93b4fe206303a29d501cb8b9b643ea8ff9647.zip |
add support for installing just headers
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'sys-libs/uclibc/uclibc-0.9.27-r1.ebuild')
-rw-r--r-- | sys-libs/uclibc/uclibc-0.9.27-r1.ebuild | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild b/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild index 8a331ed4fc67..40a2318ba706 100644 --- a/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild +++ b/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild,v 1.10 2005/11/10 04:21:46 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.27-r1.ebuild,v 1.11 2005/11/18 03:42:19 vapier Exp $ inherit eutils flag-o-matic toolchain-funcs @@ -23,7 +23,7 @@ fi # diff -urN --exclude .svn uClibc-0.9.27 uClibc | bzip2 - > uClibc-0.9.27-svn-update-`date +%Y%m%d`.patch.bz2 # rm -rf uClibc-0.9.27-svn-update-`date +%Y%m%d`.patch.bz2 uClibc uClibc-0.9.27 -MY_P=${P/ucl/uCl} +MY_P=uClibc-${PV} SVN_VER="20050114" PATCH_VER="1.5" DESCRIPTION="C library for developing embedded Linux systems" @@ -72,9 +72,17 @@ alt_rprefix() { echo /usr/${CTARGET}/ fi } +just_headers() { + [[ -z ${_E_CROSS_HEADERS_ONLY} ]] && return 1 + [[ ${CHOST} == ${CTARGET} ]] && return 1 + return 0 +} pkg_setup() { + just_headers && return 0 + has_version ${CATEGORY}/uclibc || return 0 [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0 + if ! built_with_use ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then eerror "You previously built uclibc with USE=-nls." eerror "You cannot generate locale data with this" @@ -204,11 +212,11 @@ src_unpack() { echo "UCLIBC_PREGENERATED_LOCALE_DATA=y" >> .config echo "UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y" >> .config if use userlocales ; then - cp "${DISTDIR}"/${P}-user-locale.tar.gz \ + cp "${DISTDIR}"/${MY_P}-user-locale.tar.gz \ extra/locale/uClibc-locale-030818.tgz \ - || die "could not copy ${P}-user-locale.tar.gz" + || die "could not copy ${MY_P}-user-locale.tar.gz" else - cp "${DISTDIR}"/${P}-$(tc-arch)-full-locale.tar.gz \ + cp "${DISTDIR}"/${MY_P}-$(tc-arch)-full-locale.tar.gz \ extra/locale/uClibc-locale-030818.tgz \ || die "could not copy locale" fi @@ -303,6 +311,8 @@ src_compile() { type -p ${CTARGET}-ar && export MAKEOPTS="${MAKEOPTS} CROSS=${CTARGET}-" emake headers || die "make headers failed" + just_headers && return 0 + if use nls && ! use pregen ; then cd extra/locale make clean || die "make locale clean failed" @@ -339,10 +349,11 @@ src_test() { } src_install() { - emake PREFIX="${D}" install || die "install failed" + local target="install" + just_headers && target="install_dev" + make PREFIX="${D}" ${target} || die "install failed" # remove files coming from kernel-headers - # scsi is uclibc's own directory since cvs 20040212 rm -rf "${D}"$(alt_prefix)/include/{asm,linux,asm-generic} # clean up misc cruft |