summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/dbus-java
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/dbus-java')
-rw-r--r--dev-java/dbus-java/Manifest1
-rw-r--r--dev-java/dbus-java/dbus-java-2.7-r1.ebuild102
-rw-r--r--dev-java/dbus-java/files/TestSignalInterface2-2.5.1.java45
-rw-r--r--dev-java/dbus-java/files/dbus-java-2.5.1-jarfixes.patch25
-rw-r--r--dev-java/dbus-java/files/dbus-java-2.6-disconnectfix.patch21
-rw-r--r--dev-java/dbus-java/files/dbus-java-htlatex.patch11
-rw-r--r--dev-java/dbus-java/metadata.xml5
7 files changed, 210 insertions, 0 deletions
diff --git a/dev-java/dbus-java/Manifest b/dev-java/dbus-java/Manifest
new file mode 100644
index 000000000000..392306e41c2a
--- /dev/null
+++ b/dev-java/dbus-java/Manifest
@@ -0,0 +1 @@
+DIST dbus-java-2.7.tar.gz 145450 SHA256 be404ea36284d938646192d0ee42e146853064217d4e3aaf89b56bd351ebca33 SHA512 15b44b877ce123948b07aa67bdf73e1fbf6bf2de89d09647dd11d33fc6beb76509b61b73e8a8c5f6331300ac0d9760d7e715b4b9467307f13cfc94b5c856eaa3 WHIRLPOOL 5f2df9de628fbd1178baf5cca75b34f4845db6a8d998901123ec8f93e9cb8b7e0c274de4c75b5a1352c263092c790bb4f78d8cbde6db6d41fecf4b733c038666
diff --git a/dev-java/dbus-java/dbus-java-2.7-r1.ebuild b/dev-java/dbus-java/dbus-java-2.7-r1.ebuild
new file mode 100644
index 000000000000..10b2a16f5679
--- /dev/null
+++ b/dev-java/dbus-java/dbus-java-2.7-r1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+JAVA_PKG_IUSE="doc source"
+inherit eutils java-pkg-2
+
+DESCRIPTION="Java bindings for the D-Bus messagebus"
+HOMEPAGE="http://dbus.freedesktop.org/"
+SRC_URI="http://dbus.freedesktop.org/releases/dbus-java/${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 AFL-2.1 )"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="debug"
+
+RDEPEND=">=virtual/jre-1.5
+ >=dev-java/libmatthew-java-0.7-r1"
+
+DEPEND=">=virtual/jdk-1.5
+ app-text/docbook-sgml-utils
+ dev-java/libmatthew-java
+ sys-devel/gettext
+ doc? (
+ dev-tex/tex4ht
+ dev-texlive/texlive-latexextra
+ )"
+
+java_prepare() {
+ epatch "${FILESDIR}/${PN}-2.5.1-jarfixes.patch"
+
+ # dev-tex/tex4ht changed htlatex path, see bug #318963
+ if use doc; then
+ epatch "${FILESDIR}/${PN}-htlatex.patch"
+ fi
+}
+
+src_compile() {
+ local debug="disable"
+ use debug && debug="enable"
+ local libdir=$(dirname $(java-pkg_getjar libmatthew-java unix.jar))
+ emake -j1 JCFLAGS="$(java-pkg_javac-args)" \
+ STRIP=echo DEBUG=${debug} JAVAUNIXJARDIR=${libdir} bin || die "emake failed"
+
+ for i in *.sgml; do
+ docbook2man $i || die;
+ mv DBUS-JAVA.1 $(echo $i | sed 's/sgml/1/g') || die;
+ done
+
+ if use doc; then
+ emake doc || die "emake doc failed"
+ fi
+}
+
+src_install() {
+ local debug="disable"
+ use debug && debug="enable"
+ for jar in unix hexdump debug-${debug}; do
+ java-pkg_register-dependency libmatthew-java ${jar}.jar
+ done
+ java-pkg_newjar lib${P}.jar dbus.jar
+ java-pkg_newjar dbus-java-viewer-${PV}.jar dbus-java-viewer.jar
+ java-pkg_newjar dbus-java-bin-${PV}.jar dbus-java-bin.jar
+ local javaargs='-DPid=$$'
+ javaargs="${javaargs} -DVersion=${PV}"
+
+ java-pkg_dolauncher CreateInterface \
+ --main org.freedesktop.dbus.bin.CreateInterface \
+ --java_args "${javaargs}"
+
+ java-pkg_dolauncher DBusViewer \
+ --main org.freedesktop.dbus.viewer.DBusViewer \
+ --java_args "${javaargs}"
+
+ java-pkg_dolauncher ListDBus \
+ --main org.freedesktop.dbus.bin.ListDBus \
+ --java_args "${javaargs}"
+
+ java-pkg_dolauncher DBusDaemon \
+ --main org.freedesktop.dbus.bin.DBusDaemon \
+ --java_args "${javaargs}"
+
+ java-pkg_dolauncher DBusCall \
+ --main org.freedesktop.dbus.bin.Caller \
+ --java_args "${javaargs}"
+
+ doman *.1
+ dodoc INSTALL changelog AUTHORS README || die
+ use source && java-pkg_dosrc org/
+ use doc && java-pkg_dojavadoc doc/api
+ use doc && java-pkg_dohtml doc/dbus-java/*
+}
+
+src_test() {
+ local debug="disable"
+ use debug && debug="enable"
+ local libdir=$(dirname $(java-pkg_getjar libmatthew-java unix.jar))
+ emake -j1 JCFLAGS="$(java-pkg_javac-args) -encoding UTF-8" \
+ DEBUG=${debug} JAVAUNIXJARDIR=${libdir} JAVAUNIXLIBDIR=/usr/lib/libmatthew-java check || die "emake check failed"
+}
diff --git a/dev-java/dbus-java/files/TestSignalInterface2-2.5.1.java b/dev-java/dbus-java/files/TestSignalInterface2-2.5.1.java
new file mode 100644
index 000000000000..d5c9ac521c4e
--- /dev/null
+++ b/dev-java/dbus-java/files/TestSignalInterface2-2.5.1.java
@@ -0,0 +1,45 @@
+/*
+ D-Bus Java Implementation
+ Copyright (c) 2005-2006 Matthew Johnson
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of either the GNU Lesser General Public License Version 2 or the
+ Academic Free Licence Version 2.1.
+
+ Full licence texts are included in the COPYING file with this program.
+*/
+package org.freedesktop.dbus.test;
+
+import org.freedesktop.DBus.Description;
+import org.freedesktop.dbus.DBusInterface;
+import org.freedesktop.dbus.DBusInterfaceName;
+import org.freedesktop.dbus.DBusMemberName;
+import org.freedesktop.dbus.DBusSignal;
+import org.freedesktop.dbus.UInt32;
+import org.freedesktop.dbus.exceptions.DBusException;
+
+import java.util.List;
+
+/**
+ * A sample signal with two parameters
+ */
+@Description("Test interface containing signals")
+@DBusInterfaceName("some.other.interface.Name")
+public interface TestSignalInterface2 extends DBusInterface
+{
+ @Description("Test basic signal")
+ public static class TestRenamedSignal extends DBusSignal
+ {
+ public final String value;
+ public final UInt32 number;
+ /**
+ * Create a signal.
+ */
+ public TestRenamedSignal(String path, String value, UInt32 number) throws DBusException
+ {
+ super(path, value, number);
+ this.value = value;
+ this.number = number;
+ }
+ }
+}
diff --git a/dev-java/dbus-java/files/dbus-java-2.5.1-jarfixes.patch b/dev-java/dbus-java/files/dbus-java-2.5.1-jarfixes.patch
new file mode 100644
index 000000000000..cd49726b6403
--- /dev/null
+++ b/dev-java/dbus-java/files/dbus-java-2.5.1-jarfixes.patch
@@ -0,0 +1,25 @@
+diff -Nur dbus-java-2.5.1/Makefile dbus-java-2.5.1_patched/Makefile
+--- dbus-java-2.5.1/Makefile 2008-07-21 13:44:10.000000000 +0300
++++ dbus-java-2.5.1_patched/Makefile 2008-11-28 07:10:30.000000000 +0200
+@@ -87,17 +87,13 @@
+ sed -n '/_(/s/.*_("\([^"]*\)").*/\1/p' $^ | sort -u | sed 's/\(.*\)/msgid "\1"\nmsgstr "\1"/' >> $@
+
+ libdbus-java-$(VERSION).jar: .classes
+- echo "Class-Path: ${JAVAUNIXJARDIR}/unix.jar ${JAVAUNIXJARDIR}/hexdump.jar ${JAVAUNIXJARDIR}/debug-$(DEBUG).jar" > Manifest
+- (cd classes; $(JAR) -cfm ../$@ ../Manifest org/freedesktop/dbus/*.class org/freedesktop/*.class org/freedesktop/dbus/types/*.class org/freedesktop/dbus/exceptions/*.class *localized*class)
++ (cd classes; $(JAR) -cf ../$@ org/freedesktop/dbus/*.class org/freedesktop/*.class org/freedesktop/dbus/types/*.class org/freedesktop/dbus/exceptions/*.class *localized*class)
+ dbus-java-test-$(VERSION).jar: .testclasses
+- echo "Class-Path: ${JARPREFIX}/libdbus-java-$(VERSION).jar" > Manifest
+- (cd classes; $(JAR) -cfm ../$@ ../Manifest org/freedesktop/dbus/test/*.class)
++ (cd classes; $(JAR) -cf ../$@ org/freedesktop/dbus/test/*.class)
+ dbus-java-viewer-$(VERSION).jar: .viewerclasses
+- echo "Class-Path: ${JARPREFIX}/libdbus-java-$(VERSION).jar" > Manifest
+- (cd classes; $(JAR) -cfm ../$@ ../Manifest org/freedesktop/dbus/viewer/*.class)
++ (cd classes; $(JAR) -cf ../$@ org/freedesktop/dbus/viewer/*.class)
+ dbus-java-bin-$(VERSION).jar: .binclasses
+- echo "Class-Path: ${JARPREFIX}/libdbus-java-$(VERSION).jar" > Manifest
+- (cd classes; $(JAR) -cfm ../$@ ../Manifest org/freedesktop/dbus/bin/*.class)
++ (cd classes; $(JAR) -cf ../$@ org/freedesktop/dbus/bin/*.class)
+ dbus.jar: libdbus-java-$(VERSION).jar
+ ln -sf $< $@
+ dbus-bin.jar: dbus-java-bin-$(VERSION).jar
diff --git a/dev-java/dbus-java/files/dbus-java-2.6-disconnectfix.patch b/dev-java/dbus-java/files/dbus-java-2.6-disconnectfix.patch
new file mode 100644
index 000000000000..73825676ddb7
--- /dev/null
+++ b/dev-java/dbus-java/files/dbus-java-2.6-disconnectfix.patch
@@ -0,0 +1,21 @@
+diff --git a/org/freedesktop/dbus/Error.java b/org/freedesktop/dbus/Error.java
+index 16e1126..9db1e07 100644
+--- a/org/freedesktop/dbus/Error.java
++++ b/org/freedesktop/dbus/Error.java
+@@ -17,6 +17,7 @@ import java.util.Vector;
+ import org.freedesktop.dbus.exceptions.DBusException;
+ import org.freedesktop.dbus.exceptions.DBusExecutionException;
+ import org.freedesktop.dbus.exceptions.MessageFormatException;
++import org.freedesktop.dbus.exceptions.NotConnected;
+
+ import cx.ath.matthew.debug.Debug;
+
+@@ -79,6 +80,7 @@ public class Error extends Message
+ @SuppressWarnings("unchecked")
+ private static Class<? extends DBusExecutionException> createExceptionClass(String name)
+ {
++ if (name == "org.freedesktop.DBus.Local.Disconnected") return NotConnected.class;
+ Class<? extends DBusExecutionException> c = null;
+ do {
+ try {
+
diff --git a/dev-java/dbus-java/files/dbus-java-htlatex.patch b/dev-java/dbus-java/files/dbus-java-htlatex.patch
new file mode 100644
index 000000000000..ebb278ad169b
--- /dev/null
+++ b/dev-java/dbus-java/files/dbus-java-htlatex.patch
@@ -0,0 +1,11 @@
+--- Makefile~ 2009-11-01 14:53:27.000000000 +0100
++++ Makefile 2010-05-08 16:26:10.000000000 +0200
+@@ -131,7 +131,7 @@
+ (cd doc; pdflatex ../dbus-java.tex)
+ doc/dbus-java/index.html: dbus-java.tex .doc
+ mkdir -p doc/dbus-java/
+- (cd doc/dbus-java; TEX4HTENV=/etc/tex4ht/tex4ht.env htlatex ../../dbus-java.tex "xhtml,2" "" "-cvalidate")
++ (cd doc/dbus-java; TEX4HTENV=/etc/tex4ht/tex4ht.env mk4ht htlatex ../../dbus-java.tex "xhtml,2" "" "-cvalidate")
+ rm -f doc/dbus-java/*{4ct,4tc,aux,dvi,idv,lg,log,tmp,xref}
+ cp doc/dbus-java/dbus-java.html doc/dbus-java/index.html
+ doc/api/index.html: $(SRCDIR)/*.java $(SRCDIR)/dbus/*.java .doc
diff --git a/dev-java/dbus-java/metadata.xml b/dev-java/dbus-java/metadata.xml
new file mode 100644
index 000000000000..250f2d1940ea
--- /dev/null
+++ b/dev-java/dbus-java/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+</pkgmetadata>