|
Lines 7-33
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 flag-o-matic distutils-r1 java-pkg-opt-2 elisp-common |
| 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/" |
| 14 |
SRC_URI="http://protobuf.googlecode.com/files/${P}.tar.bz2" |
14 |
SRC_URI="https://protobuf.googlecode.com/svn/rc/${P}.tar.bz2" |
| 15 |
|
15 |
|
| 16 |
LICENSE="Apache-2.0" |
16 |
LICENSE="Apache-2.0" |
| 17 |
SLOT="0/8" # subslot = soname major version |
17 |
SLOT="0/9" # subslot = soname major version |
| 18 |
KEYWORDS="amd64 arm -hppa ~ia64 ~mips -ppc -ppc64 x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos x86-macos" |
18 |
KEYWORDS="amd64 arm -hppa ~ia64 ~mips -ppc -ppc64 x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos x86-macos" |
| 19 |
IUSE="emacs examples java python static-libs vim-syntax" |
19 |
IUSE="emacs examples java python static-libs vim-syntax" |
| 20 |
|
20 |
|
| 21 |
CDEPEND="emacs? ( virtual/emacs ) |
21 |
CDEPEND="emacs? ( virtual/emacs ) |
| 22 |
python? ( ${PYTHON_DEPS} )" |
22 |
python? ( ${PYTHON_DEPS} )" |
|
|
23 |
# python-dateutil uses deprecated distutils eclass. |
| 23 |
DEPEND="${CDEPEND} |
24 |
DEPEND="${CDEPEND} |
| 24 |
java? ( >=virtual/jdk-1.5 ) |
25 |
java? ( >=virtual/jdk-1.5 ) |
| 25 |
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )" |
26 |
python? ( |
|
|
27 |
dev-python/google-apputils[${PYTHON_USEDEP}] |
| 28 |
dev-python/python-dateutil:python-2 |
| 29 |
dev-python/python-gflags[${PYTHON_USEDEP}] |
| 30 |
dev-python/setuptools[${PYTHON_USEDEP}] |
| 31 |
)" |
| 26 |
RDEPEND="${CDEPEND} |
32 |
RDEPEND="${CDEPEND} |
| 27 |
java? ( >=virtual/jre-1.5 )" |
33 |
java? ( >=virtual/jre-1.5 )" |
| 28 |
|
34 |
|
| 29 |
src_prepare() { |
35 |
src_prepare() { |
| 30 |
epatch "${FILESDIR}"/${P}-x32.patch |
36 |
append-cxxflags -DGOOGLE_PROTOBUF_NO_RTTI |
|
|
37 |
|
| 31 |
if [[ ${CHOST} != *-darwin* ]] ; then |
38 |
if [[ ${CHOST} != *-darwin* ]] ; then |
| 32 |
# breaks Darwin, bug #472514 |
39 |
# breaks Darwin, bug #472514 |
| 33 |
epatch "${FILESDIR}"/${PN}-2.3.0-asneeded-2.patch |
40 |
epatch "${FILESDIR}"/${PN}-2.3.0-asneeded-2.patch |