Gentoo Archives: gentoo-commits

From: "PaweA Hajdan (phajdan.jr)" <phajdan.jr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/protobuf: ChangeLog protobuf-2.6.0.ebuild
Date: Tue, 30 Sep 2014 06:58:34
Message-Id: 20140930065829.7D3A56926@oystercatcher.gentoo.org
1 phajdan.jr 14/09/30 06:58:29
2
3 Modified: ChangeLog
4 Added: protobuf-2.6.0.ebuild
5 Log:
6 Version bump, bug #521406 . Drop keywords because of new python deps; arm (bug #524082), ia64 (bug #524084).
7
8 (Portage version: 2.2.8-r1/cvs/Linux i686, signed Manifest commit with key 0x4F1A2555EA71991D!)
9
10 Revision Changes Path
11 1.63 dev-libs/protobuf/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/ChangeLog?rev=1.63&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/ChangeLog?rev=1.63&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/ChangeLog?r1=1.62&r2=1.63
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v
20 retrieving revision 1.62
21 retrieving revision 1.63
22 diff -u -r1.62 -r1.63
23 --- ChangeLog 26 Sep 2014 04:47:05 -0000 1.62
24 +++ ChangeLog 30 Sep 2014 06:58:29 -0000 1.63
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.62 2014/09/26 04:47:05 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v 1.63 2014/09/30 06:58:29 phajdan.jr Exp $
30 +
31 +*protobuf-2.6.0 (30 Sep 2014)
32 +
33 + 30 Sep 2014; Pawel Hajdan jr <phajdan.jr@g.o> +protobuf-2.6.0.ebuild:
34 + Version bump, bug #521406 . Drop keywords because of new python deps; arm
35 + (bug #524082), ia64 (bug #524084).
36
37 *protobuf-2.5.0-r1 (26 Sep 2014)
38
39
40
41
42 1.1 dev-libs/protobuf/protobuf-2.6.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/protobuf-2.6.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/protobuf-2.6.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: protobuf-2.6.0.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.6.0.ebuild,v 1.1 2014/09/30 06:58:29 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="https://protobuf.googlecode.com/svn/rc/${P}.tar.bz2"
63
64 LICENSE="Apache-2.0"
65 SLOT="0/9" # subslot = soname major version
66 KEYWORDS="~amd64 -hppa ~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 # python-dateutil uses deprecated distutils eclass.
72 DEPEND="${CDEPEND}
73 java? ( >=virtual/jdk-1.5 )
74 python? (
75 dev-python/google-apputils[${PYTHON_USEDEP}]
76 dev-python/python-dateutil:python-2
77 dev-python/python-gflags[${PYTHON_USEDEP}]
78 dev-python/setuptools[${PYTHON_USEDEP}]
79 )"
80 RDEPEND="${CDEPEND}
81 java? ( >=virtual/jre-1.5 )"
82
83 src_prepare() {
84 append-cxxflags -DGOOGLE_PROTOBUF_NO_RTTI
85
86 if [[ ${CHOST} != *-darwin* ]] ; then
87 # breaks Darwin, bug #472514
88 epatch "${FILESDIR}"/${PN}-2.3.0-asneeded-2.patch
89 eautoreconf
90 fi
91
92 if use python; then
93 cd python && distutils-r1_src_prepare
94 fi
95 }
96
97 src_configure() {
98 econf \
99 $(use_enable static-libs static)
100 }
101
102 src_compile() {
103 default
104
105 if use python; then
106 einfo "Compiling Python library ..."
107 pushd python >/dev/null
108 distutils-r1_src_compile
109 popd >/dev/null
110 fi
111
112 if use java; then
113 einfo "Compiling Java library ..."
114 src/protoc --java_out=java/src/main/java --proto_path=src src/google/protobuf/descriptor.proto
115 mkdir java/build
116 pushd java/src/main/java >/dev/null
117 ejavac -d ../../../build $(find . -name '*.java') || die "java compilation failed"
118 popd >/dev/null
119 jar cf ${PN}.jar -C java/build . || die "jar failed"
120 fi
121
122 if use emacs; then
123 elisp-compile "${S}"/editors/protobuf-mode.el
124 fi
125 }
126
127 src_test() {
128 emake check
129
130 if use python; then
131 pushd python >/dev/null
132 distutils-r1_src_test
133 popd >/dev/null
134 fi
135 }
136
137 src_install() {
138 emake DESTDIR="${D}" install
139 dodoc CHANGES.txt CONTRIBUTORS.txt README.txt
140 prune_libtool_files
141
142 if use python; then
143 pushd python >/dev/null
144 distutils-r1_src_install
145 popd >/dev/null
146 fi
147
148 if use java; then
149 java-pkg_dojar ${PN}.jar
150 use source && java-pkg_dosrc java/src/main/java/*
151 fi
152
153 if use vim-syntax; then
154 insinto /usr/share/vim/vimfiles/syntax
155 doins editors/proto.vim
156 insinto /usr/share/vim/vimfiles/ftdetect/
157 doins "${FILESDIR}"/proto.vim
158 fi
159
160 if use emacs; then
161 elisp-install ${PN} editors/protobuf-mode.el*
162 elisp-site-file-install "${FILESDIR}"/70${PN}-gentoo.el
163 fi
164
165 if use examples; then
166 dodoc -r examples
167 docompress -x /usr/share/doc/${PF}/examples
168 fi
169 }
170
171 pkg_postinst() {
172 use emacs && elisp-site-regen
173 }
174
175 pkg_postrm() {
176 use emacs && elisp-site-regen
177 }