From 51af5f0eb4cddbe6aa7953717873691d77aae9ff Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 10 Jul 2019 23:40:16 +0100 Subject: gentoo resync : 11.07.2019 --- dev-cpp/gflags/gflags-2.2.1-r1.ebuild | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 dev-cpp/gflags/gflags-2.2.1-r1.ebuild (limited to 'dev-cpp/gflags/gflags-2.2.1-r1.ebuild') diff --git a/dev-cpp/gflags/gflags-2.2.1-r1.ebuild b/dev-cpp/gflags/gflags-2.2.1-r1.ebuild new file mode 100644 index 000000000000..95cd79c7ef3d --- /dev/null +++ b/dev-cpp/gflags/gflags-2.2.1-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-multilib + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/gflags/gflags" +else + SRC_URI="https://github.com/gflags/gflags/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +DESCRIPTION="Google's C++ argument parsing library" +HOMEPAGE="http://gflags.github.io/gflags/" + +LICENSE="BSD" +SLOT="0/2.2" +IUSE="static-libs test" + +# AUTHORS.txt only links the google group +DOCS=( ChangeLog.txt README.md ) + +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_STATIC_LIBS=$(usex static-libs) + -DBUILD_TESTING=$(usex test) + # avoid installing .cmake/packages, e.g.: + # >>> /tmp/portage/dev-cpp/gflags-9999/homedir/.cmake/packages/gflags/a7fca4708532331c2d656af0fdc8b8b9 + -DREGISTER_INSTALL_PREFIX=OFF + ) + cmake-utils_src_configure +} -- cgit v1.2.3