From: Krzysztof Pawlik Date: Sat, 6 Jan 2007 11:18:21 +0000 (+0000) Subject: Migrated to generation 2, fixed SONAME and compiling to correct bytecode. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1979f0baa5e6c12996cfe9e8b0937a2fb0b417e4;p=gentoo.git Migrated to generation 2, fixed SONAME and compiling to correct bytecode. Package-Manager: portage-2.1.2_rc4-r6 --- diff --git a/dev-java/jusb/ChangeLog b/dev-java/jusb/ChangeLog index 06a4a40f56ce..80d0d7da4174 100644 --- a/dev-java/jusb/ChangeLog +++ b/dev-java/jusb/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-java/jusb -# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jusb/ChangeLog,v 1.2 2006/01/31 04:34:18 nichoj Exp $ +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jusb/ChangeLog,v 1.3 2007/01/06 11:18:21 nelchael Exp $ + +*jusb-0.4.4-r1 (06 Jan 2007) + + 06 Jan 2007; Krzysiek Pawlik +jusb-0.4.4-r1.ebuild: + Migrated to generation 2, fixed SONAME and compiling to correct bytecode. 31 Jan 2006; Joshua Nichols jusb-0.4.4.ebuild: Fixed multilib-strict violation. diff --git a/dev-java/jusb/Manifest b/dev-java/jusb/Manifest index b608851444da..8232ecf5d2ce 100644 --- a/dev-java/jusb/Manifest +++ b/dev-java/jusb/Manifest @@ -1,16 +1,41 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 68a8a017b1c2215fd2184796c16f122a ChangeLog 596 -MD5 7dfe45c66b2b735c99459e7123f37ab3 files/digest-jusb-0.4.4 62 +AUX jusb-0.4.4-makefile.patch 347 RMD160 dc1e5e3290e813e5dca2448a39aaf281cabae429 SHA1 3c3bd9a6286b0a6be163c91223412cd535a3727a SHA256 05f4dd5fe1e19c0762946cb337555829fa605fa288c882b4290b383a22d9ae9e MD5 ae2db2e259420167a40862f2a55c7da4 files/jusb-0.4.4-makefile.patch 347 +RMD160 dc1e5e3290e813e5dca2448a39aaf281cabae429 files/jusb-0.4.4-makefile.patch 347 +SHA256 05f4dd5fe1e19c0762946cb337555829fa605fa288c882b4290b383a22d9ae9e files/jusb-0.4.4-makefile.patch 347 +AUX jusb-0.4.4-native.patch 668 RMD160 5150ab8bc80a25ee85ee0c6feb5535e3c77cda7c SHA1 8079b752668085950cc103a15e203a30abe95668 SHA256 d140216d9c2e472f2a6bc919750cbc712e45ec4f50ccf9daa6c0e76432cb8caf MD5 087570d64d04b53a1f416bb0e58117de files/jusb-0.4.4-native.patch 668 +RMD160 5150ab8bc80a25ee85ee0c6feb5535e3c77cda7c files/jusb-0.4.4-native.patch 668 +SHA256 d140216d9c2e472f2a6bc919750cbc712e45ec4f50ccf9daa6c0e76432cb8caf files/jusb-0.4.4-native.patch 668 +DIST jusb-0.4.4-src.tgz 92432 RMD160 ab2afa4a861e36fc22d44742ec814ef012b7e02a SHA1 0243a3e1a351b4be3fb900b878b27b8fddb18b4d SHA256 42782637e3cf190bb4bdf46cd16f827976766ca23d7ef737ac3ed7b11fa0d393 +EBUILD jusb-0.4.4-r1.ebuild 1631 RMD160 7b1dc942b4e9a06ad4ec28a6c73b8a27958276d8 SHA1 06b906936cf88fd895896cf441b5d03cd7c9ebab SHA256 aab188ae93c722176483438b67e3267d87582a9bd5e0bc8b42e7110f942d021c +MD5 155abeb7f9ffd1b8eaaf17cd8ef6d7ff jusb-0.4.4-r1.ebuild 1631 +RMD160 7b1dc942b4e9a06ad4ec28a6c73b8a27958276d8 jusb-0.4.4-r1.ebuild 1631 +SHA256 aab188ae93c722176483438b67e3267d87582a9bd5e0bc8b42e7110f942d021c jusb-0.4.4-r1.ebuild 1631 +EBUILD jusb-0.4.4.ebuild 1490 RMD160 7dd58df401f87f41dccba14ae44d433d43657df5 SHA1 e7898094272dc34aff296d2e78c174595e23e910 SHA256 14593997a3422c99083bbbda2be043c43f3ada50aaac588ec4b49bd0f5e5af58 MD5 2432fa2fd32ce9ce983d7cf11353442f jusb-0.4.4.ebuild 1490 +RMD160 7dd58df401f87f41dccba14ae44d433d43657df5 jusb-0.4.4.ebuild 1490 +SHA256 14593997a3422c99083bbbda2be043c43f3ada50aaac588ec4b49bd0f5e5af58 jusb-0.4.4.ebuild 1490 +MISC ChangeLog 781 RMD160 8e5ec7441cbda7bdc5d1ebff7b25a80bbe9e9417 SHA1 007ad13b7fac39ae3e34d4633feb34cef1636f56 SHA256 186e1ebeba054016da45a699d8d7179c62887599287cec83b7ed26d68a920a79 +MD5 cb95b1424a0025c7f4b806c03b4df289 ChangeLog 781 +RMD160 8e5ec7441cbda7bdc5d1ebff7b25a80bbe9e9417 ChangeLog 781 +SHA256 186e1ebeba054016da45a699d8d7179c62887599287cec83b7ed26d68a920a79 ChangeLog 781 +MISC metadata.xml 158 RMD160 493079b5fb71d66863beea1b023901c90ba81be5 SHA1 77cd509a8b3c377b9a24480b48a5d5481b7874f1 SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb MD5 123cf9440c1d4ac78f2caba1624765f9 metadata.xml 158 +RMD160 493079b5fb71d66863beea1b023901c90ba81be5 metadata.xml 158 +SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb metadata.xml 158 +MD5 e53c372efcaee0ab6fe94a36f61a7e21 files/digest-jusb-0.4.4 232 +RMD160 b83cc7cecbe23d648edd7acff6e8fdf1db852826 files/digest-jusb-0.4.4 232 +SHA256 60109411efd24ae009a9e14f90a92a87169e9e054d29616a17e7f18ee8c7026a files/digest-jusb-0.4.4 232 +MD5 e53c372efcaee0ab6fe94a36f61a7e21 files/digest-jusb-0.4.4-r1 232 +RMD160 b83cc7cecbe23d648edd7acff6e8fdf1db852826 files/digest-jusb-0.4.4-r1 232 +SHA256 60109411efd24ae009a9e14f90a92a87169e9e054d29616a17e7f18ee8c7026a files/digest-jusb-0.4.4-r1 232 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2 (GNU/Linux) +Version: GnuPG v2.0.1 (GNU/Linux) -iD8DBQFD3ujundWRXhKOboURAvkxAJ9oUCfANsyfvY5rSRhwmLEbOaeJLACdEvAO -HDHFC3aq0ZddKiddg6BCP3k= -=4i6B +iD8DBQFFn4W7go/w9rxVVVERAmldAJ4tJ6HKqekSdTSvBHr9Yok8UTc30gCeNSJD +Q+0PXIK+AE3kuFD7PL3mUl4= +=UP7Z -----END PGP SIGNATURE----- diff --git a/dev-java/jusb/files/digest-jusb-0.4.4 b/dev-java/jusb/files/digest-jusb-0.4.4 index 10c952bfa5c7..c28d13fdcc2e 100644 --- a/dev-java/jusb/files/digest-jusb-0.4.4 +++ b/dev-java/jusb/files/digest-jusb-0.4.4 @@ -1 +1,3 @@ MD5 2085d1a52a52980e9ca8457b58c1d2c8 jusb-0.4.4-src.tgz 92432 +RMD160 ab2afa4a861e36fc22d44742ec814ef012b7e02a jusb-0.4.4-src.tgz 92432 +SHA256 42782637e3cf190bb4bdf46cd16f827976766ca23d7ef737ac3ed7b11fa0d393 jusb-0.4.4-src.tgz 92432 diff --git a/dev-java/jusb/files/digest-jusb-0.4.4-r1 b/dev-java/jusb/files/digest-jusb-0.4.4-r1 new file mode 100644 index 000000000000..c28d13fdcc2e --- /dev/null +++ b/dev-java/jusb/files/digest-jusb-0.4.4-r1 @@ -0,0 +1,3 @@ +MD5 2085d1a52a52980e9ca8457b58c1d2c8 jusb-0.4.4-src.tgz 92432 +RMD160 ab2afa4a861e36fc22d44742ec814ef012b7e02a jusb-0.4.4-src.tgz 92432 +SHA256 42782637e3cf190bb4bdf46cd16f827976766ca23d7ef737ac3ed7b11fa0d393 jusb-0.4.4-src.tgz 92432 diff --git a/dev-java/jusb/jusb-0.4.4-r1.ebuild b/dev-java/jusb/jusb-0.4.4-r1.ebuild new file mode 100644 index 000000000000..294b47eb20ef --- /dev/null +++ b/dev-java/jusb/jusb-0.4.4-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2007 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-r1.ebuild,v 1.1 2007/01/06 11:18:21 nelchael Exp $ + +inherit eutils java-pkg-2 linux-info flag-o-matic multilib + +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 + + sed -i \ + -e 's#-shared#-shared -Wl,-soname=libjusb.so#' \ + -e 's#javac#javac $(JAVACFLAGS)#' \ + "${S}/Makefile" || die "sed failed" +} + +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/$(get_libdir) + 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/* +}