summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2011-05-07 21:49:44 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2011-05-07 21:49:44 +0000
commit9a17cf3eeb886076f96287ca6ef8e6c72af28236 (patch)
treed781c3947022e0bdda238bf569b2796d42590713
parentwhitespace (diff)
downloadgentoo-2-9a17cf3eeb886076f96287ca6ef8e6c72af28236.tar.gz
gentoo-2-9a17cf3eeb886076f96287ca6ef8e6c72af28236.tar.bz2
gentoo-2-9a17cf3eeb886076f96287ca6ef8e6c72af28236.zip
Version bump, remove old.
(Portage version: 2.1.9.47/cvs/Linux x86_64)
-rw-r--r--dev-libs/protobuf/ChangeLog8
-rw-r--r--dev-libs/protobuf/files/protobuf-2.3.0-asneeded.patch26
-rw-r--r--dev-libs/protobuf/protobuf-2.4.1.ebuild (renamed from dev-libs/protobuf/protobuf-2.3.0.ebuild)34
3 files changed, 26 insertions, 42 deletions
diff --git a/dev-libs/protobuf/ChangeLog b/dev-libs/protobuf/ChangeLog
index c9b7c116c168..c8eb0e4706db 100644
--- a/dev-libs/protobuf/ChangeLog
+++ b/dev-libs/protobuf/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/protobuf
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v 1.31 2011/04/26 20:11:44 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v 1.32 2011/05/07 21:49:44 nelchael Exp $
+
+*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
diff --git a/dev-libs/protobuf/files/protobuf-2.3.0-asneeded.patch b/dev-libs/protobuf/files/protobuf-2.3.0-asneeded.patch
deleted file mode 100644
index 86c4b5976396..000000000000
--- a/dev-libs/protobuf/files/protobuf-2.3.0-asneeded.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Fixing as-needed issues
-
-http://bugs.gentoo.org/show_bug.cgi?id=271509
-
---- m4/acx_pthread.m4
-+++ m4/acx_pthread.m4
-@@ -99,7 +99,7 @@
- # which indicates that we try without any flags at all, and "pthread-config"
- # which is a program returning the flags for the Pth emulation library.
-
--acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
-+acx_pthread_flags="pthreads none pthread -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
-
- # The ordering *is* (sometimes) important. Some notes on the
- # individual items follow:
---- gtest/m4/acx_pthread.m4
-+++ gtest/m4/acx_pthread.m4
-@@ -99,7 +99,7 @@
- # which indicates that we try without any flags at all, and "pthread-config"
- # which is a program returning the flags for the Pth emulation library.
-
--acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
-+acx_pthread_flags="pthreads none pthread -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
-
- # The ordering *is* (sometimes) important. Some notes on the
- # individual items follow:
diff --git a/dev-libs/protobuf/protobuf-2.3.0.ebuild b/dev-libs/protobuf/protobuf-2.4.1.ebuild
index da1991ce88cb..5a2eb5422623 100644
--- a/dev-libs/protobuf/protobuf-2.3.0.ebuild
+++ b/dev-libs/protobuf/protobuf-2.4.1.ebuild
@@ -1,22 +1,23 @@
# 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.3.0.ebuild,v 1.7 2011/01/12 20:47:56 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/protobuf-2.4.1.ebuild,v 1.1 2011/05/07 21:49:44 nelchael Exp $
EAPI="3"
JAVA_PKG_IUSE="source"
PYTHON_DEPEND="python? 2"
+DISTUTILS_SRC_TEST="setup.py"
-inherit autotools eutils distutils python java-pkg-opt-2 elisp-common
+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/${PF}.tar.bz2"
+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 vim-syntax"
+IUSE="emacs examples java python static-libs vim-syntax"
DEPEND="${DEPEND} java? ( >=virtual/jdk-1.5 )
python? ( dev-python/setuptools )
@@ -24,8 +25,8 @@ DEPEND="${DEPEND} java? ( >=virtual/jdk-1.5 )
RDEPEND="${RDEPEND} java? ( >=virtual/jre-1.5 )
emacs? ( virtual/emacs )"
+DISTUTILS_SETUP_FILES=("python|setup.py")
PYTHON_MODNAME="google/protobuf"
-DISTUTILS_SRC_TEST="setup.py"
pkg_setup() {
if use python; then
@@ -35,7 +36,7 @@ pkg_setup() {
}
src_prepare() {
- epatch "${FILESDIR}"/${P}-asneeded.patch
+ epatch "${FILESDIR}"/${PN}-2.3.0-asneeded-2.patch
eautoreconf
if use python; then
@@ -44,14 +45,17 @@ src_prepare() {
fi
}
+src_configure() {
+ econf \
+ $(use_enable static-libs static)
+}
+
src_compile() {
- emake || die
+ emake || die "emake failed"
if use python; then
einfo "Compiling Python library ..."
- pushd python
distutils_src_compile
- popd
fi
if use java; then
@@ -70,23 +74,21 @@ src_compile() {
}
src_test() {
- emake check
+ emake check || die "emake check failed"
if use python; then
- pushd python
distutils_src_test
- popd
fi
}
src_install() {
- emake DESTDIR="${D}" 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
- pushd python
distutils_src_install
- popd
fi
if use java; then
@@ -97,6 +99,8 @@ src_install() {
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