From 683f398504b979723eb1888993766e2bd512b655 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 1 Feb 2012 17:36:03 -0500 Subject: [PATCH] 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 Commit-Ready: Mike Frysinger Tested-by: Mike Frysinger --- .../portage-stable/dev-cpp/gflags/Manifest | 1 + .../dev-cpp/gflags/gflags-1.2.ebuild | 57 +++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-cpp/gflags/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-cpp/gflags/gflags-1.2.ebuild diff --git a/sdk_container/src/third_party/portage-stable/dev-cpp/gflags/Manifest b/sdk_container/src/third_party/portage-stable/dev-cpp/gflags/Manifest new file mode 100644 index 0000000000..fa80f718f2 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-cpp/gflags/Manifest @@ -0,0 +1 @@ +DIST gflags-1.2.tar.gz 526580 RMD160 c4e4817317308bf43db1b1f8120614a53af157c1 SHA1 5f282b9d7284e6a2ae5ee2f8ea606684b64d9204 SHA256 79556fb7e2464c5318bb43151c3120d1337e3e8c0d1e68c734f0cd6d8a2bedc4 diff --git a/sdk_container/src/third_party/portage-stable/dev-cpp/gflags/gflags-1.2.ebuild b/sdk_container/src/third_party/portage-stable/dev-cpp/gflags/gflags-1.2.ebuild new file mode 100644 index 0000000000..5057c977df --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-cpp/gflags/gflags-1.2.ebuild @@ -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 +}