summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-20 08:50:45 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-20 08:51:32 -0400
commita955f52f47ea66104b3cdc4060be8c4c7b46dd2f (patch)
treeb0c2d04ba23276c2d73c8a3a18fc54bc3e55ed85 /dev-libs/crossguid/crossguid-0_pre20150817.ebuild
parenttoolchain.eclass: drop old emul deps (diff)
downloadgentoo-a955f52f47ea66104b3cdc4060be8c4c7b46dd2f.tar.gz
gentoo-a955f52f47ea66104b3cdc4060be8c4c7b46dd2f.tar.bz2
gentoo-a955f52f47ea66104b3cdc4060be8c4c7b46dd2f.zip
dev-libs/crossguid: new package #557412
Diffstat (limited to 'dev-libs/crossguid/crossguid-0_pre20150817.ebuild')
-rw-r--r--dev-libs/crossguid/crossguid-0_pre20150817.ebuild47
1 files changed, 47 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..6463aa1b6391
--- /dev/null
+++ b/dev-libs/crossguid/crossguid-0_pre20150817.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://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 ~x86"
+IUSE=""
+
+# We use libuuid from util-linux.
+DEPEND="sys-apps/util-linux"
+RDEPEND="${DEPEND}"
+
+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
+}