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