1 |
commit: fe832fe4c3a4bc3f1e096fa6748eaa6587425b63 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 5 07:45:14 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 5 07:45:14 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=fe832fe4 |
7 |
|
8 |
dev-java/icedtea-web: Add a test ebuild for icedtea-web, building against NPAPI-SDK. |
9 |
|
10 |
(Portage version: 2.2.0_alpha51_p82/git/Linux x86_64, signed Manifest commit with key 42B9401D) |
11 |
|
12 |
--- |
13 |
dev-java/icedtea-web/Manifest | 13 ++++--- |
14 |
...ng-NPAPI-SDK-headers-instead-of-whole-xul.patch | 38 ++++++++++++++++++++ |
15 |
...eb-1.1.1.ebuild => icedtea-web-1.1.1-r1.ebuild} | 15 +++++++- |
16 |
3 files changed, 58 insertions(+), 8 deletions(-) |
17 |
|
18 |
diff --git a/dev-java/icedtea-web/Manifest b/dev-java/icedtea-web/Manifest |
19 |
index 7ed6481..520ec24 100644 |
20 |
--- a/dev-java/icedtea-web/Manifest |
21 |
+++ b/dev-java/icedtea-web/Manifest |
22 |
@@ -1,15 +1,16 @@ |
23 |
-----BEGIN PGP SIGNED MESSAGE----- |
24 |
Hash: SHA256 |
25 |
|
26 |
+AUX 0001-Support-using-NPAPI-SDK-headers-instead-of-whole-xul.patch 1210 RMD160 d151ee610070429d73d676e07a4bc9b876f1b5b0 SHA1 3a9983dabe0387e9bc396326d937e98830fdaf34 SHA256 90ad27ff80dc42159aef9f4950511328f4ed78941911ce1f89608c08632808c7 |
27 |
DIST icedtea-web-1.1.1.tar.gz 806633 RMD160 7267f279726bc1aa70f298721f757822b5189cfb SHA1 332874daf5f01fd6db3e60b4dbe3b40b8b269014 SHA256 0051005302e698f2468e6cae275b8c58869c85be04c269f2f266389a4e6a66c7 |
28 |
-EBUILD icedtea-web-1.1.1.ebuild 3939 RMD160 5c9b89c18766dde518b8f6f5a442464a5cff1d80 SHA1 cab1ac9021a1adcb1d237dc11224c08143481423 SHA256 cf529d6217d81edfbe9bdf40e4a36bfef0e84352c553e2120b76814a661e63b4 |
29 |
+EBUILD icedtea-web-1.1.1-r1.ebuild 4135 RMD160 711f5fa1a190b72f31beb966457ddf0d06407a3e SHA1 79570ace0d186fe8032117337c4b85d19fae8944 SHA256 978be759dd3136b33f132c5f440cd48c3eee377e4bf9095203c8b6c8798c62ed |
30 |
MISC metadata.xml 666 RMD160 0b4a727787334a8fb0755705a9a9abbea0ed2540 SHA1 529ff0c8f099d6b65d47880b4f5a338ef94c63fd SHA256 39c40293e8df643512c54fdfe6c2cae952fa38229b137c039c1477e4fb758bb6 |
31 |
-----BEGIN PGP SIGNATURE----- |
32 |
Version: GnuPG v2.0.18 (GNU/Linux) |
33 |
|
34 |
-iJwEAQEIAAYFAk5j/L4ACgkQfXuS5UK5QB1gOwP+ISk3tSUNS450W+KlQ271xwcZ |
35 |
-LJQ5dT/M5bwj9OwO0Jy+MVelbA21npcwSlstlxhezITd+HrdIiz9KTPf1X3rpsDg |
36 |
-tZrA8FyVLcsgxEmgQ3CbSWu+2pQAS91TfZHx9Ms1z2SMIqrPXGv5Mk2mrUj8daF8 |
37 |
-arYINW608mr6Qkg7ykw= |
38 |
-=LlwC |
39 |
+iJwEAQEIAAYFAk5kfgoACgkQfXuS5UK5QB2LrAP+Oqyqu9W22z/flFflkPCX/3fT |
40 |
+rrBaUgaU3Gl7yWPPQS8mZJnTIAkm1xFjmCfcLw65FFQEHpl5h0n4KVD3aN0PTIXX |
41 |
+xjKry/P2c2aa5Qd9CPJSKoTt1d2wd1PxqxORQdvKWeSL7s4D1ocmzlT/87TirQaZ |
42 |
+HR5sFFX6MHZrkBrkORA= |
43 |
+=FohY |
44 |
-----END PGP SIGNATURE----- |
45 |
|
46 |
diff --git a/dev-java/icedtea-web/files/0001-Support-using-NPAPI-SDK-headers-instead-of-whole-xul.patch b/dev-java/icedtea-web/files/0001-Support-using-NPAPI-SDK-headers-instead-of-whole-xul.patch |
47 |
new file mode 100644 |
48 |
index 0000000..5e85961 |
49 |
--- /dev/null |
50 |
+++ b/dev-java/icedtea-web/files/0001-Support-using-NPAPI-SDK-headers-instead-of-whole-xul.patch |
51 |
@@ -0,0 +1,38 @@ |
52 |
+From 7544a3364642a820737ba8d943e8deb2e39b6aa6 Mon Sep 17 00:00:00 2001 |
53 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
54 |
+Date: Mon, 5 Sep 2011 00:26:38 +0200 |
55 |
+Subject: [PATCH] Support using NPAPI-SDK headers instead of whole xulrunner. |
56 |
+ |
57 |
+The first NPAPI-SDK header package with npapi-sdk.pc comes with libxul 2.0 |
58 |
+headers, thus hardcoded that version into it. But the code should be modified |
59 |
+to use NPAPI versioning rather than Mozilla one. Or just drop compat with |
60 |
+ancient versions. |
61 |
+--- |
62 |
+ acinclude.m4 | 11 +++++++++-- |
63 |
+ 1 files changed, 9 insertions(+), 2 deletions(-) |
64 |
+ |
65 |
+diff --git a/acinclude.m4 b/acinclude.m4 |
66 |
+index 3c3803b..58482f1 100644 |
67 |
+--- a/acinclude.m4 |
68 |
++++ b/acinclude.m4 |
69 |
+@@ -346,8 +346,15 @@ if test "x${enable_plugin}" = "xyes" ; then |
70 |
+ AC_SUBST(GTK_CFLAGS) |
71 |
+ AC_SUBST(GTK_LIBS) |
72 |
+ |
73 |
+- PKG_CHECK_MODULES(MOZILLA, mozilla-plugin) |
74 |
+- |
75 |
++ PKG_CHECK_MODULES(MOZILLA, npapi-sdk, [ |
76 |
++ AC_CACHE_CHECK([for xulrunner version], [xulrunner_cv_collapsed_version],[ |
77 |
++ # XXX: use NPAPI versions instead |
78 |
++ xulrunner_cv_collapsed_version=20000000 |
79 |
++ ]) |
80 |
++ ], [ |
81 |
++ PKG_CHECK_MODULES(MOZILLA, mozilla-plugin) |
82 |
++ ]) |
83 |
++ |
84 |
+ AC_SUBST(MOZILLA_CFLAGS) |
85 |
+ AC_SUBST(MOZILLA_LIBS) |
86 |
+ fi |
87 |
+-- |
88 |
+1.7.6.1 |
89 |
+ |
90 |
|
91 |
diff --git a/dev-java/icedtea-web/icedtea-web-1.1.1.ebuild b/dev-java/icedtea-web/icedtea-web-1.1.1-r1.ebuild |
92 |
similarity index 93% |
93 |
rename from dev-java/icedtea-web/icedtea-web-1.1.1.ebuild |
94 |
rename to dev-java/icedtea-web/icedtea-web-1.1.1-r1.ebuild |
95 |
index a9fe311..6911a9b 100644 |
96 |
--- a/dev-java/icedtea-web/icedtea-web-1.1.1.ebuild |
97 |
+++ b/dev-java/icedtea-web/icedtea-web-1.1.1-r1.ebuild |
98 |
@@ -5,7 +5,7 @@ |
99 |
|
100 |
EAPI="2" |
101 |
|
102 |
-inherit eutils java-pkg-2 java-vm-2 |
103 |
+inherit autotools base eutils java-pkg-2 java-vm-2 |
104 |
|
105 |
LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2" |
106 |
SLOT="6" |
107 |
@@ -18,7 +18,9 @@ HOMEPAGE="http://icedtea.classpath.org" |
108 |
IUSE="build doc +nsplugin" |
109 |
|
110 |
RDEPEND="dev-java/icedtea:${SLOT} |
111 |
- nsplugin? ( >=net-libs/xulrunner-1.9.1 )" |
112 |
+ nsplugin? ( |
113 |
+ || ( net-misc/npapi-sdk |
114 |
+ >=net-libs/xulrunner-1.9.1 ) )" |
115 |
DEPEND="${RDEPEND}" |
116 |
|
117 |
# a bit of hack so the VM switching is triggered without causing dependency troubles |
118 |
@@ -60,6 +62,15 @@ src_unpack() { |
119 |
default |
120 |
} |
121 |
|
122 |
+src_prepare() { |
123 |
+ local PATCHES=( |
124 |
+ "${FILESDIR}"/0001-Support-using-NPAPI-SDK-headers-instead-of-whole-xul.patch |
125 |
+ ) |
126 |
+ |
127 |
+ base_src_prepare |
128 |
+ eautoreconf |
129 |
+} |
130 |
+ |
131 |
src_configure() { |
132 |
local vmhome=$(java-config -O) |