diff options
author | Jan Brinkmann <luckyduck@gentoo.org> | 2005-04-19 19:26:58 +0000 |
---|---|---|
committer | Jan Brinkmann <luckyduck@gentoo.org> | 2005-04-19 19:26:58 +0000 |
commit | a20501ce481e265414a032cab261d1b1330c7f8f (patch) | |
tree | 03be13c6eabfcea2fbbe79f5368709392d682a17 /dev-java | |
parent | Added ppc64 patch and marked ~ppc64 (diff) | |
download | gentoo-2-a20501ce481e265414a032cab261d1b1330c7f8f.tar.gz gentoo-2-a20501ce481e265414a032cab261d1b1330c7f8f.tar.bz2 gentoo-2-a20501ce481e265414a032cab261d1b1330c7f8f.zip |
Initial import, ebuild and patches contributed by Petteri Räty <petteri.raty@welho.com>. Fixes #89487
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jusb/ChangeLog | 12 | ||||
-rw-r--r-- | dev-java/jusb/Manifest | 6 | ||||
-rw-r--r-- | dev-java/jusb/files/digest-jusb-0.4.4 | 1 | ||||
-rw-r--r-- | dev-java/jusb/files/jusb-0.4.4-makefile.patch | 15 | ||||
-rw-r--r-- | dev-java/jusb/files/jusb-0.4.4-native.patch | 20 | ||||
-rw-r--r-- | dev-java/jusb/jusb-0.4.4.ebuild | 66 | ||||
-rw-r--r-- | dev-java/jusb/metadata.xml | 5 |
7 files changed, 125 insertions, 0 deletions
diff --git a/dev-java/jusb/ChangeLog b/dev-java/jusb/ChangeLog new file mode 100644 index 000000000000..b749aaa9bf07 --- /dev/null +++ b/dev-java/jusb/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-java/jusb +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jusb/ChangeLog,v 1.1 2005/04/19 19:26:58 luckyduck Exp $ + +*jusb-0.4.4 (19 Apr 2005) + + 19 Apr 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml, + +files/jusb-0.4.4-makefile.patch, +files/jusb-0.4.4-native.patch, + +jusb-0.4.4.ebuild: + Initial import, ebuild and patches contributed by Petteri Räty + <petteri.raty@welho.com>. Fixes #89487 + diff --git a/dev-java/jusb/Manifest b/dev-java/jusb/Manifest new file mode 100644 index 000000000000..18c3d266fe47 --- /dev/null +++ b/dev-java/jusb/Manifest @@ -0,0 +1,6 @@ +MD5 685add6cc71e54eea20e7186ff0ef58e jusb-0.4.4.ebuild 1378 +MD5 d7b2989433b81de1723e4e7ea0a9ab74 ChangeLog 406 +MD5 123cf9440c1d4ac78f2caba1624765f9 metadata.xml 158 +MD5 7dfe45c66b2b735c99459e7123f37ab3 files/digest-jusb-0.4.4 62 +MD5 087570d64d04b53a1f416bb0e58117de files/jusb-0.4.4-native.patch 668 +MD5 ae2db2e259420167a40862f2a55c7da4 files/jusb-0.4.4-makefile.patch 347 diff --git a/dev-java/jusb/files/digest-jusb-0.4.4 b/dev-java/jusb/files/digest-jusb-0.4.4 new file mode 100644 index 000000000000..10c952bfa5c7 --- /dev/null +++ b/dev-java/jusb/files/digest-jusb-0.4.4 @@ -0,0 +1 @@ +MD5 2085d1a52a52980e9ca8457b58c1d2c8 jusb-0.4.4-src.tgz 92432 diff --git a/dev-java/jusb/files/jusb-0.4.4-makefile.patch b/dev-java/jusb/files/jusb-0.4.4-makefile.patch new file mode 100644 index 000000000000..70d9b4ca4fcf --- /dev/null +++ b/dev-java/jusb/files/jusb-0.4.4-makefile.patch @@ -0,0 +1,15 @@ +--- Makefile.old 2005-04-17 21:50:21.384681513 +0300 ++++ Makefile 2005-04-17 21:51:26.854632179 +0300 +@@ -292,11 +292,7 @@ + # Native compiles + # + +-# using nonstandard kernel? +-KERNEL_INC ?= /home/src/linux/include +-INCLUDES = -I$(KERNEL_INC) +- +-CFLAGS = -g -O $(INCLUDES) $(RPM_OPT_FLAGS) ++CFLAGS += -g -O $(RPM_OPT_FLAGS) + + + native: $(NATIVE) diff --git a/dev-java/jusb/files/jusb-0.4.4-native.patch b/dev-java/jusb/files/jusb-0.4.4-native.patch new file mode 100644 index 000000000000..b583569d86e0 --- /dev/null +++ b/dev-java/jusb/files/jusb-0.4.4-native.patch @@ -0,0 +1,20 @@ +diff -u native.old/linux.c native/linux.c +--- native.old/linux.c 2005-04-17 21:43:13.491277758 +0300 ++++ native/linux.c 2005-04-17 21:43:21.986973753 +0300 +@@ -226,11 +226,11 @@ + } else + buffer = NULL; + +- ctrl.requesttype = requestType; +- ctrl.request = request; +- ctrl.value = value; +- ctrl.index = index; +- ctrl.length = len & 0xffff; ++ ctrl.bRequestType = requestType; ++ ctrl.bRequest = request; ++ ctrl.wValue = value; ++ ctrl.wIndex = index; ++ ctrl.wLength = len & 0xffff; + ctrl.timeout = TIMEOUT; // USB should t/o after 5 seconds. + ctrl.data = buffer + off; + if ((retval = ioctl (fd, USBDEVFS_CONTROL, &ctrl)) < 0) diff --git a/dev-java/jusb/jusb-0.4.4.ebuild b/dev-java/jusb/jusb-0.4.4.ebuild new file mode 100644 index 000000000000..ff69759a4141 --- /dev/null +++ b/dev-java/jusb/jusb-0.4.4.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jusb/jusb-0.4.4.ebuild,v 1.1 2005/04/19 19:26:58 luckyduck Exp $ + +inherit eutils java-pkg linux-info flag-o-matic + +DESCRIPTION="jUSB provides a Free Software Java API for USB" +HOMEPAGE="http://jusb.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tgz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc source" + +DEPEND=">=virtual/jdk-1.4 + source? ( app-arch/zip )" +RDEPEND=">=virtual/jre-1.4" + +S=${WORKDIR} + +CONFIG_CHECK="USB_DEVICEFS" + +ERROR_CONFIG_USB_DEVICEFS=" +You need to turn on the USB device filesystem +option under USB support in order to use jUSB +" + +src_unpack() { + unpack ${A} + + mkdir src + tar -xzf src.tgz -C src + + # The struct usbdevfs_ctrltransfer is different + # in latest 2.4 and 2.6 kernels. This patch is + # to make jusb compile on 2.6 kernels + ! kernel_is 2 4 && epatch ${FILESDIR}/${P}-native.patch + + epatch ${FILESDIR}/${P}-makefile.patch +} + +src_compile() { + export OSTYPE="linux-gnu" + + # makefile patching isnt worth the trouble, only + # one native source file + append-flags -fPIC + + make || die "Failed to compile" + use doc && make javadoc +} + +src_install() { + java-pkg_dojar jusb.jar + java-pkg_sointo /usr/lib + java-pkg_doso libjusb.so + + dodoc README* + + if use doc; then + java-pkg_dohtml doc/*.html + java-pkg_dohtml -r apidoc/* + fi + use source && java-pkg_dosrc src/* +} diff --git a/dev-java/jusb/metadata.xml b/dev-java/jusb/metadata.xml new file mode 100644 index 000000000000..7303cef96964 --- /dev/null +++ b/dev-java/jusb/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> |