Gentoo Archives: gentoo-commits

From: "Krzysztof Pawlik (nelchael)" <nelchael@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/protobuf: ChangeLog protobuf-2.4.1.ebuild protobuf-2.3.0.ebuild
Date: Sat, 07 May 2011 21:49:56
Message-Id: 20110507214944.847B720054@flycatcher.gentoo.org
1 nelchael 11/05/07 21:49:44
2
3 Modified: ChangeLog
4 Added: protobuf-2.4.1.ebuild
5 Removed: protobuf-2.3.0.ebuild
6 Log:
7 Version bump, remove old.
8
9 (Portage version: 2.1.9.47/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.32 dev-libs/protobuf/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/ChangeLog?rev=1.32&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/ChangeLog?rev=1.32&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/ChangeLog?r1=1.31&r2=1.32
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v
21 retrieving revision 1.31
22 retrieving revision 1.32
23 diff -u -r1.31 -r1.32
24 --- ChangeLog 26 Apr 2011 20:11:44 -0000 1.31
25 +++ ChangeLog 7 May 2011 21:49:44 -0000 1.32
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-libs/protobuf
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v 1.31 2011/04/26 20:11:44 angelos Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v 1.32 2011/05/07 21:49:44 nelchael Exp $
31 +
32 +*protobuf-2.4.1 (07 May 2011)
33 +
34 + 07 May 2011; Krzysztof Pawlik <nelchael@g.o> -protobuf-2.3.0.ebuild,
35 + -files/protobuf-2.3.0-asneeded.patch, +protobuf-2.4.1.ebuild:
36 + Version bump, remove old.
37
38 26 Apr 2011; Christoph Mende <angelos@g.o> protobuf-2.4.0a.ebuild:
39 Stable on amd64 wrt bug #363403
40
41
42
43 1.1 dev-libs/protobuf/protobuf-2.4.1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/protobuf-2.4.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/protobuf/protobuf-2.4.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: protobuf-2.4.1.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/protobuf-2.4.1.ebuild,v 1.1 2011/05/07 21:49:44 nelchael Exp $
53
54 EAPI="3"
55
56 JAVA_PKG_IUSE="source"
57 PYTHON_DEPEND="python? 2"
58 DISTUTILS_SRC_TEST="setup.py"
59
60 inherit autotools eutils distutils java-pkg-opt-2 elisp-common
61
62 DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data"
63 HOMEPAGE="http://code.google.com/p/protobuf/"
64 SRC_URI="http://protobuf.googlecode.com/files/${P}.tar.bz2"
65
66 LICENSE="Apache-2.0"
67 SLOT="0"
68 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x64-macos"
69 IUSE="emacs examples java python static-libs vim-syntax"
70
71 DEPEND="${DEPEND} java? ( >=virtual/jdk-1.5 )
72 python? ( dev-python/setuptools )
73 emacs? ( virtual/emacs )"
74 RDEPEND="${RDEPEND} java? ( >=virtual/jre-1.5 )
75 emacs? ( virtual/emacs )"
76
77 DISTUTILS_SETUP_FILES=("python|setup.py")
78 PYTHON_MODNAME="google/protobuf"
79
80 pkg_setup() {
81 if use python; then
82 python_set_active_version 2
83 python_pkg_setup
84 fi
85 }
86
87 src_prepare() {
88 epatch "${FILESDIR}"/${PN}-2.3.0-asneeded-2.patch
89 eautoreconf
90
91 if use python; then
92 python_convert_shebangs -r 2 .
93 distutils_src_prepare
94 fi
95 }
96
97 src_configure() {
98 econf \
99 $(use_enable static-libs static)
100 }
101
102 src_compile() {
103 emake || die "emake failed"
104
105 if use python; then
106 einfo "Compiling Python library ..."
107 distutils_src_compile
108 fi
109
110 if use java; then
111 einfo "Compiling Java library ..."
112 src/protoc --java_out=java/src/main/java --proto_path=src src/google/protobuf/descriptor.proto
113 mkdir java/build
114 pushd java/src/main/java
115 ejavac -d ../../../build $(find . -name '*.java') || die "java compilation failed"
116 popd
117 jar cf "${PN}.jar" -C java/build . || die "jar failed"
118 fi
119
120 if use emacs; then
121 elisp-compile "${S}/editors/protobuf-mode.el" || die "elisp-compile failed!"
122 fi
123 }
124
125 src_test() {
126 emake check || die "emake check failed"
127
128 if use python; then
129 distutils_src_test
130 fi
131 }
132
133 src_install() {
134 emake DESTDIR="${D}" install || die "emake install failed"
135 dodoc CHANGES.txt CONTRIBUTORS.txt README.txt
136
137 use static-libs || rm -rf "${D}"/usr/lib*/*.la
138
139 if use python; then
140 distutils_src_install
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* || die "elisp-install failed!"
157 elisp-site-file-install "${FILESDIR}/70${PN}-gentoo.el"
158 fi
159
160 if use examples; then
161 insinto /usr/share/doc/${PF}/examples
162 doins -r examples/* || die "doins examples failed"
163 fi
164 }
165
166 pkg_postinst() {
167 use emacs && elisp-site-regen
168 use python && distutils_pkg_postinst
169 }
170
171 pkg_postrm() {
172 use emacs && elisp-site-regen
173 use python && distutils_pkg_postrm
174 }