Skip to content

Instantly share code, notes, and snippets.

@seifertm
Created October 24, 2017 08:56
Show Gist options
  • Save seifertm/908fd41e9cad0d4f8a747703aa29bc11 to your computer and use it in GitHub Desktop.
Save seifertm/908fd41e9cad0d4f8a747703aa29bc11 to your computer and use it in GitHub Desktop.
Gentoo 9999-ebuild for Capn Proto based on capnproto-0.6.1.ebuild in the portage tree
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
EGIT_REPO_URI="https://github.com/sandstorm-io/capnproto.git"
inherit autotools git-r3
DESCRIPTION="RPC/Serialization system with capabilities support"
HOMEPAGE="http://capnproto.org"
LICENSE="MIT"
SLOT="0/061"
KEYWORDS="~amd64 ~arm ~arm64"
IUSE="static-libs test"
RDEPEND=""
DEPEND="test? ( dev-cpp/gtest )"
S=${WORKDIR}/${P}/c++
src_prepare() {
sed -e 's/ldconfig/true/' -i Makefile.am || die
sed -e 's#gtest/lib/libgtest.la gtest/lib/libgtest_main.la#-lgtest -lgtest_main#' -i Makefile.am || die
eautoreconf
}
src_configure() {
econf \
$(use_enable static-libs static)
}
src_install() {
default
find "${ED}" -name '*.la' -delete
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment