Lines 7-13
Link Here
|
7 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
7 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
8 |
DISTUTILS_OPTIONAL=1 |
8 |
DISTUTILS_OPTIONAL=1 |
9 |
|
9 |
|
10 |
inherit autotools eutils distutils-r1 java-pkg-opt-2 elisp-common |
10 |
inherit autotools eutils distutils-r1 java-pkg-opt-2 elisp-common toolchain-funcs |
11 |
|
11 |
|
12 |
DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data" |
12 |
DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data" |
13 |
HOMEPAGE="http://code.google.com/p/protobuf/" |
13 |
HOMEPAGE="http://code.google.com/p/protobuf/" |
Lines 40-46
Link Here
|
40 |
} |
40 |
} |
41 |
|
41 |
|
42 |
src_configure() { |
42 |
src_configure() { |
|
|
43 |
local with_protoc= |
44 |
if tc-is-cross-compiler; then |
45 |
if protoc --version | grep -q '^libprotoc '"${PV}"'$'; then |
46 |
# Host protoc is a match, use that |
47 |
local host_protoc=$(which protoc) |
48 |
einfo "Using host ${host_protoc} to cross-compile" |
49 |
with_protoc="--with-protoc=${host_protoc}" |
50 |
else |
51 |
# Need to build protoc for the host |
52 |
die 'Host protoc is not the right version for this' |
53 |
fi |
54 |
fi |
43 |
econf \ |
55 |
econf \ |
|
|
56 |
${with_protoc} |
44 |
$(use_enable static-libs static) |
57 |
$(use_enable static-libs static) |
45 |
} |
58 |
} |
46 |
|
59 |
|