From 455d703ab39bf20f269631adbc2db8e6d74070ea Mon Sep 17 00:00:00 2001 From: root Date: Sun, 7 Jul 2013 01:07:47 -0700 Subject: Sun Jul 7 01:07:31 PDT 2013 --- java/not-working/protobuf/PKGBUILD | 99 ++++++++++++++++++++++++++++++++++++++ java/not-working/protobuf/TODO | 5 ++ 2 files changed, 104 insertions(+) create mode 100644 java/not-working/protobuf/PKGBUILD create mode 100644 java/not-working/protobuf/TODO (limited to 'java/not-working/protobuf') diff --git a/java/not-working/protobuf/PKGBUILD b/java/not-working/protobuf/PKGBUILD new file mode 100644 index 000000000..699bde0cf --- /dev/null +++ b/java/not-working/protobuf/PKGBUILD @@ -0,0 +1,99 @@ +# Maintainer: Thomas S Hatch +# Contributor: Geoffroy Carrier +# Contributor: Daniel J Griffiths + +pkgbase=protobuf +pkgname=('protobuf' 'python2-protobuf' 'java-protobuf') +pkgver=2.4.1 +pkgrel=2.1 +pkgdesc="A way of encoding structured data in an efficient yet extensible format" +arch=('i686' 'x86_64') +url="http://code.google.com/p/protobuf/" +license=('APACHE') +depends=('gcc-libs' 'zlib') +makedepends=('python2' 'python2-distribute' 'java-environment') +options=(!libtool) +source=(http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2) +md5sums=('ed436802019c9e1f40cc750eaf78f318') + +#### + +build() { + build_protobuf + build_python2-protobuf + build_java-protobuf +} + +check() { + check_protobuf + check_python2-protobuf + check_java-protobuf +} + +package() { + package_protobuf + package_python2-protobuf + package_java-protobuf +} + +#### + +build_protobuf() { + cd $srcdir/$pkgname-$pkgver + ./configure --prefix=/usr --disable-static + make +} + +check_protobuf() { + cd $srcdir/$pkgname-$pkgver + make check +} + +package_protobuf() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install +} + +#### + +build_python2-protobuf() { + cd $srcdir/$pkgname-$pkgver/python + python2 setup.py build +} + +check_python2-protobuf() { + cd $srcdir/$pkgname-$pkgver/python + python2 setup.py test +} + +package_python2-protobuf() { + pkgdesc="protobuf python2 API" + replaces=('protobuf-python') + provides=("protobuf-python=${pkgver}") + depends=("python2" "protobuf=${pkgver}") + + cd $srcdir/protobuf-$pkgver/python + python2 setup.py install --prefix=/usr --root $pkgdir +} + +#### + +build_java-protobuf() { + cd $srcdir/$pkgname-$pkgver/java + mvn compile +} + +check_java-protobuf() { + cd $srcdir/$pkgname-$pkgver/java + mvn test +} + +package_java-protobuf() { + pkgdesc="protobuf Java API" + replaces=('protobuf-java') + provides=("protobuf-java=${pkgver}") + depends=("java-runtime" "protobuf=${pkgver}") + + cd $srcdir/$pkgname-$pkgver/java + : +} diff --git a/java/not-working/protobuf/TODO b/java/not-working/protobuf/TODO new file mode 100644 index 000000000..6a126b757 --- /dev/null +++ b/java/not-working/protobuf/TODO @@ -0,0 +1,5 @@ +* Missing dependencies: + * junit:junit:4.4 (4.10 is packaged, patch to use 4.10?) + * org.easymock:easymock:2.2 + * org.easymock:easymockclassextension:2.2.1 +* package_java-protobuf() has not been written -- cgit v1.2.3-54-g00ecf