chore(dev-libs/protobuf): import from portage

Change-Id: I2fa827504ba89a2c0b8e6ab5265f6a28ce53630d
This commit is contained in:
Brandon Philips 2013-02-15 16:36:21 -08:00
parent 41840dd5fc
commit fb26bc292c
8 changed files with 491 additions and 0 deletions

View File

@ -0,0 +1,173 @@
# ChangeLog for dev-libs/protobuf
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v 1.40 2012/12/16 20:35:34 radhermit Exp $
16 Dec 2012; Tim Harder <radhermit@gentoo.org> metadata.xml:
Add myself as maintainer.
16 Dec 2012; Pacho Ramos <pacho@gentoo.org> -protobuf-2.3.0-r1.ebuild,
metadata.xml:
Cleanup due retirement, #95685
19 Nov 2012; Sébastien Fabbro <bicatali@gentoo.org> protobuf-2.4.1.ebuild:
Keyworded amd64-linux and x86-linux
09 Aug 2012; Anthony G. Basile <blueness@gentoo.org> protobuf-2.4.1.ebuild:
Keyword ~mips
14 Apr 2012; Mike Frysinger <vapier@gentoo.org> protobuf-2.4.1.ebuild:
Add ia64 love #282954 by Dennis Schridde.
30 Nov 2011; Krzysztof Pawlik <nelchael@gentoo.org> protobuf-2.4.1.ebuild:
Add ~arm keyword, tested by Anton Romanov, reported in bug #392323.
15 Jul 2011; Kacper Kowalik <xarthisius@gentoo.org> protobuf-2.4.0a.ebuild:
ppc64 stable wrt #363403
28 May 2011; Brent Baude <ranger@gentoo.org> protobuf-2.4.0a.ebuild:
Marking protobuf-2.4.0a ppc for bug 363403
*protobuf-2.4.1 (07 May 2011)
07 May 2011; Krzysztof Pawlik <nelchael@gentoo.org> -protobuf-2.3.0.ebuild,
-files/protobuf-2.3.0-asneeded.patch, +protobuf-2.4.1.ebuild:
Version bump, remove old.
26 Apr 2011; Christoph Mende <angelos@gentoo.org> protobuf-2.4.0a.ebuild:
Stable on amd64 wrt bug #363403
21 Apr 2011; Thomas Kahle <tomka@gentoo.org> protobuf-2.4.0a.ebuild:
x86 stable per bug 363403
18 Apr 2011; Thomas Kahle <tomka@gentoo.org> protobuf-2.4.0a.ebuild:
Undo last commit b/c of bug 363911
18 Apr 2011; Thomas Kahle <tomka@gentoo.org> protobuf-2.4.0a.ebuild:
x86 stable per bug 363403
16 Mar 2011; Kacper Kowalik <xarthisius@gentoo.org> protobuf-2.3.0-r1.ebuild:
ppc/ppc64 stable wrt #348574
*protobuf-2.4.0a (12 Feb 2011)
12 Feb 2011; Krzysztof Pawlik <nelchael@gentoo.org>
-protobuf-2.3.0-r2.ebuild, +protobuf-2.4.0a.ebuild:
Version bump.
*protobuf-2.3.0-r2 (06 Feb 2011)
06 Feb 2011; Krzysztof Pawlik <nelchael@gentoo.org>
+protobuf-2.3.0-r2.ebuild, +files/proto.vim:
Install file for ftdetect so Vim correctly recognizes protobuf files, see bug
#353196.
12 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
protobuf-2.3.0.ebuild, protobuf-2.3.0-r1.ebuild:
Fix deprecation warnings.
15 Dec 2010; Markos Chandras <hwoarang@gentoo.org> protobuf-2.3.0-r1.ebuild:
Stable on amd64 wrt bug #348574
13 Dec 2010; Dane Smith <c1pher@gentoo.org> protobuf-2.3.0-r1.ebuild:
Stable x86 wrt bug 348574.
*protobuf-2.3.0-r1 (12 Jun 2010)
12 Jun 2010; Tiziano Müller <dev-zero@gentoo.org>
+protobuf-2.3.0-r1.ebuild, +files/protobuf-2.3.0-asneeded-2.patch:
Updated patch to fix as-needed issue (bug #271509, thanks to Xarthisius).
Added static-libs USE flag.
15 May 2010; Samuli Suominen <ssuominen@gentoo.org> protobuf-2.3.0.ebuild,
+files/protobuf-2.3.0-asneeded.patch:
Fix building with -Wl,--as-needed wrt #271509 by Kacper Kowalik.
14 May 2010; Joseph Jezak <josejx@gentoo.org> protobuf-2.3.0.ebuild:
Marked ~ppc/~ppc64 for bug #289287.
18 Apr 2010; Krzysztof Pawlik <nelchael@gentoo.org> protobuf-2.3.0.ebuild:
Use more functions from distutils eclass.
18 Apr 2010; Krzysztof Pawlik <nelchael@gentoo.org> protobuf-2.3.0.ebuild:
Improve Python support.
17 Apr 2010; Krzysztof Pawlik <nelchael@gentoo.org>
-files/protobuf-2.0.3-decoder_test_64bit_fix.patch,
-protobuf-2.1.0.ebuild,
-files/protobuf-2.1.0-fix-emacs-byte-compile.patch,
-files/protobuf-2.2.0-decoder_test_64bit_fix.patch,
-files/protobuf-2.2.0-fix-emacs-byte-compile.patch,
-protobuf-2.2.0a.ebuild:
Remove old versions.
02 Apr 2010; Fabian Groffen <grobian@gentoo.org> protobuf-2.3.0.ebuild:
Marked ~x64-macos, bug #312589
29 Mar 2010; Krzysztof Pawlik <nelchael@gentoo.org> metadata.xml:
Update my first name.
25 Mar 2010; Michał Januszewski <spock@gentoo.org> metadata.xml:
Remove myself from the maintainer list.
*protobuf-2.3.0 (17 Jan 2010)
17 Jan 2010; Krzysiek Pawlik <nelchael@gentoo.org> -protobuf-2.2.0.ebuild,
+protobuf-2.3.0.ebuild:
Version bump.
28 Nov 2009; Krzysiek Pawlik <nelchael@gentoo.org> protobuf-2.2.0a.ebuild:
Use correct versions of patches.
*protobuf-2.2.0a (26 Nov 2009)
26 Nov 2009; Krzysiek Pawlik <nelchael@gentoo.org>
+protobuf-2.2.0a.ebuild:
Version bump.
*protobuf-2.2.0 (21 Aug 2009)
21 Aug 2009; Krzysiek Pawlik <nelchael@gentoo.org> -protobuf-2.0.3.ebuild,
+protobuf-2.2.0.ebuild,
+files/protobuf-2.2.0-decoder_test_64bit_fix.patch,
+files/protobuf-2.2.0-fix-emacs-byte-compile.patch:
Version bump.
24 May 2009; Krzysiek Pawlik <nelchael@gentoo.org>
+files/70protobuf-gentoo.el, protobuf-2.1.0.ebuild,
+files/protobuf-2.1.0-fix-emacs-byte-compile.patch:
Add emacs USE flag, see bug #271007.
18 May 2009; Krzysiek Pawlik <nelchael@gentoo.org>
-protobuf-2.0.0_beta.ebuild, -protobuf-2.0.1.ebuild,
-files/protobuf-2.0.1-python-unittest.patch, protobuf-2.1.0.ebuild,
metadata.xml:
Add myself as maintainer, remove old versions, improve 2.1.0.
*protobuf-2.1.0 (18 May 2009)
18 May 2009; Michał Januszewski <spock@gentoo.org>
protobuf-2.0.0_beta.ebuild, protobuf-2.0.1.ebuild, protobuf-2.0.3.ebuild,
+protobuf-2.1.0.ebuild:
Version bump. Add setuptools as dependency (bug #270207).
*protobuf-2.0.3 (06 Dec 2008)
06 Dec 2008; Michał Januszewski <spock@gentoo.org>
+files/protobuf-2.0.3-decoder_test_64bit_fix.patch,
+protobuf-2.0.3.ebuild:
Version bump.
30 Oct 2008; Michał Januszewski <spock@gentoo.org> protobuf-2.0.1.ebuild:
Install the vim syntax file into vimfiles/syntax instead of vimfiles.
*protobuf-2.0.1 (11 Sep 2008)
11 Sep 2008; Michał Januszewski <spock@gentoo.org>
+files/protobuf-2.0.1-python-unittest.patch, +protobuf-2.0.1.ebuild:
Version bump.
*protobuf-2.0.0_beta (17 Jul 2008)
17 Jul 2008; Michał Januszewski <spock@gentoo.org> +metadata.xml,
+protobuf-2.0.0_beta.ebuild:
Initial commit (bug #231297).

View File

@ -0,0 +1,23 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
AUX 70protobuf-gentoo.el 170 SHA256 b6e5c2f11a63f9eb4a9382227ce8f41bfcf23213166d2fb212e21e237b2f264d SHA512 ed73cd6b1bf6c0019e4da73c3a480b0f917e949dfad2696336e805263c81610b2a8a0514840e389db0f0e78252cf053d754c5e07731dc5e9c93c9e88f0b2923c WHIRLPOOL aeffdec54d947cc219058a1efbe54898b2917947f07cd2249064593542b51e3c772a584106365d57dd9ea7fdf078bea388f6ff73ff857cabefa04aabda07495d
AUX proto.vim 79 SHA256 64d5a506e8f527f97f7c737a7135c64c5361b4d195674541656c24fbd88166aa SHA512 c59c2429ea5696c49e706bbc144cd7ab5f5f47e6d83e8b8a19e4fbbaf8c8501cc913b1e6af69d845ffd885fec5f13df37c8ea3ff3e8037b6c6fe754dd44e4e3e WHIRLPOOL 56d97b0442bc69a6a84a95ead53d79ee9271a43f12001002159b1330414512263c226fa20e028021d4a90fbae33e769b7a172911ddd790e22fbf8dc84df69d72
AUX protobuf-2.3.0-asneeded-2.patch 705 SHA256 558ea98a54e544919837f88d133b8887ad5101b4493a62737d3cea94ae58464c SHA512 2f9d047ac64ac19bab2a793990de5070ac24604bf81622520a1f9b2e86aecbd125c9cba5b62bc7e296ecc3724069dbd9b07f7d7292be280403fc37af5c52cccf WHIRLPOOL 0b943cdda7feac71d394a9e72bdcbe1dfc3d7efb390496244cf511cbd1468b4b11d9f42501a62fe02b2fab7b4bf0867eb5739cb02af8d4777d22fe781ccd841e
DIST protobuf-2.4.0a.tar.bz2 1508837 SHA256 cef863023fb051b0f7e8f47b53fe57f7277a7743d644eae9563fb14db5bd7e4e SHA512 c099f75983a79a4fdc2c3bf44e748074000903fe89e65a74caebe191dbb46da01b3b023b5f4f1fec86f35f15c16d5863cad102ebc0c975f4c4662ab64694d9db WHIRLPOOL 5fe8b4aadefceadfcf42aee54d4133ada2c52a9f4e90e0cbe8ba1a92c887bc12c4e9eec6b2df68ab252dbe9358a85a789804c0d1f5612d62e6c03ebf380c5100
DIST protobuf-2.4.1.tar.bz2 1440188 SHA256 cf8452347330834bbf9c65c2e68b5562ba10c95fa40d4f7ec0d2cb332674b0bf SHA512 52b0208c685e44126cb3915a74bde692ef91430f0407144b6c30b72a9f143b1ee4f1eea47a550184c689a1758b92582e7f26f0683c2d387205b957a69830f2f3 WHIRLPOOL e5462ff35f63413aff58640c24b9b561ac55749c489803ae009de21bf5d954a77516714361353ef02cfeb3c2d762620c89dc08a5fdee571e3a33b6f5c20edf6e
EBUILD protobuf-2.4.0a.ebuild 2947 SHA256 d50e1e57028a28de64a34a30dcd8aa61140cb66a3f63f1018a3e56f6f2608402 SHA512 3897d301bef7206aba05a9d96caf53fd65cad7b7e93ec051083f2bec0cd98fd36f78781695dd35dc753ed5c5452f09b90722efedfa52b8dfd22c6a09ab2e2583 WHIRLPOOL 9b85eed26c8b45433b38e8e52ac0ffe271476296beda79fb3290b65d5bfca138c50fce1390cb703797a3923b9a49ee14563f5eb76eef27cf4554d92786528d29
EBUILD protobuf-2.4.1.ebuild 2989 SHA256 bbe96dc102486e44f646092f22a0e3ec5c6309bc46cfae62528a7707aa1f68b3 SHA512 c846a3826cbfd89aa2872395cf42b4ddca95178a62c30018bb7e8131a421fd784e20eda90134729073dc75ba99a4f366043aee41bb05b8f2c33418fdf02b2def WHIRLPOOL a2fd482b58b212f112bd5011b712171140ad829b7228ad428158977da6174faf94a32bd5fb198af9199d13febefaf42f1b61b47a72390accbb7862c2fbb41d3e
MISC ChangeLog 6090 SHA256 81530c385dc28070a71c490261537ca5441ece52dd8d7951fbec161f6c036b02 SHA512 b7b1a4d9162194065b02211b6de03601a2745a7c7a27c7286d2b44c77d5e39ea7564c2983bcbc16546b61252372bd7a174dbf8c76d5b5fdd4a32d2ccce92f560 WHIRLPOOL 1ea01c96d409aadea2819fe4f87fdc7287e455c7ee12df8795ddb198efa3bbddbb41f2f4cb3f21908bc66ed5bfb7c156ec32470a8541639b16b47c5c35c7e877
MISC metadata.xml 310 SHA256 ded221b688b4ab4cd456b3036ee01a31add94142274b764939cc61e80ffebeb3 SHA512 eceedb3555bfc87b1b18c092aac4b79e53d5ea6eaa250e203e51e362bf63db29ed0c23725a276343cd78af56ae2ecbacab96c9ad1d0221b17d0560b85e5c1eda WHIRLPOOL a04e0304a373392f179b8a782719adf2d812cbd170c8eee33dc1ad178b8b09497b57a555fcb4288d104713e586346817166b6f8940661946cd71f928c52706ae
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQEcBAEBCAAGBQJQzjCbAAoJEEqz6FtPBkyjcfQIAK/lIvossPyFmlGtS0L0frCX
SFc97xcv3Pci/G/Kfo3f3yICv1blNoS8/vuo4c/71N+8nfNW3yJubYQC7F467orB
P91gp4PPcaQdL3809qFr1uDBsew7fEpE1xcvUqXbHeMa1RKkAPaIK2CH+0QQSG0K
RwYFUz95+t23F0zl0ijXbQa/mld6r6kylXXw81R4gFnNZi/4fLYocq3uRLgiA/o6
5Lwd8L9oyHGh3dCwEsRjShyTspl4wtymI9fgEdRgVdcjoEmin6Z9rU7hVLlahA/H
8VqaRxv8GtGVPuOTBHv3LpRf2L4xpNrvCHPVUbqSQV8vGjPtUYZ6d93kjQXGJMQ=
=XEt2
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,3 @@
(add-to-list 'load-path "@SITELISP@")
(add-to-list 'auto-mode-alist '("\\.proto\\'" . protobuf-mode))
(autoload 'protobuf-mode "protobuf-mode" "Google protobuf mode." t)

View File

@ -0,0 +1,3 @@
augroup filetype
au! BufRead,BufNewFile *.proto setfiletype proto
augroup end

View File

@ -0,0 +1,28 @@
Fixing as-needed issue
http://bugs.gentoo.org/show_bug.cgi?id=271509
--- m4/acx_pthread.m4
+++ m4/acx_pthread.m4
@@ -278,7 +278,8 @@
fi
fi
- if test x"$done" = xno; then
+ if test x"$done" = xyes; then
+ done="no"
AC_MSG_CHECKING([whether -pthread is sufficient with -shared])
AC_TRY_LINK([#include <pthread.h>],
[pthread_t th; pthread_join(th, 0);
--- gtest/m4/acx_pthread.m4
+++ gtest/m4/acx_pthread.m4
@@ -278,7 +278,8 @@
fi
fi
- if test x"$done" = xno; then
+ if test x"$done" = xyes; then
+ done="no"
AC_MSG_CHECKING([whether -pthread is sufficient with -shared])
AC_TRY_LINK([#include <pthread.h>],
[pthread_t th; pthread_join(th, 0);

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>radhermit@gentoo.org</email>
<name>Tim Harder</name>
</maintainer>
<upstream>
<remote-id type="google-code">protobuf</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,125 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/protobuf-2.4.0a.ebuild,v 1.8 2011/07/15 16:05:13 xarthisius Exp $
EAPI="3"
JAVA_PKG_IUSE="source"
PYTHON_DEPEND="python? 2"
DISTUTILS_SRC_TEST="setup.py"
inherit autotools eutils distutils java-pkg-opt-2 elisp-common
DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data"
HOMEPAGE="http://code.google.com/p/protobuf/"
SRC_URI="http://protobuf.googlecode.com/files/${P}.tar.bz2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86 ~x64-macos"
IUSE="emacs examples java python static-libs vim-syntax"
DEPEND="${DEPEND} java? ( >=virtual/jdk-1.5 )
python? ( dev-python/setuptools )
emacs? ( virtual/emacs )"
RDEPEND="${RDEPEND} java? ( >=virtual/jre-1.5 )
emacs? ( virtual/emacs )"
DISTUTILS_SETUP_FILES=("python|setup.py")
PYTHON_MODNAME="google/protobuf"
pkg_setup() {
if use python; then
python_set_active_version 2
python_pkg_setup
fi
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.3.0-asneeded-2.patch
eautoreconf
if use python; then
python_convert_shebangs -r 2 .
distutils_src_prepare
fi
}
src_configure() {
econf \
$(use_enable static-libs static)
}
src_compile() {
emake || die "emake failed"
if use python; then
einfo "Compiling Python library ..."
distutils_src_compile
fi
if use java; then
einfo "Compiling Java library ..."
src/protoc --java_out=java/src/main/java --proto_path=src src/google/protobuf/descriptor.proto
mkdir java/build
pushd java/src/main/java
ejavac -d ../../../build $(find . -name '*.java') || die "java compilation failed"
popd
jar cf "${PN}.jar" -C java/build . || die "jar failed"
fi
if use emacs; then
elisp-compile "${S}/editors/protobuf-mode.el" || die "elisp-compile failed!"
fi
}
src_test() {
emake check || die "emake check failed"
if use python; then
distutils_src_test
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGES.txt CONTRIBUTORS.txt README.txt
use static-libs || rm -rf "${D}"/usr/lib*/*.la
if use python; then
distutils_src_install
fi
if use java; then
java-pkg_dojar ${PN}.jar
use source && java-pkg_dosrc java/src/main/java/*
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins editors/proto.vim
insinto /usr/share/vim/vimfiles/ftdetect/
doins "${FILESDIR}/proto.vim"
fi
if use emacs; then
elisp-install ${PN} editors/protobuf-mode.el* || die "elisp-install failed!"
elisp-site-file-install "${FILESDIR}/70${PN}-gentoo.el"
fi
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins -r examples/* || die "doins examples failed"
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
use python && distutils_pkg_postinst
}
pkg_postrm() {
use emacs && elisp-site-regen
use python && distutils_pkg_postrm
}

View File

@ -0,0 +1,125 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/protobuf-2.4.1.ebuild,v 1.5 2012/11/19 18:29:50 bicatali Exp $
EAPI="3"
JAVA_PKG_IUSE="source"
PYTHON_DEPEND="python? 2"
DISTUTILS_SRC_TEST="setup.py"
inherit autotools eutils distutils java-pkg-opt-2 elisp-common
DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data"
HOMEPAGE="http://code.google.com/p/protobuf/"
SRC_URI="http://protobuf.googlecode.com/files/${P}.tar.bz2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos ~x86-linux"
IUSE="emacs examples java python static-libs vim-syntax"
DEPEND="${DEPEND} java? ( >=virtual/jdk-1.5 )
python? ( dev-python/setuptools )
emacs? ( virtual/emacs )"
RDEPEND="${RDEPEND} java? ( >=virtual/jre-1.5 )
emacs? ( virtual/emacs )"
DISTUTILS_SETUP_FILES=("python|setup.py")
PYTHON_MODNAME="google/protobuf"
pkg_setup() {
if use python; then
python_set_active_version 2
python_pkg_setup
fi
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.3.0-asneeded-2.patch
eautoreconf
if use python; then
python_convert_shebangs -r 2 .
distutils_src_prepare
fi
}
src_configure() {
econf \
$(use_enable static-libs static)
}
src_compile() {
emake || die "emake failed"
if use python; then
einfo "Compiling Python library ..."
distutils_src_compile
fi
if use java; then
einfo "Compiling Java library ..."
src/protoc --java_out=java/src/main/java --proto_path=src src/google/protobuf/descriptor.proto
mkdir java/build
pushd java/src/main/java
ejavac -d ../../../build $(find . -name '*.java') || die "java compilation failed"
popd
jar cf "${PN}.jar" -C java/build . || die "jar failed"
fi
if use emacs; then
elisp-compile "${S}/editors/protobuf-mode.el" || die "elisp-compile failed!"
fi
}
src_test() {
emake check || die "emake check failed"
if use python; then
distutils_src_test
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGES.txt CONTRIBUTORS.txt README.txt
use static-libs || rm -rf "${D}"/usr/lib*/*.la
if use python; then
distutils_src_install
fi
if use java; then
java-pkg_dojar ${PN}.jar
use source && java-pkg_dosrc java/src/main/java/*
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax
doins editors/proto.vim
insinto /usr/share/vim/vimfiles/ftdetect/
doins "${FILESDIR}/proto.vim"
fi
if use emacs; then
elisp-install ${PN} editors/protobuf-mode.el* || die "elisp-install failed!"
elisp-site-file-install "${FILESDIR}/70${PN}-gentoo.el"
fi
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins -r examples/* || die "doins examples failed"
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
use python && distutils_pkg_postinst
}
pkg_postrm() {
use emacs && elisp-site-regen
use python && distutils_pkg_postrm
}