1 |
phajdan.jr 14/09/26 04:47:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: protobuf-2.5.0-r1.ebuild |
5 |
Log: |
6 |
Disable RTTI, bug #521882 . |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux i686, signed Manifest commit with key 0x4F1A2555EA71991D!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.62 dev-libs/protobuf/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/ChangeLog?rev=1.62&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/ChangeLog?rev=1.62&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/ChangeLog?r1=1.61&r2=1.62 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v |
20 |
retrieving revision 1.61 |
21 |
retrieving revision 1.62 |
22 |
diff -u -r1.61 -r1.62 |
23 |
--- ChangeLog 14 Aug 2014 00:03:40 -0000 1.61 |
24 |
+++ ChangeLog 26 Sep 2014 04:47:05 -0000 1.62 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-libs/protobuf |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v 1.61 2014/08/14 00:03:40 jer Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v 1.62 2014/09/26 04:47:05 phajdan.jr Exp $ |
30 |
+ |
31 |
+*protobuf-2.5.0-r1 (26 Sep 2014) |
32 |
+ |
33 |
+ 26 Sep 2014; Pawel Hajdan jr <phajdan.jr@g.o> |
34 |
+ +protobuf-2.5.0-r1.ebuild: |
35 |
+ Disable RTTI, bug #521882 . |
36 |
|
37 |
14 Aug 2014; Jeroen Roovers <jer@g.o> protobuf-2.4.0a.ebuild, |
38 |
protobuf-2.4.1.ebuild, protobuf-2.5.0.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-libs/protobuf/protobuf-2.5.0-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/protobuf-2.5.0-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/protobuf-2.5.0-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: protobuf-2.5.0-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/protobuf-2.5.0-r1.ebuild,v 1.1 2014/09/26 04:47:05 phajdan.jr Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
JAVA_PKG_IUSE="source" |
55 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
56 |
DISTUTILS_OPTIONAL=1 |
57 |
|
58 |
inherit autotools eutils flag-o-matic distutils-r1 java-pkg-opt-2 elisp-common |
59 |
|
60 |
DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data" |
61 |
HOMEPAGE="http://code.google.com/p/protobuf/" |
62 |
SRC_URI="http://protobuf.googlecode.com/files/${P}.tar.bz2" |
63 |
|
64 |
LICENSE="Apache-2.0" |
65 |
SLOT="0/8" # subslot = soname major version |
66 |
KEYWORDS="~amd64 ~arm -hppa ~ia64 ~mips -ppc -ppc64 ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos" |
67 |
IUSE="emacs examples java python static-libs vim-syntax" |
68 |
|
69 |
CDEPEND="emacs? ( virtual/emacs ) |
70 |
python? ( ${PYTHON_DEPS} )" |
71 |
DEPEND="${CDEPEND} |
72 |
java? ( >=virtual/jdk-1.5 ) |
73 |
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )" |
74 |
RDEPEND="${CDEPEND} |
75 |
java? ( >=virtual/jre-1.5 )" |
76 |
|
77 |
src_prepare() { |
78 |
append-cxxflags -DGOOGLE_PROTOBUF_NO_RTTI |
79 |
|
80 |
epatch "${FILESDIR}"/${P}-x32.patch |
81 |
if [[ ${CHOST} != *-darwin* ]] ; then |
82 |
# breaks Darwin, bug #472514 |
83 |
epatch "${FILESDIR}"/${PN}-2.3.0-asneeded-2.patch |
84 |
eautoreconf |
85 |
fi |
86 |
|
87 |
if use python; then |
88 |
cd python && distutils-r1_src_prepare |
89 |
fi |
90 |
} |
91 |
|
92 |
src_configure() { |
93 |
econf \ |
94 |
$(use_enable static-libs static) |
95 |
} |
96 |
|
97 |
src_compile() { |
98 |
default |
99 |
|
100 |
if use python; then |
101 |
einfo "Compiling Python library ..." |
102 |
pushd python >/dev/null |
103 |
distutils-r1_src_compile |
104 |
popd >/dev/null |
105 |
fi |
106 |
|
107 |
if use java; then |
108 |
einfo "Compiling Java library ..." |
109 |
src/protoc --java_out=java/src/main/java --proto_path=src src/google/protobuf/descriptor.proto |
110 |
mkdir java/build |
111 |
pushd java/src/main/java >/dev/null |
112 |
ejavac -d ../../../build $(find . -name '*.java') || die "java compilation failed" |
113 |
popd >/dev/null |
114 |
jar cf ${PN}.jar -C java/build . || die "jar failed" |
115 |
fi |
116 |
|
117 |
if use emacs; then |
118 |
elisp-compile "${S}"/editors/protobuf-mode.el |
119 |
fi |
120 |
} |
121 |
|
122 |
src_test() { |
123 |
emake check |
124 |
|
125 |
if use python; then |
126 |
pushd python >/dev/null |
127 |
distutils-r1_src_test |
128 |
popd >/dev/null |
129 |
fi |
130 |
} |
131 |
|
132 |
src_install() { |
133 |
emake DESTDIR="${D}" install |
134 |
dodoc CHANGES.txt CONTRIBUTORS.txt README.txt |
135 |
prune_libtool_files |
136 |
|
137 |
if use python; then |
138 |
pushd python >/dev/null |
139 |
distutils-r1_src_install |
140 |
popd >/dev/null |
141 |
fi |
142 |
|
143 |
if use java; then |
144 |
java-pkg_dojar ${PN}.jar |
145 |
use source && java-pkg_dosrc java/src/main/java/* |
146 |
fi |
147 |
|
148 |
if use vim-syntax; then |
149 |
insinto /usr/share/vim/vimfiles/syntax |
150 |
doins editors/proto.vim |
151 |
insinto /usr/share/vim/vimfiles/ftdetect/ |
152 |
doins "${FILESDIR}"/proto.vim |
153 |
fi |
154 |
|
155 |
if use emacs; then |
156 |
elisp-install ${PN} editors/protobuf-mode.el* |
157 |
elisp-site-file-install "${FILESDIR}"/70${PN}-gentoo.el |
158 |
fi |
159 |
|
160 |
if use examples; then |
161 |
dodoc -r examples |
162 |
docompress -x /usr/share/doc/${PF}/examples |
163 |
fi |
164 |
} |
165 |
|
166 |
pkg_postinst() { |
167 |
use emacs && elisp-site-regen |
168 |
} |
169 |
|
170 |
pkg_postrm() { |
171 |
use emacs && elisp-site-regen |
172 |
} |