summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerkan Kaba <serkan@gentoo.org>2008-06-14 09:03:54 +0000
committerSerkan Kaba <serkan@gentoo.org>2008-06-14 09:03:54 +0000
commitd5bf418bf67be1eee52d980d8def01554b295677 (patch)
treebefa4733418696b2a848ea0548f680af356966cd /net-im/kouchat
parentStable on ppc wrt bug 226451 (diff)
downloadhistorical-d5bf418bf67be1eee52d980d8def01554b295677.tar.gz
historical-d5bf418bf67be1eee52d980d8def01554b295677.tar.bz2
historical-d5bf418bf67be1eee52d980d8def01554b295677.zip
Initial ebuild. Fixes bug #226135.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-im/kouchat')
-rw-r--r--net-im/kouchat/ChangeLog10
-rw-r--r--net-im/kouchat/Manifest15
-rw-r--r--net-im/kouchat/files/build.xml52
-rw-r--r--net-im/kouchat/kouchat-0.9.8.ebuild45
-rw-r--r--net-im/kouchat/metadata.xml5
5 files changed, 127 insertions, 0 deletions
diff --git a/net-im/kouchat/ChangeLog b/net-im/kouchat/ChangeLog
new file mode 100644
index 000000000000..38ac0919f153
--- /dev/null
+++ b/net-im/kouchat/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-im/kouchat
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/kouchat/ChangeLog,v 1.1 2008/06/14 09:03:53 serkan Exp $
+
+*kouchat-0.9.8 (14 Jun 2008)
+
+ 14 Jun 2008; Serkan Kaba <serkan@gentoo.org> +files/build.xml,
+ +metadata.xml, +kouchat-0.9.8.ebuild:
+ Initial ebuild. Fixes bug #226135.
+
diff --git a/net-im/kouchat/Manifest b/net-im/kouchat/Manifest
new file mode 100644
index 000000000000..1738fe0b9a0e
--- /dev/null
+++ b/net-im/kouchat/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX build.xml 1599 RMD160 f3da456e613b8ee2aaf40135c875aae8862d3d03 SHA1 abbca8a54d6bfd8ff18f227d54e76ea38b7856b0 SHA256 ac006c78d2bd5aea768d2c393877a739338568df4a82140bfc968fed8d551fc6
+DIST kouchat-0.9.8-src.tar.gz 246948 RMD160 dec074181bc265f4f925f441b2e5852ba3a6b475 SHA1 729dfba5e9955a610e4bd5ea33854fe4dc47ee60 SHA256 7889892b2da5a0d19962b00b255773bd12b9d75b9fdb8ae25abe133d525fadb7
+EBUILD kouchat-0.9.8.ebuild 1185 RMD160 c5e17a27bbf1b753496371075dca840e04108117 SHA1 d3dfda665347c0ca98f21c45d9cd434248b7f559 SHA256 20f6fb729f7bb5eabba9cbca8bf5c6847ea20c5843a9065e60045c140d55e1ff
+MISC ChangeLog 374 RMD160 8753adb52f271963725edbe3e1bbbc54750f54c1 SHA1 af9e923082e55d93197c026de32bf0361c092fd8 SHA256 bb238e93237e82bd7661b759340cfbd423737c7c249dd0991f18f189155160c0
+MISC metadata.xml 158 RMD160 493079b5fb71d66863beea1b023901c90ba81be5 SHA1 77cd509a8b3c377b9a24480b48a5d5481b7874f1 SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkhTiYMACgkQRh6X64ivZaLpewCfT0hVJl4EWO7YYw0xsvdWTzSs
+woAAnjg8HX4LOr99MK1hr7aUarH6oTOb
+=D7Tn
+-----END PGP SIGNATURE-----
diff --git a/net-im/kouchat/files/build.xml b/net-im/kouchat/files/build.xml
new file mode 100644
index 000000000000..a413586b648a
--- /dev/null
+++ b/net-im/kouchat/files/build.xml
@@ -0,0 +1,52 @@
+<project name="kouchat" default="jar">
+ <property name="dest.jar" value="kouchat.jar"/>
+ <property name="build.app" value="build/app"/>
+ <property name="build.test" value="build/test"/>
+ <target name="compile">
+ <mkdir dir="${build.app}"/>
+ <javac srcdir="src" destdir="${build.app}"/>
+ <copy todir="${build.app}/icons">
+ <fileset dir="resources/icons"/>
+ </copy>
+ <copy todir="${build.app}/sounds">
+ <fileset dir="resources/sounds"/>
+ </copy>
+ <copy file="kou_shortcut.ico" todir="${build.app}"/>
+ <copy file="kou_shortcut.png" todir="${build.app}"/>
+ <copy file="CHANGES" todir="${build.app}"/>
+ <copy file="COPYING" todir="${build.app}"/>
+ <copy file="FAQ" todir="${build.app}"/>
+ <copy file="README" todir="${build.app}"/>
+ </target>
+
+ <target name="jar" depends="compile">
+ <jar destfile="${dest.jar}">
+ <fileset dir="${build.app}"/>
+ </jar>
+ </target>
+
+ <target name="test">
+ <mkdir dir="${build.test}"/>
+ <javac srcdir="test" destdir="${build.test}">
+ <classpath>
+ <pathelement location="${dest.jar}"/>
+ <pathelement path="${junit4.jar}"/>
+ </classpath>
+ </javac>
+ <junit printsummary="yes" haltonfailure="yes">
+ <classpath>
+ <pathelement path="${build.test}"/>
+ <pathelement path="${build.app}"/>
+ </classpath>
+ <test name="net.usikkert.kouchat.net.MessageParserTest"/>
+ <test name="net.usikkert.kouchat.net.UDPReceiverTest"/>
+ <test name="net.usikkert.kouchat.net.UDPSenderTest"/>
+ </junit>
+ </target>
+
+ <target name="javadoc" depends="compile">
+ <mkdir dir="docs"/>
+ <javadoc sourcepath="src" destdir="docs"/>
+ </target>
+
+</project>
diff --git a/net-im/kouchat/kouchat-0.9.8.ebuild b/net-im/kouchat/kouchat-0.9.8.ebuild
new file mode 100644
index 000000000000..9f260ec41fce
--- /dev/null
+++ b/net-im/kouchat/kouchat-0.9.8.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/kouchat/kouchat-0.9.8.ebuild,v 1.1 2008/06/14 09:03:53 serkan Exp $
+
+EAPI=1
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="KouChat is a simple serverless chat client for local area networks."
+HOMEPAGE="http://kouchat.googlecode.com/"
+SRC_URI="http://kouchat.googlecode.com/files/${P}-src.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.6"
+DEPEND=">=virtual/jdk-1.6
+ test?
+ (
+ dev-java/junit:4
+ dev-java/ant-junit4
+ )"
+
+S="${WORKDIR}/${P}-src"
+
+src_unpack() {
+ unpack ${A}
+ cp -v "${FILESDIR}"/build.xml "${S}" || die
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+ use doc && java-pkg_dojavadoc docs
+ use source && java-pkg_dosrc src/net
+ java-pkg_dolauncher ${PN} --main net.usikkert.kouchat.KouChat
+ java-pkg_dolauncher ${PN}-console --main net.usikkert.kouchat.KouChat --pkg_args "--console"
+ newicon kou_shortcut.png ${PN}.png
+ make_desktop_entry ${PN} "KouChat"
+}
+
+src_test() {
+ ANT_TASKS="ant-junit4" eant -Djunit4.jar=$(java-pkg_getjar junit-4 junit.jar) test
+}
diff --git a/net-im/kouchat/metadata.xml b/net-im/kouchat/metadata.xml
new file mode 100644
index 000000000000..7303cef96964
--- /dev/null
+++ b/net-im/kouchat/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>