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