summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2008-07-17 23:16:44 +0000
committerMichael Januszewski <spock@gentoo.org>2008-07-17 23:16:44 +0000
commite941167e8894eb5c14b14bb5d351fa0bc35e4e61 (patch)
treede0c1851b921b0cc4d9e8a682a4724032ba94752 /dev-libs
parentwhitespace (diff)
downloadgentoo-2-e941167e8894eb5c14b14bb5d351fa0bc35e4e61.tar.gz
gentoo-2-e941167e8894eb5c14b14bb5d351fa0bc35e4e61.tar.bz2
gentoo-2-e941167e8894eb5c14b14bb5d351fa0bc35e4e61.zip
Initial commit (bug #231297).
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc9 x86_64)
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/protobuf/ChangeLog10
-rw-r--r--dev-libs/protobuf/Manifest4
-rw-r--r--dev-libs/protobuf/metadata.xml10
-rw-r--r--dev-libs/protobuf/protobuf-2.0.0_beta.ebuild71
4 files changed, 95 insertions, 0 deletions
diff --git a/dev-libs/protobuf/ChangeLog b/dev-libs/protobuf/ChangeLog
new file mode 100644
index 000000000000..69bea4acbc53
--- /dev/null
+++ b/dev-libs/protobuf/ChangeLog
@@ -0,0 +1,10 @@
+# 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 $
+
+*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).
+
diff --git a/dev-libs/protobuf/Manifest b/dev-libs/protobuf/Manifest
new file mode 100644
index 000000000000..01a0c85578b7
--- /dev/null
+++ b/dev-libs/protobuf/Manifest
@@ -0,0 +1,4 @@
+DIST protobuf-2.0.0beta.tar.bz2 704775 RMD160 533d977dd2cb35f56d0ee1d593fb670c393e9d23 SHA1 eaf63f778aad90c00cbd9ec982e7502659b58d3c SHA256 b2ab129a70989894e89377e8279e8132d91037a26345ac8d498a6b25d59e81b4
+EBUILD protobuf-2.0.0_beta.ebuild 1589 RMD160 31ac70528b03dfb228185c738f85a4578d16fa29 SHA1 84b9fbfd627a5256ecc381bebd6a488c4b45f0a9 SHA256 a16a0a8aa7075ffaded42d885254d2d122498689cdd12213d3ba5e0981914d35
+MISC ChangeLog 287 RMD160 917f76152176a3c9f71e9bc43660d25e8147453a SHA1 2cd903122b5fcfba01eda9f2f2c6324506413876 SHA256 b9731c091af4542dc35cbc15ebf84a53049ae005755fbbf291cbb6870ff1850c
+MISC metadata.xml 260 RMD160 7c8f2391a156380ab813494ac3d3db92386fc03b SHA1 631f6ea758b913f6dabd59b83bc8a5f053274f50 SHA256 4e471cd253b0e2e3c1900f0dd3383623080ca9ad9b6e116dd88bac46224681ac
diff --git a/dev-libs/protobuf/metadata.xml b/dev-libs/protobuf/metadata.xml
new file mode 100644
index 000000000000..2c3ddaaa0f8e
--- /dev/null
+++ b/dev-libs/protobuf/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>spock@gentoo.org</email>
+ <name>Michał Januszewski</name>
+ </maintainer>
+</pkgmetadata>
+
diff --git a/dev-libs/protobuf/protobuf-2.0.0_beta.ebuild b/dev-libs/protobuf/protobuf-2.0.0_beta.ebuild
new file mode 100644
index 000000000000..576b911caf31
--- /dev/null
+++ b/dev-libs/protobuf/protobuf-2.0.0_beta.ebuild
@@ -0,0 +1,71 @@
+# 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.0_beta.ebuild,v 1.1 2008/07/17 23:16:44 spock Exp $
+
+inherit 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_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() {
+ make check
+
+ if use python; then
+ cd python; ${python} setup.py test || die "python test failed"
+ cd ..
+ fi
+}