multilib magic to install
authorSaleem Abdulrasool <compnerd@gentoo.org>
Tue, 29 Nov 2005 22:46:27 +0000 (22:46 +0000)
committerSaleem Abdulrasool <compnerd@gentoo.org>
Tue, 29 Nov 2005 22:46:27 +0000 (22:46 +0000)
Package-Manager: portage-2.0.53_rc7

dev-java/swt/ChangeLog
dev-java/swt/Manifest
dev-java/swt/swt-3.1-r1.ebuild

index 5c6c1fffae1b363996d9a49387b2be58ba8a4830..2cb9fdce6cd5756df5acaa3430183c4e78fcaab9 100644 (file)
@@ -1,6 +1,9 @@
 # ChangeLog for dev-java/swt
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/ChangeLog,v 1.30 2005/11/23 23:50:20 metalgod Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/ChangeLog,v 1.31 2005/11/29 22:46:27 compnerd Exp $
+
+  29 Nov 2005; Saleem Abdulrasool <compnerd@gentoo.org> swt-3.1-r1.ebuild:
+  Fixing multilib issues.  Minor cleanup
 
   23 Nov 2005; Luis Medinas <metalgod@gentoo.org> swt-3.2_pre1.ebuild:
   Fix package to be able to build with multilib-strict on amd64. Closes bug
index 5dad27c4ff83c398b3694900a5fa41959baa8129..757c7cff28f0d076567000c35401b7fe3e562866 100644 (file)
@@ -1,7 +1,4 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 44c85c4dfac50f9ad293376fff82ab6e ChangeLog 5464
+MD5 1ca30c8321bde81905b19bb956a08593 ChangeLog 5581
 MD5 ad4aa305806513ab198281b6e485fbbc files/SWTMessages.properties 2085
 MD5 c964f0ff0b83afdfd76d872821540574 files/build.xml 476
 MD5 5d9afb3da5c7a84844807032c229b5a0 files/digest-swt-3.1-r1 216
@@ -9,12 +6,5 @@ MD5 686130e25bfbef166609d902f0f16940 files/digest-swt-3.2_pre1 222
 MD5 b246c6ca2f33a241ab92d5a8c74da665 files/swt-cairo-0.9.2-amd64.patch 8325
 MD5 86a056e193ce8f351e3b12d7f5751861 files/swt-cairo-0.9.2.patch 8692
 MD5 5ea14ff7e96eeb0ce1c8a161b7f1ce3f metadata.xml 541
-MD5 f387ebc54db186eb59aeb42a256517eb swt-3.1-r1.ebuild 5319
+MD5 bc3e4fd7f297d5e79aa5ec09a5f778b6 swt-3.1-r1.ebuild 5075
 MD5 c0810a3d3ccad699db1d7f91f78e69b8 swt-3.2_pre1.ebuild 5186
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFDhQAfwUpWvClEHQoRAkNyAJ0Skb50LWToK8HrR5F0jxhAfkoOxACgg0Ru
-8F1kHJkHAub3sorHN9kpZJk=
-=fKD2
------END PGP SIGNATURE-----
index b164f1d0d50fb66805eae0423fe8bee4afdbb182..be32d29b86c6fa9cd777ed1e2e6e4b44a471c9ab 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/swt-3.1-r1.ebuild,v 1.3 2005/10/22 17:01:55 compnerd Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/swt/swt-3.1-r1.ebuild,v 1.4 2005/11/29 22:46:27 compnerd Exp $
 
-inherit eutils java-pkg
+inherit eutils java-pkg multilib
 
 MY_DMF="R-3.1-200506271435"
 MY_VERSION="3.1"
@@ -48,14 +48,8 @@ pkg_setup() {
 }
 
 src_unpack() {
-       # Extract based on architecture
-       if [[ ${ARCH} == 'amd64' ]] ; then
-               unpack swt-${MY_VERSION}-gtk-linux-x86_64.zip || die "Unable to unpack sources"
-       elif [[ ${ARCH} == 'ppc' ]] ; then
-               unpack swt-${MY_VERSION}-gtk-linux-ppc.zip || die "Unable to unpack     sources"
-       else
-               unpack swt-${MY_VERSION}-gtk-linux-x86.zip || die "Unable to unpack     sources"
-       fi
+       # Portage should do this magically
+       unpack ${A} || die "Unable to unpack sources"
 
        # Clean up the directory structure
        for f in $(ls); do
@@ -94,7 +88,7 @@ src_compile() {
        fi
 
        # Identity the XTEST library location
-       export XTEST_LIB_PATH=/usr/X11R6/lib
+       export XTEST_LIB_PATH=/usr/X11R6/$(get_libdir)
 
        # Fix the pointer size for AMD64
        [[ ${ARCH} == 'amd64' ]] && export SWT_PTR_CFLAGS=-DSWT_PTR_SIZE_64
@@ -155,7 +149,7 @@ src_compile() {
 src_install() {
        java-pkg_dojar swt.jar
 
-       java-pkg_sointo /usr/lib
+       java-pkg_sointo /usr/$(get_libdir)
        java-pkg_doso *.so
 
        dohtml about.html
@@ -166,7 +160,7 @@ pkg_postinst() {
                ewarn
                ewarn "CAIRO Support is experimental! We are not responsible if"
                ewarn "enabling support for CAIRO corrupts your Gentoo install,"
-               ewarn "if it blows up your computer, or if it becoming sentient"
+               ewarn "if it blows up your computer, or if it becomes sentient"
                ewarn "and chases you down the street yelling random binary!"
                ewarn
                ebeep 5