parent
575ff98db5
commit
d136387b6b
@ -1,8 +1,5 @@
|
||||
DIST monit-5.10.tar.gz 1162409 SHA256 3791155a1b1b6b51a4a104dfe6f17b37d7c346081889f1bec9339565348d9453 SHA512 f8615ad3b5ac304e7f84d70631a81f0d458ef11b6662b5892a112d5e8af5a83d7675b79cefe5f3b1cae68b8998a1b0b31b4fa2d32e9b46c05654220d546c2ff9 WHIRLPOOL dd06c437ce7a5fd8a1879f2774041cd6722fd6f6fc9c74dc74ca1ce70508180e3e130ec593e1ec8428f75bb8621c6f59105273663e28efb54d665eccf9e346da
|
||||
DIST monit-5.11.tar.gz 1223927 SHA256 d507957b1e18e6f45af5a4d3f94529ab22b26f522f5f62287919bc905c44283a SHA512 d3bffd0fa5326d7783259af5f14beaed510d06644ec865e933e63aab2c35d47e2f859a9e490b0193ae62c9174a065c216cfa0ae3708d5a06a2d92e9c384f4151 WHIRLPOOL 55d63f7fc3ac197ab71b95b76c4c2362ea640f80a61c3bfa1238ca80a6566c057c1728f29f358aee998a6c30801fa4ed42e230f0cff3bb28e0396c749357c966
|
||||
DIST monit-5.12.1.tar.gz 1191935 SHA256 0ed2489d31313fb9f7b6867352609c8aa416c3c19be3761142356d0a9cfa41c9 SHA512 23431f6a3340d5c5e074370f1fad8424c23fc7af1309c366c3f381a5863a1adf34ceb7b08f578cfd6c65518b89b6ce31e3ffc3db5ee7e291ffc5e920783bf107 WHIRLPOOL 1e06fff19f4f1c03b9db3d55fe6a96af664ec10a7a551b8e2cb902b88a0fad80093694d25d232d4c1cdcb80adda6f511f54d57d9f65870c03a8df29b0484c184
|
||||
DIST monit-5.12.2.tar.gz 1192066 SHA256 8ab0296d1aa2351b1573481592d7b5e06de1edd49dff1b5552839605a450914c SHA512 086f9af2c6d155c5375e7de5641025707f34577d4f2a4a76d1a104361b5d5793a4f04313cafb5d6884a01aba59f1bbb405b37294ba133d9a93c05e484e5933ff WHIRLPOOL 3d25ab0dc3cfe0e2c881f35e48b64355fe12ce1d3357450d2b1d2aba7344acbe55c031e4fd6b49f7c523b674ff650cbad5bbc91853ec15dd10e64f164504ea70
|
||||
DIST monit-5.12.tar.gz 1200917 SHA256 43075396203569f87b67f7bffd1de739aa2fba302956237a2b0dc7aaf62da343 SHA512 c8335a4055a2bd9c0df2a0aa926f61121038b779b183265d69bc6603a12679f5441c9e0ce176189cf5174d291bff78cf01050741159eac40311b3466c4ac5a6e WHIRLPOOL 7532cb5645ff286eed4338a97d42609f7fcb1be6960ec1620babbe0bfffebc9ef6f279378c889d91d2c08e35cd4037f9a7144228a1942e4f67dfb80904567a05
|
||||
DIST monit-5.13.tar.gz 1193463 SHA256 9abae036f3be93a19c6b476ecd106b29d4da755bbc05f0a323e882eab6b2c5a9 SHA512 257fc9d5ece7b39973107adef51b437941c944909efa03949f53067a0811ab8929ea57e98cbf06a22dd6d69aaa0aadd65a22788165819ede8316dcd1894ad546 WHIRLPOOL 7556bd2299b4f930525877543c74c9a30f4a719e7abfb7e5b596ba070dc5c9a6aefaf129891e7ba1f5d1643bc8edbbfd9b35513b38c1bfec143f33e34b667420
|
||||
DIST monit-5.8.1.tar.gz 1212491 SHA256 a25e4b79257ac29ebaf46605dccb7ed693c8e001669c0ccc8feb22e7d4c870e5 SHA512 0cf8b46ea5a5ab42beac4aab649d4fa324b03e02aaceee6a86968849db46b129cd8f20e314c855653620a0bd4b4aa105e2c812a386ddd2be3196ff956f1e7e11 WHIRLPOOL 8134017da3c1f0dc2675df9cb2d7ecd0905765a92a248701a4de2b9ba449a548ae28cf661019e882a1992c027095360f14d1b2378c924623937c85b691c6056c
|
||||
DIST monit-5.8.tar.gz 1237958 SHA256 0c00573ebc0156c534a5952f392c2a7bedde194f8261c05497322055938847f5 SHA512 61f2cb4a6b2da8617adfd16ace4d9b246957385109fee9a3312272ac271003cd89a12872ac3a07b0148ad7bdbe544e447745033d2a9fab19908ef19b7a106dda WHIRLPOOL 0eb1f5b778264d7881281f7139037fa07c225a5c7ece7cae2149460036a58c008e16a3d883e1876a2dc08f092900e05d164e37714ec5fc19960d4127e13c6eeb
|
||||
DIST monit-5.9.tar.gz 1161683 SHA256 274044485170b7498de29e7876cd86488378f50d69df4303a14930ba1f5e4a11 SHA512 915d548d5a4e043b346ec32d9fd3131d7eafd8ed1167e4fca3d4918df9ff87a166dbb2b3398d59a8510c7190c43fe26043568742a27828257140683bea349c83 WHIRLPOOL d5bde04202b066665feeef7bca5e0ec23c18c0bf5a6940ac30b8bfc8cc01056a802b3beae8e0caac861770e167b7b48254fe08fbb9294554e25102bec620f508
|
||||
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/monit-5.10.ebuild,v 1.2 2015/02/11 23:22:22 blueness Exp $
|
||||
|
||||
EAPI="5"
|
||||
inherit systemd
|
||||
|
||||
DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system"
|
||||
HOMEPAGE="http://mmonit.com/monit/"
|
||||
SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
|
||||
IUSE="pam ssl"
|
||||
|
||||
RDEPEND="ssl? ( dev-libs/openssl )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
pam? ( virtual/pam )"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with ssl) $(use_with pam) || die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
dodoc README*
|
||||
dohtml -r doc/*
|
||||
|
||||
insinto /etc; insopts -m600; doins monitrc || die "doins monitrc failed"
|
||||
newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit || die "newinitd failed"
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Sample configurations are available at:"
|
||||
elog "http://mmonit.com/monit/documentation/"
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/monit-5.11-r1.ebuild,v 1.2 2015/02/11 23:22:22 blueness Exp $
|
||||
|
||||
EAPI="5"
|
||||
inherit pam systemd
|
||||
|
||||
DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system"
|
||||
HOMEPAGE="http://mmonit.com/monit/"
|
||||
SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
|
||||
IUSE="pam ssl"
|
||||
|
||||
RDEPEND="ssl? ( dev-libs/openssl )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
pam? ( virtual/pam )"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with ssl) $(use_with pam)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dodoc README*
|
||||
dohtml -r doc/*
|
||||
|
||||
insinto /etc; insopts -m600; doins monitrc
|
||||
newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
|
||||
use pam && newpamd "${FILESDIR}"/${PN}.pamd ${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Sample configurations are available at:"
|
||||
elog "http://mmonit.com/monit/documentation/"
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/monit-5.11.ebuild,v 1.2 2015/02/11 23:22:22 blueness Exp $
|
||||
|
||||
EAPI="5"
|
||||
inherit systemd
|
||||
|
||||
DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system"
|
||||
HOMEPAGE="http://mmonit.com/monit/"
|
||||
SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
|
||||
IUSE="pam ssl"
|
||||
|
||||
RDEPEND="ssl? ( dev-libs/openssl )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
pam? ( virtual/pam )"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with ssl) $(use_with pam) || die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
dodoc README*
|
||||
dohtml -r doc/*
|
||||
|
||||
insinto /etc; insopts -m600; doins monitrc || die "doins monitrc failed"
|
||||
newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit || die "newinitd failed"
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Sample configurations are available at:"
|
||||
elog "http://mmonit.com/monit/documentation/"
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/monit-5.12.1.ebuild,v 1.1 2015/03/13 06:43:07 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
inherit pam systemd
|
||||
|
||||
DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system"
|
||||
HOMEPAGE="http://mmonit.com/monit/"
|
||||
SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
|
||||
IUSE="pam ssl"
|
||||
|
||||
RDEPEND="ssl? ( dev-libs/openssl )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
pam? ( virtual/pam )"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with ssl) $(use_with pam)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dodoc README*
|
||||
dohtml -r doc/*
|
||||
|
||||
insinto /etc; insopts -m600; doins monitrc
|
||||
newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
|
||||
use pam && newpamd "${FILESDIR}"/${PN}.pamd ${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Sample configurations are available at:"
|
||||
elog "http://mmonit.com/monit/documentation/"
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/monit-5.12.ebuild,v 1.1 2015/02/28 06:05:10 patrick Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/monit-5.13.ebuild,v 1.1 2015/05/11 02:27:22 patrick Exp $
|
||||
|
||||
EAPI="5"
|
||||
inherit pam systemd
|
@ -1,2 +1,3 @@
|
||||
DIST open-vm-tools-2013.09.16-1328054.tar.gz 3793719 SHA256 470a6ea3ce14c2c5ea6b7bc59745eccbacc8d88a3f343e712312786435975d13 SHA512 7ae62d5411b4bdefd0e8db5f0a81bb357bfd4a624af06bf9a5a74f49ede0b7051b41dfe548c758fd7e73cded34af983c8aa0c412e65343092e05ae9b997895cb WHIRLPOOL 688fb4e494fb7aab7d0eb09189afff95ec8727bcc1893a4ec632bb8198661a1a55d58a813d2d56a3ac330fd7a55afc1fa7dc11f1d60c06c91ecf6a0bf866b249
|
||||
DIST open-vm-tools-9.10.0-2476743.tar.gz 4093306 SHA256 e146ad53d744d7793ee72c5271fc49a916613534c14827c227fdaef4b3579c96 SHA512 8c8e4a559c0374e020c8261d4c8f6855efbe3f509745ee02ec03ab9ebce7e1327ec1e5e18f674cb464630ace9dc33b4262ffd119fc237c286ee44327e4590385 WHIRLPOOL 162aba889e249ac229e003a57753ff78b86f612a0753ae83f9de52eb1d0ae0a11aee0279c192eb073dabc76d718747c614d4122395abfc8c8d0f9d80a903189a
|
||||
DIST open-vm-tools-9.4.0-1280544.tar.gz 3659504 SHA256 5d30652eb0f6dc5e930781029c184837e700be5543b6a7116db4c62a6f3ca399 SHA512 07b36f49713140606f74864b59c2e01c9ed83a960dd3f5d172b84fc75e760f7370065774a0e26897924af60454c86b682ca0fd32276b0e9fb17b268247f8cbdf WHIRLPOOL 88533768cf718de3b5f64e688597209fa2029d02cdf350d7fd05ec8dd8ca0f0c125a8d1445c1ec9287bc486076d5c335f3cc615c3f0b9aa7bac84e921da4c9e6
|
||||
|
@ -0,0 +1,74 @@
|
||||
From 08836a47c56b47b658025e41a20027c5d915f836 Mon Sep 17 00:00:00 2001
|
||||
From: "Scott M. Kroll" <skroll@gmail.com>
|
||||
Date: Fri, 15 Aug 2014 10:40:38 -0400
|
||||
Subject: [PATCH 1/3] Fix vmxnet module on kernels >= 3.16
|
||||
|
||||
* Add compat check for ethtool_ops in net_device struct.
|
||||
* SET_ETHTOOL_OPS is no longer defined, but can be manually.
|
||||
---
|
||||
open-vm-tools/modules/linux/shared/compat_netdevice.h | 4 ++++
|
||||
open-vm-tools/modules/linux/vmxnet/vmxnet.c | 13 ++++++++-----
|
||||
2 files changed, 12 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/open-vm-tools/modules/linux/shared/compat_netdevice.h b/open-vm-tools/modules/linux/shared/compat_netdevice.h
|
||||
index 3aec25b..a65d59b 100644
|
||||
--- a/open-vm-tools/modules/linux/shared/compat_netdevice.h
|
||||
+++ b/open-vm-tools/modules/linux/shared/compat_netdevice.h
|
||||
@@ -337,4 +337,8 @@ typedef netdev_features_t compat_netdev_features_t;
|
||||
typedef u32 compat_netdev_features_t;
|
||||
#endif
|
||||
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(SET_ETHTOOL_OPS)
|
||||
+#define VMW_HAVE_ETHTOOL_OPS 1
|
||||
+#endif
|
||||
+
|
||||
#endif /* __COMPAT_NETDEVICE_H__ */
|
||||
diff --git a/open-vm-tools/modules/linux/vmxnet/vmxnet.c b/open-vm-tools/modules/linux/vmxnet/vmxnet.c
|
||||
index 33afb9b..40abde5 100644
|
||||
--- a/open-vm-tools/modules/linux/vmxnet/vmxnet.c
|
||||
+++ b/open-vm-tools/modules/linux/vmxnet/vmxnet.c
|
||||
@@ -279,8 +279,7 @@ vmxnet_change_mtu(struct net_device *dev, int new_mtu)
|
||||
|
||||
#endif
|
||||
|
||||
-
|
||||
-#ifdef SET_ETHTOOL_OPS
|
||||
+#ifdef VMW_HAVE_ETHTOOL_OPS
|
||||
/*
|
||||
*----------------------------------------------------------------------------
|
||||
*
|
||||
@@ -526,7 +525,7 @@ vmxnet_ethtool_ops = {
|
||||
};
|
||||
|
||||
|
||||
-#else /* !defined(SET_ETHTOOL_OPS) */
|
||||
+#else /* !defined(VMW_HAVE_ETHTOOL_OPS) */
|
||||
|
||||
|
||||
/*
|
||||
@@ -739,7 +738,7 @@ vmxnet_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
||||
}
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
-#endif /* SET_ETHTOOL_OPS */
|
||||
+#endif /* !defined(VMW_HAVE_ETHTOOL_OPS) */
|
||||
|
||||
|
||||
/*
|
||||
@@ -1142,8 +1141,12 @@ vmxnet_probe_device(struct pci_dev *pdev, // IN: vmxnet PCI device
|
||||
dev->watchdog_timeo = VMXNET_WATCHDOG_TIMEOUT;
|
||||
#endif
|
||||
|
||||
-#ifdef SET_ETHTOOL_OPS
|
||||
+#ifdef VMW_HAVE_ETHTOOL_OPS
|
||||
+# ifdef SET_ETHTOOL_OPS
|
||||
SET_ETHTOOL_OPS(dev, &vmxnet_ethtool_ops);
|
||||
+# else
|
||||
+ dev->ethtool_ops = &vmxnet_ethtool_ops;
|
||||
+# endif
|
||||
#else
|
||||
dev->do_ioctl = vmxnet_ioctl;
|
||||
#endif
|
||||
--
|
||||
2.3.4
|
||||
|
@ -0,0 +1,34 @@
|
||||
From 8df98f3c779fa43d073a42e82bd18cf28c2bd4af Mon Sep 17 00:00:00 2001
|
||||
From: Wendell Smith <wendellwsmith@gmail.com>
|
||||
Date: Sat, 7 Feb 2015 15:42:13 -0500
|
||||
Subject: [PATCH 2/3] Fix d_alias to d_u.d_alias for kernel 3.18
|
||||
|
||||
---
|
||||
open-vm-tools/modules/linux/vmhgfs/inode.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/open-vm-tools/modules/linux/vmhgfs/inode.c b/open-vm-tools/modules/linux/vmhgfs/inode.c
|
||||
index 77b1669..2d289e3 100644
|
||||
--- a/open-vm-tools/modules/linux/vmhgfs/inode.c
|
||||
+++ b/open-vm-tools/modules/linux/vmhgfs/inode.c
|
||||
@@ -1917,7 +1917,7 @@ HgfsPermission(struct inode *inode,
|
||||
p,
|
||||
#endif
|
||||
&inode->i_dentry,
|
||||
- d_alias) {
|
||||
+ d_u.d_alias) {
|
||||
int dcount = hgfs_d_count(dentry);
|
||||
if (dcount) {
|
||||
LOG(4, ("Found %s %d \n", dentry->d_name.name, dcount));
|
||||
@@ -1970,7 +1970,7 @@ HgfsPermission(struct inode *inode,
|
||||
/* Find a dentry with valid d_count. Refer bug 587879. */
|
||||
list_for_each(pos, &inode->i_dentry) {
|
||||
int dcount;
|
||||
- struct dentry *dentry = list_entry(pos, struct dentry, d_alias);
|
||||
+ struct dentry *dentry = list_entry(pos, struct dentry, d_u.d_alias);
|
||||
dcount = hgfs_d_count(dentry);
|
||||
if (dcount) {
|
||||
LOG(4, ("Found %s %d \n", (dentry)->d_name.name, dcount));
|
||||
--
|
||||
2.3.4
|
||||
|
@ -0,0 +1,429 @@
|
||||
From 61751db8cd4679fc76034a5d1f99df6c64c48de6 Mon Sep 17 00:00:00 2001
|
||||
From: lotan <lotan@gmx.de>
|
||||
Date: Mon, 30 Mar 2015 08:58:56 +0200
|
||||
Subject: [PATCH 3/3] Make vmhgfs work on kernel 3.19.
|
||||
|
||||
---
|
||||
open-vm-tools/modules/linux/vmhgfs/dir.c | 35 ++++++------
|
||||
open-vm-tools/modules/linux/vmhgfs/file.c | 65 +++++++++++-----------
|
||||
open-vm-tools/modules/linux/vmhgfs/fsutil.c | 3 +-
|
||||
.../modules/linux/vmhgfs/shared/compat_dentry.h | 10 ++++
|
||||
4 files changed, 63 insertions(+), 50 deletions(-)
|
||||
create mode 100644 open-vm-tools/modules/linux/vmhgfs/shared/compat_dentry.h
|
||||
|
||||
diff --git a/open-vm-tools/modules/linux/vmhgfs/dir.c b/open-vm-tools/modules/linux/vmhgfs/dir.c
|
||||
index 809611a..c6a87bd 100644
|
||||
--- a/open-vm-tools/modules/linux/vmhgfs/dir.c
|
||||
+++ b/open-vm-tools/modules/linux/vmhgfs/dir.c
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "compat_kernel.h"
|
||||
#include "compat_slab.h"
|
||||
#include "compat_mutex.h"
|
||||
+#include "compat_dentry.h"
|
||||
|
||||
#include "cpName.h"
|
||||
#include "hgfsEscape.h"
|
||||
@@ -414,7 +415,7 @@ HgfsPackDirOpenRequest(struct file *file, // IN: File pointer for this open
|
||||
|
||||
/* Build full name to send to server. */
|
||||
if (HgfsBuildPath(name, req->bufferSize - (requestSize - 1),
|
||||
- file->f_dentry) < 0) {
|
||||
+ DENTRY(file)) < 0) {
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: HgfsPackDirOpenRequest: build path failed\n"));
|
||||
return -EINVAL;
|
||||
}
|
||||
@@ -560,8 +561,8 @@ HgfsPrivateDirRelease(struct file *file, // IN: File for the dir getting relea
|
||||
int result = 0;
|
||||
|
||||
ASSERT(file);
|
||||
- ASSERT(file->f_dentry);
|
||||
- ASSERT(file->f_dentry->d_sb);
|
||||
+ ASSERT(DENTRY(file));
|
||||
+ ASSERT(DENTRY(file)->d_sb);
|
||||
|
||||
LOG(6, (KERN_DEBUG "VMware hgfs: HgfsPrivateDirRelease: close fh %u\n", handle));
|
||||
|
||||
@@ -704,7 +705,7 @@ HgfsDirLlseek(struct file *file,
|
||||
loff_t offset,
|
||||
int origin)
|
||||
{
|
||||
- struct dentry *dentry = file->f_dentry;
|
||||
+ struct dentry *dentry = DENTRY(file);
|
||||
struct inode *inode = dentry->d_inode;
|
||||
compat_mutex_t *mtx;
|
||||
|
||||
@@ -853,7 +854,7 @@ HgfsReaddirRefreshEntries(struct file *file) // IN: File pointer for this ope
|
||||
}
|
||||
|
||||
LOG(6, (KERN_DEBUG "VMware hgfs: %s: error: stale handle (%s) return %d)\n",
|
||||
- __func__, file->f_dentry->d_name.name, result));
|
||||
+ __func__, DENTRY(file)->d_name.name, result));
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -988,9 +989,9 @@ HgfsReaddirNextEntry(struct file *file, // IN: file
|
||||
char *fileName = NULL;
|
||||
int result;
|
||||
|
||||
- ASSERT(file->f_dentry->d_inode->i_sb);
|
||||
+ ASSERT(DENTRY(file)->d_inode->i_sb);
|
||||
|
||||
- si = HGFS_SB_TO_COMMON(file->f_dentry->d_inode->i_sb);
|
||||
+ si = HGFS_SB_TO_COMMON(DENTRY(file)->d_inode->i_sb);
|
||||
*entryIgnore = FALSE;
|
||||
|
||||
/*
|
||||
@@ -1079,18 +1080,18 @@ HgfsReaddirNextEntry(struct file *file, // IN: file
|
||||
*/
|
||||
if (!strncmp(entryName, ".", sizeof ".")) {
|
||||
if (!dotAndDotDotIgnore) {
|
||||
- *entryIno = file->f_dentry->d_inode->i_ino;
|
||||
+ *entryIno = DENTRY(file)->d_inode->i_ino;
|
||||
} else {
|
||||
*entryIgnore = TRUE;
|
||||
}
|
||||
} else if (!strncmp(entryName, "..", sizeof "..")) {
|
||||
if (!dotAndDotDotIgnore) {
|
||||
- *entryIno = compat_parent_ino(file->f_dentry);
|
||||
+ *entryIno = compat_parent_ino(DENTRY(file));
|
||||
} else {
|
||||
*entryIgnore = TRUE;
|
||||
}
|
||||
} else {
|
||||
- *entryIno = HgfsGetFileInode(&entryAttrs, file->f_dentry->d_inode->i_sb);
|
||||
+ *entryIno = HgfsGetFileInode(&entryAttrs, DENTRY(file)->d_inode->i_sb);
|
||||
}
|
||||
|
||||
if (*entryIgnore) {
|
||||
@@ -1170,16 +1171,16 @@ HgfsDoReaddir(struct file *file, // IN:
|
||||
ASSERT(filldirCtx);
|
||||
|
||||
if (!file ||
|
||||
- !(file->f_dentry) ||
|
||||
- !(file->f_dentry->d_inode)) {
|
||||
+ !(DENTRY(file)) ||
|
||||
+ !(DENTRY(file)->d_inode)) {
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: HgfsReaddir: null input\n"));
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: %s(%s, inum %lu, pos %Lu)\n",
|
||||
__func__,
|
||||
- file->f_dentry->d_name.name,
|
||||
- file->f_dentry->d_inode->i_ino,
|
||||
+ DENTRY(file)->d_name.name,
|
||||
+ DENTRY(file)->d_inode->i_ino,
|
||||
*currentPos));
|
||||
|
||||
/*
|
||||
@@ -1294,7 +1295,7 @@ HgfsReaddir(struct file *file, // IN:
|
||||
/* If either dot and dotdot are filled in for us we can exit. */
|
||||
if (!dir_emit_dots(file, ctx)) {
|
||||
LOG(6, (KERN_DEBUG "VMware hgfs: %s: dir_emit_dots(%s, @ %Lu)\n",
|
||||
- __func__, file->f_dentry->d_name.name, ctx->pos));
|
||||
+ __func__, DENTRY(file)->d_name.name, ctx->pos));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1464,8 +1465,8 @@ HgfsDirRelease(struct inode *inode, // IN: Inode that the file* points to
|
||||
|
||||
ASSERT(inode);
|
||||
ASSERT(file);
|
||||
- ASSERT(file->f_dentry);
|
||||
- ASSERT(file->f_dentry->d_sb);
|
||||
+ ASSERT(DENTRY(file));
|
||||
+ ASSERT(DENTRY(file)->d_sb);
|
||||
|
||||
handle = FILE_GET_FI_P(file)->handle;
|
||||
|
||||
diff --git a/open-vm-tools/modules/linux/vmhgfs/file.c b/open-vm-tools/modules/linux/vmhgfs/file.c
|
||||
index bbde3f4..39502d0 100644
|
||||
--- a/open-vm-tools/modules/linux/vmhgfs/file.c
|
||||
+++ b/open-vm-tools/modules/linux/vmhgfs/file.c
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "compat_fs.h"
|
||||
#include "compat_kernel.h"
|
||||
#include "compat_slab.h"
|
||||
+#include "compat_dentry.h"
|
||||
|
||||
/* Must be after compat_fs.h */
|
||||
#if defined VMW_USE_AIO
|
||||
@@ -384,7 +385,7 @@ HgfsPackOpenRequest(struct inode *inode, // IN: Inode of the file to open
|
||||
/* Build full name to send to server. */
|
||||
if (HgfsBuildPath(name,
|
||||
req->bufferSize - (requestSize - 1),
|
||||
- file->f_dentry) < 0) {
|
||||
+ DENTRY(file)) < 0) {
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: HgfsPackOpenRequest: build path "
|
||||
"failed\n"));
|
||||
return -EINVAL;
|
||||
@@ -523,8 +524,8 @@ HgfsOpen(struct inode *inode, // IN: Inode of the file to open
|
||||
ASSERT(inode);
|
||||
ASSERT(inode->i_sb);
|
||||
ASSERT(file);
|
||||
- ASSERT(file->f_dentry);
|
||||
- ASSERT(file->f_dentry->d_inode);
|
||||
+ ASSERT(DENTRY(file));
|
||||
+ ASSERT(DENTRY(file)->d_inode);
|
||||
|
||||
iinfo = INODE_GET_II_P(inode);
|
||||
|
||||
@@ -605,7 +606,7 @@ HgfsOpen(struct inode *inode, // IN: Inode of the file to open
|
||||
* This is not the root of our file system so there should always
|
||||
* be a parent.
|
||||
*/
|
||||
- ASSERT(file->f_dentry->d_parent);
|
||||
+ ASSERT(DENTRY(file)->d_parent);
|
||||
|
||||
/*
|
||||
* Here we obtain a reference on the parent to make sure it doesn't
|
||||
@@ -620,10 +621,10 @@ HgfsOpen(struct inode *inode, // IN: Inode of the file to open
|
||||
* We could do this if we were willing to give up support for
|
||||
* O_EXCL on 2.4 kernels.
|
||||
*/
|
||||
- dparent = dget(file->f_dentry->d_parent);
|
||||
+ dparent = dget(DENTRY(file)->d_parent);
|
||||
iparent = dparent->d_inode;
|
||||
|
||||
- HgfsSetUidGid(iparent, file->f_dentry,
|
||||
+ HgfsSetUidGid(iparent, DENTRY(file),
|
||||
current_fsuid(), current_fsgid());
|
||||
|
||||
dput(dparent);
|
||||
@@ -683,7 +684,7 @@ out:
|
||||
* forcing a revalidate on one will not force it on any others.
|
||||
*/
|
||||
if (result != 0 && iinfo->createdAndUnopened == TRUE) {
|
||||
- HgfsDentryAgeForce(file->f_dentry);
|
||||
+ HgfsDentryAgeForce(DENTRY(file));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -772,13 +773,13 @@ HgfsFileRead(struct kiocb *iocb, // IN: I/O control block
|
||||
|
||||
ASSERT(iocb);
|
||||
ASSERT(iocb->ki_filp);
|
||||
- ASSERT(iocb->ki_filp->f_dentry);
|
||||
+ ASSERT(DENTRY(iocb->ki_filp));
|
||||
ASSERT(iov);
|
||||
|
||||
pos = HGFS_IOCB_TO_POS(iocb, offset);
|
||||
iovSegs = HGFS_IOV_TO_SEGS(iov, numSegs);
|
||||
|
||||
- readDentry = iocb->ki_filp->f_dentry;
|
||||
+ readDentry = DENTRY(iocb->ki_filp);
|
||||
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: %s(%s/%s)\n",
|
||||
__func__, readDentry->d_parent->d_name.name,
|
||||
@@ -882,13 +883,13 @@ HgfsFileWrite(struct kiocb *iocb, // IN: I/O control block
|
||||
|
||||
ASSERT(iocb);
|
||||
ASSERT(iocb->ki_filp);
|
||||
- ASSERT(iocb->ki_filp->f_dentry);
|
||||
+ ASSERT(DENTRY(iocb->ki_filp));
|
||||
ASSERT(iov);
|
||||
|
||||
pos = HGFS_IOCB_TO_POS(iocb, offset);
|
||||
iovSegs = HGFS_IOV_TO_SEGS(iov, numSegs);
|
||||
|
||||
- writeDentry = iocb->ki_filp->f_dentry;
|
||||
+ writeDentry = DENTRY(iocb->ki_filp);
|
||||
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: %s(%s/%s)\n",
|
||||
__func__, writeDentry->d_parent->d_name.name,
|
||||
@@ -951,7 +952,7 @@ HgfsRead(struct file *file, // IN: File to read from
|
||||
int result;
|
||||
|
||||
ASSERT(file);
|
||||
- ASSERT(file->f_dentry);
|
||||
+ ASSERT(DENTRY(file));
|
||||
ASSERT(buf);
|
||||
ASSERT(offset);
|
||||
|
||||
@@ -959,7 +960,7 @@ HgfsRead(struct file *file, // IN: File to read from
|
||||
__func__, file->f_dentry->d_parent->d_name.name,
|
||||
file->f_dentry->d_name.name, count, (long long) *offset));
|
||||
|
||||
- result = HgfsRevalidate(file->f_dentry);
|
||||
+ result = HgfsRevalidate(DENTRY(file));
|
||||
if (result) {
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: HgfsRead: invalid dentry\n"));
|
||||
goto out;
|
||||
@@ -1002,8 +1003,8 @@ HgfsWrite(struct file *file, // IN: File to write to
|
||||
int result;
|
||||
|
||||
ASSERT(file);
|
||||
- ASSERT(file->f_dentry);
|
||||
- ASSERT(file->f_dentry->d_inode);
|
||||
+ ASSERT(DENTRY(file));
|
||||
+ ASSERT(DENTRY(file)->d_inode);
|
||||
ASSERT(buf);
|
||||
ASSERT(offset);
|
||||
|
||||
@@ -1011,7 +1012,7 @@ HgfsWrite(struct file *file, // IN: File to write to
|
||||
__func__, file->f_dentry->d_parent->d_name.name,
|
||||
file->f_dentry->d_name.name, count, (long long) *offset));
|
||||
|
||||
- result = HgfsRevalidate(file->f_dentry);
|
||||
+ result = HgfsRevalidate(DENTRY(file));
|
||||
if (result) {
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: HgfsWrite: invalid dentry\n"));
|
||||
goto out;
|
||||
@@ -1051,7 +1052,7 @@ HgfsSeek(struct file *file, // IN: File to seek
|
||||
loff_t result = -1;
|
||||
|
||||
ASSERT(file);
|
||||
- ASSERT(file->f_dentry);
|
||||
+ ASSERT(DENTRY(file));
|
||||
|
||||
LOG(6, (KERN_DEBUG "VMware hgfs: %s(%s/%s, %u, %lld, %d)\n",
|
||||
__func__,
|
||||
@@ -1059,7 +1060,7 @@ HgfsSeek(struct file *file, // IN: File to seek
|
||||
file->f_dentry->d_name.name,
|
||||
FILE_GET_FI_P(file)->handle, offset, origin));
|
||||
|
||||
- result = (loff_t) HgfsRevalidate(file->f_dentry);
|
||||
+ result = (loff_t) HgfsRevalidate(DENTRY(file));
|
||||
if (result) {
|
||||
LOG(6, (KERN_DEBUG "VMware hgfs: %s: invalid dentry\n", __func__));
|
||||
goto out;
|
||||
@@ -1143,8 +1144,8 @@ HgfsFlush(struct file *file // IN: file to flush
|
||||
int ret = 0;
|
||||
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: %s(%s/%s)\n",
|
||||
- __func__, file->f_dentry->d_parent->d_name.name,
|
||||
- file->f_dentry->d_name.name));
|
||||
+ __func__, DENTRY(file)->d_parent->d_name.name,
|
||||
+ DENTRY(file)->d_name.name));
|
||||
|
||||
if ((file->f_mode & FMODE_WRITE) == 0) {
|
||||
goto exit;
|
||||
@@ -1157,7 +1158,7 @@ HgfsFlush(struct file *file // IN: file to flush
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
|
||||
ret = vfs_fsync(file, 0);
|
||||
#else
|
||||
- ret = HgfsDoFsync(file->f_dentry->d_inode);
|
||||
+ ret = HgfsDoFsync(DENTRY(file)->d_inode);
|
||||
#endif
|
||||
|
||||
exit:
|
||||
@@ -1215,13 +1216,13 @@ HgfsFsync(struct file *file, // IN: File we operate on
|
||||
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: %s(%s/%s, %lld, %lld, %d)\n",
|
||||
__func__,
|
||||
- file->f_dentry->d_parent->d_name.name,
|
||||
- file->f_dentry->d_name.name,
|
||||
+ DENTRY(file)->d_parent->d_name.name,
|
||||
+ DENTRY(file)->d_name.name,
|
||||
startRange, endRange,
|
||||
datasync));
|
||||
|
||||
/* Flush writes to the server and return any errors */
|
||||
- inode = file->f_dentry->d_inode;
|
||||
+ inode = DENTRY(file)->d_inode;
|
||||
#if defined VMW_FSYNC_31
|
||||
ret = filemap_write_and_wait_range(inode->i_mapping, startRange, endRange);
|
||||
#else
|
||||
@@ -1261,14 +1262,14 @@ HgfsMmap(struct file *file, // IN: File we operate on
|
||||
|
||||
ASSERT(file);
|
||||
ASSERT(vma);
|
||||
- ASSERT(file->f_dentry);
|
||||
+ ASSERT(DENTRY(file));
|
||||
|
||||
LOG(6, (KERN_DEBUG "VMware hgfs: %s(%s/%s)\n",
|
||||
__func__,
|
||||
file->f_dentry->d_parent->d_name.name,
|
||||
file->f_dentry->d_name.name));
|
||||
|
||||
- result = HgfsRevalidate(file->f_dentry);
|
||||
+ result = HgfsRevalidate(DENTRY(file));
|
||||
if (result) {
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: %s: invalid dentry\n", __func__));
|
||||
goto out;
|
||||
@@ -1309,8 +1310,8 @@ HgfsRelease(struct inode *inode, // IN: Inode that this file points to
|
||||
|
||||
ASSERT(inode);
|
||||
ASSERT(file);
|
||||
- ASSERT(file->f_dentry);
|
||||
- ASSERT(file->f_dentry->d_sb);
|
||||
+ ASSERT(DENTRY(file));
|
||||
+ ASSERT(DENTRY(file)->d_sb);
|
||||
|
||||
handle = FILE_GET_FI_P(file)->handle;
|
||||
LOG(6, (KERN_DEBUG "VMware hgfs: %s(%s/%s, %u)\n",
|
||||
@@ -1443,14 +1444,14 @@ HgfsSendfile(struct file *file, // IN: File to read from
|
||||
ssize_t result;
|
||||
|
||||
ASSERT(file);
|
||||
- ASSERT(file->f_dentry);
|
||||
+ ASSERT(DENTRY(file));
|
||||
ASSERT(target);
|
||||
ASSERT(offset);
|
||||
ASSERT(actor);
|
||||
|
||||
LOG(6, (KERN_DEBUG "VMware hgfs: HgfsSendfile: was called\n"));
|
||||
|
||||
- result = HgfsRevalidate(file->f_dentry);
|
||||
+ result = HgfsRevalidate(DENTRY(file));
|
||||
if (result) {
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: HgfsSendfile: invalid dentry\n"));
|
||||
goto out;
|
||||
@@ -1497,7 +1498,7 @@ HgfsSpliceRead(struct file *file, // IN: File to read from
|
||||
ssize_t result;
|
||||
|
||||
ASSERT(file);
|
||||
- ASSERT(file->f_dentry);
|
||||
+ ASSERT(DENTRY(file));
|
||||
|
||||
LOG(6, (KERN_DEBUG "VMware hgfs: %s(%s/%s, %lu@%Lu)\n",
|
||||
__func__,
|
||||
@@ -1505,7 +1506,7 @@ HgfsSpliceRead(struct file *file, // IN: File to read from
|
||||
file->f_dentry->d_name.name,
|
||||
(unsigned long) len, (unsigned long long) *offset));
|
||||
|
||||
- result = HgfsRevalidate(file->f_dentry);
|
||||
+ result = HgfsRevalidate(DENTRY(file));
|
||||
if (result) {
|
||||
LOG(4, (KERN_DEBUG "VMware hgfs: %s: invalid dentry\n", __func__));
|
||||
goto out;
|
||||
diff --git a/open-vm-tools/modules/linux/vmhgfs/fsutil.c b/open-vm-tools/modules/linux/vmhgfs/fsutil.c
|
||||
index 5023324..a2e794c 100644
|
||||
--- a/open-vm-tools/modules/linux/vmhgfs/fsutil.c
|
||||
+++ b/open-vm-tools/modules/linux/vmhgfs/fsutil.c
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "compat_sched.h"
|
||||
#include "compat_slab.h"
|
||||
#include "compat_spinlock.h"
|
||||
+#include "compat_dentry.h"
|
||||
|
||||
#include "vm_assert.h"
|
||||
#include "cpName.h"
|
||||
@@ -1924,7 +1925,7 @@ HgfsCreateFileInfo(struct file *file, // IN: File pointer to attach to
|
||||
|
||||
ASSERT(file);
|
||||
|
||||
- inodeInfo = INODE_GET_II_P(file->f_dentry->d_inode);
|
||||
+ inodeInfo = INODE_GET_II_P(DENTRY(file)->d_inode);
|
||||
ASSERT(inodeInfo);
|
||||
|
||||
/* Get the mode of the opened file. */
|
||||
diff --git a/open-vm-tools/modules/linux/vmhgfs/shared/compat_dentry.h b/open-vm-tools/modules/linux/vmhgfs/shared/compat_dentry.h
|
||||
new file mode 100644
|
||||
index 0000000..dd53760
|
||||
--- /dev/null
|
||||
+++ b/open-vm-tools/modules/linux/shared/compat_dentry.h
|
||||
@@ -0,0 +1,10 @@
|
||||
+#ifndef __COMPAT_DENTRY_H__
|
||||
+# define __COMPAT_DENTRY_H__
|
||||
+
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
|
||||
+# define DENTRY(file) (file->f_path.dentry)
|
||||
+#else
|
||||
+# define DENTRY(file) (file->f_dentry)
|
||||
+#endif
|
||||
+
|
||||
+#endif /* __COMPAT_DENTRY_H__ */
|
||||
--
|
||||
2.3.4
|
||||
|
@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-9.10.0_p2476743.ebuild,v 1.1 2015/05/10 14:31:14 floppym Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils linux-mod versionator udev
|
||||
|
||||
MY_PN=${PN%-kmod}
|
||||
MY_P=${MY_PN}-${PV/_p/-}
|
||||
|
||||
DESCRIPTION="Opensourced tools for VMware guests"
|
||||
HOMEPAGE="http://open-vm-tools.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+vmhgfs +vmxnet"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
pkg_setup() {
|
||||
CONFIG_CHECK="~DRM_VMWGFX ~VMWARE_BALLOON ~VMWARE_PVSCSI ~VMXNET3"
|
||||
|
||||
# See logic in configure.ac.
|
||||
local MODULES=
|
||||
|
||||
use vmhgfs && MODULES+=" vmhgfs"
|
||||
use vmxnet && MODULES+=" vmxnet"
|
||||
|
||||
if kernel_is -lt 3 9; then
|
||||
MODULES+=" vmci vsock"
|
||||
else
|
||||
CONFIG_CHECK+=" VMWARE_VMCI ~VMWARE_VMCI_VSOCKETS"
|
||||
fi
|
||||
|
||||
if kernel_is -lt 3; then
|
||||
MODULES+=" vmblock vmsync"
|
||||
else
|
||||
CONFIG_CHECK+=" ~FUSE_FS"
|
||||
fi
|
||||
|
||||
local mod
|
||||
for mod in ${MODULES}; do
|
||||
MODULE_NAMES+=" ${mod}(ovt:modules/linux/${mod})"
|
||||
done
|
||||
|
||||
linux-mod_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/9.10.0-0001-Fix-vmxnet-module-on-kernels-3.16.patch
|
||||
epatch "${FILESDIR}"/9.10.0-0002-Fix-d_alias-to-d_u.d_alias-for-kernel-3.18.patch
|
||||
epatch "${FILESDIR}"/9.10.0-0003-Fix-f_dentry-msghdr-kernel-3.19.patch
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
BUILD_TARGETS="auto-build"
|
||||
export OVT_SOURCE_DIR="${S}"
|
||||
export LINUXINCLUDE="${KV_OUT_DIR}/include"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
linux-mod_src_install
|
||||
udev_dorules "${FILESDIR}/60-vmware.rules"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST tmux-1.9a.tar.gz 447938 SHA256 c5e3b22b901cf109b20dab54a4a651f0471abd1f79f6039d79b250d21c2733f5 SHA512 842984638dc1f7364c03393187379598f35679d535d911d5df4016944d6032e61a1bf840d7d339c6e99b30c55581d470acca85ab6ee5799b8927d18c0e9a91df WHIRLPOOL eca5cd48a263e25d24b7e2865f76bb30267e20590e9b2a905637498d7992389b9c7e0253c992780b1a6458869204cffcf93f4dba09efdfeb2f803a0f95f6553e
|
||||
DIST tmux-2.0.tar.gz 455754 SHA256 795f4b4446b0ea968b9201c25e8c1ef8a6ade710ebca4657dd879c35916ad362 SHA512 8a4be40ceb9b371a91107173de08348c4379b103454fa397ee326506f78a5fda1034dc7148c090c687221eddb8a2fc0c3aeb85da57841df6bcd74fb5f4f5f53d WHIRLPOOL d5c9570aafed049b1404e9243e0339202bfa33e8ca2874f304cb9a7c764b7878db19f87aa5f6b9a9476038bc3702e5d11784c8ca83eb731e61763ecb08a39fec
|
||||
|
@ -1,35 +0,0 @@
|
||||
configure.ac | 21 ++++++++++++++++-----
|
||||
1 file changed, 16 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index f78cfc3..ac40bf9 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -127,11 +127,22 @@ if test "x$found_libevent" = xno; then
|
||||
fi
|
||||
|
||||
# Look for curses.
|
||||
-AC_SEARCH_LIBS(
|
||||
- setupterm,
|
||||
- [terminfo curses ncurses],
|
||||
- found_curses=yes,
|
||||
- found_curses=no
|
||||
+PKG_CHECK_MODULES(
|
||||
+ CURSES,
|
||||
+ ncurses,
|
||||
+ [
|
||||
+ CPPFLAGS="$CURSES_CFLAGS $CPPFLAGS"
|
||||
+ LIBS="$CURSES_LIBS $LIBS"
|
||||
+ found_curses=yes
|
||||
+ ],
|
||||
+ [
|
||||
+ AC_SEARCH_LIBS(
|
||||
+ setupterm,
|
||||
+ [terminfo curses ncurses],
|
||||
+ found_curses=yes,
|
||||
+ found_curses=no
|
||||
+ )
|
||||
+ ]
|
||||
)
|
||||
if test "x$found_curses" = xno; then
|
||||
AC_MSG_ERROR("curses not found")
|
@ -0,0 +1,18 @@
|
||||
Makefile.am | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 63e20b1..a2fec1e 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -25,9 +25,8 @@ endif
|
||||
# Set flags for gcc. gcc4 whines abouts silly stuff so it needs slightly
|
||||
# different flags.
|
||||
if IS_GCC
|
||||
-CFLAGS += -std=gnu99 -O2
|
||||
+CFLAGS += -std=gnu99
|
||||
if IS_DEBUG
|
||||
-CFLAGS += -g
|
||||
CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
|
||||
CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
|
||||
CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
|
@ -0,0 +1,86 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/tmux/tmux-2.0.ebuild,v 1.1 2015/05/10 07:09:00 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
AUTOTOOLS_AUTORECONF=true
|
||||
|
||||
inherit autotools-utils bash-completion-r1 flag-o-matic
|
||||
|
||||
DESCRIPTION="Terminal multiplexer"
|
||||
HOMEPAGE="http://tmux.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/tmux/${P}.tar.gz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="debug selinux vim-syntax"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-libs/libevent-2.0.10
|
||||
sys-libs/ncurses"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
selinux? ( sec-policy/selinux-screen )
|
||||
vim-syntax? ( || (
|
||||
app-editors/vim
|
||||
app-editors/gvim ) )"
|
||||
|
||||
DOCS=( CHANGES FAQ README TODO )
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-flags.patch )
|
||||
|
||||
pkg_setup() {
|
||||
if has_version "<app-misc/tmux-1.9a"; then
|
||||
echo
|
||||
ewarn "Some configuration options changed in this release."
|
||||
ewarn "Please read the CHANGES file in /usr/share/doc/${PF}/"
|
||||
ewarn
|
||||
ewarn "WARNING: After updating to ${P} you will _not_ be able to connect to any"
|
||||
ewarn "older, running tmux server instances. You'll have to use an existing client to"
|
||||
ewarn "end your old sessions or kill the old server instances. Otherwise you'll have"
|
||||
ewarn "to temporarily downgrade to access them."
|
||||
echo
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# bug 438558
|
||||
# 1.7 segfaults when entering copy mode if compiled with -Os
|
||||
replace-flags -Os -O2
|
||||
|
||||
# regenerate aclocal.m4 to support earlier automake versions
|
||||
rm aclocal.m4 || die
|
||||
|
||||
# remove generated files
|
||||
rm -r compat/.{dirstamp,deps} || die
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--sysconfdir="${EPREFIX}"/etc
|
||||
$(use_enable debug)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
newbashcomp examples/bash_completion_tmux.sh ${PN}
|
||||
|
||||
docinto examples
|
||||
dodoc examples/*.conf
|
||||
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins examples/tmux.vim
|
||||
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
doins "${FILESDIR}"/tmux.vim
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST diction-1.11.tar.gz 141062 SHA256 35c2f1bf8ddf0d5fa9f737ffc8e55230736e5d850ff40b57fdf5ef1d7aa024f6 SHA512 f8be4c388c2659e91ba2dcfd5e3680aee0771b9b9a8c91a8877f6f61d5c014572c96ebf8e9cacbfa2afe2502e10957de9dd065245278cabeab13e28281404fb9 WHIRLPOOL 2175dff083045141695e3a705f99ad3a83c5faa2ba133feeafa474e026794b91a530cb3e5e6ff3a52b903b35b39305d2ee5685248a81cddcd701a0b7058fe6ed
|
||||
DIST diction-1.13.tar.gz 145971 SHA256 095e0eb4bb7e0bdfd7e5b0dcfb53c743d7b24c1464bdd599ef4461b4c249d121 SHA512 f410f9992adcc362bc60f3e39e85cc07df5763623729c6d599538707aff0831e8cde59d80bcd384975d75229d6ce1cae9bebdf6eb3d4a7203b22d2a1773df039 WHIRLPOOL 3a1ac454bde896a7c51511e7ceaf463997a2cb1557b0e7668f027d844a8501cb6a32315cce02b394139a9433b4f08a19180d6ebf08590f136d1414e281a0f1c0
|
||||
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/diction/diction-1.11.ebuild,v 1.13 2010/11/04 20:07:53 jer Exp $
|
||||
|
||||
DESCRIPTION="Diction and style checkers for english and german texts"
|
||||
HOMEPAGE="http://www.gnu.org/software/diction/diction.html"
|
||||
SRC_URI="http://www.moria.de/~michael/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 hppa ~mips ppc sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||
IUSE="unicode"
|
||||
|
||||
DEPEND="sys-devel/gettext
|
||||
virtual/libintl"
|
||||
RDEPEND=""
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
if use unicode; then
|
||||
for lang in de nl; do
|
||||
iconv -f ISO-8859-1 -t UTF-8 ${lang} > ${lang}.new || die "iconv failed."
|
||||
mv ${lang}.new ${lang}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed."
|
||||
dodoc NEWS README
|
||||
}
|
@ -1,5 +1,2 @@
|
||||
DIST barman-1.3.0.tar.gz 86708 SHA256 732433c7f82627525208b9171f4b306ff6b62a2ae31382ef9430429dc6444f26 SHA512 7a215fdae67b11a821f9c047d095778f8bff83cb7342687ecf3f21c85a7fbc1c4d78f4807a656a2733a01c1ce53160b5c63f615de8091a0ac0c1c9e16a8480c7 WHIRLPOOL f8e9f9a8adb23d0933e17bb596eb611d1d397de333953dda66f41332a1b8df01cf58c81540b7ceb26992164e6b14ef8f3c8334e9f66bd166b84023437aa35dd8
|
||||
DIST barman-1.3.1.tar.gz 94922 SHA256 701903fcff76a8c86015daa3773e162d63c6e667d8b02866490d49c4407cc4d3 SHA512 b6338fbd83143d6ac5c16cd48a648858d92488352c08e452714d05fef1f2a45fa9b0e41c4a6ce702c2fd39c1df413fffcfe69645722f383af025718e5c0b3957 WHIRLPOOL ec72d9909086107334cafe471b034ae5f49b52ba86ecdf0d73395927b26a986868f96b55904301595e4b06408647a2b811864c5e2426c75b71488f310d7635eb
|
||||
DIST barman-1.3.2.tar.gz 95203 SHA256 945b8853550b424e5122a19ea9107646af2bfc634d227476520f1accf954977b SHA512 1f648f29dfeb793ac7893f892d6b720695de47e9c5f796585dc47a4e112db4ad501d39433cdb3669b72aab446f73389aeddd1afb6d408cc894b03cb816443b5c WHIRLPOOL eaf200e273b77c48899dd794127ba771b79b290e086431ae676affc9abe9ddfd5666d805a1c6b11aa72be62db82c5e161330c9b9202106dc9ed2b418025be189
|
||||
DIST barman-1.3.3.tar.gz 111462 SHA256 3e3af2fec16ac2836965a4c135d9ef4959ed690fb40ef06571d03ff526448468 SHA512 496ca24ee17b674fffe16a97b21b07f8c47837275ec8fbd781a9a1f94e52c5c8f04c2514aa5cc2e71a7b887bddd76dda815e2b4159b13c7c6ebda47c23bcebef WHIRLPOOL a10971486ea7462e131dce607106c3c6debe8097a2e335ca857bc94fa8b1048c16badb7c0646564fdbb9f4c63d23b4173f10a25293fe75924cc462ef268ba7a8
|
||||
DIST barman-1.4.0.tar.gz 120590 SHA256 d18c331bd6d8931bd60dab272bc9d512eb494bfddb11964d7ca430f51b7e45e9 SHA512 415fd5597df94fb43b8c48ec1250c22e6bbe21217fe9937d6c0cf6ef8ab68bea21b9341c18a2e97f7af92b516f0201b82fa1279af6994d6fa60d441d3f9326e2 WHIRLPOOL 6e1e1c112ad5ef1afc76369d0f4428128ce85d2abe4a298b2eed73efc6bd2e248dd81baa3f6839360ea162dc676103f4e59f13fefe102ea609455e1330444e93
|
||||
DIST barman-1.4.1.tar.gz 122048 SHA256 38a649ab1cea811e2db9410d87c08423beb3135f88b1160913bcb9f16a10b1df SHA512 3f6d55ceee55efc95d526848292f68c80bbee4081fc26714b0da52990e3a05030ae2f89561a4c4c71c273bb1c07f009dc0bbbbebbc5cde87831b514e918ad531 WHIRLPOOL 8f42844f5d9514b0d8c14ff2ad03f1e8e3994e0e394e7e7a761b0a95ed6a8c9a4eea791a82a14b346cbcf3354aaa8f56547290eddc75ea0f57e775a55db70499
|
||||
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/barman/barman-1.3.0.ebuild,v 1.4 2015/04/08 18:45:26 mgorny Exp $
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7)
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Administration tool for disaster recovery of PostgreSQL servers"
|
||||
|
||||
HOMEPAGE="http://www.pgbarman.org"
|
||||
SRC_URI="http://downloads.sourceforge.net/project/pgbarman/${PV}/${P}.tar.gz"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/argh[${PYTHON_USEDEP}]
|
||||
>=dev-python/psycopg-2[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
net-misc/rsync
|
||||
dev-db/postgresql[server]"
|
||||
DEPEND=""
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/barman/barman-1.3.1.ebuild,v 1.4 2015/04/08 18:45:26 mgorny Exp $
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7)
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Administration tool for disaster recovery of PostgreSQL servers"
|
||||
|
||||
HOMEPAGE="http://www.pgbarman.org"
|
||||
SRC_URI="http://downloads.sourceforge.net/project/pgbarman/${PV}/${P}.tar.gz"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/argh[${PYTHON_USEDEP}]
|
||||
>=dev-python/psycopg-2[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
net-misc/rsync
|
||||
dev-db/postgresql[server]"
|
||||
DEPEND=""
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/barman/barman-1.3.2.ebuild,v 1.4 2015/04/08 18:45:26 mgorny Exp $
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7)
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Administration tool for disaster recovery of PostgreSQL servers"
|
||||
|
||||
HOMEPAGE="http://www.pgbarman.org"
|
||||
SRC_URI="http://downloads.sourceforge.net/project/pgbarman/${PV}/${P}.tar.gz"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/argh[${PYTHON_USEDEP}]
|
||||
>=dev-python/psycopg-2[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
net-misc/rsync
|
||||
dev-db/postgresql[server]"
|
||||
DEPEND=""
|
@ -1,5 +1,5 @@
|
||||
DIST mariadb-10.0.16.tar.gz 55656968 SHA256 44134a5f3e174e3e8443c1d07916af57f3ffadd4c8846338d41850fedfefcde4 SHA512 8da873ff604d8cb247057a626b26e4086690bb97ef1243bf3dde81b1de4f39c80aded5e045920f8176554dc162c5adb7501fe9403c3ed44992be13fe4c63a2b3 WHIRLPOOL 916af6fbd50dba19d9fe74fdf206d6417d676852e59332a0c0e2da44d7cf7be58770adaa9e707e4177729a10d6145c57235df4af0bb8fc4dc72fb442f853e2cf
|
||||
DIST mariadb-10.0.17.tar.gz 55989700 SHA256 9cd394e99942c3700b13f2bf126895fe587e668bfcaffcfd81f0cd878fc19311 SHA512 6bcba66373abeecbd50098e9047cce91a388f336bc178c8767ddff0bc7885480677d347a929507b49ba2277746440515b2b3a90465497f475c95e3cd8b15b4f8 WHIRLPOOL feaabbe75c27f054f5e184737d95047fd508133fe655e2680261ac1599b23c71e6f58b3b63a6a3df0c675a345c201db266be31e43a096af916e71cb5e82ebafc
|
||||
DIST mariadb-10.0.18.tar.gz 56238153 SHA256 686fee90aaa04a112256d1581336fee734f2d1068784be57a27683ca421a9af5 SHA512 64a093f2d0d9809d77b77cdd067132a8f54e53c5f069bc06340c0b2bcc5938c9c95fcf8e01c3d5140e31455b9c6e2dcbc06e11cc2ae43abd648f811f1ade86eb WHIRLPOOL b1677e5e65bcf8c22b83664b4491e40b31c13c788fa207734c4b3f2808737fa78ccf0d7a70edf1a2f81038dfaed96ab1d2a86912534e457f616e0dd01788b017
|
||||
DIST mariadb-10.0.19.tar.gz 56224123 SHA256 2fbf5e5d7d8094691601ece8ae60b941478d73c98a58a960aeebfa021091a132 SHA512 bfb2a3e9225b3dd7481c0240143346f38be80c426887e05ec2b8eeab251991e2a5f74788f421322342a0fa8f85294cf4c7f5d4fd10d7bc6b9da720f6168003f3 WHIRLPOOL d08c53228c40df18793316dd0eddb160ce5b67a853f16c4ddcdcedb049833b35b9ae9d0763e1fcc1e447e3528ae9a7ab2e6587dd2e2c0a225224f28a951dc3dd
|
||||
DIST mariadb-5.5.43.tar.gz 45651398 SHA256 a0709997140549154edb87c9dfab564cd4755b238251acbf42369118f9bb4d01 SHA512 fa9b463843ebf70e3a462ee5fdfa34aedd35194f3593f7ec1fc5f17663e798610ade46925b31f9f96e06503508ae840bfed54ae7b6661affa4d5b630d475f1db WHIRLPOOL 4d9b219263e75dd6530a24fe2d34df370cde0cfc7b13b5a820567d84cc4da22864e1fbb0d3413a23f2b9ce12c7fccd32c09aad391e690b510b2c7a788f7fa88e
|
||||
DIST mysql-extras-20141215-0144Z.tar.bz2 1494767 SHA256 4757043858110654d52b0e6dccab064987ab5db8ae4ae99863cf86df0b90f947 SHA512 7a9b733d09f44b1faff19a496a3e820e444b339838665e6f37c4fddc8f2ad67e805082d598c4edc06fda9364f9906e4cf95520552f72d6b6df34413f38e7a2ed WHIRLPOOL 99ea6890a5faf097b941707538b68f62390e1a49ee662a87c27435a317a9a3f37f00802e72f86b52993b3d1674b57645db0f7e73379ab88fbc1d0ef791cf4326
|
||||
DIST mysql-extras-20150509-1847Z.tar.bz2 1494301 SHA256 de9c9fbb67998604cb3c0409842e4601646c8ad17f2aa301f55ffd4aed7a483d SHA512 f87d96ab8c35236d4453182c49f87f6e703af9dc217916546e4dd7368caa18a2340c9063decd96c22251d1097d7e2cac58bef30e6ff75c23aedf8926dbc3d3b4 WHIRLPOOL f60297c8ee1dfd9867ed6b29a8b04a002f23bc36b1e8d9b5db30e1e454a49fe06ffc37b10d934b11235364eecdc62beb50ce24690ab3d07a50056357906fa0fa
|
||||
|
@ -1,115 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/mariadb-10.0.17.ebuild,v 1.2 2015/03/25 18:22:33 grknight Exp $
|
||||
|
||||
EAPI="5"
|
||||
MY_EXTRAS_VER="20141215-0144Z"
|
||||
|
||||
inherit toolchain-funcs mysql-multilib
|
||||
# only to make repoman happy. it is really set in the eclass
|
||||
IUSE="$IUSE"
|
||||
|
||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
|
||||
# When MY_EXTRAS is bumped, the index should be revised to exclude these.
|
||||
EPATCH_EXCLUDE=''
|
||||
|
||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
|
||||
RDEPEND="${RDEPEND}"
|
||||
|
||||
# Official test instructions:
|
||||
# USE='-cluster embedded extraengine perl ssl static-libs community' \
|
||||
# FEATURES='test userpriv -usersandbox' \
|
||||
# ebuild mariadb-X.X.XX.ebuild \
|
||||
# digest clean package
|
||||
multilib_src_test() {
|
||||
|
||||
if ! multilib_is_native_abi ; then
|
||||
einfo "Server tests not available on non-native abi".
|
||||
return 0;
|
||||
fi
|
||||
|
||||
local TESTDIR="${BUILD_DIR}/mysql-test"
|
||||
local retstatus_unit
|
||||
local retstatus_tests
|
||||
|
||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
||||
# localhost. Also causes weird failures.
|
||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
||||
|
||||
if ! use "minimal" ; then
|
||||
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
||||
fi
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
addpredict /this-dir-does-not-exist/t9.MYI
|
||||
|
||||
# Run CTest (test-units)
|
||||
cmake-utils_src_test
|
||||
retstatus_unit=$?
|
||||
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
|
||||
|
||||
# Ensure that parallel runs don't die
|
||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
||||
# Enable parallel testing, auto will try to detect number of cores
|
||||
# You may set this by hand.
|
||||
# The default maximum is 8 unless MTR_MAX_PARALLEL is increased
|
||||
export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
|
||||
|
||||
# create directories because mysqladmin might right out of order
|
||||
mkdir -p "${T}"/var-tests{,/log}
|
||||
|
||||
# These are failing in MariaDB 10.0 for now and are believed to be
|
||||
# false positives:
|
||||
#
|
||||
# main.information_schema, binlog.binlog_statement_insert_delayed,
|
||||
# main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql,
|
||||
# funcs_1.is_columns_mysql
|
||||
# fails due to USE=-latin1 / utf8 default
|
||||
#
|
||||
# main.mysql_client_test, main.mysql_client_test_nonblock
|
||||
# main.mysql_client_test_comp:
|
||||
# segfaults at random under Portage only, suspect resource limits.
|
||||
#
|
||||
|
||||
for t in main.mysql_client_test main.mysql_client_test_nonblock \
|
||||
main.mysql_client_test_comp \
|
||||
binlog.binlog_statement_insert_delayed main.information_schema \
|
||||
main.mysqld--help \
|
||||
funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do
|
||||
mysql-multilib_disable_test "$t" "False positives in Gentoo"
|
||||
done
|
||||
|
||||
# Run mysql tests
|
||||
pushd "${TESTDIR}"
|
||||
|
||||
# run mysql-test tests
|
||||
perl mysql-test-run.pl --force --vardir="${T}/var-tests"
|
||||
|
||||
retstatus_tests=$?
|
||||
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
popd
|
||||
|
||||
# Cleanup is important for these testcases.
|
||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
||||
|
||||
failures=""
|
||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
||||
einfo "Tests successfully completed"
|
||||
|
||||
else
|
||||
|
||||
einfo "Skipping server tests due to minimal build."
|
||||
fi
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/mariadb-10.0.18.ebuild,v 1.1 2015/05/08 03:59:23 grknight Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/mariadb-10.0.19.ebuild,v 1.1 2015/05/09 18:53:27 grknight Exp $
|
||||
|
||||
EAPI="5"
|
||||
MY_EXTRAS_VER="20141215-0144Z"
|
@ -1,9 +1,9 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/mariadb-5.5.43.ebuild,v 1.1 2015/05/01 02:57:38 grknight Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/mariadb-5.5.43-r1.ebuild,v 1.1 2015/05/09 18:53:27 grknight Exp $
|
||||
|
||||
EAPI="5"
|
||||
MY_EXTRAS_VER="20141215-0144Z"
|
||||
MY_EXTRAS_VER="20150509-1847Z"
|
||||
|
||||
# Build system
|
||||
BUILD="cmake"
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.3.0-r1.ebuild,v 1.6 2008/03/22 00:54:20 maekke Exp $
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
MY_PN="ecj"
|
||||
DMF="R-${PV}-200706251500"
|
||||
S="${WORKDIR}"
|
||||
|
||||
DESCRIPTION="Ant Compiler Adapter for Eclipse Java Compiler"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF/.0}/${MY_PN}src.zip"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86"
|
||||
SLOT="3.3"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
~dev-java/eclipse-ecj-${PV}
|
||||
>=dev-java/ant-core-1.7"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
>=virtual/jdk-1.4
|
||||
sys-apps/findutils"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mkdir -p src/org/eclipse/jdt/{core,internal}
|
||||
cp org/eclipse/jdt/core/JDTCompilerAdapter.java \
|
||||
src/org/eclipse/jdt/core || die
|
||||
cp -r org/eclipse/jdt/internal/antadapter \
|
||||
src/org/eclipse/jdt/internal || die
|
||||
rm -fr about* org
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd src
|
||||
ejavac -classpath "$(java-pkg_getjars ant-core,eclipse-ecj-${SLOT})" \
|
||||
`find org/ -name '*.java'` || die "ejavac failed!"
|
||||
find org/ -name '*.class' -o -name '*.properties' | \
|
||||
xargs jar cf "${S}/${PN}.jar" || die "jar failed!"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar ${PN}.jar
|
||||
insinto /usr/share/java-config-2/compiler
|
||||
newins "${FILESDIR}/compiler-settings-${SLOT}" ecj-${SLOT}
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.4.ebuild,v 1.5 2009/11/06 15:26:14 elvanor Exp $
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
DMF="R-${PV}-200806172000"
|
||||
S="${WORKDIR}"
|
||||
|
||||
DESCRIPTION="Ant Compiler Adapter for Eclipse Java Compiler"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF/.0}/ecjsrc-${PV}.zip"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86"
|
||||
SLOT="3.4"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
~dev-java/eclipse-ecj-${PV}
|
||||
>=dev-java/ant-core-1.7"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
>=virtual/jdk-1.4"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mkdir -p src/org/eclipse/jdt/{core,internal}
|
||||
cp org/eclipse/jdt/core/JDTCompilerAdapter.java \
|
||||
src/org/eclipse/jdt/core || die
|
||||
cp -r org/eclipse/jdt/internal/antadapter \
|
||||
src/org/eclipse/jdt/internal || die
|
||||
rm -fr about* org
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd src
|
||||
ejavac -classpath "$(java-pkg_getjars ant-core,eclipse-ecj-${SLOT})" \
|
||||
$(find org/ -name '*.java') || die "ejavac failed!"
|
||||
find org/ -name '*.class' -o -name '*.properties' | \
|
||||
xargs jar cf "${S}/${PN}.jar" || die "jar failed!"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar ${PN}.jar
|
||||
insinto /usr/share/java-config-2/compiler
|
||||
newins "${FILESDIR}/compiler-settings-${SLOT}" ecj-${SLOT}
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.5.2.ebuild,v 1.6 2010/11/05 19:50:45 halcy0n Exp $
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
DMF="R-${PV}-201002111343"
|
||||
S="${WORKDIR}"
|
||||
|
||||
DESCRIPTION="Ant Compiler Adapter for Eclipse Java Compiler"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/${DMF/.0}/ecjsrc-${PV}.zip"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
|
||||
SLOT="3.5"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
~dev-java/eclipse-ecj-${PV}
|
||||
>=dev-java/ant-core-1.7"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
>=virtual/jdk-1.4"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mkdir -p src/org/eclipse/jdt/{core,internal}
|
||||
cp org/eclipse/jdt/core/JDTCompilerAdapter.java \
|
||||
src/org/eclipse/jdt/core || die
|
||||
cp -r org/eclipse/jdt/internal/antadapter \
|
||||
src/org/eclipse/jdt/internal || die
|
||||
rm -fr about* org
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd src
|
||||
java-pkg_filter-compiler jikes
|
||||
ejavac -classpath "$(java-pkg_getjars ant-core,eclipse-ecj-${SLOT})" \
|
||||
$(find org/ -name '*.java') || die "ejavac failed!"
|
||||
find org/ -name '*.class' -o -name '*.properties' | \
|
||||
xargs jar cf "${S}/${PN}.jar" || die "jar failed!"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar ${PN}.jar
|
||||
insinto /usr/share/java-config-2/compiler
|
||||
newins "${FILESDIR}/compiler-settings-${SLOT}" ecj-${SLOT}
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-eclipse-ecj/ant-eclipse-ecj-3.6-r1.ebuild,v 1.3 2015/04/21 18:50:25 pacho Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
DMF="R-${PV}-201006080911"
|
||||
S="${WORKDIR}"
|
||||
|
||||
DESCRIPTION="Ant Compiler Adapter for Eclipse Java Compiler"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF/.0}/ecjsrc-${PV}.zip"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="~amd64 ppc ~ppc64 x86 ~x86-fbsd"
|
||||
SLOT="3.6"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
~dev-java/eclipse-ecj-${PV}
|
||||
>=dev-java/ant-core-1.7"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
>=virtual/jdk-1.4"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mkdir -p src/org/eclipse/jdt/{core,internal}
|
||||
cp org/eclipse/jdt/core/JDTCompilerAdapter.java \
|
||||
src/org/eclipse/jdt/core || die
|
||||
cp -r org/eclipse/jdt/internal/antadapter \
|
||||
src/org/eclipse/jdt/internal || die
|
||||
rm -fr about* org
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd src
|
||||
java-pkg_filter-compiler jikes
|
||||
ejavac -classpath "$(java-pkg_getjars ant-core,eclipse-ecj-${SLOT})" \
|
||||
$(find org/ -name '*.java') || die "ejavac failed!"
|
||||
find org/ -name '*.class' -o -name '*.properties' | \
|
||||
xargs jar cf "${S}/${PN}.jar" || die "jar failed!"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar ${PN}.jar
|
||||
insinto /usr/share/java-config-2/compiler
|
||||
doins "${FILESDIR}/ecj-${SLOT}"
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
JAVAC="/usr/bin/ecj-3.3"
|
||||
PACKAGE="=dev-java/ant-eclipse-ecj-3.3*"
|
||||
SUPPORTED_TARGET="1.1 1.2 1.3 1.4 1.5 1.6"
|
||||
SUPPORTED_SOURCE="1.3 1.4 1.5 1.6"
|
||||
ANT_BUILD_COMPILER="org.eclipse.jdt.core.JDTCompilerAdapter"
|
||||
ANT_BUILD_COMPILER_DEPS="eclipse-ecj-3.3,ant-eclipse-ecj-3.3"
|
||||
GENERATION="2"
|
@ -1,7 +0,0 @@
|
||||
JAVAC="/usr/bin/ecj-3.4"
|
||||
PACKAGE="=dev-java/ant-eclipse-ecj-3.4*"
|
||||
SUPPORTED_TARGET="1.1 1.2 1.3 1.4 1.5 1.6 1.7"
|
||||
SUPPORTED_SOURCE="1.3 1.4 1.5 1.6 1.7"
|
||||
ANT_BUILD_COMPILER="org.eclipse.jdt.core.JDTCompilerAdapter"
|
||||
ANT_BUILD_COMPILER_DEPS="eclipse-ecj-3.4,ant-eclipse-ecj-3.4"
|
||||
GENERATION="2"
|
@ -1,7 +0,0 @@
|
||||
JAVAC="/usr/bin/ecj-3.5"
|
||||
PACKAGE="=dev-java/ant-eclipse-ecj-3.5*"
|
||||
SUPPORTED_TARGET="1.1 1.2 1.3 1.4 1.5 1.6 1.7"
|
||||
SUPPORTED_SOURCE="1.3 1.4 1.5 1.6 1.7"
|
||||
ANT_BUILD_COMPILER="org.eclipse.jdt.core.JDTCompilerAdapter"
|
||||
ANT_BUILD_COMPILER_DEPS="eclipse-ecj-3.5,ant-eclipse-ecj-3.5"
|
||||
GENERATION="2"
|
@ -1,7 +0,0 @@
|
||||
JAVAC="/usr/bin/ecj-3.6"
|
||||
PACKAGE="=dev-java/ant-eclipse-ecj-3.6*"
|
||||
SUPPORTED_TARGET="1.1 1.2 1.3 1.4 1.5 1.6 1.7"
|
||||
SUPPORTED_SOURCE="1.3 1.4 1.5 1.6 1.7"
|
||||
ANT_BUILD_COMPILER="org.eclipse.jdt.core.JDTCompilerAdapter"
|
||||
ANT_BUILD_COMPILER_DEPS="eclipse-ecj-3.6,ant-eclipse-ecj-3.6"
|
||||
GENERATION="2"
|
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.3.0-r3.ebuild,v 1.11 2015/03/31 18:51:35 ulm Exp $
|
||||
|
||||
inherit eutils java-pkg-2
|
||||
|
||||
MY_PN="ecj"
|
||||
DMF="R-${PV}-200706251500"
|
||||
S="${WORKDIR}"
|
||||
|
||||
DESCRIPTION="Eclipse Compiler for Java"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF/.0}/${MY_PN}src.zip"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SLOT="3.3"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="app-eselect/eselect-ecj"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
${COMMON_DEPEND}"
|
||||
DEPEND="<virtual/jdk-1.7
|
||||
sys-apps/findutils
|
||||
app-arch/unzip
|
||||
${COMMON_DEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
# own package
|
||||
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java
|
||||
rm -fr org/eclipse/jdt/internal/antadapter
|
||||
|
||||
# what the heck...?! java6
|
||||
rm -fr org/eclipse/jdt/internal/compiler/tool/ \
|
||||
org/eclipse/jdt/internal/compiler/apt/
|
||||
|
||||
# gcj feature
|
||||
epatch "${FILESDIR}"/${P}-gcj.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local javac="javac" java="java" jar="jar"
|
||||
|
||||
mkdir -p bootstrap
|
||||
cp -pPR org bootstrap
|
||||
|
||||
einfo "bootstrapping ${MY_PN} with javac"
|
||||
|
||||
cd "${S}"/bootstrap
|
||||
${javac} $(find org/ -name '*.java') || die "${MY_PN} bootstrap failed!"
|
||||
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' | \
|
||||
xargs ${jar} cf ${MY_PN}.jar
|
||||
|
||||
einfo "build ${MY_PN} with bootstrapped ${MY_PN}"
|
||||
|
||||
cd "${S}"
|
||||
${java} -classpath bootstrap/${MY_PN}.jar \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main -encoding ISO-8859-1 org \
|
||||
|| die "${MY_PN} build failed!"
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' | \
|
||||
xargs ${jar} cf ${MY_PN}.jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar ${MY_PN}.jar
|
||||
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "To get the Compiler Adapter of ECJ for ANT..."
|
||||
einfo " # emerge ant-eclipse-ecj"
|
||||
echo
|
||||
einfo "To select between slots of ECJ..."
|
||||
einfo " # eselect ecj"
|
||||
|
||||
eselect ecj update ecj-${SLOT}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ecj update
|
||||
}
|
@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.3.0-r4.ebuild,v 1.3 2015/03/31 18:51:35 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils java-pkg-2
|
||||
|
||||
MY_PN="ecj"
|
||||
DMF="R-${PV}-200706251500"
|
||||
S="${WORKDIR}"
|
||||
|
||||
DESCRIPTION="Eclipse Compiler for Java"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF/.0}/${MY_PN}src.zip"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SLOT="3.3"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-ecj )"
|
||||
RDEPEND=">=virtual/jre-1.4
|
||||
${COMMON_DEPEND}"
|
||||
DEPEND="<virtual/jdk-1.7
|
||||
sys-apps/findutils
|
||||
app-arch/unzip
|
||||
${COMMON_DEPEND}"
|
||||
|
||||
java_prepare() {
|
||||
# own package
|
||||
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java
|
||||
rm -fr org/eclipse/jdt/internal/antadapter
|
||||
|
||||
# what the heck...?! java6
|
||||
rm -fr org/eclipse/jdt/internal/compiler/tool/ \
|
||||
org/eclipse/jdt/internal/compiler/apt/
|
||||
|
||||
# gcj feature
|
||||
epatch "${FILESDIR}"/${P}-gcj.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local javac="javac" java="java" jar="jar"
|
||||
|
||||
mkdir -p bootstrap
|
||||
cp -pPR org bootstrap
|
||||
|
||||
einfo "bootstrapping ${MY_PN} with javac"
|
||||
|
||||
cd "${S}"/bootstrap
|
||||
${javac} $(find org/ -name '*.java') || die "${MY_PN} bootstrap failed!"
|
||||
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' | \
|
||||
xargs ${jar} cf ${MY_PN}.jar
|
||||
|
||||
einfo "build ${MY_PN} with bootstrapped ${MY_PN}"
|
||||
|
||||
cd "${S}"
|
||||
${java} -classpath bootstrap/${MY_PN}.jar \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main -encoding ISO-8859-1 org \
|
||||
|| die "${MY_PN} build failed!"
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' | \
|
||||
xargs ${jar} cf ${MY_PN}.jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar ${MY_PN}.jar
|
||||
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "To get the Compiler Adapter of ECJ for ANT..."
|
||||
einfo " # emerge ant-eclipse-ecj"
|
||||
echo
|
||||
einfo "To select between slots of ECJ..."
|
||||
einfo " # eselect ecj"
|
||||
|
||||
eselect ecj update ecj-${SLOT}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ecj update
|
||||
}
|
@ -1,92 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.4-r4.ebuild,v 1.8 2015/03/31 18:51:35 ulm Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
MY_PN="ecj"
|
||||
DMF="R-${PV}-200806172000"
|
||||
S="${WORKDIR}"
|
||||
|
||||
DESCRIPTION="Eclipse Compiler for Java"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.zip"
|
||||
|
||||
IUSE="java6"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SLOT="3.4"
|
||||
|
||||
CDEPEND=">=app-eselect/eselect-ecj-0.3"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/unzip
|
||||
!java6? ( >=virtual/jdk-1.4 )
|
||||
java6? ( >=virtual/jdk-1.6 )"
|
||||
RDEPEND="${CDEPEND}
|
||||
!java6? ( >=virtual/jre-1.4 )
|
||||
java6? ( >=virtual/jre-1.6 )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}" || die
|
||||
|
||||
# These have their own package.
|
||||
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die
|
||||
rm -fr org/eclipse/jdt/internal/antadapter || die
|
||||
|
||||
if ! use java6 ; then
|
||||
rm -fr org/eclipse/jdt/internal/compiler/{apt,tool}/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local javac_opts javac java jar
|
||||
|
||||
javac_opts="$(java-pkg_javac-args) -encoding ISO-8859-1"
|
||||
javac="$(java-config -c)"
|
||||
java="$(java-config -J)"
|
||||
jar="$(java-config -j)"
|
||||
|
||||
mkdir -p bootstrap || die
|
||||
cp -pPR org bootstrap || die
|
||||
cd "${S}/bootstrap" || die
|
||||
|
||||
einfo "bootstrapping ${MY_PN} with ${javac} ..."
|
||||
${javac} ${javac_opts} $(find org/ -name '*.java') || die
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' |\
|
||||
xargs ${jar} cf ${MY_PN}.jar
|
||||
|
||||
cd "${S}" || die
|
||||
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..."
|
||||
${java} -classpath bootstrap/${MY_PN}.jar \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main \
|
||||
${javac_opts} -nowarn org || die
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' |\
|
||||
xargs ${jar} cf ${MY_PN}.jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main
|
||||
|
||||
java-pkg_dojar ${MY_PN}.jar
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "To get the Compiler Adapter of ECJ for ANT..."
|
||||
einfo " # emerge ant-eclipse-ecj"
|
||||
echo
|
||||
einfo "To select between slots of ECJ..."
|
||||
einfo " # eselect ecj"
|
||||
|
||||
eselect ecj update ecj-${SLOT}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ecj update
|
||||
}
|
@ -1,91 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.4-r5.ebuild,v 1.3 2015/03/31 18:51:35 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
MY_PN="ecj"
|
||||
DMF="R-${PV}-200806172000"
|
||||
S="${WORKDIR}"
|
||||
|
||||
DESCRIPTION="Eclipse Compiler for Java"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.zip"
|
||||
|
||||
IUSE="java6"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SLOT="3.4"
|
||||
|
||||
CDEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-ecj )"
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/unzip
|
||||
!java6? ( >=virtual/jdk-1.4 )
|
||||
java6? ( >=virtual/jdk-1.6 )"
|
||||
RDEPEND="${CDEPEND}
|
||||
!java6? ( >=virtual/jre-1.4 )
|
||||
java6? ( >=virtual/jre-1.6 )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}" || die
|
||||
|
||||
# These have their own package.
|
||||
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die
|
||||
rm -fr org/eclipse/jdt/internal/antadapter || die
|
||||
|
||||
if ! use java6 ; then
|
||||
rm -fr org/eclipse/jdt/internal/compiler/{apt,tool}/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local javac_opts javac java jar
|
||||
|
||||
javac_opts="$(java-pkg_javac-args) -encoding ISO-8859-1"
|
||||
javac="$(java-config -c)"
|
||||
java="$(java-config -J)"
|
||||
jar="$(java-config -j)"
|
||||
|
||||
mkdir -p bootstrap || die
|
||||
cp -pPR org bootstrap || die
|
||||
cd "${S}/bootstrap" || die
|
||||
|
||||
einfo "bootstrapping ${MY_PN} with ${javac} ..."
|
||||
${javac} ${javac_opts} $(find org/ -name '*.java') || die
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' |\
|
||||
xargs ${jar} cf ${MY_PN}.jar
|
||||
|
||||
cd "${S}" || die
|
||||
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..."
|
||||
${java} -classpath bootstrap/${MY_PN}.jar \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main \
|
||||
${javac_opts} -nowarn org || die
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' |\
|
||||
xargs ${jar} cf ${MY_PN}.jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main
|
||||
|
||||
java-pkg_dojar ${MY_PN}.jar
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "To get the Compiler Adapter of ECJ for ANT..."
|
||||
einfo " # emerge ant-eclipse-ecj"
|
||||
echo
|
||||
einfo "To select between slots of ECJ..."
|
||||
einfo " # eselect ecj"
|
||||
|
||||
eselect ecj update ecj-${SLOT}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ecj update
|
||||
}
|
@ -1,102 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.5.2-r1.ebuild,v 1.3 2015/03/31 18:51:35 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
MY_PN="ecj"
|
||||
DMF="R-${PV}-201002111343"
|
||||
S="${WORKDIR}"
|
||||
|
||||
DESCRIPTION="Eclipse Compiler for Java"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.zip"
|
||||
|
||||
IUSE="+ant userland_GNU"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SLOT="3.5"
|
||||
|
||||
JAVA_PKG_WANT_SOURCE=1.4
|
||||
JAVA_PKG_WANT_TARGET=1.4
|
||||
|
||||
CDEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-ecj )"
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/unzip
|
||||
>=virtual/jdk-1.6
|
||||
userland_GNU? ( sys-apps/findutils )"
|
||||
RDEPEND="${CDEPEND}
|
||||
>=virtual/jre-1.4"
|
||||
PDEPEND="ant? ( ~dev-java/ant-eclipse-ecj-${PV} )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
# These have their own package.
|
||||
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die
|
||||
rm -fr org/eclipse/jdt/internal/antadapter || die
|
||||
|
||||
# upstream build.xml excludes this
|
||||
rm META-INF/eclipse.inf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local javac_opts javac java jar
|
||||
|
||||
javac_opts="$(java-pkg_javac-args) -encoding ISO-8859-1"
|
||||
javac="$(java-config -c)"
|
||||
java="$(java-config -J)"
|
||||
jar="$(java-config -j)"
|
||||
|
||||
find org/ -path org/eclipse/jdt/internal/compiler/apt -prune -o \
|
||||
-path org/eclipse/jdt/internal/compiler/tool -prune -o -name '*.java' \
|
||||
-print > sources-1.4
|
||||
find org/eclipse/jdt/internal/compiler/{apt,tool} -name '*.java' > sources-1.6
|
||||
|
||||
mkdir -p bootstrap || die
|
||||
cp -pPR org bootstrap || die
|
||||
cd "${S}/bootstrap" || die
|
||||
|
||||
einfo "bootstrapping ${MY_PN} with ${javac} ..."
|
||||
${javac} ${javac_opts} @../sources-1.4 || die
|
||||
${javac} -encoding ISO-8859-1 -source 1.6 -target 1.6 @../sources-1.6 || die
|
||||
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' \
|
||||
| xargs ${jar} cf ${MY_PN}.jar
|
||||
|
||||
cd "${S}" || die
|
||||
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..."
|
||||
${java} -classpath bootstrap/${MY_PN}.jar \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main \
|
||||
${javac_opts} -nowarn @sources-1.4 || die
|
||||
${java} -classpath bootstrap/${MY_PN}.jar \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main \
|
||||
-encoding ISO-8859-1 -source 1.6 -target 1.6 -nowarn @sources-1.6 || die
|
||||
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' \
|
||||
| xargs ${jar} cf ${MY_PN}.jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main
|
||||
|
||||
# disable the class version verify, this has intentionally
|
||||
# some classes with 1.6, but most is 1.4
|
||||
JAVA_PKG_STRICT="" java-pkg_dojar ${MY_PN}.jar
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "To select between slots of ECJ..."
|
||||
einfo " # eselect ecj"
|
||||
|
||||
eselect ecj update ecj-${SLOT}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ecj update
|
||||
}
|
@ -1,103 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.5.2.ebuild,v 1.8 2015/03/31 18:51:35 ulm Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
MY_PN="ecj"
|
||||
DMF="R-${PV}-201002111343"
|
||||
S="${WORKDIR}"
|
||||
|
||||
DESCRIPTION="Eclipse Compiler for Java"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.zip"
|
||||
|
||||
IUSE="+ant userland_GNU"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SLOT="3.5"
|
||||
|
||||
CDEPEND=">=app-eselect/eselect-ecj-0.3"
|
||||
|
||||
JAVA_PKG_WANT_SOURCE=1.4
|
||||
JAVA_PKG_WANT_TARGET=1.4
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/unzip
|
||||
>=virtual/jdk-1.6
|
||||
userland_GNU? ( sys-apps/findutils )"
|
||||
RDEPEND="${CDEPEND}
|
||||
>=virtual/jre-1.4"
|
||||
PDEPEND="ant? ( ~dev-java/ant-eclipse-ecj-${PV} )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
# These have their own package.
|
||||
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die
|
||||
rm -fr org/eclipse/jdt/internal/antadapter || die
|
||||
|
||||
# upstream build.xml excludes this
|
||||
rm META-INF/eclipse.inf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local javac_opts javac java jar
|
||||
|
||||
javac_opts="$(java-pkg_javac-args) -encoding ISO-8859-1"
|
||||
javac="$(java-config -c)"
|
||||
java="$(java-config -J)"
|
||||
jar="$(java-config -j)"
|
||||
|
||||
find org/ -path org/eclipse/jdt/internal/compiler/apt -prune -o \
|
||||
-path org/eclipse/jdt/internal/compiler/tool -prune -o -name '*.java' \
|
||||
-print > sources-1.4
|
||||
find org/eclipse/jdt/internal/compiler/{apt,tool} -name '*.java' > sources-1.6
|
||||
|
||||
mkdir -p bootstrap || die
|
||||
cp -pPR org bootstrap || die
|
||||
cd "${S}/bootstrap" || die
|
||||
|
||||
einfo "bootstrapping ${MY_PN} with ${javac} ..."
|
||||
${javac} ${javac_opts} @../sources-1.4 || die
|
||||
${javac} -encoding ISO-8859-1 -source 1.6 -target 1.6 @../sources-1.6 || die
|
||||
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' \
|
||||
| xargs ${jar} cf ${MY_PN}.jar
|
||||
|
||||
cd "${S}" || die
|
||||
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..."
|
||||
${java} -classpath bootstrap/${MY_PN}.jar \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main \
|
||||
${javac_opts} -nowarn @sources-1.4 || die
|
||||
${java} -classpath bootstrap/${MY_PN}.jar \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main \
|
||||
-encoding ISO-8859-1 -source 1.6 -target 1.6 -nowarn @sources-1.6 || die
|
||||
|
||||
find org/ -name '*.class' -o -name '*.properties' -o -name '*.rsc' \
|
||||
| xargs ${jar} cf ${MY_PN}.jar
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main
|
||||
|
||||
# disable the class version verify, this has intentionally
|
||||
# some classes with 1.6, but most is 1.4
|
||||
JAVA_PKG_STRICT="" java-pkg_dojar ${MY_PN}.jar
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "To select between slots of ECJ..."
|
||||
einfo " # eselect ecj"
|
||||
|
||||
eselect ecj update ecj-${SLOT}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ecj update
|
||||
}
|
@ -1,102 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/eclipse-ecj/eclipse-ecj-3.6-r1.ebuild,v 1.4 2015/04/21 18:50:15 pacho Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit java-pkg-2
|
||||
|
||||
MY_PN="ecj"
|
||||
DMF="R-${PV}-201006080911"
|
||||
|
||||
DESCRIPTION="Eclipse Compiler for Java"
|
||||
HOMEPAGE="http://www.eclipse.org/"
|
||||
SRC_URI="http://archive.eclipse.org/eclipse/downloads/drops/${DMF}/${MY_PN}src-${PV}.zip"
|
||||
|
||||
IUSE="+ant userland_GNU"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
KEYWORDS="~amd64 ppc ~ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
SLOT="3.6"
|
||||
|
||||
COMMON_DEP="
|
||||
|| ( app-eselect/eselect-java >=app-eselect/eselect-ecj-0.3 )"
|
||||
RDEPEND="${COMMON_DEP}
|
||||
>=virtual/jre-1.4"
|
||||
DEPEND="${COMMON_DEP}
|
||||
>=virtual/jdk-1.6
|
||||
app-arch/unzip
|
||||
userland_GNU? ( sys-apps/findutils )"
|
||||
PDEPEND="
|
||||
ant? ( ~dev-java/ant-eclipse-ecj-${PV} )"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
JAVA_PKG_WANT_SOURCE=1.4
|
||||
JAVA_PKG_WANT_TARGET=1.4
|
||||
|
||||
java_prepare() {
|
||||
# These have their own package.
|
||||
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java || die
|
||||
rm -fr org/eclipse/jdt/internal/antadapter || die
|
||||
|
||||
# upstream build.xml excludes this
|
||||
rm META-INF/eclipse.inf || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local javac_opts javac java jar
|
||||
|
||||
javac_opts="$(java-pkg_javac-args) -encoding ISO-8859-1"
|
||||
javac="$(java-config -c)"
|
||||
java="$(java-config -J)"
|
||||
jar="$(java-config -j)"
|
||||
|
||||
find org/ -path org/eclipse/jdt/internal/compiler/apt -prune -o \
|
||||
-path org/eclipse/jdt/internal/compiler/tool -prune -o -name '*.java' \
|
||||
-print > sources-1.4
|
||||
find org/eclipse/jdt/internal/compiler/{apt,tool} -name '*.java' > sources-1.6
|
||||
|
||||
mkdir -p bootstrap || die
|
||||
cp -pPR org bootstrap || die
|
||||
cd "${S}/bootstrap" || die
|
||||
|
||||
einfo "bootstrapping ${MY_PN} with ${javac} ..."
|
||||
${javac} ${javac_opts} @../sources-1.4 || die
|
||||
${javac} -encoding ISO-8859-1 -source 1.6 -target 1.6 @../sources-1.6 || die
|
||||
|
||||
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' \) \
|
||||
-exec ${jar} cf ${MY_PN}.jar {} + || die
|
||||
|
||||
cd "${S}" || die
|
||||
einfo "building ${MY_PN} with bootstrapped ${MY_PN} ..."
|
||||
${java} -classpath bootstrap/${MY_PN}.jar \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main \
|
||||
${javac_opts} -nowarn @sources-1.4 || die
|
||||
${java} -classpath bootstrap/${MY_PN}.jar \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main \
|
||||
-encoding ISO-8859-1 -source 1.6 -target 1.6 -nowarn @sources-1.6 || die
|
||||
|
||||
find org/ \( -name '*.class' -o -name '*.properties' -o -name '*.rsc' \) \
|
||||
-exec ${jar} cf ${MY_PN}.jar {} + || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dolauncher ${MY_PN}-${SLOT} --main \
|
||||
org.eclipse.jdt.internal.compiler.batch.Main
|
||||
|
||||
# disable the class version verify, this has intentionally
|
||||
# some classes with 1.6, but most is 1.4
|
||||
JAVA_PKG_STRICT="" java-pkg_dojar ${MY_PN}.jar
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
einfo "To select between slots of ECJ..."
|
||||
einfo " # eselect ecj"
|
||||
|
||||
eselect ecj update ecj-${SLOT}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ecj update
|
||||
}
|
@ -1,509 +0,0 @@
|
||||
--- org/eclipse/jdt/internal/compiler/batch/messages.properties 8 Feb 2007 15:04:43 -0000 1.546.2.23
|
||||
+++ org/eclipse/jdt/internal/compiler/batch/messages.properties 26 Feb 2007 18:21:06 -0000
|
||||
@@ -249,3 +249,8 @@
|
||||
template.restrictedAccess.constructor = The constructor {0} is not accessible due to restriction on classpath entry {1}
|
||||
template.restrictedAccess.field = The field {0} from the type {1} is not accessible due to restriction on classpath entry {2}
|
||||
template.restrictedAccess.method = The method {0} from the type {1} is not accessible due to restriction on classpath entry {2}
|
||||
+
|
||||
+# GCCMain messages.
|
||||
+gcc.zipArg=-fzip-target requires argument
|
||||
+gcc.zipDepArg=-fzip-dependency requires argument
|
||||
+gcc.noClasspath=no classpath specified
|
||||
--- /dev/null 1 Jan 1970 00:00:00 -0000
|
||||
+++ org/eclipse/jdt/internal/compiler/batch/GCCMain.java 1 Jan 1970 00:00:00 -0000
|
||||
@@ -0,0 +1,495 @@
|
||||
+/**
|
||||
+ *
|
||||
+ */
|
||||
+package org.eclipse.jdt.internal.compiler.batch;
|
||||
+
|
||||
+import java.io.BufferedOutputStream;
|
||||
+import java.io.BufferedReader;
|
||||
+import java.io.ByteArrayInputStream;
|
||||
+import java.io.File;
|
||||
+import java.io.FileOutputStream;
|
||||
+import java.io.FileReader;
|
||||
+import java.io.IOException;
|
||||
+import java.io.InputStreamReader;
|
||||
+import java.io.OutputStream;
|
||||
+import java.io.PrintWriter;
|
||||
+import java.io.UnsupportedEncodingException;
|
||||
+import java.util.ArrayList;
|
||||
+import java.util.HashSet;
|
||||
+import java.util.Iterator;
|
||||
+import java.util.Map;
|
||||
+import java.util.StringTokenizer;
|
||||
+import java.util.zip.CRC32;
|
||||
+import java.util.zip.ZipEntry;
|
||||
+import java.util.zip.ZipOutputStream;
|
||||
+
|
||||
+import org.eclipse.jdt.core.compiler.InvalidInputException;
|
||||
+import org.eclipse.jdt.internal.compiler.ClassFile;
|
||||
+import org.eclipse.jdt.internal.compiler.CompilationResult;
|
||||
+import org.eclipse.jdt.internal.compiler.env.AccessRule;
|
||||
+import org.eclipse.jdt.internal.compiler.env.AccessRuleSet;
|
||||
+import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
|
||||
+import org.eclipse.jdt.internal.compiler.util.Messages;
|
||||
+import org.eclipse.jdt.internal.compiler.util.SuffixConstants;
|
||||
+
|
||||
+/**
|
||||
+ * This is an alternate entry point for the command-line compiler which
|
||||
+ * is simpler to integrate into GCC. In particular the option processing
|
||||
+ * is more GNU-like and the recognized options are similar to those supported
|
||||
+ * by other GCC front ends.
|
||||
+ */
|
||||
+public class GCCMain extends Main {
|
||||
+
|
||||
+ // All the compilation units specified on the command line.
|
||||
+ private HashSet commandLineCompilationUnits = new HashSet();
|
||||
+ // True if we are only checking syntax.
|
||||
+ private boolean syntaxOnly;
|
||||
+ // If not null, the name of the output zip file.
|
||||
+ // If null, we are generating class files in the file system,
|
||||
+ // not a zip file.
|
||||
+ private String zipDestination;
|
||||
+ // The zip stream to which we're writing, or null if it hasn't been opened.
|
||||
+ private ZipOutputStream zipStream;
|
||||
+
|
||||
+ // If not null, the name of the zip file to which dependency class files
|
||||
+ // should be written.
|
||||
+ private String zipDependencyDestination;
|
||||
+ // The zip stream to which dependency files should be written.
|
||||
+ private ZipOutputStream zipDependencyStream;
|
||||
+
|
||||
+ public GCCMain(PrintWriter outWriter, PrintWriter errWriter,
|
||||
+ boolean systemExitWhenFinished) {
|
||||
+ super(outWriter, errWriter, systemExitWhenFinished);
|
||||
+ this.logger.setEmacs();
|
||||
+ }
|
||||
+
|
||||
+ public GCCMain(PrintWriter outWriter, PrintWriter errWriter,
|
||||
+ boolean systemExitWhenFinished, Map customDefaultOptions) {
|
||||
+ super(outWriter, errWriter, systemExitWhenFinished,
|
||||
+ customDefaultOptions);
|
||||
+ this.logger.setEmacs();
|
||||
+ }
|
||||
+
|
||||
+ private void fail(Exception t) {
|
||||
+ this.logger.logException(t);
|
||||
+ System.exit(1);
|
||||
+ }
|
||||
+
|
||||
+ public CompilationUnit[] getCompilationUnits() throws InvalidInputException {
|
||||
+ CompilationUnit[] units = super.getCompilationUnits();
|
||||
+ for (int i = 0; i < units.length; ++i)
|
||||
+ this.commandLineCompilationUnits.add(units[i]);
|
||||
+ return units;
|
||||
+ }
|
||||
+
|
||||
+ private String combine(char[] one, char[] two) {
|
||||
+ StringBuffer b = new StringBuffer();
|
||||
+ b.append(one);
|
||||
+ b.append(two);
|
||||
+ return b.toString();
|
||||
+ }
|
||||
+
|
||||
+ private ZipOutputStream getZipOutput() throws IOException {
|
||||
+ if (this.zipDestination != null && this.zipStream == null) {
|
||||
+ OutputStream os;
|
||||
+ if ("-".equals(this.zipDestination)) { //$NON-NLS-1$
|
||||
+ os = System.out;
|
||||
+ } else {
|
||||
+ os = new FileOutputStream(this.zipDestination);
|
||||
+ }
|
||||
+ zipStream = new ZipOutputStream(new BufferedOutputStream(os));
|
||||
+ zipStream.setMethod(ZipOutputStream.STORED);
|
||||
+ }
|
||||
+ return zipStream;
|
||||
+ }
|
||||
+
|
||||
+ private ZipOutputStream getDependencyOutput() throws IOException {
|
||||
+ if (this.zipDependencyDestination != null && this.zipDependencyStream == null) {
|
||||
+ OutputStream os = new FileOutputStream(zipDependencyDestination);
|
||||
+ zipDependencyStream = new ZipOutputStream(new BufferedOutputStream(os));
|
||||
+ zipDependencyStream.setMethod(ZipOutputStream.STORED);
|
||||
+ }
|
||||
+ return zipDependencyStream;
|
||||
+ }
|
||||
+
|
||||
+ public void outputClassFiles(CompilationResult unitResult) {
|
||||
+ if (this.syntaxOnly) {
|
||||
+ return;
|
||||
+ }
|
||||
+ if (this.zipDestination == null) {
|
||||
+ // Nothing special to do here.
|
||||
+ super.outputClassFiles(unitResult);
|
||||
+ return;
|
||||
+ }
|
||||
+ if (unitResult == null || unitResult.hasErrors()) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ // If we are compiling with indirect dispatch, we don't need
|
||||
+ // any dependent classes. If we are using the C++ ABI, then we
|
||||
+ // do need the dependencies in order to do proper layout.
|
||||
+ boolean gcjCompile = this.commandLineCompilationUnits.contains(unitResult.getCompilationUnit());
|
||||
+ if (this.zipDependencyDestination == null && !gcjCompile) {
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
+ try {
|
||||
+ ZipOutputStream dest = gcjCompile ? getZipOutput() : getDependencyOutput();
|
||||
+ ClassFile[] classFiles = unitResult.getClassFiles();
|
||||
+ for (int i = 0; i < classFiles.length; ++i) {
|
||||
+ ClassFile classFile = classFiles[i];
|
||||
+ String filename = combine(classFile.fileName(), SuffixConstants.SUFFIX_class);
|
||||
+ if (this.verbose)
|
||||
+ this.out.println(
|
||||
+ Messages.bind(
|
||||
+ Messages.compilation_write,
|
||||
+ new String[] {
|
||||
+ String.valueOf(this.exportedClassFilesCounter+1),
|
||||
+ filename
|
||||
+ }));
|
||||
+ ZipEntry entry = new ZipEntry(filename);
|
||||
+ byte[] contents = classFile.getBytes();
|
||||
+ CRC32 crc = new CRC32();
|
||||
+ crc.update(contents);
|
||||
+ entry.setSize(contents.length);
|
||||
+ entry.setCrc(crc.getValue());
|
||||
+ dest.putNextEntry(entry);
|
||||
+ dest.write(contents);
|
||||
+ dest.closeEntry();
|
||||
+ }
|
||||
+ } catch (IOException err) {
|
||||
+ fail(err);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ private String getArgument(String option) {
|
||||
+ int index = option.indexOf('=');
|
||||
+ return option.substring(index + 1);
|
||||
+ }
|
||||
+
|
||||
+ private void addPath(ArrayList result, String currentClasspathName) {
|
||||
+ String customEncoding = null;
|
||||
+ AccessRule[] accessRules = new AccessRule[0];
|
||||
+ String templates[] = new String[AccessRuleSet.MESSAGE_TEMPLATES_LENGTH];
|
||||
+ templates[0] = this.bind(
|
||||
+ "template.restrictedAccess.type", //$NON-NLS-1$
|
||||
+ new String[] {"{0}", currentClasspathName}); //$NON-NLS-1$
|
||||
+ templates[1] = this.bind(
|
||||
+ "template.restrictedAccess.constructor", //$NON-NLS-1$
|
||||
+ new String[] {"{0}", currentClasspathName}); //$NON-NLS-1$
|
||||
+ templates[2] = this.bind(
|
||||
+ "template.restrictedAccess.method", //$NON-NLS-1$
|
||||
+ new String[] {"{0}", "{1}", currentClasspathName}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
+ templates[3] = this.bind(
|
||||
+ "template.restrictedAccess.field", //$NON-NLS-1$
|
||||
+ new String[] {"{0}", "{1}", currentClasspathName}); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
+ AccessRuleSet accessRuleSet = new AccessRuleSet(accessRules, templates);
|
||||
+ FileSystem.Classpath currentClasspath = FileSystem
|
||||
+ .getClasspath(currentClasspathName,
|
||||
+ customEncoding, accessRuleSet);
|
||||
+ if (currentClasspath != null) {
|
||||
+ result.add(currentClasspath);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ private void parsePath(ArrayList result, String path) {
|
||||
+ StringTokenizer iter = new StringTokenizer(path, File.pathSeparator);
|
||||
+ while (iter.hasMoreTokens()) {
|
||||
+ addPath(result, iter.nextToken());
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ protected void handleWarningToken(String token, boolean isEnabling,
|
||||
+ boolean useEnableJavadoc) throws InvalidInputException {
|
||||
+ // Recognize this for compatibility with older versions of gcj.
|
||||
+ if ("deprecated".equals(token)) //$NON-NLS-1$
|
||||
+ token = "deprecation"; //$NON-NLS-1$
|
||||
+ else if ("static-access".equals(token) //$NON-NLS-1$
|
||||
+ || "dep-ann".equals(token) //$NON-NLS-1$
|
||||
+ || "over-ann".equals(token)) { //$NON-NLS-1$
|
||||
+ // Some exceptions to the warning naming rule.
|
||||
+ } else if ("extraneous-semicolon".equals(token)) { //$NON-NLS-1$
|
||||
+ // Compatibility with earlier versions of gcj.
|
||||
+ token = "semicolon"; //$NON-NLS-1$
|
||||
+ } else {
|
||||
+ // Turn "foo-bar-baz" into eclipse-style "fooBarBaz".
|
||||
+ StringBuffer newToken = new StringBuffer(token.length());
|
||||
+ StringTokenizer t = new StringTokenizer(token, "-"); //$NON-NLS-1$
|
||||
+ boolean first = true;
|
||||
+ while (t.hasMoreTokens()) {
|
||||
+ String next = t.nextToken();
|
||||
+ if (first) {
|
||||
+ newToken.append(next);
|
||||
+ first = false;
|
||||
+ } else {
|
||||
+ newToken.append(Character.toUpperCase(next.charAt(0)));
|
||||
+ newToken.append(next.substring(1));
|
||||
+ }
|
||||
+ }
|
||||
+ token = newToken.toString();
|
||||
+ }
|
||||
+ super.handleWarningToken(token, isEnabling, useEnableJavadoc);
|
||||
+ }
|
||||
+
|
||||
+ private void turnWarningsToErrors() {
|
||||
+ Object[] entries = this.options.entrySet().toArray();
|
||||
+ for (int i = 0, max = entries.length; i < max; i++) {
|
||||
+ Map.Entry entry = (Map.Entry) entries[i];
|
||||
+ if (!(entry.getKey() instanceof String))
|
||||
+ continue;
|
||||
+ if (!(entry.getValue() instanceof String))
|
||||
+ continue;
|
||||
+ if (((String) entry.getValue()).equals(CompilerOptions.WARNING)) {
|
||||
+ this.options.put(entry.getKey(), CompilerOptions.ERROR);
|
||||
+ }
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
+ * Set the debug level to the indicated value. The level should be
|
||||
+ * between 0 and 2, inclusive, but this is not checked.
|
||||
+ * @param level the debug level
|
||||
+ */
|
||||
+ private void setDebugLevel(int level) {
|
||||
+ this.options.put(
|
||||
+ CompilerOptions.OPTION_LocalVariableAttribute,
|
||||
+ level > 1 ? CompilerOptions.GENERATE : CompilerOptions.DO_NOT_GENERATE);
|
||||
+ this.options.put(
|
||||
+ CompilerOptions.OPTION_LineNumberAttribute,
|
||||
+ level > 0 ? CompilerOptions.GENERATE : CompilerOptions.DO_NOT_GENERATE);
|
||||
+ this.options.put(
|
||||
+ CompilerOptions.OPTION_SourceFileAttribute,
|
||||
+ CompilerOptions.GENERATE);
|
||||
+ }
|
||||
+
|
||||
+ private void readFileList(String file, ArrayList result) {
|
||||
+ try {
|
||||
+ BufferedReader b = new BufferedReader(new FileReader(file));
|
||||
+ String line;
|
||||
+ while ((line = b.readLine()) != null) {
|
||||
+ if (line.endsWith(SUFFIX_STRING_java))
|
||||
+ result.add(line);
|
||||
+ }
|
||||
+ b.close();
|
||||
+ } catch (IOException err) {
|
||||
+ fail(err);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ private void readAllFileListFiles(ArrayList fileList, ArrayList result) {
|
||||
+ Iterator it = fileList.iterator();
|
||||
+ while (it.hasNext()) {
|
||||
+ readFileList((String) it.next(), result);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ private void handleWall(boolean enable) throws InvalidInputException {
|
||||
+ // A somewhat arbitrary list. We use the GCC names
|
||||
+ // here, and the local handleWarningToken translates
|
||||
+ // for us.
|
||||
+ handleWarningToken("constructor-name", enable, false);
|
||||
+ handleWarningToken("pkg-default-method", enable, false);
|
||||
+ handleWarningToken("masked-catch-block", enable, false);
|
||||
+ handleWarningToken("all-deprecation", enable, false);
|
||||
+ handleWarningToken("unused-local", enable, false);
|
||||
+ handleWarningToken("unused-label", enable, false);
|
||||
+ handleWarningToken("static-receiver", enable, false);
|
||||
+ handleWarningToken("indirect-static", enable, false);
|
||||
+ handleWarningToken("no-effect-assign", enable, false);
|
||||
+ handleWarningToken("char-concat", enable, false);
|
||||
+ handleWarningToken("useless-type-check", enable, false);
|
||||
+ handleWarningToken("final-bound", enable, false);
|
||||
+ handleWarningToken("assert-identifier", enable, false);
|
||||
+ handleWarningToken("enum-identifier", enable, false);
|
||||
+ handleWarningToken("finally", enable, false);
|
||||
+ handleWarningToken("varargs-cast", enable, false);
|
||||
+ handleWarningToken("unused", enable, false);
|
||||
+ handleWarningToken("forbidden", enable, false);
|
||||
+ }
|
||||
+
|
||||
+ public void configure(String[] argv) throws InvalidInputException {
|
||||
+ if ((argv == null) || (argv.length == 0)) {
|
||||
+ // This is a "can't happen".
|
||||
+ System.exit(1);
|
||||
+ }
|
||||
+
|
||||
+ ArrayList files = new ArrayList();
|
||||
+ ArrayList otherFiles = new ArrayList();
|
||||
+ String classpath = null;
|
||||
+ boolean haveFileList = false;
|
||||
+ boolean inhibitAllWarnings = false;
|
||||
+ boolean treatWarningsAsErrors = false;
|
||||
+
|
||||
+ for (int i = 0; i < argv.length; ++i) {
|
||||
+ String currentArg = argv[i];
|
||||
+
|
||||
+ if (currentArg.startsWith("-fencoding=")) { //$NON-NLS-1$
|
||||
+ // Simply accept the last one.
|
||||
+ String encoding = getArgument(currentArg);
|
||||
+ try { // ensure encoding is supported
|
||||
+ new InputStreamReader(new ByteArrayInputStream(new byte[0]), encoding);
|
||||
+ } catch (UnsupportedEncodingException e) {
|
||||
+ throw new InvalidInputException(
|
||||
+ this.bind("configure.unsupportedEncoding", encoding)); //$NON-NLS-1$
|
||||
+ }
|
||||
+ this.options.put(CompilerOptions.OPTION_Encoding, encoding);
|
||||
+ } else if (currentArg.startsWith("-foutput-class-dir=")) { //$NON-NLS-1$
|
||||
+ String arg = getArgument(currentArg);
|
||||
+ if (this.destinationPath != null) {
|
||||
+ StringBuffer errorMessage = new StringBuffer();
|
||||
+ errorMessage.append("-d"); //$NON-NLS-1$
|
||||
+ errorMessage.append(' ');
|
||||
+ errorMessage.append(arg);
|
||||
+ throw new InvalidInputException(
|
||||
+ this.bind("configure.duplicateOutputPath", errorMessage.toString())); //$NON-NLS-1$
|
||||
+ }
|
||||
+ this.destinationPath = arg;
|
||||
+ //this.generatePackagesStructure = true;
|
||||
+ } else if (currentArg.startsWith("-fbootclasspath=")) { //$NON-NLS-1$
|
||||
+ classpath = getArgument(currentArg);
|
||||
+ } else if (currentArg.equals("-fzip-target")) { //$NON-NLS-1$
|
||||
+ ++i;
|
||||
+ if (i >= argv.length)
|
||||
+ throw new InvalidInputException(this.bind("gcc.zipArg")); //$NON-NLS-1$
|
||||
+ this.zipDestination = argv[i];
|
||||
+ } else if (currentArg.equals("-fzip-dependency")) { //$NON-NLS-1$
|
||||
+ ++i;
|
||||
+ if (i >= argv.length)
|
||||
+ throw new InvalidInputException(this.bind("gcc.zipDepArg")); //$NON-NLS-1$
|
||||
+ this.zipDependencyDestination = argv[i];
|
||||
+ } else if (currentArg.startsWith("-g")) { //$NON-NLS-1$
|
||||
+ if (currentArg.equals("-g0")) { //$NON-NLS-1$
|
||||
+ setDebugLevel(0);
|
||||
+ } else if (currentArg.equals("-g2") || currentArg.equals("-g3") //$NON-NLS-1$ //$NON-NLS-2$
|
||||
+ || currentArg.equals("-g")) { //$NON-NLS-1$
|
||||
+ setDebugLevel(2);
|
||||
+ } else {
|
||||
+ // Handle -g1 but also things like -gstabs.
|
||||
+ setDebugLevel(1);
|
||||
+ }
|
||||
+ } else if (currentArg.equals("-Werror")) { //$NON-NLS-1$
|
||||
+ treatWarningsAsErrors = true;
|
||||
+ } else if (currentArg.equals("-Wno-error")) { //$NON-NLS-1$
|
||||
+ treatWarningsAsErrors = false;
|
||||
+ } else if (currentArg.equals("-Wall")) { //$NON-NLS-1$
|
||||
+ handleWall(true);
|
||||
+ } else if (currentArg.equals("-Wno-all")) { //$NON-NLS-1$
|
||||
+ handleWall(false);
|
||||
+ } else if (currentArg.startsWith("-Wno-")) { //$NON-NLS-1$
|
||||
+ handleWarningToken(currentArg.substring(5), false, false);
|
||||
+ } else if (currentArg.startsWith("-W")) { //$NON-NLS-1$
|
||||
+ handleWarningToken(currentArg.substring(2), true, false);
|
||||
+ } else if (currentArg.equals("-w")) { //$NON-NLS-1$
|
||||
+ inhibitAllWarnings = true;
|
||||
+ } else if (currentArg.startsWith("-O")) { //$NON-NLS-1$
|
||||
+ // Ignore.
|
||||
+ } else if (currentArg.equals("-v")) { //$NON-NLS-1$
|
||||
+ this.verbose = true;
|
||||
+ } else if (currentArg.equals("-fsyntax-only")) { //$NON-NLS-1$
|
||||
+ this.syntaxOnly = true;
|
||||
+ } else if (currentArg.startsWith("-fsource=")) { //$NON-NLS-1$
|
||||
+ currentArg = getArgument(currentArg);
|
||||
+ if (currentArg.equals("1.3")) { //$NON-NLS-1$
|
||||
+ this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_3);
|
||||
+ } else if (currentArg.equals("1.4")) { //$NON-NLS-1$
|
||||
+ this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_4);
|
||||
+ } else if (currentArg.equals("1.5") || currentArg.equals("5") || currentArg.equals("5.0")) { //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
|
||||
+ this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5);
|
||||
+ } else if (currentArg.equals("1.6") || currentArg.equals("6") || currentArg.equals("6.0")) { //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
|
||||
+ this.options.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_6);
|
||||
+ } else {
|
||||
+ throw new InvalidInputException(this.bind("configure.source", currentArg)); //$NON-NLS-1$
|
||||
+ }
|
||||
+ } else if (currentArg.startsWith("-ftarget=")) { //$NON-NLS-1$
|
||||
+ currentArg = getArgument(currentArg);
|
||||
+ if (currentArg.equals("1.1")) { //$NON-NLS-1$
|
||||
+ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_1);
|
||||
+ } else if (currentArg.equals("1.2")) { //$NON-NLS-1$
|
||||
+ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_2);
|
||||
+ } else if (currentArg.equals("1.3")) { //$NON-NLS-1$
|
||||
+ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_3);
|
||||
+ } else if (currentArg.equals("1.4")) { //$NON-NLS-1$
|
||||
+ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_4);
|
||||
+ } else if (currentArg.equals("1.5") || currentArg.equals("5") || currentArg.equals("5.0")) { //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
|
||||
+ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5);
|
||||
+ } else if (currentArg.equals("1.6") || currentArg.equals("6") || currentArg.equals("6.0")) { //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$
|
||||
+ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_6);
|
||||
+ } else if (currentArg.equals("jsr14")) { //$NON-NLS-1$
|
||||
+ this.options.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_JSR14);
|
||||
+ } else {
|
||||
+ throw new InvalidInputException(this.bind("configure.targetJDK", currentArg)); //$NON-NLS-1$
|
||||
+ }
|
||||
+ } else if (currentArg.equals("-ffilelist-file")) { //$NON-NLS-1$
|
||||
+ haveFileList = true;
|
||||
+ } else if (currentArg.endsWith(SuffixConstants.SUFFIX_STRING_java)) {
|
||||
+ files.add(currentArg);
|
||||
+ } else if (currentArg.charAt(0) == '-'){
|
||||
+ // FIXME: error if not a file?
|
||||
+ } else {
|
||||
+ otherFiles.add(currentArg);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ // Read the file list file. We read them all, but really there
|
||||
+ // will only be one.
|
||||
+ if (haveFileList)
|
||||
+ readAllFileListFiles(otherFiles, files);
|
||||
+
|
||||
+ this.filenames = (String[]) files.toArray(new String[0]);
|
||||
+ this.encodings = new String[this.filenames.length];
|
||||
+ this.destinationPaths = new String[this.filenames.length];
|
||||
+ for (int i = 0; i < this.filenames.length; ++i)
|
||||
+ this.destinationPaths[i] = this.destinationPath;
|
||||
+
|
||||
+ // Classpath processing.
|
||||
+ ArrayList result = new ArrayList();
|
||||
+ if (classpath == null)
|
||||
+ throw new InvalidInputException(this.bind("gcc.noClasspath")); //$NON-NLS-1$
|
||||
+ parsePath(result, classpath);
|
||||
+
|
||||
+ // We must always create both output files, even if one is not used.
|
||||
+ // That way we will always pass valid zip file on to jc1.
|
||||
+ try {
|
||||
+ getZipOutput();
|
||||
+ getDependencyOutput();
|
||||
+ } catch (IOException err) {
|
||||
+ fail(err);
|
||||
+ }
|
||||
+
|
||||
+ if (inhibitAllWarnings)
|
||||
+ disableWarnings();
|
||||
+ if (treatWarningsAsErrors)
|
||||
+ turnWarningsToErrors();
|
||||
+
|
||||
+ this.checkedClasspaths = new FileSystem.Classpath[result.size()];
|
||||
+ result.toArray(this.checkedClasspaths);
|
||||
+
|
||||
+ this.logger.logCommandLineArguments(argv);
|
||||
+ this.logger.logOptions(this.options);
|
||||
+ this.logger.logClasspath(this.checkedClasspaths);
|
||||
+
|
||||
+ this.repetitions = 1;
|
||||
+ }
|
||||
+
|
||||
+ public boolean compile(String[] argv) {
|
||||
+ boolean result = super.compile(argv);
|
||||
+ try {
|
||||
+ if (zipStream != null) {
|
||||
+ zipStream.finish();
|
||||
+ zipStream.close();
|
||||
+ }
|
||||
+ if (zipDependencyStream != null) {
|
||||
+ zipDependencyStream.finish();
|
||||
+ zipDependencyStream.close();
|
||||
+ }
|
||||
+ } catch (IOException err) {
|
||||
+ fail(err);
|
||||
+ }
|
||||
+ return result;
|
||||
+ }
|
||||
+
|
||||
+ public static void main(String[] argv) {
|
||||
+ boolean result = new GCCMain(new PrintWriter(System.out), new PrintWriter(System.err), false).compile(argv);
|
||||
+ System.exit(result ? 0 : 1);
|
||||
+ }
|
||||
+}
|
@ -1,12 +1,24 @@
|
||||
DIST icedtea-bin-core-6.1.13.5-amd64.tar.bz2 52278418 SHA256 42b57b3fc20d893d18928a47637356414f568f3b731cd1cfc1530c501d057af4 SHA512 79d0f4debac147804fd9e0ed24a97ad91f4ee0fe4b2cc05dbe5981d7411b40f73df96c9208332f5520bb2620208bbc2300255d26218b5177f9a2b4099d17d3e3 WHIRLPOOL 206a749c932db75f85c8ebe3c023b9d2ce3a977161d548e7907026ae5c6eeff0fd31fecb133da3d171ffa76578f11e6da5a1bcbddbc82715efa7536cb1df9a15
|
||||
DIST icedtea-bin-core-6.1.13.5-x86.tar.bz2 53213698 SHA256 42fd83b69738d35bb314d180927cb35c70786148d1288d6dbbaa105c20189f6d SHA512 1e4424fc4ccd7cfc19c698615eca1fdc56adab16c781deba7de3b79d4ba9db1ecd72daa53f4d38712845846c7ffecebc1fec8a2405cb7d7f6672fc5230e212ce WHIRLPOOL ca7d542e53a02f37e8dffa641e45e8573e927eee3ebaf6333713afc5f28509d85b8d8aab2bdb523a565cf5fc6de58502f70c3a11c2e9afbb9daa0068c62dcd0f
|
||||
DIST icedtea-bin-core-6.1.13.7-amd64.tar.xz 49242728 SHA256 146bc914aa9d2e19d1273f2e0f71888c4ea1130eacc63bd22075f9a79e255f63 SHA512 b9e6509fe3ac033d593863af05d7853b7d4cbaf7dca041035b662dbde7866d56418fd075e4592aaf6640894bb639673a683e9c8add5aaf3c502caabae67ad2ee WHIRLPOOL 05fcd580b9d678a3717692582393d00f8e0f0de621e9edfdd1ecd76269f9d5a0ac87b14416dd49f0df0c572bf99de2436b1b4a15944f771d60c568b51c298706
|
||||
DIST icedtea-bin-core-6.1.13.7-x86.tar.xz 50373836 SHA256 3cc3e7c1fc07370bc7009d0ce7cfc2270de47165c45b8352b429aa1ccca561f2 SHA512 eb3eff46f20ffc93b7babe90aa3b9283119cf369fca503e7bdd7905455b9ac0e2eb389cc77e2e9bb02d802dc846dff75bbd218a844b80fa475e4ff04c88e9cf2 WHIRLPOOL 7593fd10d4c2e95fc02c2a7c94276632b6d99a077ec095018d5003e0c694c63f3e6eb3aa1d872f32911ad5ec2a90eae5f7a40c2784ef1b460e4a24a451369fd2
|
||||
DIST icedtea-bin-core-7.2.5.3-amd64.tar.bz2 55719739 SHA256 b777b90c92ec7939ad037b10a5b11e9405f6e6d7a6565b32b4eeebdf9410033c SHA512 6d990aef564e0a6c64949bd8b8a41d3acb146a143ca5fb8b7ba2aa32c0c0a06161888114e424e65e6e0c6610731b97b6a57dce9ee6b08e5c5026baef7a9b53ac WHIRLPOOL 4a64440b0ef1ca1f3e0c45e3196583ce0f0bdc5d2bea201b6e780be9aac18fce20d3215abafe83136d0c3ebaf6fc4326e979fddc197d49249723fd13ea0abe76
|
||||
DIST icedtea-bin-core-7.2.5.3-x86.tar.bz2 56635165 SHA256 89b9d724689b8c4ecfa20ddf514296b440f789852386417e392f64d8281169a1 SHA512 ca30891112c0bf8eed54d40bb351bce43433d725f07ce999aeec59ce7c08e5aa66b0b0eeb261b9944aeabf79ffa60ca680d7c8dc3ff8871d4caf11ce333f79ec WHIRLPOOL 6f41e6ad10bf976837e6e51f2d73bd1f83d2a50c51329f26ff4a65c779dab19b7f8e23d6f6d2024aeeb2230de6e362dbac9cdee2aeb848fcfc222041b710afe7
|
||||
DIST icedtea-bin-core-7.2.5.5-amd64.tar.xz 52642552 SHA256 cfa0399d93eab61004c6d3c23c7b2b46623c0fde1c8034adc09a6fdae9ba1a26 SHA512 427b134109bfd92a073f10467f030f2bccf7b3fdcc6ec66f63d0ab5a896dfb4cc4904a9b8f5b6833fe4ae73bffb54e97e75a363500ed897a153ea7a687c75e9a WHIRLPOOL 84fa1a480633d2f2459238c11fa58ba514a8eede37f54eebd19effd5e2dcf01bcf1f320c65f150018b52eea3c630c313ba85166ea9d8d44bb61b42c42738b9ad
|
||||
DIST icedtea-bin-core-7.2.5.5-x86.tar.xz 53895468 SHA256 f32ddce3e2435334aedc9bbda2319f88b4a0e92a9b7ada7afbc2724d8a1cee07 SHA512 e4e085a9e23f75e79f0172986e83bc5b03373826a11f4240c8331c0086521189a611b6a20b4f7f4c28d8e2436dcb046590a06487e14d1d79c454698ac0a5a9bc WHIRLPOOL 0785f0cac8655b6c9843b592bfe71a4c28ec4215e18d0257499ac5207458a159fb8d1c56defe6b3bedf07a0fa299531b51182f6c27abdf24bf801157b3b624a5
|
||||
DIST icedtea-bin-doc-6.1.13.5.tar.bz2 11511128 SHA256 17b51c45f432056b809db6f586c2217f115a0aec1aa8431f4ce3c02526d6a6e3 SHA512 65d5dd0acfc9dbf67b76fdb120f639fbbffc3b18555cac5ba9f0deed5a8503fae843e6600810f2c01f98cb24ad67e7eb58ce6ecf7b67f2e694bbe3e775b8ef24 WHIRLPOOL 3fee74e6921dc3cc92275fb2577c115535d1bb7932034559c391800e5d20621e6f4471ff0d93fff5fcfe142682270e8fbf221067b8b484ad21b7309fb9d289d1
|
||||
DIST icedtea-bin-doc-6.1.13.7.tar.xz 9845104 SHA256 75e2d37caa2bbcca8d77f4b6b63be7337484f1a0cd35ba784f191ac433b4f8bc SHA512 0f78642a0a27cee3439aac44f2df4cb43dd167c1bdb84c337636357f63195a3dfc4d2157a2368fdc72eceaad73eea17d016ca4f39f4c09a62322abac72111999 WHIRLPOOL 66db5023cd88c241427731aa66f227cab917a389ad89140a9e9174d8da5aa9a83850edd42a9359121633305e542d74c9f9b73788c7683da733c1b407d71df8e0
|
||||
DIST icedtea-bin-doc-7.2.5.3.tar.bz2 12511315 SHA256 fa3b7b96fcf9534e724fb16c244b0e58ec526d32ce64d40cad19433675f63848 SHA512 32e82f48eeed2199bd24b4dbb3ce16b84e05b683f33ac00e6b1a90c52279f79fd0351300581f0db2e27a0357d34cdfc085af010fe79738ab1d5a6229bd511b5b WHIRLPOOL 2c2520aa91b5831fa2306e23f8eb87c3f39ebd81f4e9569a7c84a523f094094f688cb89cebbaac6561cdadcbaf54c77adf457df90752dd9e96461d3158eb4ca8
|
||||
DIST icedtea-bin-doc-7.2.5.5.tar.xz 10599388 SHA256 ced6f04aeb35bdcfbeffff1f631db4ad523e16705fcce3697145cb7af111f8bb SHA512 f55dc8bb5a3c5d0b1016b03605f38f0dcb25adb1b615cd185bce771959ebe079213efb9ad25b46d2a21edf6c4338111eed2efd2e16ef6f1ca8e9458a6de22196 WHIRLPOOL 4a32c77494f7c2dbab4f682f2747f88ace7bedc43f38ffe8ffef84d0b3dfcd3269b1fff91c7e221070fc5bf2057bda1d60168d6dc428242904d2842193a0ab49
|
||||
DIST icedtea-bin-examples-6.1.13.5-amd64.tar.bz2 2164162 SHA256 2a4e668855f4819fa76adc482b8ff589866110f3a60158d60b9e07fa6ace5c27 SHA512 e99d4a4b59bdaba2bd7b5d9874180f18378533819dc52588e1432b1f9919cd018f1210d8733cb3048d4cdda49b9b5e6554c6e85df7f96f66190c7e459eac7674 WHIRLPOOL 865350c5932274513c2f30c10143bd89b9c5b3603e94ab84f1f29ba6ee9bb122867ecbd7593babe48e3cdd28e9625b206dbda4648526f0a1b68109d97ab2dc9d
|
||||
DIST icedtea-bin-examples-6.1.13.5-x86.tar.bz2 2131563 SHA256 0360e11f0470080887b8b43b50b785a2b1fcaf6cc085ab30b24f32020a1295a8 SHA512 028461d4364788bc3142e0649f705d78d8f5bf76ba08533b157458ab44281fb0e248a96ea01debf48843a260323198477eac9fb860fd77ed56a25a3fc8524043 WHIRLPOOL 25970a17e67d0d89e72c8297664594891b8819c588c148c8278ed3a8a924fc72ebf7a3be4936ddc034e9f700f285d51a58d0a6bc3dfc2ce5a1e1d2588ccff726
|
||||
DIST icedtea-bin-examples-6.1.13.7-amd64.tar.xz 1903880 SHA256 1bd0657d389cd046eb1d6dfab32edb66a3a18e97c8ea7d60e066cc5a48fddb3e SHA512 77892fc66c49f746d23a692bf9f6716be613111fc697cb92aef9ad12ba8cebdb32f1d434a6bcfa9237e7a382e613590dc06f8d9b6746cbf381ae8b8e9b47bda9 WHIRLPOOL 1f4d94314430ab12c0aa1cb6fd7d16ceda2a1a3e055982b590877c29d7f2c4ea94c2ebd0d8ce631b98522493a3326d68a2756a3eaa4e043c7a7e0558ae37fb15
|
||||
DIST icedtea-bin-examples-6.1.13.7-x86.tar.xz 1902248 SHA256 98efdac63222f1bffd65dc791a3bf752e10c8083d23f5d4d6a2b3c0784ba4bca SHA512 247dc6d80425af835c153bd6503e30725183a23b05f0108640040a05ca3f6d86467d174a7e92a64e4513b119040fdafc6ebcc6cffac1bc65aa778f9972f408d7 WHIRLPOOL 8eeabadbab0ad2426d6a191202991c023621f98982b87a1b62f40d2bde6282bf63d095b4c2edff27b950da846385b3cfa0917061f4ff5fab181c9b5d82d2cd0d
|
||||
DIST icedtea-bin-examples-7.2.5.3-amd64.tar.bz2 2338390 SHA256 f7bbc108c79348b89d74c23dadba514e7bfca3a4be43b5de25ee15a696503d6d SHA512 9b4a5c5d27a006bd6b3d60416423b2c6d10a5e5845f937bfe1f4a6ee36af3dfaf4eb5fe9b99e5ac5e80a953ffb6d9d0802acecc8125224d87636fe15acdcbdce WHIRLPOOL bc4e42e3c5d7e31fecddc37745a08d1eebfedae4f626f392cb4968d9b5072727728149f39355c644878d1ff4dd9105fa88201ae3a0c4e0555d934ec382497575
|
||||
DIST icedtea-bin-examples-7.2.5.3-x86.tar.bz2 2314054 SHA256 f990c36540d7ea70fd9005ae2b33708fd27d780d3f5c640543d2cfb25c2c8f9d SHA512 7a6870a7ec861bcd5cc1e4408c2bda435de98f8d80d48af9c5b2b5bc93816643e06b9881f8dc45ea342b1988956285e3232e408cc66538a8d202cbc332ca4080 WHIRLPOOL f3172cab34d85010ad2f96736db3ed0be36b02313c9b4b48eb34fb2bf4943ea1a8b25a07e58c688de109027735aa1777ab5dca8b9db54960099453a72f0d6f76
|
||||
DIST icedtea-bin-examples-7.2.5.5-amd64.tar.xz 1795668 SHA256 373db6d3bc88e8572a81b03e2dc5b539acb2a48347f6bdc797bf59ad7330e108 SHA512 a34b979094dd337d365d089e49aa6363f201499db2eec3d46edbec2235a55e8d0f488e1329bc699ddbc32c3d11cece95c4678ef5f49d3b4e4fd8a4481739f561 WHIRLPOOL d1112d0ddac4bb329416655e5083e762cb674a5935f655dd0d7759f4950a979b441e6bf3e1be87b596bc0cdb1c226efb96fd0b78b941f53e45c8eec66355b176
|
||||
DIST icedtea-bin-examples-7.2.5.5-x86.tar.xz 1794656 SHA256 3ff68a31470260231bbf9b8a9c242705bea4303158ea5b0a739548ce2fe9702b SHA512 59819a6bdc7f74aea90f2a1c1e5714518d28fdf23b508f10fd6ad52707aea9561a4afd12997742e21583fb15008e0fb1213bc677d3930a51f9786b4a54c74f14 WHIRLPOOL dc51882d96791f4a02ee5232efe759ba2f233779765f08c275635430c60f460119e7360a4bb15f676652125c1b6257c8825b909190b51bfcc610f10401362888
|
||||
DIST icedtea-bin-src-6.1.13.5.tar.bz2 41211055 SHA256 e948d327be0bc538f59d7a66a58558ec29917184e885ab26a1fe7821378e0131 SHA512 b687f14c801acc1295514f3ae7b760ffd88501d925e231286c86fc074fae37b908fd5880c73a55da94b5b49192151355529441f54f369947198a08e58349d955 WHIRLPOOL fd81de2dabda2d39028cbc08492754876b7e3a6c8a1b5ec6465089a6cd79eff8b70b920e029eabe8f4068606f9386e48bda4f515ab7fcdad9f0542c024308d94
|
||||
DIST icedtea-bin-src-6.1.13.7.tar.xz 39750536 SHA256 4b778433141b0231da1615266566d1881bf9f1674f5f5721f669dc130710c38d SHA512 43a7baae4874681b438e477790479dbe339a88904deec6c91acf79d09fb25d562f83070e74a8691c51a28b4ebb1f3bd7c9befa52adc4785099e08b84fa8c5eb7 WHIRLPOOL 57d14e18a8365684f5d090f86709d0d3b110ad7fb506e0bae9ff796aebf110c396fa3707bddc85af32e23b004b09d9d107e99fc392a98b5046473b39068f2876
|
||||
DIST icedtea-bin-src-7.2.5.3.tar.bz2 41460889 SHA256 73038713cda893b8f8e423b799c00930f724b8a775cb7314d6d995f02d6c9781 SHA512 d4706131b79ed465ec529a8189b181646b438ade1c101c6fe881bbcca31596bc380c726b8bfda89db574365824fb2eed29bd7564310c7284c5935a7f3e2453e7 WHIRLPOOL f091515eb68539a049fb3bee69f5d1d20fa9af40f15f6f547f408551a79296e108be2815f30576a91c51b06f5754fb2337ce71f47d1138ad97245b090a96b1af
|
||||
DIST icedtea-bin-src-7.2.5.5.tar.xz 39995356 SHA256 c4f7843ffa9a401307d60b3eae192efb2792079d5d75d5954f4e03211b52f094 SHA512 7128e4255a7587d1167f6f2b1978cc0a8f6d079b2f189e5931c424c812c6c668a0afe0390cb492592c4cbf5f9375c11ed5d9ac9870161ad710ddddb7358ba60a WHIRLPOOL 607a4160d724ba38daebda75efe80aaf2ad87f534b3a9d089a43d172b7464fadee7b5e18b03eb1b84c3ec8ec14059023b75c9f16a93907a485c3af7a2cf38b2a
|
||||
|
@ -0,0 +1,144 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-bin/icedtea-bin-6.1.13.7.ebuild,v 1.1 2015/05/10 20:45:35 chewi Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit java-vm-2 prefix versionator
|
||||
|
||||
dist="http://dev.gentoo.org/~chewi/distfiles/"
|
||||
TARBALL_VERSION="${PV}"
|
||||
|
||||
DESCRIPTION="A Gentoo-made binary build of the IcedTea JDK"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="
|
||||
amd64? ( ${dist}/${PN}-core-${TARBALL_VERSION}-amd64.tar.xz )
|
||||
x86? ( ${dist}/${PN}-core-${TARBALL_VERSION}-x86.tar.xz )
|
||||
doc? ( ${dist}/${PN}-doc-${TARBALL_VERSION}.tar.xz )
|
||||
examples? (
|
||||
amd64? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-amd64.tar.xz )
|
||||
x86? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-x86.tar.xz )
|
||||
)
|
||||
source? ( ${dist}/${PN}-src-${TARBALL_VERSION}.tar.xz )"
|
||||
|
||||
LICENSE="GPL-2-with-linking-exception"
|
||||
SLOT="6"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
|
||||
IUSE="+X +alsa cjk +cups doc examples nsplugin selinux source webstart"
|
||||
REQUIRED_USE="nsplugin? ( X )"
|
||||
RESTRICT="strip"
|
||||
|
||||
# 423161
|
||||
QA_PREBUILT="opt/.*"
|
||||
|
||||
ALSA_COMMON_DEP="
|
||||
>=media-libs/alsa-lib-1.0"
|
||||
CUPS_COMMON_DEP="
|
||||
>=net-print/cups-2.0"
|
||||
X_COMMON_DEP="
|
||||
>=media-libs/freetype-2.5:2
|
||||
>=x11-libs/gtk+-2.24:2
|
||||
>=x11-libs/libX11-1.6
|
||||
>=x11-libs/libXext-1.3
|
||||
>=x11-libs/libXi-1.7
|
||||
>=x11-libs/libXrender-0.9.4
|
||||
>=x11-libs/libXtst-1.2"
|
||||
|
||||
COMMON_DEP="
|
||||
>=media-libs/giflib-4.1.6-r1
|
||||
>=media-libs/lcms-2.6:2
|
||||
media-libs/libpng:0/16
|
||||
>=sys-devel/gcc-4.8.4
|
||||
>=sys-libs/glibc-2.20
|
||||
>=sys-libs/zlib-1.2.3-r1
|
||||
virtual/jpeg:62"
|
||||
|
||||
RDEPEND="${COMMON_DEP}
|
||||
X? (
|
||||
${X_COMMON_DEP}
|
||||
media-fonts/dejavu
|
||||
cjk? (
|
||||
media-fonts/arphicfonts
|
||||
media-fonts/baekmuk-fonts
|
||||
media-fonts/lklug
|
||||
media-fonts/lohit-fonts
|
||||
media-fonts/sazanami
|
||||
)
|
||||
)
|
||||
alsa? ( ${ALSA_COMMON_DEP} )
|
||||
cups? ( ${CUPS_COMMON_DEP} )
|
||||
selinux? ( sec-policy/selinux-java )"
|
||||
|
||||
PDEPEND="webstart? ( dev-java/icedtea-web:0 )
|
||||
nsplugin? ( dev-java/icedtea-web:0[nsplugin] )"
|
||||
|
||||
src_prepare() {
|
||||
# Ensures HeadlessGraphicsEnvironment is used.
|
||||
if ! use X; then
|
||||
rm -r jre/lib/$(get_system_arch)/xawt || die
|
||||
fi
|
||||
|
||||
# Reprefixify because prefix may be different.
|
||||
sed -i 's:=/:=@GENTOO_PORTAGE_EPREFIX@/:' jre/lib/fontconfig.Gentoo.properties || die
|
||||
eprefixify jre/lib/fontconfig.Gentoo.properties
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/opt/${P}"
|
||||
local ddest="${ED}${dest#/}"
|
||||
dodir "${dest}"
|
||||
|
||||
# doins doesn't preserve executable bits.
|
||||
cp -pRP bin include jre lib man "${ddest}" || die
|
||||
|
||||
dodoc doc/{ASSEMBLY_EXCEPTION,AUTHORS,NEWS,README,THIRD_PARTY_README}
|
||||
use doc && dodoc -r doc/html
|
||||
|
||||
if use examples; then
|
||||
cp -pRP demo sample "${ddest}" || die
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
cp src.zip "${ddest}" || die
|
||||
fi
|
||||
|
||||
if use webstart || use nsplugin; then
|
||||
dosym /usr/libexec/icedtea-web/itweb-settings "${dest}/bin/itweb-settings"
|
||||
dosym /usr/libexec/icedtea-web/itweb-settings "${dest}/jre/bin/itweb-settings"
|
||||
fi
|
||||
if use webstart; then
|
||||
dosym /usr/libexec/icedtea-web/javaws "${dest}/bin/javaws"
|
||||
dosym /usr/libexec/icedtea-web/javaws "${dest}/jre/bin/javaws"
|
||||
fi
|
||||
|
||||
set_java_env
|
||||
java-vm_revdep-mask "${dest}"
|
||||
java-vm_sandbox-predict /proc/self/coredump_filter
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<=dev-java/icedtea-bin-1.10.4:${SLOT}"; then
|
||||
# portage would preserve the symlink otherwise, related to bug #384397
|
||||
rm -f "${EROOT}/usr/lib/jvm/icedtea6-bin"
|
||||
elog "To unify the layout and simplify scripts, the identifier of Icedtea-bin-6*"
|
||||
elog "has changed from 'icedtea6-bin' to 'icedtea-bin-6' starting from version 6.1.10.4"
|
||||
elog "If you had icedtea6-bin as system VM, the change should be automatic, however"
|
||||
elog "build VM settings in /etc/java-config-2/build/jdk.conf are not changed"
|
||||
elog "and the same holds for any user VM settings. Sorry for the inconvenience."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use nsplugin; then
|
||||
if [[ -n ${REPLACING_VERSIONS} ]] && ! version_is_at_least 6.1.13.3-r1 ${REPLACING_VERSIONS} ]]; then
|
||||
elog "The nsplugin for icedtea-bin is now provided by the icedtea-web package"
|
||||
elog "If you had icedtea-bin-6 nsplugin selected, you may see a related error below"
|
||||
elog "The switch should complete properly during the subsequent installation of icedtea-web"
|
||||
elog "Afterwards you may verify the output of 'eselect java-nsplugin list' and adjust accordingly'"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Set as default VM if none exists
|
||||
java-vm-2_pkg_postinst
|
||||
}
|
@ -0,0 +1,159 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-bin/icedtea-bin-7.2.5.5.ebuild,v 1.1 2015/05/10 20:45:35 chewi Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit java-vm-2 multilib prefix versionator
|
||||
|
||||
dist="http://dev.gentoo.org/~chewi/distfiles/"
|
||||
TARBALL_VERSION="${PV}"
|
||||
|
||||
DESCRIPTION="A Gentoo-made binary build of the IcedTea JDK"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="
|
||||
amd64? ( ${dist}/${PN}-core-${TARBALL_VERSION}-amd64.tar.xz )
|
||||
x86? ( ${dist}/${PN}-core-${TARBALL_VERSION}-x86.tar.xz )
|
||||
doc? ( ${dist}/${PN}-doc-${TARBALL_VERSION}.tar.xz )
|
||||
examples? (
|
||||
amd64? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-amd64.tar.xz )
|
||||
x86? ( ${dist}/${PN}-examples-${TARBALL_VERSION}-x86.tar.xz )
|
||||
)
|
||||
source? ( ${dist}/${PN}-src-${TARBALL_VERSION}.tar.xz )"
|
||||
|
||||
LICENSE="GPL-2-with-linking-exception"
|
||||
SLOT="7"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
|
||||
IUSE="+X +alsa cjk +cups doc examples nsplugin pulseaudio selinux source webstart"
|
||||
REQUIRED_USE="nsplugin? ( X )"
|
||||
RESTRICT="strip"
|
||||
|
||||
# 423161
|
||||
QA_PREBUILT="opt/.*"
|
||||
|
||||
ALSA_COMMON_DEP="
|
||||
>=media-libs/alsa-lib-1.0"
|
||||
CUPS_COMMON_DEP="
|
||||
>=net-print/cups-2.0"
|
||||
X_COMMON_DEP="
|
||||
>=dev-libs/atk-2.12
|
||||
>=dev-libs/glib-2.40:2
|
||||
>=media-libs/fontconfig-2.11:1.0
|
||||
>=media-libs/freetype-2.5.3:2
|
||||
>=x11-libs/cairo-1.12
|
||||
x11-libs/gdk-pixbuf:2
|
||||
>=x11-libs/gtk+-2.24:2
|
||||
>=x11-libs/libX11-1.6
|
||||
>=x11-libs/libXext-1.3
|
||||
>=x11-libs/libXi-1.7
|
||||
>=x11-libs/libXrender-0.9.4
|
||||
>=x11-libs/libXtst-1.2
|
||||
>=x11-libs/pango-1.36"
|
||||
|
||||
COMMON_DEP="
|
||||
>=media-libs/giflib-4.1.6-r1
|
||||
>=media-libs/lcms-2.6:2
|
||||
media-libs/libpng:0/16
|
||||
>=sys-devel/gcc-4.8.4
|
||||
>=sys-libs/glibc-2.20
|
||||
>=sys-libs/zlib-1.2.3-r1
|
||||
virtual/jpeg:62"
|
||||
|
||||
# cups is needed for X. #390945 #390975
|
||||
# gsettings-desktop-schemas is needed for native proxy support. #431972
|
||||
RDEPEND="${COMMON_DEP}
|
||||
X? (
|
||||
${CUPS_COMMON_DEP}
|
||||
${X_COMMON_DEP}
|
||||
media-fonts/dejavu
|
||||
cjk? (
|
||||
media-fonts/arphicfonts
|
||||
media-fonts/baekmuk-fonts
|
||||
media-fonts/lklug
|
||||
media-fonts/lohit-fonts
|
||||
media-fonts/sazanami
|
||||
)
|
||||
)
|
||||
alsa? ( ${ALSA_COMMON_DEP} )
|
||||
cups? ( ${CUPS_COMMON_DEP} )
|
||||
selinux? ( sec-policy/selinux-java )
|
||||
>=gnome-base/gsettings-desktop-schemas-3.12.2"
|
||||
|
||||
DEPEND="dev-util/patchelf"
|
||||
|
||||
PDEPEND="webstart? ( dev-java/icedtea-web:0[icedtea7] )
|
||||
nsplugin? ( dev-java/icedtea-web:0[icedtea7,nsplugin] )
|
||||
pulseaudio? ( dev-java/icedtea-sound )"
|
||||
|
||||
src_prepare() {
|
||||
# Ensures HeadlessGraphicsEnvironment is used.
|
||||
if ! use X; then
|
||||
rm -r jre/lib/$(get_system_arch)/xawt || die
|
||||
fi
|
||||
|
||||
# Reprefixify because prefix may be different.
|
||||
sed -i 's:=/:=@GENTOO_PORTAGE_EPREFIX@/:' jre/lib/fontconfig.Gentoo.properties || die
|
||||
eprefixify jre/lib/fontconfig.Gentoo.properties
|
||||
|
||||
# Fix the RPATHs.
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=543658#c3
|
||||
local old="/usr/$(get_libdir)/icedtea${SLOT}"
|
||||
local new="${EPREFIX}/opt/${P}"
|
||||
local elf rpath
|
||||
|
||||
for elf in $(find -type f -executable ! -name "*.cgi" || die); do
|
||||
rpath=$(patchelf --print-rpath "${elf}" || die "patchelf ${elf}")
|
||||
|
||||
if [[ -n "${rpath}" ]]; then
|
||||
patchelf --set-rpath "${rpath//${old}/${new}}" "${elf}" || die "patchelf ${elf}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/opt/${P}"
|
||||
local ddest="${ED}${dest#/}"
|
||||
dodir "${dest}"
|
||||
|
||||
# doins doesn't preserve executable bits.
|
||||
cp -pRP bin include jre lib man "${ddest}" || die
|
||||
|
||||
dodoc doc/{ASSEMBLY_EXCEPTION,AUTHORS,NEWS,README,THIRD_PARTY_README}
|
||||
use doc && dodoc -r doc/html
|
||||
|
||||
if use examples; then
|
||||
cp -pRP demo sample "${ddest}" || die
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
cp src.zip "${ddest}" || die
|
||||
fi
|
||||
|
||||
if use webstart || use nsplugin; then
|
||||
dosym /usr/libexec/icedtea-web/itweb-settings "${dest}/bin/itweb-settings"
|
||||
dosym /usr/libexec/icedtea-web/itweb-settings "${dest}/jre/bin/itweb-settings"
|
||||
fi
|
||||
if use webstart; then
|
||||
dosym /usr/libexec/icedtea-web/javaws "${dest}/bin/javaws"
|
||||
dosym /usr/libexec/icedtea-web/javaws "${dest}/jre/bin/javaws"
|
||||
fi
|
||||
|
||||
set_java_env
|
||||
java-vm_revdep-mask "${dest}"
|
||||
java-vm_sandbox-predict /proc/self/coredump_filter
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use nsplugin; then
|
||||
if [[ -n ${REPLACING_VERSIONS} ]] && ! version_is_at_least 7.2.4.3 ${REPLACING_VERSIONS} ]]; then
|
||||
elog "The nsplugin for icedtea-bin is now provided by the icedtea-web package"
|
||||
elog "If you had icedtea-bin-7 nsplugin selected, you may see a related error below"
|
||||
elog "The switch should complete properly during the subsequent installation of icedtea-web"
|
||||
elog "Afterwards you may verify the output of 'eselect java-nsplugin list' and adjust accordingly'"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Set as default VM if none exists
|
||||
java-vm-2_pkg_postinst
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST icedtea-web-1.3.2.tar.gz 1038957 SHA256 bd25d9a9565271b716e54a19ffe8e34ab339666f72c99da743155320b9ac27f0 SHA512 5bf09819c7ce855c5c05b27589afbef14a209174d9de2e7ad6d1a7c7ee90e98efe5498718becca046c9aca8525d5fea9636819ccc4b9b18f38f15103d66bcd16 WHIRLPOOL 43bb9f1532305c61c456d2f7a81f93f73e4f560bafdeada5d731627fd6c8d2435718d2571e47fa05e8420d306627f7396f59f6dd10961a88df03491032a37817
|
||||
DIST icedtea-web-1.4.2.tar.gz 1393866 SHA256 d48de5fdbf0eb8983b857ebc5368f3392916b4a3e93e1c2bee6d3ad95924dc2d SHA512 473f0eb1c28aba383911861f65064786bee547dc05e7e06135a442296cc62878c59149c6dfaa4d09f372ce4d4a3b764e0953c7e9318faebc90fe678dc3fe00d7 WHIRLPOOL 735aa38e469a4d406cf5fe9f9b02cefe2d849b7393611ad2d1a64d71044d8ed2610336c57f018082e4170be121716e6890cc8548b4ff649068de472a7776c23b
|
||||
DIST icedtea-web-1.5.1.tar.gz 1616344 SHA256 03f16356fa84564f1ae32286e0a090a464c87ec123b40602dcea925757900195 SHA512 ef47eecbbb52fcb44ec9585db4c4428025201b04968dfcfc26061160d80b29ee649752f21ffe891cfa5c6bf775d0bc1dbb7dbd9a79794e052bb8b865fa94d039 WHIRLPOOL 955b5cc565fa62d2f5eb85a3253751cd284a4cb926619afe60920123878281a77f348a7c26cdafea2c6d4cd760fe4d399041b665b86ff1bbaf441e25f9f18379
|
||||
|
@ -1,24 +0,0 @@
|
||||
From 996cea18a7710aadd006fff772e8a64759ba178d Mon Sep 17 00:00:00 2001
|
||||
From: Ralph Sennhauser <sera@gentoo.org>
|
||||
Date: Sun, 20 Oct 2013 16:51:33 +0200
|
||||
Subject: [PATCH] Fix parallel install. BGO 440906
|
||||
|
||||
---
|
||||
Makefile.am | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 9d13451..918d2eb 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -246,6 +246,7 @@ endif
|
||||
install-data-local:
|
||||
${mkinstalldirs} -d $(DESTDIR)$(mandir)/man1
|
||||
${INSTALL_DATA} $(NETX_SRCDIR)/javaws.1 $(DESTDIR)$(mandir)/man1
|
||||
+ ${mkinstalldirs} $(DESTDIR)$(datarootdir)/$(PACKAGE_NAME)/
|
||||
${INSTALL_DATA} $(NETX_RESOURCE_DIR)/about.jnlp $(DESTDIR)$(datarootdir)/$(PACKAGE_NAME)
|
||||
if ENABLE_DOCS
|
||||
${mkinstalldirs} $(DESTDIR)$(htmldir)
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- Makefile.am.orig 2011-09-18 23:35:31.396740781 +0200
|
||||
+++ Makefile.am 2011-09-18 23:35:44.284392366 +0200
|
||||
@@ -216,7 +216,7 @@
|
||||
|
||||
$(PLUGIN_DIR)/IcedTeaPlugin.so: $(addprefix $(PLUGIN_DIR)/,$(PLUGIN_OBJECTS))
|
||||
cd $(PLUGIN_DIR) && \
|
||||
- $(CXX) $(CXXFLAGS) \
|
||||
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) \
|
||||
$(PLUGIN_OBJECTS) \
|
||||
$(GLIB_LIBS) \
|
||||
$(GTK_LIBS) \
|
@ -1,56 +0,0 @@
|
||||
diff -r 3c5e0952d876 -r e5e87b61a02d netx/net/sourceforge/jnlp/runtime/Boot.java
|
||||
--- a/netx/net/sourceforge/jnlp/runtime/Boot.java Thu Jun 06 17:09:54 2013 +0200
|
||||
+++ b/netx/net/sourceforge/jnlp/runtime/Boot.java Thu Jun 20 15:27:22 2013 +0200
|
||||
@@ -35,6 +35,8 @@
|
||||
import net.sourceforge.jnlp.cache.UpdatePolicy;
|
||||
import net.sourceforge.jnlp.security.viewer.CertificateViewer;
|
||||
import net.sourceforge.jnlp.services.ServiceUtil;
|
||||
+import sun.awt.AppContext;
|
||||
+import sun.awt.SunToolkit;
|
||||
|
||||
/**
|
||||
* This is the main entry point for the JNLP client. The main
|
||||
@@ -113,6 +115,9 @@
|
||||
* Launch the JNLP file specified by the command-line arguments.
|
||||
*/
|
||||
public static void main(String[] argsIn) {
|
||||
+ if (AppContext.getAppContext() == null) {
|
||||
+ SunToolkit.createNewAppContext();
|
||||
+ }
|
||||
args = argsIn;
|
||||
|
||||
if (null != getOption("-viewer")) {
|
||||
diff -r 3c5e0952d876 -r e5e87b61a02d netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java
|
||||
--- a/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java Thu Jun 06 17:09:54 2013 +0200
|
||||
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java Thu Jun 20 15:27:22 2013 +0200
|
||||
@@ -233,7 +233,7 @@
|
||||
try {
|
||||
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
||||
} catch (Exception e) {
|
||||
- // ignore it
|
||||
+ e.printStackTrace();
|
||||
}
|
||||
|
||||
doMainAppContextHacks();
|
||||
diff -r 3c5e0952d876 -r e5e87b61a02d plugin/icedteanp/java/sun/applet/PluginMain.java
|
||||
--- a/plugin/icedteanp/java/sun/applet/PluginMain.java Thu Jun 06 17:09:54 2013 +0200
|
||||
+++ b/plugin/icedteanp/java/sun/applet/PluginMain.java Thu Jun 20 15:27:22 2013 +0200
|
||||
@@ -72,6 +72,8 @@
|
||||
import java.net.ProxySelector;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Properties;
|
||||
+import sun.awt.AppContext;
|
||||
+import sun.awt.SunToolkit;
|
||||
|
||||
import net.sourceforge.jnlp.config.DeploymentConfiguration;
|
||||
import net.sourceforge.jnlp.runtime.JNLPRuntime;
|
||||
@@ -94,6 +96,9 @@
|
||||
*/
|
||||
public static void main(String args[])
|
||||
throws IOException {
|
||||
+ if (AppContext.getAppContext() == null) {
|
||||
+ SunToolkit.createNewAppContext();
|
||||
+ }
|
||||
if (args.length != 2 || !(new File(args[0]).exists()) || !(new File(args[1]).exists())) {
|
||||
System.err.println("Invalid pipe names provided. Refusing to proceed.");
|
||||
System.exit(1);
|
@ -1,120 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.3.2-r7.ebuild,v 1.2 2014/11/01 22:05:04 caster Exp $
|
||||
# Build written by Andrew John Hughes (ahughes@redhat.com)
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools eutils java-pkg-2 java-vm-2
|
||||
|
||||
DESCRIPTION="FOSS Java browser plugin and Web Start implementation"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="http://icedtea.classpath.org/download/source/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2"
|
||||
SLOT="7"
|
||||
KEYWORDS="~amd64 ~ia64 ~x86"
|
||||
|
||||
IUSE="build doc javascript +nsplugin test"
|
||||
|
||||
COMMON_DEP="
|
||||
dev-java/icedtea:${SLOT}
|
||||
!>=dev-java/icedtea-7.2.5.3:7
|
||||
nsplugin? (
|
||||
>=dev-libs/glib-2.16
|
||||
)"
|
||||
RDEPEND="${COMMON_DEP}"
|
||||
# Need system junit 4.8+. Bug #389795
|
||||
DEPEND="${COMMON_DEP}
|
||||
virtual/pkgconfig
|
||||
javascript? ( dev-java/rhino:1.6 )
|
||||
nsplugin? ( net-misc/npapi-sdk )
|
||||
test? ( >=dev-java/junit-4.8:4 )"
|
||||
|
||||
pkg_setup() {
|
||||
JAVA_PKG_WANT_BUILD_VM="icedtea-${SLOT} icedtea${SLOT}"
|
||||
JAVA_PKG_WANT_SOURCE="1.6"
|
||||
JAVA_PKG_WANT_TARGET="1.6"
|
||||
|
||||
java-vm-2_pkg_setup
|
||||
java-pkg-2_pkg_setup
|
||||
|
||||
VMHANDLE="icedtea-${SLOT}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# bug #356645
|
||||
epatch "${FILESDIR}"/0002-Respect-LDFLAGS.patch
|
||||
epatch "${FILESDIR}"/${P}-openjdk-build-25.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local vmhome=$(java-config -O)
|
||||
|
||||
if use build; then
|
||||
icedteadir="${ICEDTEA_BIN_DIR}"
|
||||
[[ -z ${icedteadir} ]] && die "USE=build is an internal flag and should not be enabled"
|
||||
installdir="/opt/icedtea-web-bin-${SLOT}"
|
||||
else
|
||||
icedteadir="/usr/$(get_libdir)/icedtea${SLOT}"
|
||||
installdir="/usr/$(get_libdir)/icedtea${SLOT}-web"
|
||||
[[ "${vmhome}" == "${icedteadir}" ]] \
|
||||
|| die "Unexpected install location of IcedTea ${SLOT} '${vmhome}'"
|
||||
fi
|
||||
|
||||
einfo "Installing IcedTea-Web in '${installdir}'"
|
||||
einfo "Installing IcedTea-Web for IcedTea${SLOT} in '${icedteadir}'"
|
||||
|
||||
local myconf=(
|
||||
# we need to override all *dir variables that econf sets.
|
||||
# man page (javaws) is installed directly to icedteadir because it's
|
||||
# easier than symlinking, as we don't know the suffix the man page will
|
||||
# end up compressed with, anyway
|
||||
--prefix="${installdir}"
|
||||
--mandir="${icedteadir}"/man
|
||||
--infodir="${installdir}"/share/info
|
||||
--datadir="${installdir}"/share
|
||||
--with-jdk-home="${icedteadir}"
|
||||
$(use_enable doc docs)
|
||||
$(use_enable nsplugin plugin)
|
||||
$(use_with javascript rhino)
|
||||
)
|
||||
|
||||
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# we need this to override the src_compile from java-pkg-2
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# bug #440906
|
||||
MAKEOPTS+=" -j1" default
|
||||
|
||||
if use nsplugin; then
|
||||
install_mozilla_plugin "${installdir}/$(get_libdir)/IcedTeaPlugin.so";
|
||||
fi
|
||||
|
||||
for binary in javaws itweb-settings; do
|
||||
dosym ${installdir}/bin/${binary} ${icedteadir}/bin/${binary}
|
||||
dosym ${installdir}/bin/${binary} ${icedteadir}/jre/bin/${binary}
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
java-vm_check-nsplugin
|
||||
java_mozilla_clean_
|
||||
|
||||
if use nsplugin; then
|
||||
elog "The icedtea browser plugin (NPPlugin) can be enabled using eselect java-nsplugin"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
# override the java-vm-2 eclass check for removing a system VM, as it
|
||||
# doesn't make sense here.
|
||||
:;
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.3.2.ebuild,v 1.2 2014/11/01 18:01:59 caster Exp $
|
||||
# Build written by Andrew John Hughes (ahughes@redhat.com)
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools eutils java-pkg-2 java-vm-2
|
||||
|
||||
DESCRIPTION="FOSS Java browser plugin and Web Start implementation"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="http://icedtea.classpath.org/download/source/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2"
|
||||
SLOT="6"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
|
||||
|
||||
IUSE="build doc javascript +nsplugin test"
|
||||
|
||||
COMMON_DEP="
|
||||
dev-java/icedtea:${SLOT}
|
||||
!>=dev-java/icedtea-6.1.13.5-r1:6
|
||||
nsplugin? (
|
||||
>=dev-libs/glib-2.16
|
||||
)"
|
||||
RDEPEND="${COMMON_DEP}"
|
||||
# Need system junit 4.8+. Bug #389795
|
||||
DEPEND="${COMMON_DEP}
|
||||
virtual/pkgconfig
|
||||
javascript? ( dev-java/rhino:1.6 )
|
||||
nsplugin? ( net-misc/npapi-sdk )
|
||||
test? ( >=dev-java/junit-4.8:4 )"
|
||||
|
||||
pkg_setup() {
|
||||
JAVA_PKG_WANT_BUILD_VM="icedtea-${SLOT} icedtea${SLOT}"
|
||||
JAVA_PKG_WANT_SOURCE="1.6"
|
||||
JAVA_PKG_WANT_TARGET="1.6"
|
||||
|
||||
java-vm-2_pkg_setup
|
||||
java-pkg-2_pkg_setup
|
||||
|
||||
VMHANDLE="icedtea-${SLOT}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# bug #356645
|
||||
epatch "${FILESDIR}"/0002-Respect-LDFLAGS.patch
|
||||
epatch "${FILESDIR}"/${P}-openjdk-build-25.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local vmhome=$(java-config -O)
|
||||
|
||||
if use build; then
|
||||
icedteadir="${ICEDTEA_BIN_DIR}"
|
||||
[[ -z ${icedteadir} ]] && die "USE=build is an internal flag and should not be enabled"
|
||||
installdir="/opt/icedtea-web-bin-${SLOT}"
|
||||
else
|
||||
icedteadir="/usr/$(get_libdir)/icedtea${SLOT}"
|
||||
installdir="/usr/$(get_libdir)/icedtea${SLOT}-web"
|
||||
[[ "${vmhome}" == "${icedteadir}" ]] \
|
||||
|| die "Unexpected install location of IcedTea ${SLOT} '${vmhome}'"
|
||||
fi
|
||||
|
||||
einfo "Installing IcedTea-Web in '${installdir}'"
|
||||
einfo "Installing IcedTea-Web for IcedTea${SLOT} in '${icedteadir}'"
|
||||
|
||||
local myconf=(
|
||||
# we need to override all *dir variables that econf sets.
|
||||
# man page (javaws) is installed directly to icedteadir because it's
|
||||
# easier than symlinking, as we don't know the suffix the man page will
|
||||
# end up compressed with, anyway
|
||||
--prefix="${installdir}"
|
||||
--mandir="${icedteadir}"/man
|
||||
--infodir="${installdir}"/share/info
|
||||
--datadir="${installdir}"/share
|
||||
--with-jdk-home="${icedteadir}"
|
||||
$(use_enable doc docs)
|
||||
$(use_enable nsplugin plugin)
|
||||
$(use_with javascript rhino)
|
||||
)
|
||||
|
||||
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# we need this to override the src_compile from java-pkg-2
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# bug #440906
|
||||
MAKEOPTS+=" -j1" default
|
||||
|
||||
if use nsplugin; then
|
||||
install_mozilla_plugin "${installdir}/$(get_libdir)/IcedTeaPlugin.so";
|
||||
fi
|
||||
|
||||
for binary in javaws itweb-settings; do
|
||||
dosym ${installdir}/bin/${binary} ${icedteadir}/bin/${binary}
|
||||
dosym ${installdir}/bin/${binary} ${icedteadir}/jre/bin/${binary}
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
java-vm_check-nsplugin
|
||||
java_mozilla_clean_
|
||||
|
||||
if use nsplugin; then
|
||||
elog "The icedtea browser plugin (NPPlugin) can be enabled using eselect java-nsplugin"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
# override the java-vm-2 eclass check for removing a system VM, as it
|
||||
# doesn't make sense here.
|
||||
:;
|
||||
}
|
@ -1,107 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.4.2-r1.ebuild,v 1.3 2015/03/31 18:53:10 ulm Exp $
|
||||
# Build written by Andrew John Hughes (ahughes@redhat.com)
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils readme.gentoo java-pkg-2 java-vm-2
|
||||
|
||||
DESCRIPTION="FOSS Java browser plugin and Web Start implementation"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="http://icedtea.classpath.org/download/source/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="doc +icedtea7 javascript +nsplugin test"
|
||||
|
||||
COMMON_DEP="
|
||||
icedtea7? ( || (
|
||||
dev-java/icedtea:7 dev-java/icedtea-bin:7
|
||||
) )
|
||||
!icedtea7? ( || (
|
||||
dev-java/icedtea:7 dev-java/icedtea-bin:7
|
||||
dev-java/icedtea:6 dev-java/icedtea-bin:6
|
||||
) )
|
||||
app-eselect/eselect-java
|
||||
nsplugin? (
|
||||
>=dev-libs/glib-2.16
|
||||
)"
|
||||
RDEPEND="${COMMON_DEP}"
|
||||
# Need system junit 4.8+. Bug #389795
|
||||
DEPEND="${COMMON_DEP}
|
||||
virtual/pkgconfig
|
||||
app-arch/zip
|
||||
javascript? ( dev-java/rhino:1.6 )
|
||||
nsplugin? ( net-misc/npapi-sdk )
|
||||
test? ( >=dev-java/junit-4.8:4 )"
|
||||
|
||||
# http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-December/011221.html
|
||||
pkg_setup() {
|
||||
JAVA_PKG_WANT_BUILD_VM="icedtea-7 icedtea-bin-7"
|
||||
if ! use icedtea7; then
|
||||
JAVA_PKG_WANT_BUILD_VM="${JAVA_PKG_WANT_BUILD_VM} icedtea-6 icedtea-bin-6"
|
||||
fi
|
||||
JAVA_PKG_WANT_SOURCE="1.6"
|
||||
JAVA_PKG_WANT_TARGET="1.6"
|
||||
|
||||
java-pkg-2_pkg_setup
|
||||
java-vm-2_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/0001-Fix-parallel-install.-BGO-440906.patch
|
||||
epatch "${FILESDIR}"/0002-Respect-LDFLAGS.patch # bug #356645
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local config=(
|
||||
# javaws is managed by eselect java-vm and symlinked to by icedtea so
|
||||
# move it out of the way and symlink itweb-settings back to bin
|
||||
--bindir="${EPREFIX}"/usr/libexec/${PN}
|
||||
--with-jdk-home="${JAVA_HOME}"
|
||||
$(use_enable doc docs)
|
||||
$(use_enable nsplugin plugin)
|
||||
$(use_with javascript rhino)
|
||||
)
|
||||
|
||||
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
|
||||
econf "${config[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use nsplugin; then
|
||||
install_mozilla_plugin "/usr/$(get_libdir)/IcedTeaPlugin.so"
|
||||
fi
|
||||
|
||||
mkdir -p "${ED}"/usr/bin || die
|
||||
dosym /usr/libexec/${PN}/itweb-settings /usr/bin/itweb-settings || die
|
||||
|
||||
# Should we patch system default lookup instead?
|
||||
mkdir -p "${ED}"/etc/.java/deployment/ || die
|
||||
echo "deployment.jre.dir=/etc/java-config-2/current-icedtea-web-vm" \
|
||||
> "${ED}"/etc/.java/deployment/deployment.properties || die
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
VMHANDLE="icedtea-web@${GENTOO_VM}" java-vm_check-nsplugin
|
||||
java_mozilla_clean_
|
||||
readme.gentoo_print_elog
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
# override the java-vm-2 eclass check for removing a system VM, as it
|
||||
# doesn't make sense here.
|
||||
:;
|
||||
}
|
@ -1,100 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea-web/icedtea-web-1.4.2.ebuild,v 1.5 2015/03/31 18:53:10 ulm Exp $
|
||||
# Build written by Andrew John Hughes (ahughes@redhat.com)
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils readme.gentoo java-pkg-2 java-vm-2
|
||||
|
||||
DESCRIPTION="FOSS Java browser plugin and Web Start implementation"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="http://icedtea.classpath.org/download/source/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 GPL-2-with-linking-exception LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
IUSE="doc javascript +nsplugin test"
|
||||
|
||||
COMMON_DEP="
|
||||
|| (
|
||||
dev-java/icedtea:7 dev-java/icedtea-bin:7
|
||||
dev-java/icedtea:6 dev-java/icedtea-bin:6
|
||||
)
|
||||
app-eselect/eselect-java
|
||||
nsplugin? (
|
||||
>=dev-libs/glib-2.16
|
||||
)"
|
||||
RDEPEND="${COMMON_DEP}"
|
||||
# Need system junit 4.8+. Bug #389795
|
||||
DEPEND="${COMMON_DEP}
|
||||
virtual/pkgconfig
|
||||
javascript? ( dev-java/rhino:1.6 )
|
||||
nsplugin? ( net-misc/npapi-sdk )
|
||||
test? ( >=dev-java/junit-4.8:4 )"
|
||||
|
||||
# http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-December/011221.html
|
||||
pkg_setup() {
|
||||
JAVA_PKG_WANT_BUILD_VM="icedtea-7 icedtea-bin-7 icedtea-6 icedtea-bin-6"
|
||||
JAVA_PKG_WANT_SOURCE="1.6"
|
||||
JAVA_PKG_WANT_TARGET="1.6"
|
||||
|
||||
java-pkg-2_pkg_setup
|
||||
java-vm-2_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/0001-Fix-parallel-install.-BGO-440906.patch
|
||||
epatch "${FILESDIR}"/0002-Respect-LDFLAGS.patch # bug #356645
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local config=(
|
||||
# javaws is managed by eselect java-vm and symlinked to by icedtea so
|
||||
# move it out of the way and symlink itweb-settings back to bin
|
||||
--bindir="${EPREFIX}"/usr/libexec/${PN}
|
||||
--with-jdk-home="${JAVA_HOME}"
|
||||
$(use_enable doc docs)
|
||||
$(use_enable nsplugin plugin)
|
||||
$(use_with javascript rhino)
|
||||
)
|
||||
|
||||
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
|
||||
econf "${config[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use nsplugin; then
|
||||
install_mozilla_plugin "/usr/$(get_libdir)/IcedTeaPlugin.so"
|
||||
fi
|
||||
|
||||
mkdir -p "${ED}"/usr/bin || die
|
||||
dosym /usr/libexec/${PN}/itweb-settings /usr/bin/itweb-settings || die
|
||||
|
||||
# Should we patch system default lookup instead?
|
||||
mkdir -p "${ED}"/etc/.java/deployment/ || die
|
||||
echo "deployment.jre.dir=/etc/java-config-2/current-icedtea-web-vm" \
|
||||
> "${ED}"/etc/.java/deployment/deployment.properties || die
|
||||
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
VMHANDLE="icedtea-web@${GENTOO_VM}" java-vm_check-nsplugin
|
||||
java_mozilla_clean_
|
||||
readme.gentoo_print_elog
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
# override the java-vm-2 eclass check for removing a system VM, as it
|
||||
# doesn't make sense here.
|
||||
:;
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST java-config-2.1.11.tar.bz2 60763 SHA256 ffc90aac716f6edc2f99f70e4947eab606e3a70dadb90328dedda16345796bbe SHA512 7a68e515f6cf15deac26c19589f9a7556084c5c29a8a65783a804f222da917f047118d2e80da93d045339549b21541a88ba9e4e97e7c9afb2238ade1c1c2d496 WHIRLPOOL 9be6a6fe87a95e4310a86d45f4798f89823fad9dd5ea35fe02c892f5400c4ba69bc6a3204dc1711f01f16166065855721c26f7eb71ebeef8243eb6f001a17305
|
||||
DIST java-config-2.1.12.tar.bz2 48925 SHA256 2bace29c276a9507260df505d27bdb9eeaac79e46a8ba615496ae91072b35460 SHA512 f694002baa5d4db3712b8ed9e8b15ba5f867159ea9d605ddaed93e7beb91fc98211c1431f6fcd4c3f10da88a396d73f2d85db0a5e4dca76f465b3a35a18f2a9d WHIRLPOOL fe117e36d5c1afb510f1ab696690ffcf4a5c601de8309c3b96e3e13ea72f9309bde371bd4a7c5b2d30464675557b5da33d7f73c5a391baaae41d342be24dcdc7
|
||||
DIST java-config-2.2.0.tar.bz2 51851 SHA256 2cc47541714975099886156838f1f2c584b65e0cbc75ba2348cb18d9dec85fb7 SHA512 a491cfe86bde8afadfc5b875740d79f9077526d8650ffb034fdad67a7ffa1b02646f67b1ef0eab7b0fe3ae57b5d767fa6a0d5593fe07416993d60588a8ed595a WHIRLPOOL 1ded227dcdd7f248f9a8335b07bf006ebfefc8368dd400558d3ed7ca14e22da83ee052fc33d65bb784c61d573fa7fae6295be4d023ad7652ed4704997260316e
|
||||
|
@ -1,22 +0,0 @@
|
||||
http://overlays.gentoo.org/proj/java/changeset/8184
|
||||
|
||||
--- src/gjl
|
||||
+++ src/gjl
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#Depreciated.
|
||||
def get_needed_target(pkg):
|
||||
- highest_target = None
|
||||
+ highest_target = ""
|
||||
needs_jdk = False
|
||||
for pkg in get_needed_packages(pkg):
|
||||
pkg_needs_jdk = False
|
||||
@@ -43,7 +43,7 @@
|
||||
return highest_target, needs_jdk
|
||||
|
||||
def get_needed_target2(pkg):
|
||||
- highest_target = None
|
||||
+ highest_target = ""
|
||||
needs_jdk = set()
|
||||
for pkg in get_needed_packages(pkg):
|
||||
target = pkg.target()
|
@ -1,37 +0,0 @@
|
||||
--- src/launcher.bash
|
||||
+++ src/launcher.bash
|
||||
@@ -6,6 +6,19 @@
|
||||
exit 1
|
||||
}
|
||||
|
||||
+# Save Python-specific variables for support for Jython
|
||||
+# ---------------------
|
||||
+_EPYTHON="${EPYTHON}"
|
||||
+_GENTOO_PYTHON_PROCESS_NAME="${GENTOO_PYTHON_PROCESS_NAME}"
|
||||
+_GENTOO_PYTHON_WRAPPER_SCRIPT_PATH="${GENTOO_PYTHON_WRAPPER_SCRIPT_PATH}"
|
||||
+_GENTOO_PYTHON_TARGET_SCRIPT_PATH="${GENTOO_PYTHON_TARGET_SCRIPT_PATH}"
|
||||
+_GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION="${GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION}"
|
||||
+unset EPYTHON
|
||||
+unset GENTOO_PYTHON_PROCESS_NAME
|
||||
+unset GENTOO_PYTHON_WRAPPER_SCRIPT_PATH
|
||||
+unset GENTOO_PYTHON_TARGET_SCRIPT_PATH
|
||||
+unset GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION
|
||||
+
|
||||
# Source package env
|
||||
# ---------------------
|
||||
gjl_user_env="${HOME}/.gentoo/java-config-2/launcher.d/${gjl_package}"
|
||||
@@ -54,6 +67,14 @@
|
||||
abort "Dont know what to run :(("
|
||||
fi
|
||||
|
||||
+# Restore Python-specific variables for support for Jython
|
||||
+# ---------------------
|
||||
+[[ -n ${_EPYTHON} ]] && export EPYTHON="${_EPYTHON}"
|
||||
+[[ -n ${_GENTOO_PYTHON_PROCESS_NAME} ]] && export GENTOO_PYTHON_PROCESS_NAME="${_GENTOO_PYTHON_PROCESS_NAME}"
|
||||
+[[ -n ${_GENTOO_PYTHON_WRAPPER_SCRIPT_PATH} ]] && export GENTOO_PYTHON_WRAPPER_SCRIPT_PATH="${_GENTOO_PYTHON_WRAPPER_SCRIPT_PATH}"
|
||||
+[[ -n ${_GENTOO_PYTHON_TARGET_SCRIPT_PATH} ]] && export GENTOO_PYTHON_TARGET_SCRIPT_PATH="${_GENTOO_PYTHON_TARGET_SCRIPT_PATH}"
|
||||
+[[ -n ${_GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION} ]] && export GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION="${_GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION}"
|
||||
+
|
||||
# Run it
|
||||
# --------
|
||||
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/java-config-2.1.11.ebuild,v 1.14 2015/03/31 18:55:04 ulm Exp $
|
||||
|
||||
EAPI="2"
|
||||
PYTHON_DEPEND="*:2.6"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit fdo-mime gnome2-utils distutils eutils
|
||||
|
||||
DESCRIPTION="Java environment configuration tool"
|
||||
HOMEPAGE="http://www.gentoo.org/proj/en/java/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="2"
|
||||
KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=">=dev-java/java-config-wrapper-0.15
|
||||
!sys-apps/baselayout-java
|
||||
!app-eselect/eselect-java"
|
||||
# Tests fail when java-config isn't already installed.
|
||||
RESTRICT="test"
|
||||
RESTRICT_PYTHON_ABIS="2.4 2.5 *-jython"
|
||||
|
||||
PYTHON_MODNAME="java_config_2"
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" src/run-test-suite.py
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
insinto /usr/share/java-config-2/config/
|
||||
newins config/jdk-defaults-${ARCH}.conf jdk-defaults.conf || die "arch config not found"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
distutils_pkg_postrm
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/java-config/java-config-2.1.12-r1.ebuild,v 1.11 2015/04/08 18:09:20 mgorny Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
# jython depends on java-config, so don't add it or things will breake.
|
||||
PYTHON_COMPAT=( python{2_7,3_3} )
|
||||
|
||||
inherit distutils-r1 eutils fdo-mime gnome2-utils
|
||||
|
||||
DESCRIPTION="Java environment configuration tool"
|
||||
HOMEPAGE="http://www.gentoo.org/proj/en/java/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="2"
|
||||
KEYWORDS="amd64 ~arm ~ia64 ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=">=dev-java/java-config-wrapper-0.15
|
||||
!sys-apps/baselayout-java
|
||||
!app-eselect/eselect-java"
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=315229
|
||||
PDEPEND=">=virtual/jre-1.5"
|
||||
# Tests fail when java-config isn't already installed.
|
||||
RESTRICT="test"
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" src/run-test-suite.py || die
|
||||
"${PYTHON}" src/run-test-suite2.py || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
insinto /usr/share/java-config-2/config/
|
||||
newins config/jdk-defaults-${ARCH}.conf jdk-defaults.conf
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,134 @@
|
||||
diff -up gdl-0.9.5/CMakeLists.txt.plplot gdl-0.9.5/CMakeLists.txt
|
||||
--- gdl-0.9.5/CMakeLists.txt.plplot 2014-10-07 07:21:14.000000000 -0600
|
||||
+++ gdl-0.9.5/CMakeLists.txt 2015-04-24 14:29:15.588067694 -0600
|
||||
@@ -386,7 +386,7 @@ if(PLPLOT_FOUND)
|
||||
#}" HAVE_PLPLOT_WIDTH)
|
||||
|
||||
#give it a 2nd try...
|
||||
- check_library_exists("${PLPLOT_LIBRARIES}" c_plwidth "" HAVE_PLPLOT_WIDTH)
|
||||
+ check_library_exists("${PLPLOT_LIBRARIES}" c_plwidth "" HAVE_PLPLOT_WIDTH)
|
||||
if(HAVE_PLPLOT_WIDTH)
|
||||
set(HAVE_PLPLOT_WIDTH 1)
|
||||
endif(HAVE_PLPLOT_WIDTH)
|
||||
@@ -402,6 +402,11 @@ if(PLPLOT_FOUND)
|
||||
else(PLPLOT_HAS_LEGEND)
|
||||
message(STATUS "Your plplot lib is too old for some gdl functions, please upgrade.")
|
||||
endif(PLPLOT_HAS_LEGEND)
|
||||
+ check_cxx_source_compiles("#include <plplot/plstream.h>
|
||||
+ main(){PLINT n; PLFLT x,y;plcallback::fill(n,&x,&y);}" PLPLOT_HAS_PLCALLBACK)
|
||||
+ if(PLPLOT_HAS_PLCALLBACK)
|
||||
+ set(PLPLOT_HAS_PLCALLBACK 1)
|
||||
+ endif(PLPLOT_HAS_PLCALLBACK)
|
||||
endif(PLPLOT_FOUND)
|
||||
|
||||
# GRAPHICSMAGICK is an alternative to the classical ImageMagick Lib.
|
||||
diff -up gdl-0.9.5/CMakeModules/FindPlplot.cmake.plplot gdl-0.9.5/CMakeModules/FindPlplot.cmake
|
||||
--- gdl-0.9.5/CMakeModules/FindPlplot.cmake.plplot 2011-08-19 04:18:51.000000000 -0600
|
||||
+++ gdl-0.9.5/CMakeModules/FindPlplot.cmake 2015-04-24 13:54:56.915632230 -0600
|
||||
@@ -9,8 +9,12 @@
|
||||
#
|
||||
|
||||
|
||||
-find_library(PLPLOT_LIBRARY NAMES plplotd)
|
||||
-find_library(PLPLOTCXX_LIBRARY NAMES plplotcxxd)
|
||||
+find_library(PLPLOT_LIBRARY NAMES plplot)
|
||||
+find_library(PLPLOTCXX_LIBRARY NAMES plplotcxx)
|
||||
+if(NOT PLPLOT_LIBRARY)
|
||||
+ find_library(PLPLOT_LIBRARY NAMES plplotd)
|
||||
+ find_library(PLPLOTCXX_LIBRARY NAMES plplotcxxd)
|
||||
+endif(NOT PLPLOT_LIBRARY)
|
||||
set(PLPLOT_LIBRARIES ${PLPLOT_LIBRARY} ${PLPLOTCXX_LIBRARY})
|
||||
find_path(PLPLOT_INCLUDE_DIR NAMES plplot/plplot.h)
|
||||
include(FindPackageHandleStandardArgs)
|
||||
diff -up gdl-0.9.5/config.h.cmake.plplot gdl-0.9.5/config.h.cmake
|
||||
--- gdl-0.9.5/config.h.cmake.plplot 2014-08-30 14:13:43.000000000 -0600
|
||||
+++ gdl-0.9.5/config.h.cmake 2015-04-24 13:39:22.259704608 -0600
|
||||
@@ -31,6 +31,12 @@
|
||||
#cmakedefine HAVE_PLPLOT_WIDTH 1
|
||||
#cmakedefine PLPLOT_PRIVATE_NOT_HIDDEN 1
|
||||
#cmakedefine PLPLOT_HAS_LEGEND
|
||||
+#cmakedefine PLPLOT_HAS_PLCALLBACK
|
||||
+#ifdef PLPLOT_HAS_PLCALLBACK
|
||||
+#define PLCALLBACK plcallback
|
||||
+#else
|
||||
+#define PLCALLBACK plstream
|
||||
+#endif
|
||||
#ifndef HAVE_STDINT_H
|
||||
#cmakedefine HAVE_STDINT_H 1
|
||||
#endif
|
||||
diff -up gdl-0.9.5/src/plotting_contour.cpp.plplot gdl-0.9.5/src/plotting_contour.cpp
|
||||
--- gdl-0.9.5/src/plotting_contour.cpp.plplot 2014-09-29 11:03:12.000000000 -0600
|
||||
+++ gdl-0.9.5/src/plotting_contour.cpp 2015-04-24 13:39:22.267705191 -0600
|
||||
@@ -789,8 +789,8 @@ namespace lib
|
||||
1, value,
|
||||
static_cast<PLFLT>(( *thick )[i%thick->N_Elements()]),
|
||||
0,0,0,0,
|
||||
- (plstream::fill), (oneDim),
|
||||
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
+ (PLCALLBACK::fill), (oneDim),
|
||||
+ (oneDim)?(PLCALLBACK::tr1):(PLCALLBACK::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
}
|
||||
actStream->psty(0);
|
||||
// if (docolors) gdlSetGraphicsForegroundColorFromKw( e, actStream );
|
||||
@@ -808,8 +808,8 @@ namespace lib
|
||||
clevel[i], maxmax,
|
||||
1,value,
|
||||
0,0,0,0,0,
|
||||
- plstream::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc
|
||||
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
+ PLCALLBACK::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc
|
||||
+ (oneDim)?(PLCALLBACK::tr1):(PLCALLBACK::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
}
|
||||
} else { //every other case of fill
|
||||
// note that plshades is not protected against 1 level (color formula is
|
||||
@@ -818,8 +818,8 @@ namespace lib
|
||||
if (nlevel>2 && !(docolors)) { //acceleration with shades when no c_colors are given. use continuous table1, decomposed or not.
|
||||
//acceleration is most sensible when a (x,y) transform (rotate, stretch) is in place since plplot does not recompute the map.
|
||||
actStream->shades( map, xEl, yEl, isLog?doIt:NULL, xStart, xEnd, yStart, yEnd,
|
||||
- clevel, nlevel, 1, 0, 0, plstream::fill, (oneDim),
|
||||
- (oneDim)?(plstream::tr1):(plstream::tr2),
|
||||
+ clevel, nlevel, 1, 0, 0, PLCALLBACK::fill, (oneDim),
|
||||
+ (oneDim)?(PLCALLBACK::tr1):(PLCALLBACK::tr2),
|
||||
(oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
}
|
||||
else { //fill with colors defined with c_colors or n<=2
|
||||
@@ -832,8 +832,8 @@ namespace lib
|
||||
clevel[i], maxmax,
|
||||
1,value,
|
||||
0,0,0,0,0,
|
||||
- plstream::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc
|
||||
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
+ PLCALLBACK::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc
|
||||
+ (oneDim)?(PLCALLBACK::tr1):(PLCALLBACK::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
} else
|
||||
printf(" Problem, sorry! plplot doesn't like to FILL with a single level!");
|
||||
}
|
||||
@@ -854,7 +854,7 @@ namespace lib
|
||||
if (doT3d) { //no label in T3D , bug in plplot...
|
||||
actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING, 0 );
|
||||
actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1,
|
||||
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
+ (oneDim)?(PLCALLBACK::tr1):(PLCALLBACK::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
} else {
|
||||
if (dolabels && i<labels->N_Elements())
|
||||
{
|
||||
@@ -862,16 +862,16 @@ namespace lib
|
||||
//else (lables thicker than contours) impossible with plplot...
|
||||
actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING, 0 );
|
||||
actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1,
|
||||
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); //thick contours, no label
|
||||
+ (oneDim)?(PLCALLBACK::tr1):(PLCALLBACK::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); //thick contours, no label
|
||||
actStream->Thick(label_thick);
|
||||
}
|
||||
actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING*sqrt(label_size),(PLINT)(*labels)[i] );
|
||||
actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1,
|
||||
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
+ (oneDim)?(PLCALLBACK::tr1):(PLCALLBACK::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
if (!dothick) gdlSetPenThickness(e, actStream);
|
||||
} else {
|
||||
actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1,
|
||||
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
+ (oneDim)?(PLCALLBACK::tr1):(PLCALLBACK::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
testsuite/CMakeLists.txt | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/testsuite/CMakeLists.txt b/testsuite/CMakeLists.txt
|
||||
index 31506e4..287f352 100644
|
||||
--- a/testsuite/CMakeLists.txt
|
||||
+++ b/testsuite/CMakeLists.txt
|
||||
@@ -47,7 +47,6 @@ file(WRITE ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c "${LAUNCH}")
|
||||
add_executable(launchtest EXCLUDE_FROM_ALL ${CMAKE_SOURCE_DIR}/testsuite/launchtest.c)
|
||||
add_library(test_ce SHARED EXCLUDE_FROM_ALL libtest_ce.cpp)
|
||||
add_custom_target(check COMMAND ${CMAKE_BUILD_TOOL} test DEPENDS launchtest test_ce gdl)
|
||||
-get_target_property(LAUNCHTESTLOCATION launchtest LOCATION)
|
||||
execute_process(
|
||||
COMMAND "fgrep" ".pro" "${BASE_SOURCE}/testsuite/Makefile.am"
|
||||
COMMAND "awk" "{printf(\"%s;\",$1)}"
|
@ -0,0 +1,122 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/perl/perl-5.20.2-r1.ebuild,v 1.1 2015/05/09 21:49:38 dilfridge Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils alternatives flag-o-matic toolchain-funcs multilib multiprocessing
|
||||
|
||||
PATCH_VER=2
|
||||
|
||||
PERL_OLDVERSEN="5.20.0 5.20.1"
|
||||
MODULE_AUTHOR=SHAY
|
||||
|
||||
SHORT_PV="${PV%.*}"
|
||||
MY_P="perl-${PV/_rc/-RC}"
|
||||
MY_PV="${PV%_rc*}"
|
||||
|
||||
DESCRIPTION="Larry Wall's Practical Extraction and Report Language"
|
||||
|
||||
SRC_URI="
|
||||
mirror://cpan/src/5.0/${MY_P}.tar.bz2
|
||||
mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.bz2
|
||||
mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.xz
|
||||
http://dev.gentoo.org/~dilfridge/distfiles/${MY_P}-patches-${PATCH_VER}.tar.xz
|
||||
"
|
||||
HOMEPAGE="http://www.perl.org/"
|
||||
|
||||
LICENSE="|| ( Artistic GPL-1+ )"
|
||||
SLOT="0/${SHORT_PV}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="berkdb debug doc gdbm ithreads"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.3 )
|
||||
app-arch/bzip2
|
||||
sys-libs/zlib
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
!prefix? ( elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) )
|
||||
"
|
||||
PDEPEND="
|
||||
>=app-admin/perl-cleaner-2.5
|
||||
>=virtual/perl-File-Temp-0.230.400-r2
|
||||
>=virtual/perl-Data-Dumper-2.154.0
|
||||
"
|
||||
# bug 390719, bug 523624
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
dual_scripts() {
|
||||
src_remove_dual perl-core/Archive-Tar 1.960.0 ptar ptardiff ptargrep
|
||||
src_remove_dual perl-core/Digest-SHA 5.880.0 shasum
|
||||
src_remove_dual perl-core/CPAN 2.50.0 cpan
|
||||
src_remove_dual perl-core/Encode 2.600.0 enc2xs piconv
|
||||
src_remove_dual perl-core/ExtUtils-MakeMaker 6.980.0 instmodsh
|
||||
src_remove_dual perl-core/ExtUtils-ParseXS 3.240.0 xsubpp
|
||||
src_remove_dual perl-core/IO-Compress 2.64.0 zipdetails
|
||||
src_remove_dual perl-core/JSON-PP 2.272.30 json_pp
|
||||
src_remove_dual perl-core/Module-Build 0.420.500 config_data
|
||||
src_remove_dual perl-core/Module-CoreList 5.201.502.140 corelist
|
||||
src_remove_dual perl-core/Pod-Parser 1.620.0 pod2usage podchecker podselect
|
||||
src_remove_dual perl-core/Pod-Perldoc 3.230.0 perldoc
|
||||
src_remove_dual perl-core/Test-Harness 3.330.0 prove
|
||||
src_remove_dual perl-core/podlators 2.5.3 pod2man pod2text
|
||||
src_remove_dual_man perl-core/podlators 2.5.3 /usr/share/man/man1/perlpodstyle.1
|
||||
}
|
||||
|
||||
# eblit-include [--skip] <function> [version]
|
||||
eblit-include() {
|
||||
local skipable=false
|
||||
[[ $1 == "--skip" ]] && skipable=true && shift
|
||||
[[ $1 == pkg_* ]] && skipable=true
|
||||
|
||||
local e v func=$1 ver=$2
|
||||
[[ -z ${func} ]] && die "Usage: eblit-include <function> [version]"
|
||||
for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
|
||||
e="${FILESDIR}/eblits/${func}${v}.eblit"
|
||||
if [[ -e ${e} ]] ; then
|
||||
. "${e}"
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
${skipable} && return 0
|
||||
die "Could not locate requested eblit '${func}' in ${FILESDIR}/eblits/"
|
||||
}
|
||||
|
||||
# eblit-run-maybe <function>
|
||||
# run the specified function if it is defined
|
||||
eblit-run-maybe() {
|
||||
[[ $(type -t "$@") == "function" ]] && "$@"
|
||||
}
|
||||
|
||||
# eblit-run <function> [version]
|
||||
# aka: src_unpack() { eblit-run src_unpack ; }
|
||||
eblit-run() {
|
||||
eblit-include --skip common "${*:2}"
|
||||
eblit-include "$@"
|
||||
eblit-run-maybe eblit-$1-pre
|
||||
eblit-${PN}-$1
|
||||
eblit-run-maybe eblit-$1-post
|
||||
}
|
||||
|
||||
#src_unpack() { eblit-run src_unpack v50160001 ; }
|
||||
src_prepare() { eblit-run src_prepare v50160001 ; }
|
||||
src_configure() { eblit-run src_configure v50180002 ; }
|
||||
#src_compile() { eblit-run src_compile v50160001 ; }
|
||||
src_test() {
|
||||
export NO_GENTOO_NETWORK_TESTS=1;
|
||||
eblit-run src_test v50160001 ;
|
||||
}
|
||||
src_install() { eblit-run src_install v50200001 ; }
|
||||
|
||||
# FILESDIR might not be available during binpkg install
|
||||
# FIXME: version passing
|
||||
for x in setup {pre,post}{inst,rm} ; do
|
||||
e="${FILESDIR}/eblits/pkg_${x}-v50160001.eblit"
|
||||
if [[ -e ${e} ]] ; then
|
||||
. "${e}"
|
||||
eval "pkg_${x}() { eblit-run pkg_${x} v50160001 ; }"
|
||||
fi
|
||||
done
|
@ -1,230 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.0.0_p643.ebuild,v 1.2 2015/03/31 18:33:50 ulm Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
#PATCHSET=1
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
RUBYPL=$(get_version_component_range 4)
|
||||
|
||||
MY_P="${PN}-$(get_version_component_range 1-3)-${RUBYPL:-0}"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
RUBYVERSION=2.0.0
|
||||
|
||||
if [[ -n ${PATCHSET} ]]; then
|
||||
if [[ ${PVR} == ${PV} ]]; then
|
||||
PATCHSET="${PV}-r0.${PATCHSET}"
|
||||
else
|
||||
PATCHSET="${PVR}.${PATCHSET}"
|
||||
fi
|
||||
else
|
||||
PATCHSET="${PVR}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="An object-oriented scripting language"
|
||||
HOMEPAGE="http://www.ruby-lang.org/"
|
||||
SRC_URI="mirror://ruby/2.0/${MY_P}.tar.xz
|
||||
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="berkdb debug doc examples gdbm ipv6 +rdoc rubytests socks5 ssl xemacs ncurses +readline cpu_flags_x86_sse2"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
ssl? ( dev-libs/openssl )
|
||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
readline? ( sys-libs/readline )
|
||||
dev-libs/libyaml
|
||||
virtual/libffi
|
||||
sys-libs/zlib
|
||||
>=app-eselect/eselect-ruby-20100402
|
||||
!<dev-ruby/rdoc-3.9.4
|
||||
!<dev-ruby/rubygems-1.8.10-r1"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="
|
||||
virtual/rubygems[ruby_targets_ruby20]
|
||||
>=dev-ruby/json-1.7.7[ruby_targets_ruby20]
|
||||
>=dev-ruby/rake-0.9.6[ruby_targets_ruby20]
|
||||
rdoc? ( >=dev-ruby/rdoc-4.0.0[ruby_targets_ruby20] )
|
||||
xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
if use cpu_flags_x86_sse2 ; then
|
||||
excluded_patches="012_no_forced_sse2.patch"
|
||||
fi
|
||||
|
||||
EPATCH_EXCLUDE="${excluded_patches}" EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
# We can no longer unbundle all of rake because rubygems now depends
|
||||
# on this. We leave the actual rake code around to bootstrap
|
||||
# rubygems, but remove the bits that would cause a file collision.
|
||||
einfo "Unbundling gems..."
|
||||
cd "$S"
|
||||
rm -r \
|
||||
{bin,lib}/rake lib/rake.rb man/rake.1 \
|
||||
bin/gem || die "removal failed"
|
||||
|
||||
# Fix a hardcoded lib path in configure script
|
||||
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
|
||||
configure.in || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=
|
||||
|
||||
# The Tk module can no longer be built because the module code is no
|
||||
# longer compatible with newer stable versions.
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=500894
|
||||
local modules="tk"
|
||||
|
||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
||||
filter-flags -fomit-frame-pointer
|
||||
# In many places aliasing rules are broken; play it safe
|
||||
# as it's risky with newer compilers to leave it as it is.
|
||||
append-flags -fno-strict-aliasing
|
||||
# SuperH needs this
|
||||
use sh && append-flags -mieee
|
||||
|
||||
# Socks support via dante
|
||||
if use socks5 ; then
|
||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
||||
# set and socks library is present, so need to unset
|
||||
# SOCKS_SERVER in that case.
|
||||
unset SOCKS_SERVER
|
||||
fi
|
||||
|
||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
||||
fi
|
||||
|
||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
||||
|
||||
# Determine which modules *not* to build depending in the USE flags.
|
||||
if ! use readline ; then
|
||||
modules="${modules},readline"
|
||||
fi
|
||||
if ! use berkdb ; then
|
||||
modules="${modules},dbm"
|
||||
fi
|
||||
if ! use gdbm ; then
|
||||
modules="${modules},gdbm"
|
||||
fi
|
||||
if ! use ssl ; then
|
||||
modules="${modules},openssl"
|
||||
fi
|
||||
if ! use ncurses ; then
|
||||
modules="${modules},curses"
|
||||
fi
|
||||
|
||||
INSTALL="${EPREFIX}/usr/bin/install -c" econf \
|
||||
--program-suffix=${MY_SUFFIX} \
|
||||
--with-soname=ruby${MY_SUFFIX} \
|
||||
--docdir=${EPREFIX}/usr/share/doc/${P} \
|
||||
--enable-shared \
|
||||
--enable-pthread \
|
||||
--disable-rpath \
|
||||
--with-out-ext="${modules}" \
|
||||
$(use_enable socks5 socks) \
|
||||
$(use_enable doc install-doc) \
|
||||
--enable-ipv6 \
|
||||
$(use_enable debug) \
|
||||
${myconf} \
|
||||
--enable-option-checking=no \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 V=1 test || die "make test failed"
|
||||
|
||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
||||
elog "that cannot be run until after ruby has been installed."
|
||||
elog
|
||||
if use rubytests; then
|
||||
elog "You have enabled rubytests, so they will be installed to"
|
||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
||||
elog "than root, and you must place them into a writeable directory."
|
||||
elog "Then call: "
|
||||
elog
|
||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
||||
else
|
||||
elog "Enable the rubytests USE flag to install the make check tests"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Remove the remaining bundled gems. We do this late in the process
|
||||
# since they are used during the build to e.g. create the
|
||||
# documentation.
|
||||
rm -rf ext/json || die
|
||||
|
||||
# Ruby is involved in the install process, we don't want interference here.
|
||||
unset RUBYOPT
|
||||
|
||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
||||
|
||||
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
||||
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
||||
for d in $(find "${S}/ext" -type d) ; do
|
||||
RUBYLIB="${RUBYLIB}:$d"
|
||||
done
|
||||
export LD_LIBRARY_PATH RUBYLIB
|
||||
|
||||
emake V=1 DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
# Remove installed rubygems copy
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
||||
rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
||||
|
||||
if use doc; then
|
||||
make DESTDIR="${D}" install-doc || die "make install-doc failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r sample
|
||||
fi
|
||||
|
||||
dodoc ChangeLog NEWS doc/NEWS* README* || die
|
||||
|
||||
if use rubytests; then
|
||||
pushd test
|
||||
insinto /usr/share/${PN}-${SLOT}/test
|
||||
doins -r .
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
|
||||
eselect ruby set ruby${MY_SUFFIX}
|
||||
fi
|
||||
|
||||
elog
|
||||
elog "To switch between available Ruby profiles, execute as root:"
|
||||
elog "\teselect ruby set ruby(19|20|...)"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ruby cleanup
|
||||
}
|
@ -1,231 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.1.5.ebuild,v 1.4 2015/03/31 18:33:50 ulm Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
#PATCHSET=1
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
RUBYPL=$(get_version_component_range 4)
|
||||
|
||||
MY_P="${PN}-$(get_version_component_range 1-3)"
|
||||
#MY_P="${PN}-$(get_version_component_range 1-3)-${RUBYPL:-0}"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
RUBYVERSION=2.1.0
|
||||
|
||||
if [[ -n ${PATCHSET} ]]; then
|
||||
if [[ ${PVR} == ${PV} ]]; then
|
||||
PATCHSET="${PV}-r0.${PATCHSET}"
|
||||
else
|
||||
PATCHSET="${PVR}.${PATCHSET}"
|
||||
fi
|
||||
else
|
||||
PATCHSET="${PVR}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="An object-oriented scripting language"
|
||||
HOMEPAGE="http://www.ruby-lang.org/"
|
||||
SRC_URI="mirror://ruby/2.1/${MY_P}.tar.xz
|
||||
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="berkdb debug doc examples gdbm ipv6 +rdoc rubytests socks5 ssl xemacs ncurses +readline cpu_flags_x86_sse2"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
ssl? ( dev-libs/openssl )
|
||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
readline? ( sys-libs/readline )
|
||||
dev-libs/libyaml
|
||||
virtual/libffi
|
||||
sys-libs/zlib
|
||||
>=app-eselect/eselect-ruby-20131227
|
||||
!<dev-ruby/rdoc-3.9.4
|
||||
!<dev-ruby/rubygems-1.8.10-r1"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="
|
||||
virtual/rubygems[ruby_targets_ruby21]
|
||||
>=dev-ruby/json-1.8.1[ruby_targets_ruby21]
|
||||
>=dev-ruby/rake-0.9.6[ruby_targets_ruby21]
|
||||
rdoc? ( >=dev-ruby/rdoc-4.0.1[ruby_targets_ruby21] )
|
||||
xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
if use cpu_flags_x86_sse2 ; then
|
||||
excluded_patches="012_no_forced_sse2.patch"
|
||||
fi
|
||||
|
||||
EPATCH_EXCLUDE="${excluded_patches}" EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
# We can no longer unbundle all of rake because rubygems now depends
|
||||
# on this. We leave the actual rake code around to bootstrap
|
||||
# rubygems, but remove the bits that would cause a file collision.
|
||||
einfo "Unbundling gems..."
|
||||
cd "$S"
|
||||
rm -r \
|
||||
{bin,lib}/rake lib/rake.rb man/rake.1 \
|
||||
bin/gem || die "removal failed"
|
||||
|
||||
# Fix a hardcoded lib path in configure script
|
||||
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
|
||||
configure.in || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=
|
||||
|
||||
# The Tk module can no longer be built because the module code is no
|
||||
# longer compatible with newer stable versions.
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=500894
|
||||
local modules="tk"
|
||||
|
||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
||||
filter-flags -fomit-frame-pointer
|
||||
# In many places aliasing rules are broken; play it safe
|
||||
# as it's risky with newer compilers to leave it as it is.
|
||||
append-flags -fno-strict-aliasing
|
||||
# SuperH needs this
|
||||
use sh && append-flags -mieee
|
||||
|
||||
# Socks support via dante
|
||||
if use socks5 ; then
|
||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
||||
# set and socks library is present, so need to unset
|
||||
# SOCKS_SERVER in that case.
|
||||
unset SOCKS_SERVER
|
||||
fi
|
||||
|
||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
||||
fi
|
||||
|
||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
||||
|
||||
# Determine which modules *not* to build depending in the USE flags.
|
||||
if ! use readline ; then
|
||||
modules="${modules},readline"
|
||||
fi
|
||||
if ! use berkdb ; then
|
||||
modules="${modules},dbm"
|
||||
fi
|
||||
if ! use gdbm ; then
|
||||
modules="${modules},gdbm"
|
||||
fi
|
||||
if ! use ssl ; then
|
||||
modules="${modules},openssl"
|
||||
fi
|
||||
if ! use ncurses ; then
|
||||
modules="${modules},curses"
|
||||
fi
|
||||
|
||||
INSTALL="${EPREFIX}/usr/bin/install -c" econf \
|
||||
--program-suffix=${MY_SUFFIX} \
|
||||
--with-soname=ruby${MY_SUFFIX} \
|
||||
--docdir=${EPREFIX}/usr/share/doc/${P} \
|
||||
--enable-shared \
|
||||
--enable-pthread \
|
||||
--disable-rpath \
|
||||
--with-out-ext="${modules}" \
|
||||
$(use_enable socks5 socks) \
|
||||
$(use_enable doc install-doc) \
|
||||
--enable-ipv6 \
|
||||
$(use_enable debug) \
|
||||
${myconf} \
|
||||
--enable-option-checking=no \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 V=1 test || die "make test failed"
|
||||
|
||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
||||
elog "that cannot be run until after ruby has been installed."
|
||||
elog
|
||||
if use rubytests; then
|
||||
elog "You have enabled rubytests, so they will be installed to"
|
||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
||||
elog "than root, and you must place them into a writeable directory."
|
||||
elog "Then call: "
|
||||
elog
|
||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
||||
else
|
||||
elog "Enable the rubytests USE flag to install the make check tests"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Remove the remaining bundled gems. We do this late in the process
|
||||
# since they are used during the build to e.g. create the
|
||||
# documentation.
|
||||
rm -rf ext/json || die
|
||||
|
||||
# Ruby is involved in the install process, we don't want interference here.
|
||||
unset RUBYOPT
|
||||
|
||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
||||
|
||||
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
||||
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
||||
for d in $(find "${S}/ext" -type d) ; do
|
||||
RUBYLIB="${RUBYLIB}:$d"
|
||||
done
|
||||
export LD_LIBRARY_PATH RUBYLIB
|
||||
|
||||
emake V=1 DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
# Remove installed rubygems copy
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
||||
rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
||||
|
||||
if use doc; then
|
||||
make DESTDIR="${D}" install-doc || die "make install-doc failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r sample
|
||||
fi
|
||||
|
||||
dodoc ChangeLog NEWS doc/NEWS* README* || die
|
||||
|
||||
if use rubytests; then
|
||||
pushd test
|
||||
insinto /usr/share/${PN}-${SLOT}/test
|
||||
doins -r .
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
|
||||
eselect ruby set ruby${MY_SUFFIX}
|
||||
fi
|
||||
|
||||
elog
|
||||
elog "To switch between available Ruby profiles, execute as root:"
|
||||
elog "\teselect ruby set ruby(19|20|...)"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ruby cleanup
|
||||
}
|
@ -1,231 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.1.6.ebuild,v 1.1 2015/04/14 05:26:56 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
#PATCHSET=1
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
RUBYPL=$(get_version_component_range 4)
|
||||
|
||||
MY_P="${PN}-$(get_version_component_range 1-3)"
|
||||
#MY_P="${PN}-$(get_version_component_range 1-3)-${RUBYPL:-0}"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
RUBYVERSION=2.1.0
|
||||
|
||||
if [[ -n ${PATCHSET} ]]; then
|
||||
if [[ ${PVR} == ${PV} ]]; then
|
||||
PATCHSET="${PV}-r0.${PATCHSET}"
|
||||
else
|
||||
PATCHSET="${PVR}.${PATCHSET}"
|
||||
fi
|
||||
else
|
||||
PATCHSET="${PVR}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="An object-oriented scripting language"
|
||||
HOMEPAGE="http://www.ruby-lang.org/"
|
||||
SRC_URI="mirror://ruby/2.1/${MY_P}.tar.xz
|
||||
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="berkdb debug doc examples gdbm ipv6 +rdoc rubytests socks5 ssl xemacs ncurses +readline cpu_flags_x86_sse2"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
ssl? ( dev-libs/openssl )
|
||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
readline? ( sys-libs/readline )
|
||||
dev-libs/libyaml
|
||||
virtual/libffi
|
||||
sys-libs/zlib
|
||||
>=app-eselect/eselect-ruby-20131227
|
||||
!<dev-ruby/rdoc-3.9.4
|
||||
!<dev-ruby/rubygems-1.8.10-r1"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="
|
||||
virtual/rubygems[ruby_targets_ruby21]
|
||||
>=dev-ruby/json-1.8.1[ruby_targets_ruby21]
|
||||
>=dev-ruby/rake-0.9.6[ruby_targets_ruby21]
|
||||
rdoc? ( >=dev-ruby/rdoc-4.0.1[ruby_targets_ruby21] )
|
||||
xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
if use cpu_flags_x86_sse2 ; then
|
||||
excluded_patches="012_no_forced_sse2.patch"
|
||||
fi
|
||||
|
||||
EPATCH_EXCLUDE="${excluded_patches}" EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
# We can no longer unbundle all of rake because rubygems now depends
|
||||
# on this. We leave the actual rake code around to bootstrap
|
||||
# rubygems, but remove the bits that would cause a file collision.
|
||||
einfo "Unbundling gems..."
|
||||
cd "$S"
|
||||
rm -r \
|
||||
{bin,lib}/rake lib/rake.rb man/rake.1 \
|
||||
bin/gem || die "removal failed"
|
||||
|
||||
# Fix a hardcoded lib path in configure script
|
||||
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
|
||||
configure.in || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=
|
||||
|
||||
# The Tk module can no longer be built because the module code is no
|
||||
# longer compatible with newer stable versions.
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=500894
|
||||
local modules="tk"
|
||||
|
||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
||||
filter-flags -fomit-frame-pointer
|
||||
# In many places aliasing rules are broken; play it safe
|
||||
# as it's risky with newer compilers to leave it as it is.
|
||||
append-flags -fno-strict-aliasing
|
||||
# SuperH needs this
|
||||
use sh && append-flags -mieee
|
||||
|
||||
# Socks support via dante
|
||||
if use socks5 ; then
|
||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
||||
# set and socks library is present, so need to unset
|
||||
# SOCKS_SERVER in that case.
|
||||
unset SOCKS_SERVER
|
||||
fi
|
||||
|
||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
||||
fi
|
||||
|
||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
||||
|
||||
# Determine which modules *not* to build depending in the USE flags.
|
||||
if ! use readline ; then
|
||||
modules="${modules},readline"
|
||||
fi
|
||||
if ! use berkdb ; then
|
||||
modules="${modules},dbm"
|
||||
fi
|
||||
if ! use gdbm ; then
|
||||
modules="${modules},gdbm"
|
||||
fi
|
||||
if ! use ssl ; then
|
||||
modules="${modules},openssl"
|
||||
fi
|
||||
if ! use ncurses ; then
|
||||
modules="${modules},curses"
|
||||
fi
|
||||
|
||||
INSTALL="${EPREFIX}/usr/bin/install -c" econf \
|
||||
--program-suffix=${MY_SUFFIX} \
|
||||
--with-soname=ruby${MY_SUFFIX} \
|
||||
--docdir=${EPREFIX}/usr/share/doc/${P} \
|
||||
--enable-shared \
|
||||
--enable-pthread \
|
||||
--disable-rpath \
|
||||
--with-out-ext="${modules}" \
|
||||
$(use_enable socks5 socks) \
|
||||
$(use_enable doc install-doc) \
|
||||
--enable-ipv6 \
|
||||
$(use_enable debug) \
|
||||
${myconf} \
|
||||
--enable-option-checking=no \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 V=1 test || die "make test failed"
|
||||
|
||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
||||
elog "that cannot be run until after ruby has been installed."
|
||||
elog
|
||||
if use rubytests; then
|
||||
elog "You have enabled rubytests, so they will be installed to"
|
||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
||||
elog "than root, and you must place them into a writeable directory."
|
||||
elog "Then call: "
|
||||
elog
|
||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
||||
else
|
||||
elog "Enable the rubytests USE flag to install the make check tests"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Remove the remaining bundled gems. We do this late in the process
|
||||
# since they are used during the build to e.g. create the
|
||||
# documentation.
|
||||
rm -rf ext/json || die
|
||||
|
||||
# Ruby is involved in the install process, we don't want interference here.
|
||||
unset RUBYOPT
|
||||
|
||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
||||
|
||||
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
||||
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
||||
for d in $(find "${S}/ext" -type d) ; do
|
||||
RUBYLIB="${RUBYLIB}:$d"
|
||||
done
|
||||
export LD_LIBRARY_PATH RUBYLIB
|
||||
|
||||
emake V=1 DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
# Remove installed rubygems copy
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
||||
rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
||||
|
||||
if use doc; then
|
||||
make DESTDIR="${D}" install-doc || die "make install-doc failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r sample
|
||||
fi
|
||||
|
||||
dodoc ChangeLog NEWS doc/NEWS* README* || die
|
||||
|
||||
if use rubytests; then
|
||||
pushd test
|
||||
insinto /usr/share/${PN}-${SLOT}/test
|
||||
doins -r .
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
|
||||
eselect ruby set ruby${MY_SUFFIX}
|
||||
fi
|
||||
|
||||
elog
|
||||
elog "To switch between available Ruby profiles, execute as root:"
|
||||
elog "\teselect ruby set ruby(19|20|...)"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ruby cleanup
|
||||
}
|
@ -1,238 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.2.0-r1.ebuild,v 1.2 2015/03/31 18:33:50 ulm Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
#PATCHSET=1
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
MY_P="${PN}-$(get_version_component_range 1-3)"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
RUBYVERSION=2.2.0
|
||||
|
||||
if [[ -n ${PATCHSET} ]]; then
|
||||
if [[ ${PVR} == ${PV} ]]; then
|
||||
PATCHSET="${PV}-r0.${PATCHSET}"
|
||||
else
|
||||
PATCHSET="${PVR}.${PATCHSET}"
|
||||
fi
|
||||
else
|
||||
PATCHSET="${PVR}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="An object-oriented scripting language"
|
||||
HOMEPAGE="http://www.ruby-lang.org/"
|
||||
SRC_URI="mirror://ruby/2.2/${MY_P}.tar.xz
|
||||
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="berkdb debug doc examples gdbm ipv6 jemalloc +rdoc rubytests socks5 ssl xemacs ncurses +readline"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
jemalloc? ( dev-libs/jemalloc )
|
||||
ssl? ( dev-libs/openssl )
|
||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
readline? ( sys-libs/readline )
|
||||
dev-libs/libyaml
|
||||
virtual/libffi
|
||||
sys-libs/zlib
|
||||
>=app-eselect/eselect-ruby-20141227
|
||||
!<dev-ruby/rdoc-3.9.4
|
||||
!<dev-ruby/rubygems-1.8.10-r1"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BUNDLED_GEMS="
|
||||
>=dev-ruby/minitest-5.4.3[ruby_targets_ruby22]
|
||||
>=dev-ruby/power_assert-0.2.2[ruby_targets_ruby22]
|
||||
>=dev-ruby/test-unit-3.0.8[ruby_targets_ruby22]
|
||||
"
|
||||
|
||||
PDEPEND="
|
||||
${BUNDLED_GEMS}
|
||||
virtual/rubygems[ruby_targets_ruby22]
|
||||
>=dev-ruby/json-1.8.1[ruby_targets_ruby22]
|
||||
>=dev-ruby/rake-0.9.6[ruby_targets_ruby22]
|
||||
rdoc? ( >=dev-ruby/rdoc-4.0.1[ruby_targets_ruby22] )
|
||||
xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
# We can no longer unbundle all of rake because rubygems now depends
|
||||
# on this. We leave the actual rake code around to bootstrap
|
||||
# rubygems, but remove the bits that would cause a file collision.
|
||||
einfo "Unbundling gems..."
|
||||
cd "$S"
|
||||
rm -r \
|
||||
{bin,lib}/rake lib/rake.rb man/rake.1 \
|
||||
bin/gem || die "removal failed"
|
||||
# Remove bundled gems that we will install via PDEPEND, bug
|
||||
# 539700. Use explicit version numbers to ensure rm fails when they
|
||||
# change so we can update dependencies accordingly.
|
||||
rm gems/{minitest-5.4.3,power_assert-0.2.2,test-unit-3.0.8}.gem || die
|
||||
|
||||
# Fix a hardcoded lib path in configure script
|
||||
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
|
||||
configure.in || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=
|
||||
|
||||
# The Tk module can no longer be built because the module code is no
|
||||
# longer compatible with newer stable versions.
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=500894
|
||||
local modules="tk"
|
||||
|
||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
||||
filter-flags -fomit-frame-pointer
|
||||
# In many places aliasing rules are broken; play it safe
|
||||
# as it's risky with newer compilers to leave it as it is.
|
||||
append-flags -fno-strict-aliasing
|
||||
# SuperH needs this
|
||||
use sh && append-flags -mieee
|
||||
|
||||
# Socks support via dante
|
||||
if use socks5 ; then
|
||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
||||
# set and socks library is present, so need to unset
|
||||
# SOCKS_SERVER in that case.
|
||||
unset SOCKS_SERVER
|
||||
fi
|
||||
|
||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
||||
fi
|
||||
|
||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
||||
|
||||
# Determine which modules *not* to build depending in the USE flags.
|
||||
if ! use readline ; then
|
||||
modules="${modules},readline"
|
||||
fi
|
||||
if ! use berkdb ; then
|
||||
modules="${modules},dbm"
|
||||
fi
|
||||
if ! use gdbm ; then
|
||||
modules="${modules},gdbm"
|
||||
fi
|
||||
if ! use ssl ; then
|
||||
modules="${modules},openssl"
|
||||
fi
|
||||
if ! use ncurses ; then
|
||||
modules="${modules},curses"
|
||||
fi
|
||||
|
||||
INSTALL="${EPREFIX}/usr/bin/install -c" econf \
|
||||
--program-suffix=${MY_SUFFIX} \
|
||||
--with-soname=ruby${MY_SUFFIX} \
|
||||
--docdir=${EPREFIX}/usr/share/doc/${P} \
|
||||
--enable-shared \
|
||||
--enable-pthread \
|
||||
--disable-rpath \
|
||||
--with-out-ext="${modules}" \
|
||||
$(use_enable jemalloc jemalloc) \
|
||||
$(use_enable socks5 socks) \
|
||||
$(use_enable doc install-doc) \
|
||||
--enable-ipv6 \
|
||||
$(use_enable debug) \
|
||||
${myconf} \
|
||||
--enable-option-checking=no \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 V=1 test || die "make test failed"
|
||||
|
||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
||||
elog "that cannot be run until after ruby has been installed."
|
||||
elog
|
||||
if use rubytests; then
|
||||
elog "You have enabled rubytests, so they will be installed to"
|
||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
||||
elog "than root, and you must place them into a writeable directory."
|
||||
elog "Then call: "
|
||||
elog
|
||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
||||
else
|
||||
elog "Enable the rubytests USE flag to install the make check tests"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Remove the remaining bundled gems. We do this late in the process
|
||||
# since they are used during the build to e.g. create the
|
||||
# documentation.
|
||||
rm -rf ext/json || die
|
||||
|
||||
# Ruby is involved in the install process, we don't want interference here.
|
||||
unset RUBYOPT
|
||||
|
||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
||||
|
||||
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
||||
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
||||
for d in $(find "${S}/ext" -type d) ; do
|
||||
RUBYLIB="${RUBYLIB}:$d"
|
||||
done
|
||||
export LD_LIBRARY_PATH RUBYLIB
|
||||
|
||||
emake V=1 DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
# Remove installed rubygems copy
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
||||
rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
||||
|
||||
if use doc; then
|
||||
make DESTDIR="${D}" install-doc || die "make install-doc failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r sample
|
||||
fi
|
||||
|
||||
dodoc ChangeLog NEWS doc/NEWS* README* || die
|
||||
|
||||
if use rubytests; then
|
||||
pushd test
|
||||
insinto /usr/share/${PN}-${SLOT}/test
|
||||
doins -r .
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
|
||||
eselect ruby set ruby${MY_SUFFIX}
|
||||
fi
|
||||
|
||||
elog
|
||||
elog "To switch between available Ruby profiles, execute as root:"
|
||||
elog "\teselect ruby set ruby(19|20|...)"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ruby cleanup
|
||||
}
|
@ -1,238 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.2.1.ebuild,v 1.2 2015/03/31 18:33:50 ulm Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
#PATCHSET=1
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
MY_P="${PN}-$(get_version_component_range 1-3)"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
RUBYVERSION=2.2.0
|
||||
|
||||
if [[ -n ${PATCHSET} ]]; then
|
||||
if [[ ${PVR} == ${PV} ]]; then
|
||||
PATCHSET="${PV}-r0.${PATCHSET}"
|
||||
else
|
||||
PATCHSET="${PVR}.${PATCHSET}"
|
||||
fi
|
||||
else
|
||||
PATCHSET="${PVR}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="An object-oriented scripting language"
|
||||
HOMEPAGE="http://www.ruby-lang.org/"
|
||||
SRC_URI="mirror://ruby/2.2/${MY_P}.tar.xz
|
||||
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="berkdb debug doc examples gdbm ipv6 jemalloc +rdoc rubytests socks5 ssl xemacs ncurses +readline"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
jemalloc? ( dev-libs/jemalloc )
|
||||
ssl? ( dev-libs/openssl )
|
||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
readline? ( sys-libs/readline )
|
||||
dev-libs/libyaml
|
||||
virtual/libffi
|
||||
sys-libs/zlib
|
||||
>=app-eselect/eselect-ruby-20141227
|
||||
!<dev-ruby/rdoc-3.9.4
|
||||
!<dev-ruby/rubygems-1.8.10-r1"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BUNDLED_GEMS="
|
||||
>=dev-ruby/minitest-5.4.3[ruby_targets_ruby22]
|
||||
>=dev-ruby/power_assert-0.2.2[ruby_targets_ruby22]
|
||||
>=dev-ruby/test-unit-3.0.8[ruby_targets_ruby22]
|
||||
"
|
||||
|
||||
PDEPEND="
|
||||
${BUNDLED_GEMS}
|
||||
virtual/rubygems[ruby_targets_ruby22]
|
||||
>=dev-ruby/json-1.8.1[ruby_targets_ruby22]
|
||||
>=dev-ruby/rake-0.9.6[ruby_targets_ruby22]
|
||||
rdoc? ( >=dev-ruby/rdoc-4.0.1[ruby_targets_ruby22] )
|
||||
xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
# We can no longer unbundle all of rake because rubygems now depends
|
||||
# on this. We leave the actual rake code around to bootstrap
|
||||
# rubygems, but remove the bits that would cause a file collision.
|
||||
einfo "Unbundling gems..."
|
||||
cd "$S"
|
||||
rm -r \
|
||||
{bin,lib}/rake lib/rake.rb man/rake.1 \
|
||||
bin/gem || die "removal failed"
|
||||
# Remove bundled gems that we will install via PDEPEND, bug
|
||||
# 539700. Use explicit version numbers to ensure rm fails when they
|
||||
# change so we can update dependencies accordingly.
|
||||
rm gems/{minitest-5.4.3,power_assert-0.2.2,test-unit-3.0.8}.gem || die
|
||||
|
||||
# Fix a hardcoded lib path in configure script
|
||||
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
|
||||
configure.in || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=
|
||||
|
||||
# The Tk module can no longer be built because the module code is no
|
||||
# longer compatible with newer stable versions.
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=500894
|
||||
local modules="tk"
|
||||
|
||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
||||
filter-flags -fomit-frame-pointer
|
||||
# In many places aliasing rules are broken; play it safe
|
||||
# as it's risky with newer compilers to leave it as it is.
|
||||
append-flags -fno-strict-aliasing
|
||||
# SuperH needs this
|
||||
use sh && append-flags -mieee
|
||||
|
||||
# Socks support via dante
|
||||
if use socks5 ; then
|
||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
||||
# set and socks library is present, so need to unset
|
||||
# SOCKS_SERVER in that case.
|
||||
unset SOCKS_SERVER
|
||||
fi
|
||||
|
||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
||||
fi
|
||||
|
||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
||||
|
||||
# Determine which modules *not* to build depending in the USE flags.
|
||||
if ! use readline ; then
|
||||
modules="${modules},readline"
|
||||
fi
|
||||
if ! use berkdb ; then
|
||||
modules="${modules},dbm"
|
||||
fi
|
||||
if ! use gdbm ; then
|
||||
modules="${modules},gdbm"
|
||||
fi
|
||||
if ! use ssl ; then
|
||||
modules="${modules},openssl"
|
||||
fi
|
||||
if ! use ncurses ; then
|
||||
modules="${modules},curses"
|
||||
fi
|
||||
|
||||
INSTALL="${EPREFIX}/usr/bin/install -c" econf \
|
||||
--program-suffix=${MY_SUFFIX} \
|
||||
--with-soname=ruby${MY_SUFFIX} \
|
||||
--docdir=${EPREFIX}/usr/share/doc/${P} \
|
||||
--enable-shared \
|
||||
--enable-pthread \
|
||||
--disable-rpath \
|
||||
--with-out-ext="${modules}" \
|
||||
$(use_enable jemalloc jemalloc) \
|
||||
$(use_enable socks5 socks) \
|
||||
$(use_enable doc install-doc) \
|
||||
--enable-ipv6 \
|
||||
$(use_enable debug) \
|
||||
${myconf} \
|
||||
--enable-option-checking=no \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 V=1 test || die "make test failed"
|
||||
|
||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
||||
elog "that cannot be run until after ruby has been installed."
|
||||
elog
|
||||
if use rubytests; then
|
||||
elog "You have enabled rubytests, so they will be installed to"
|
||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
||||
elog "than root, and you must place them into a writeable directory."
|
||||
elog "Then call: "
|
||||
elog
|
||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
||||
else
|
||||
elog "Enable the rubytests USE flag to install the make check tests"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Remove the remaining bundled gems. We do this late in the process
|
||||
# since they are used during the build to e.g. create the
|
||||
# documentation.
|
||||
rm -rf ext/json || die
|
||||
|
||||
# Ruby is involved in the install process, we don't want interference here.
|
||||
unset RUBYOPT
|
||||
|
||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
||||
|
||||
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
||||
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
||||
for d in $(find "${S}/ext" -type d) ; do
|
||||
RUBYLIB="${RUBYLIB}:$d"
|
||||
done
|
||||
export LD_LIBRARY_PATH RUBYLIB
|
||||
|
||||
emake V=1 DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
# Remove installed rubygems copy
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
||||
rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
||||
|
||||
if use doc; then
|
||||
make DESTDIR="${D}" install-doc || die "make install-doc failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r sample
|
||||
fi
|
||||
|
||||
dodoc ChangeLog NEWS doc/NEWS* README* || die
|
||||
|
||||
if use rubytests; then
|
||||
pushd test
|
||||
insinto /usr/share/${PN}-${SLOT}/test
|
||||
doins -r .
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
|
||||
eselect ruby set ruby${MY_SUFFIX}
|
||||
fi
|
||||
|
||||
elog
|
||||
elog "To switch between available Ruby profiles, execute as root:"
|
||||
elog "\teselect ruby set ruby(19|20|...)"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ruby cleanup
|
||||
}
|
@ -1,238 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.2.2.ebuild,v 1.1 2015/04/14 05:26:56 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
#PATCHSET=1
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
MY_P="${PN}-$(get_version_component_range 1-3)"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
RUBYVERSION=2.2.0
|
||||
|
||||
if [[ -n ${PATCHSET} ]]; then
|
||||
if [[ ${PVR} == ${PV} ]]; then
|
||||
PATCHSET="${PV}-r0.${PATCHSET}"
|
||||
else
|
||||
PATCHSET="${PVR}.${PATCHSET}"
|
||||
fi
|
||||
else
|
||||
PATCHSET="${PVR}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="An object-oriented scripting language"
|
||||
HOMEPAGE="http://www.ruby-lang.org/"
|
||||
SRC_URI="mirror://ruby/2.2/${MY_P}.tar.xz
|
||||
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby-BSD BSD-2 )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="berkdb debug doc examples gdbm ipv6 jemalloc +rdoc rubytests socks5 ssl xemacs ncurses +readline"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
jemalloc? ( dev-libs/jemalloc )
|
||||
ssl? ( dev-libs/openssl )
|
||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
readline? ( sys-libs/readline )
|
||||
dev-libs/libyaml
|
||||
virtual/libffi
|
||||
sys-libs/zlib
|
||||
>=app-eselect/eselect-ruby-20141227
|
||||
!<dev-ruby/rdoc-3.9.4
|
||||
!<dev-ruby/rubygems-1.8.10-r1"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BUNDLED_GEMS="
|
||||
>=dev-ruby/minitest-5.4.3[ruby_targets_ruby22]
|
||||
>=dev-ruby/power_assert-0.2.2[ruby_targets_ruby22]
|
||||
>=dev-ruby/test-unit-3.0.8[ruby_targets_ruby22]
|
||||
"
|
||||
|
||||
PDEPEND="
|
||||
${BUNDLED_GEMS}
|
||||
virtual/rubygems[ruby_targets_ruby22]
|
||||
>=dev-ruby/json-1.8.1[ruby_targets_ruby22]
|
||||
>=dev-ruby/rake-0.9.6[ruby_targets_ruby22]
|
||||
rdoc? ( >=dev-ruby/rdoc-4.0.1[ruby_targets_ruby22] )
|
||||
xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
# We can no longer unbundle all of rake because rubygems now depends
|
||||
# on this. We leave the actual rake code around to bootstrap
|
||||
# rubygems, but remove the bits that would cause a file collision.
|
||||
einfo "Unbundling gems..."
|
||||
cd "$S"
|
||||
rm -r \
|
||||
{bin,lib}/rake lib/rake.rb man/rake.1 \
|
||||
bin/gem || die "removal failed"
|
||||
# Remove bundled gems that we will install via PDEPEND, bug
|
||||
# 539700. Use explicit version numbers to ensure rm fails when they
|
||||
# change so we can update dependencies accordingly.
|
||||
rm gems/{minitest-5.4.3,power_assert-0.2.2,test-unit-3.0.8}.gem || die
|
||||
|
||||
# Fix a hardcoded lib path in configure script
|
||||
sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
|
||||
configure.in || die "sed failed"
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=
|
||||
|
||||
# The Tk module can no longer be built because the module code is no
|
||||
# longer compatible with newer stable versions.
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=500894
|
||||
local modules="tk"
|
||||
|
||||
# -fomit-frame-pointer makes ruby segfault, see bug #150413.
|
||||
filter-flags -fomit-frame-pointer
|
||||
# In many places aliasing rules are broken; play it safe
|
||||
# as it's risky with newer compilers to leave it as it is.
|
||||
append-flags -fno-strict-aliasing
|
||||
# SuperH needs this
|
||||
use sh && append-flags -mieee
|
||||
|
||||
# Socks support via dante
|
||||
if use socks5 ; then
|
||||
# Socks support can't be disabled as long as SOCKS_SERVER is
|
||||
# set and socks library is present, so need to unset
|
||||
# SOCKS_SERVER in that case.
|
||||
unset SOCKS_SERVER
|
||||
fi
|
||||
|
||||
# Increase GC_MALLOC_LIMIT if set (default is 8000000)
|
||||
if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
|
||||
append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
|
||||
fi
|
||||
|
||||
# ipv6 hack, bug 168939. Needs --enable-ipv6.
|
||||
use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET"
|
||||
|
||||
# Determine which modules *not* to build depending in the USE flags.
|
||||
if ! use readline ; then
|
||||
modules="${modules},readline"
|
||||
fi
|
||||
if ! use berkdb ; then
|
||||
modules="${modules},dbm"
|
||||
fi
|
||||
if ! use gdbm ; then
|
||||
modules="${modules},gdbm"
|
||||
fi
|
||||
if ! use ssl ; then
|
||||
modules="${modules},openssl"
|
||||
fi
|
||||
if ! use ncurses ; then
|
||||
modules="${modules},curses"
|
||||
fi
|
||||
|
||||
INSTALL="${EPREFIX}/usr/bin/install -c" econf \
|
||||
--program-suffix=${MY_SUFFIX} \
|
||||
--with-soname=ruby${MY_SUFFIX} \
|
||||
--docdir=${EPREFIX}/usr/share/doc/${P} \
|
||||
--enable-shared \
|
||||
--enable-pthread \
|
||||
--disable-rpath \
|
||||
--with-out-ext="${modules}" \
|
||||
$(use_enable jemalloc jemalloc) \
|
||||
$(use_enable socks5 socks) \
|
||||
$(use_enable doc install-doc) \
|
||||
--enable-ipv6 \
|
||||
$(use_enable debug) \
|
||||
${myconf} \
|
||||
--enable-option-checking=no \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 V=1 test || die "make test failed"
|
||||
|
||||
elog "Ruby's make test has been run. Ruby also ships with a make check"
|
||||
elog "that cannot be run until after ruby has been installed."
|
||||
elog
|
||||
if use rubytests; then
|
||||
elog "You have enabled rubytests, so they will be installed to"
|
||||
elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other"
|
||||
elog "than root, and you must place them into a writeable directory."
|
||||
elog "Then call: "
|
||||
elog
|
||||
elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb"
|
||||
else
|
||||
elog "Enable the rubytests USE flag to install the make check tests"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Remove the remaining bundled gems. We do this late in the process
|
||||
# since they are used during the build to e.g. create the
|
||||
# documentation.
|
||||
rm -rf ext/json || die
|
||||
|
||||
# Ruby is involved in the install process, we don't want interference here.
|
||||
unset RUBYOPT
|
||||
|
||||
local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
|
||||
|
||||
LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}"
|
||||
RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
|
||||
for d in $(find "${S}/ext" -type d) ; do
|
||||
RUBYLIB="${RUBYLIB}:$d"
|
||||
done
|
||||
export LD_LIBRARY_PATH RUBYLIB
|
||||
|
||||
emake V=1 DESTDIR="${D}" install || die "make install failed"
|
||||
|
||||
# Remove installed rubygems copy
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed"
|
||||
rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed"
|
||||
rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed"
|
||||
|
||||
if use doc; then
|
||||
make DESTDIR="${D}" install-doc || die "make install-doc failed"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r sample
|
||||
fi
|
||||
|
||||
dodoc ChangeLog NEWS doc/NEWS* README* || die
|
||||
|
||||
if use rubytests; then
|
||||
pushd test
|
||||
insinto /usr/share/${PN}-${SLOT}/test
|
||||
doins -r .
|
||||
popd
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
|
||||
eselect ruby set ruby${MY_SUFFIX}
|
||||
fi
|
||||
|
||||
elog
|
||||
elog "To switch between available Ruby profiles, execute as root:"
|
||||
elog "\teselect ruby set ruby(19|20|...)"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ruby cleanup
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpcre/libpcre-8.37-r1.ebuild,v 1.1 2015/05/10 08:25:15 polynomial-c Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils multilib libtool flag-o-matic toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="Perl-compatible regular expression library"
|
||||
HOMEPAGE="http://www.pcre.org/"
|
||||
MY_P="pcre-${PV/_rc/-RC}"
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
# Only the final releases are available here.
|
||||
SRC_URI="mirror://sourceforge/pcre/${MY_P}.tar.bz2
|
||||
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${MY_P}.tar.bz2"
|
||||
else
|
||||
SRC_URI="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/${MY_P}.tar.bz2"
|
||||
fi
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="bzip2 +cxx +jit libedit pcre16 pcre32 +readline +recursion-limit static-libs unicode zlib"
|
||||
REQUIRED_USE="readline? ( !libedit )
|
||||
libedit? ( !readline )"
|
||||
|
||||
RDEPEND="bzip2? ( app-arch/bzip2 )
|
||||
zlib? ( sys-libs/zlib )
|
||||
libedit? ( dev-libs/libedit )
|
||||
readline? ( sys-libs/readline )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
userland_GNU? ( >=sys-apps/findutils-4.4.0 )"
|
||||
RDEPEND="${RDEPEND}
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r2
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/pcre-config
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s:-lpcre ::" libpcrecpp.pc.in || die
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
--with-match-limit-recursion=$(usex recursion-limit 8192 MATCH_LIMIT) \
|
||||
$(multilib_native_use_enable bzip2 pcregrep-libbz2) \
|
||||
$(use_enable cxx cpp) \
|
||||
$(use_enable jit) $(use_enable jit pcregrep-jit) \
|
||||
$(use_enable pcre16) \
|
||||
$(use_enable pcre32) \
|
||||
$(multilib_native_use_enable libedit pcretest-libedit) \
|
||||
$(multilib_native_use_enable readline pcretest-libreadline) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable unicode utf) $(use_enable unicode unicode-properties) \
|
||||
$(multilib_native_use_enable zlib pcregrep-libz) \
|
||||
--enable-pcre8 \
|
||||
--enable-shared \
|
||||
--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
--docdir="${EPREFIX}"/usr/share/doc/${PF}
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake V=1 $(multilib_is_native_abi || echo "bin_PROGRAMS=")
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
$(multilib_is_native_abi || echo "bin_PROGRAMS= dist_html_DATA=") \
|
||||
install
|
||||
multilib_is_native_abi && gen_usr_ldscript -a pcre
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserve_old_lib /$(get_libdir)/libpcre.so.0
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
preserve_old_lib_notify /$(get_libdir)/libpcre.so.0
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue