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