mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-22 19:11:35 +01:00
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:
parent
c8092f4072
commit
683f398504
1
sdk_container/src/third_party/portage-stable/dev-cpp/gflags/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/dev-cpp/gflags/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
DIST gflags-1.2.tar.gz 526580 RMD160 c4e4817317308bf43db1b1f8120614a53af157c1 SHA1 5f282b9d7284e6a2ae5ee2f8ea606684b64d9204 SHA256 79556fb7e2464c5318bb43151c3120d1337e3e8c0d1e68c734f0cd6d8a2bedc4
|
||||||
57
sdk_container/src/third_party/portage-stable/dev-cpp/gflags/gflags-1.2.ebuild
vendored
Normal file
57
sdk_container/src/third_party/portage-stable/dev-cpp/gflags/gflags-1.2.ebuild
vendored
Normal 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
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user