public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-libs/protobuf: ChangeLog protobuf-2.0.1.ebuild
@ 2008-09-11 20:16 Michael Januszewski (spock)
  0 siblings, 0 replies; only message in thread
From: Michael Januszewski (spock) @ 2008-09-11 20:16 UTC (permalink / raw
  To: gentoo-commits

spock       08/09/11 20:16:54

  Modified:             ChangeLog
  Added:                protobuf-2.0.1.ebuild
  Log:
  Version bump.
  (Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc5 x86_64)

Revision  Changes    Path
1.2                  dev-libs/protobuf/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/protobuf/ChangeLog?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/protobuf/ChangeLog?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/protobuf/ChangeLog?r1=1.1&r2=1.2

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ChangeLog	17 Jul 2008 23:16:44 -0000	1.1
+++ ChangeLog	11 Sep 2008 20:16:54 -0000	1.2
@@ -1,6 +1,12 @@
 # ChangeLog for dev-libs/protobuf
 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v 1.1 2008/07/17 23:16:44 spock Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/ChangeLog,v 1.2 2008/09/11 20:16:54 spock Exp $
+
+*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)
 



1.1                  dev-libs/protobuf/protobuf-2.0.1.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/protobuf/protobuf-2.0.1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/protobuf/protobuf-2.0.1.ebuild?rev=1.1&content-type=text/plain

Index: protobuf-2.0.1.ebuild
===================================================================
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/protobuf/protobuf-2.0.1.ebuild,v 1.1 2008/09/11 20:16:54 spock Exp $

inherit eutils distutils python java-pkg-opt-2

MY_P=${PN}-${PV//_/}

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/${MY_P}.tar.bz2"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples java python vim-syntax"

DEPEND="${DEPEND} java? ( >=virtual/jdk-1.5 )"
RDEPEND="${RDEPEND} java? ( >=virtual/jre-1.5 )"

S="${WORKDIR}/${MY_P}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-python-unittest.patch
}

src_compile() {
	econf || die
	emake || die

	if use python; then
		cd python; distutils_src_compile; cd ..
	fi

	if use java; then
		src/protoc --java_out=java/src/main/java --proto_path=src src/google/protobuf/descriptor.proto
		mkdir java/build
		cd java/src/main/java
		ejavac -d ../../../build $(find . -name '*.java') || die "java compilation failed"
		cd ../../../..
		jar cf ${PN}.jar -C java/build . || die "jar failed"
	fi
}

src_install() {
	emake DESTDIR="${D}" install
	dodoc CHANGES.txt CONTRIBUTORS.txt README.txt

	if use python; then
		cd python; distutils_src_install; cd ..
	fi

	if use vim-syntax; then
		insinto /usr/share/vim/vimfiles
		doins editors/proto.vim
	fi

	if use examples; then
		insinto /usr/share/doc/${PF}/examples
		doins -r examples/* || die "doins examples failed"
	fi

	if use java; then
		java-pkg_dojar ${PN}.jar
	fi
}

src_test() {
	emake check

	if use python; then
		 cd python; ${python} setup.py test || die "python test failed"
		 cd ..
	fi
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-11 20:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 20:16 [gentoo-commits] gentoo-x86 commit in dev-libs/protobuf: ChangeLog protobuf-2.0.1.ebuild Michael Januszewski (spock)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox