dev-cpp/gflags: import from portage & update

I had to grab a newer rev of this ebuild from upstream Gentoo to work
with the newer distutils.eclass.

BUG=chromium-os:26016
TEST=`emerge gflags` works
TEST=`cbuildbot arm-generic-full` works
TEST=build_packages+build_image for x86-alex boots

Change-Id: If9c1d4d760846bbaa76ec512cbead46b9b935c5c
Reviewed-on: https://gerrit.chromium.org/gerrit/15595
Reviewed-by: David James <davidjames@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
Mike Frysinger 2012-02-01 17:36:03 -05:00 committed by Gerrit
parent c8092f4072
commit 683f398504
2 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST gflags-1.2.tar.gz 526580 RMD160 c4e4817317308bf43db1b1f8120614a53af157c1 SHA1 5f282b9d7284e6a2ae5ee2f8ea606684b64d9204 SHA256 79556fb7e2464c5318bb43151c3120d1337e3e8c0d1e68c734f0cd6d8a2bedc4

View File

@ -0,0 +1,57 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gflags/Attic/gflags-1.2.ebuild,v 1.3 2011/02/12 21:54:15 nelchael dead $
EAPI="3"
PYTHON_DEPEND="python? 2"
SUPPORT_PYTHON_ABIS="1"
inherit distutils
DESCRIPTION="Google's C++ argument parsing library with python extensions."
HOMEPAGE="http://code.google.com/p/google-gflags/"
SRC_URI="http://google-gflags.googlecode.com/files/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="python"
DEPEND=""
RDEPEND=""
RESTRICT_PYTHON_ABIS="3.*"
PYTHON_MODNAME="gflags.py"
src_compile() {
default
if use python; then
cd python
distutils_src_compile
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
rm -rf "${D}"/usr/share/doc/*
AUTHORS ChangeLog NEWS README
dohtml doc/*
if use python; then
cd python
distutils_src_install
fi
}
pkg_postinst() {
if use python; then
distutils_pkg_postinst
fi
}
pkg_postrm() {
if use python; then
distutils_pkg_postrm
fi
}