summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/gflags/gflags-2.1.2.ebuild')
-rw-r--r--dev-cpp/gflags/gflags-2.1.2.ebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-cpp/gflags/gflags-2.1.2.ebuild b/dev-cpp/gflags/gflags-2.1.2.ebuild
new file mode 100644
index 00000000000..fe0e198f21e
--- /dev/null
+++ b/dev-cpp/gflags/gflags-2.1.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit cmake-multilib
+
+DESCRIPTION="Google's C++ argument parsing library"
+HOMEPAGE="http://code.google.com/p/gflags/"
+SRC_URI="https://github.com/gflags/gflags/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="static-libs"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ $(cmake-utils_use_build static-libs STATIC_LIBS)
+ )
+
+ cmake-utils_src_configure
+}
+
+multilib_src_install_all() {
+ rm -rf "${ED}"/usr/share/doc
+ dodoc {AUTHORS,ChangeLog}.txt README.md
+ dohtml doc/*
+}