# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-portage/genflags/genflags-0.96.ebuild,v 1.7 2007/01/24 03:37:42 genone Exp $

DESCRIPTION="Gentoo CFLAGS generator"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="mirror://gentoo/${P}-bin.tar.bz2
	 mirror://gentoo/${P}-devel.tar.bz2
	 http://dev.gentoo.org/~robbat2/genflags/${P}-bin.tar.bz2
	 http://dev.gentoo.org/~robbat2/genflags/${P}-devel.tar.bz2"

LICENSE="OSL-1.1"
SLOT="0"
KEYWORDS="x86 ppc sparc mips alpha hppa amd64 ia64 s390"
IUSE=""
# should also work on : m68k cris sh
# This is all explictly specified as might want this in early stages

DEPEND=""
RDEPEND="app-shells/bash
	sys-apps/coreutils
	sys-apps/findutils
	sys-apps/grep
	sys-apps/sed
	sys-apps/util-linux"

src_compile() {
	einfo "No compiling needed!"
}

src_install() {
	dosbin bin/* || die
	dodoc README docs/*
	insinto /usr/share/genflags
	doins data/*

	# At this time, don't install these dirs:
	# old rawdata extra scripts testoutput testscripts
}

pkg_postinst() {
	ewarn "This program does currently NOT detect all AMD chips correctly."
	ewarn "It CANNOT identify athlon-tbirds. It also gets confused between"
	ewarn "AMD-K6{,-2,-3} and Athlon vs. Athlon-4."
	elog
	elog "Please file any patches/bugs to robbat2@gentoo.org via the Gentoo"
	elog "Bugzilla."
	elog "See /usr/share/doc/${PF}/README.gz for quick instructions."
}