Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 335165 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/dev-java/swt/swt-3.6.1.ebuild (-3 / +15 lines)
Lines 7-13 Link Here
7
inherit eutils java-pkg-2 java-ant-2 toolchain-funcs java-osgi
7
inherit eutils java-pkg-2 java-ant-2 toolchain-funcs java-osgi
8
8
9
MY_PV="${PV/_rc/RC}"
9
MY_PV="${PV/_rc/RC}"
10
MY_DMF="download.eclipse.org/eclipse/downloads/drops/R-${MY_PV}-201009090800"
10
MY_DMF="download.eclipse.org/eclipse/downloads/drops/R-${MY_PV}-201102101200"
11
MY_P="${PN}-${MY_PV}"
11
MY_P="${PN}-${MY_PV}"
12
12
13
DESCRIPTION="GTK based SWT Library"
13
DESCRIPTION="GTK based SWT Library"
Lines 25-38 Link Here
25
			http://${MY_DMF}/${MY_P}-gtk-linux-ppc.zip
25
			http://${MY_DMF}/${MY_P}-gtk-linux-ppc.zip
26
		)
26
		)
27
		ppc64? (
27
		ppc64? (
28
			http://${MY_DMF}/${MY_P}-gtk-linux-x86_64.zip
28
			http://${MY_DMF}/${MY_P}-gtk-linux-ppc64.zip
29
		)"
29
		)"
30
30
31
SLOT="3.6"
31
SLOT="3.6"
32
LICENSE="CPL-1.0 LGPL-2.1 MPL-1.1"
32
LICENSE="CPL-1.0 LGPL-2.1 MPL-1.1"
33
KEYWORDS="amd64 ppc ppc64 x86"
33
KEYWORDS="amd64 ppc ppc64 x86"
34
34
35
IUSE="cairo gnome opengl xulrunner"
35
IUSE="cairo gnome opengl webkit xulrunner"
36
COMMON=">=dev-libs/glib-2.6
36
COMMON=">=dev-libs/glib-2.6
37
		>=x11-libs/gtk+-2.6.8:2
37
		>=x11-libs/gtk+-2.6.8:2
38
		>=dev-libs/atk-1.10.2
38
		>=dev-libs/atk-1.10.2
Lines 43-48 Link Here
43
				=gnome-base/libgnomeui-2*
43
				=gnome-base/libgnomeui-2*
44
				)
44
				)
45
		xulrunner? ( =net-libs/xulrunner-1.9* )
45
		xulrunner? ( =net-libs/xulrunner-1.9* )
46
		webkit? ( >=net-libs/webkit-gtk-1.2 )
46
		opengl?	(
47
		opengl?	(
47
			virtual/opengl
48
			virtual/opengl
48
			virtual/glu
49
			virtual/glu
Lines 139-144 Link Here
139
		${make} make_gnome || die "Failed to build GNOME VFS support"
140
		${make} make_gnome || die "Failed to build GNOME VFS support"
140
	fi
141
	fi
141
142
143
	if use webkit ; then
144
		einfo "Building the WebKitGTK+ component"
145
146
		${make} make_webkit || die "Failed to build WebKitGTK+ support"
147
	fi
148
142
	if use xulrunner ; then
149
	if use xulrunner ; then
143
		einfo "Building the Mozilla component against xulrunner-1.9"
150
		einfo "Building the Mozilla component against xulrunner-1.9"
144
151
Lines 189-194 Link Here
189
	use x86-fbsd && swtArch=x86
196
	use x86-fbsd && swtArch=x86
190
197
191
	sed "s/SWT_ARCH/${swtArch}/" "${FILESDIR}/${PN}-${SLOT}-manifest" > "MANIFEST_TMP.MF"
198
	sed "s/SWT_ARCH/${swtArch}/" "${FILESDIR}/${PN}-${SLOT}-manifest" > "MANIFEST_TMP.MF"
199
	use cairo || sed -i -e "/ org.eclipse.swt.internal.cairo; x-internal:=true,/d" "MANIFEST_TMP.MF"
200
	use gnome || sed -i -e "/ org.eclipse.swt.internal.gnome; x-internal:=true,/d" "MANIFEST_TMP.MF"
201
	use opengl || sed -i -e "/ org.eclipse.swt.internal.opengl.glx; x-internal:=true,/d" "MANIFEST_TMP.MF"
202
	use webkit || sed -i -e "/ org.eclipse.swt.internal.webkit; x-internal:=true,/d" "MANIFEST_TMP.MF"
203
	use xulrunner || sed -i -e "/ org.eclipse.swt.internal.mozilla; x-internal:=true,/d" "MANIFEST_TMP.MF"
192
	java-osgi_newjar-fromfile "swt.jar" "MANIFEST_TMP.MF" "Standard Widget Toolkit for GTK 2.0"
204
	java-osgi_newjar-fromfile "swt.jar" "MANIFEST_TMP.MF" "Standard Widget Toolkit for GTK 2.0"
193
205
194
	java-pkg_sointo /usr/$(get_libdir)
206
	java-pkg_sointo /usr/$(get_libdir)

Return to bug 335165