summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-07-29 04:36:29 +0000
committerMike Frysinger <vapier@gentoo.org>2007-07-29 04:36:29 +0000
commitc60a094b6a005fbbaa5accd250775ad89e355a12 (patch)
tree9b8df5d86d6422745b870272f57e5fa8cf4ce11d /sys-devel/crossdev
parentold (diff)
downloadhistorical-c60a094b6a005fbbaa5accd250775ad89e355a12.tar.gz
historical-c60a094b6a005fbbaa5accd250775ad89e355a12.tar.bz2
historical-c60a094b6a005fbbaa5accd250775ad89e355a12.zip
Make default keywords use the target rather than target+host.
Package-Manager: portage-2.1.3_rc9
Diffstat (limited to 'sys-devel/crossdev')
-rw-r--r--sys-devel/crossdev/ChangeLog8
-rw-r--r--sys-devel/crossdev/crossdev-0.9.18-r3.ebuild21
-rwxr-xr-xsys-devel/crossdev/files/crossdev47
-rw-r--r--sys-devel/crossdev/files/digest-crossdev-0.9.18-r30
4 files changed, 63 insertions, 13 deletions
diff --git a/sys-devel/crossdev/ChangeLog b/sys-devel/crossdev/ChangeLog
index c00211045b03..bedccab1b2c7 100644
--- a/sys-devel/crossdev/ChangeLog
+++ b/sys-devel/crossdev/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-devel/crossdev
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/ChangeLog,v 1.52 2007/06/09 00:10:25 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/ChangeLog,v 1.53 2007/07/29 04:36:29 vapier Exp $
+
+*crossdev-0.9.18-r3 (29 Jul 2007)
+
+ 29 Jul 2007; Mike Frysinger <vapier@gentoo.org> files/crossdev,
+ +crossdev-0.9.18-r3.ebuild:
+ Make default keywords use the target rather than target+host.
*crossdev-0.9.18-r2 (09 Jun 2007)
diff --git a/sys-devel/crossdev/crossdev-0.9.18-r3.ebuild b/sys-devel/crossdev/crossdev-0.9.18-r3.ebuild
new file mode 100644
index 000000000000..071c6cb92c5f
--- /dev/null
+++ b/sys-devel/crossdev/crossdev-0.9.18-r3.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/crossdev-0.9.18-r3.ebuild,v 1.1 2007/07/29 04:36:29 vapier Exp $
+
+DESCRIPTION="Gentoo Cross-toolchain generator"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=sys-apps/portage-2.1
+ app-shells/bash
+ || ( dev-util/unifdef sys-freebsd/freebsd-ubin )"
+
+src_install() {
+ dosbin "${FILESDIR}"/crossdev || die
+ dosed "s:GENTOO_PV:${PV}:" /usr/sbin/crossdev
+}
diff --git a/sys-devel/crossdev/files/crossdev b/sys-devel/crossdev/files/crossdev
index 47469d0dba2f..506b5cd1fb5d 100755
--- a/sys-devel/crossdev/files/crossdev
+++ b/sys-devel/crossdev/files/crossdev
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.96 2007/07/23 16:16:38 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/crossdev/files/crossdev,v 1.97 2007/07/29 04:36:29 vapier Exp $
cd /
umask 0022 #159111
@@ -33,6 +33,7 @@ Options:
${GOOD}--g, --gcc${NORMAL} ver Specify version of gcc to use
${GOOD}--k, --kernel${NORMAL} ver Specify version of kernel headers to use
${GOOD}--l, --libc${NORMAL} ver Specify version of libc to use
+ ${GOOD}-S, --stable${NORMAL} Use latest stable versions as default
${GOOD}-C, --clean${NORMAL} target Uninstall specified target
${GOOD}-P, --portage${NORMAL} opts Options to pass to emerge (see emerge(1))
Stage Options:
@@ -45,9 +46,9 @@ Extra Fun (must be run after above stages):
${GOOD}--ex-only${NORMAL} Skip the stage steps above
${GOOD}--ex-gcc${NORMAL} Build extra gcc targets (gcj/ada/etc...)
${GOOD}--ex-gdb${NORMAL} Build a cross gdb
+ ${GOOD}--ex-insight${NORMAL} Build a cross insight
-${BRACKET}Target (-t)${NORMAL}: takes the form: ${BRACKET}ARCH-VENDOR-OS-LIBC${NORMAL}
- Run 'crossdev -t help' for examples
+${BRACKET}Target (-t)${NORMAL} takes a tuple ${BRACKET}ARCH-VENDOR-OS-LIBC${NORMAL}; see 'crossdev -t help'
EOF
[[ -n $* ]] && echo && eerror "Error: $*"
exit ${exit_status}
@@ -295,9 +296,10 @@ is_s5() { is_stage 5 ; }
with_headers() { [[ ${WITH_HEADERS} == "yes" ]] ; }
-ex_fast() { [[ ${EX_FAST} == "yes" ]] ; }
-ex_gcc() { [[ ${EX_GCC} == "yes" ]] ; }
-ex_gdb() { [[ ${EX_GDB} == "yes" ]] ; }
+ex_fast() { [[ ${EX_FAST} == "yes" ]] ; }
+ex_gcc() { [[ ${EX_GCC} == "yes" ]] ; }
+ex_gdb() { [[ ${EX_GDB} == "yes" ]] ; }
+ex_insight() { [[ ${EX_INSIGHT} == "yes" ]] ; }
hr() {
local c=${COLUMNS:-0}
@@ -323,10 +325,11 @@ TARCH=
HARCH=$(unset ARCH ; portageq envvar ARCH)
CTARGET=
STAGE=""
-BCAT="sys-devel" ; BPKG="binutils" ; BVER="[latest]" ; BUSE=""
-GCAT="sys-devel" ; GPKG="gcc" ; GVER="[latest]" ; GUSE=""
-KCAT="sys-kernel" ; KPKG="linux-headers" ; KVER="[latest]" ; KUSE=""
-LCAT="sys-libs" ; LPKG="" ; LVER="[latest]" ; LUSE=""
+BCAT="sys-devel" ; BPKG="binutils" ; BVER="" ; BUSE=""
+GCAT="sys-devel" ; GPKG="gcc" ; GVER="" ; GUSE=""
+KCAT="sys-kernel" ; KPKG="linux-headers" ; KVER="" ; KUSE=""
+LCAT="sys-libs" ; LPKG="" ; LVER="" ; LUSE=""
+DEFAULT_VER="[latest]"
GUSE_DISABLE="-boundschecking -fortran -gtk -gcj -mudflap -objc -objc++ -objc-gc -d"
GUSE_DISABLE_STAGE_2=${GUSE_DISABLE/-fortran}
WITH_HEADERS="COW" WITH_DEF_HEADERS="no"
@@ -343,11 +346,13 @@ while [[ $# -gt 0 ]] ; do
--g|--gcc) shift; GVER=$1;;
--k|--kernel) shift; KVER=$1;;
--l|--libc) shift; LVER=$1;;
+ -S|--stable) DEFAULT_VER="[stable]";;
-C|--clean) shift; parse_target $1; uninstall;;
-s?|--stage?) STAGE=${1:0-1};;
--ex-only) EX_FAST="yes";;
--ex-gcc) EX_GCC="yes";;
--ex-gdb) EX_GDB="yes";;
+ --ex-insight) EX_INSIGHT="yes";;
--with-*) eval $(set_withval $1);;
--without-*) eval $(set_withval $1);;
-x) SET_X="yes";;
@@ -362,6 +367,10 @@ while [[ $# -gt 0 ]] ; do
done
[[ ${SET_X} == "yes" ]] && set -x
+BVER=${BVER:-${DEFAULT_VER}}
+GVER=${GVER:-${DEFAULT_VER}}
+KVER=${KVER:-${DEFAULT_VER}}
+LVER=${LVER:-${DEFAULT_VER}}
STAGE=${STAGE:-${STAGE_DEFAULT}}
[[ -z ${CTARGET} ]] && usage 1
for with in HEADERS ; do
@@ -441,6 +450,9 @@ einfo "Extra: gcc pass: DO IT"
ex_gdb && {
einfo "Extra: gdb: DO IT"
}
+ex_insight && {
+einfo "Extra: insight: DO IT"
+}
echo
einfo "PORTDIR_OVERLAY: ${PORTDIR_OVERLAY}"
einfo "PORT_LOGDIR: ${PORT_LOGDIR}"
@@ -463,8 +475,14 @@ set_keywords() {
else
output="package.keywords/cross-${CTARGET}"
fi
- if [[ ${ver} == "[latest]" ]] || [[ -z ${ver} ]] ; then
- echo "cross-${CTARGET}/${pkg} ${TARCH} ~${TARCH}" >> ${output}
+ if [[ ${ver} == "["*"]" ]] || [[ -z ${ver} ]] ; then
+ local keywords=""
+ case ${ver} in
+ "[stable]") keywords="${TARCH}";;
+ *) keywords="${TARCH} ~${TARCH}";;
+ esac
+ [[ "${TARCH}" != "${HARCH}" ]] && keywords="${keywords} -${HARCH} -~${HARCH}"
+ echo "cross-${CTARGET}/${pkg} ${keywords}" >> ${output}
else
echo "cross-${CTARGET}/${pkg} * ~* -* **" >> ${output}
if [[ -f package.mask ]] ; then
@@ -530,6 +548,7 @@ set_portage ${GCAT} ${GPKG} ${GVER}
set_portage ${KCAT} ${KPKG} ${KVER}
set_portage ${LCAT} ${LPKG} ${LVER}
set_portage sys-devel gdb
+set_portage dev-util insight
#################
emerged_with_use() {
@@ -573,6 +592,9 @@ EOPTS=${EOPTS_UP}
# keep things like --ask from screwing us up
export EMERGE_DEFAULT_OPTS=""
+# maybe someday this work, but that day != today
+USE="${USE} -selinux"
+
# make sure multilib crap doesn't screw us over
export ABI=${ABI:-pos} LIBDIR_pos="lib" CFLAGS_pos="" LDFLAGS_pos=""
@@ -617,5 +639,6 @@ USE="${GUSE} ${USE} ${GUSE_DISABLE_STAGE_2}" \
EOPTS="${EOPTS_UP} --newuse"
ex_gcc && USE="${GUSE} ${USE}" doemerge ${GPKG} ${GPKG}-extra
ex_gdb && doemerge gdb
+ex_insight && doemerge insight
exit 0
diff --git a/sys-devel/crossdev/files/digest-crossdev-0.9.18-r3 b/sys-devel/crossdev/files/digest-crossdev-0.9.18-r3
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sys-devel/crossdev/files/digest-crossdev-0.9.18-r3