diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-libs/crossguid/crossguid-0_pre20150817.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/crossguid/crossguid-0_pre20150817.ebuild')
-rw-r--r-- | dev-libs/crossguid/crossguid-0_pre20150817.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-libs/crossguid/crossguid-0_pre20150817.ebuild b/dev-libs/crossguid/crossguid-0_pre20150817.ebuild new file mode 100644 index 000000000000..f2987df8d078 --- /dev/null +++ b/dev-libs/crossguid/crossguid-0_pre20150817.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit toolchain-funcs + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/graeme-hill/crossguid.git" + inherit git-r3 +else + EGIT_COMMIT="8f399e8bd4252be9952f3dfa8199924cc8487ca4" + SRC_URI="https://github.com/graeme-hill/crossguid/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${EGIT_COMMIT}" +fi + +DESCRIPTION="Lightweight cross platform C++ GUID/UUID library" +HOMEPAGE="https://github.com/graeme-hill/crossguid" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="" + +# We use libuuid from util-linux. +DEPEND="sys-apps/util-linux" +RDEPEND="${DEPEND}" + +RESTRICT="test" #575544 + +e() { echo "$@"; "$@"; } + +src_compile() { + e $(tc-getCXX) \ + ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS} \ + -std=c++11 \ + -c guid.cpp -o guid.o \ + -DGUID_LIBUUID \ + || die + + e $(tc-getAR) rs libcrossguid.a guid.o || die +} + +src_install() { + insinto /usr/include + doins guid.h + dolib.a libcrossguid.a +} |