parent
3aa7cb0819
commit
74da61e400
@ -1,3 +1,4 @@
|
|||||||
DIST fleet-0.5.3.tar.gz 359305 SHA256 10cc25190df66fa407d06570b9d42248b7bb59b98a1c37fa9b6a8816f26fb9b5 SHA512 c321eb29a4ef383103e45dd62d91516d98f025d5d63e363f119d27906b49f8bb2791e0c40fdbd2e130b40c3a9a3de0c9d08ec6c98768b1badb76818257d11248 WHIRLPOOL 90d738de2b2e78b7c07e010fa0ac593bd26192b7cacef3d8853a8ca6b3573ed765f87f3a7e50bb8296d2c825152689dfdfa5e0fd9afd634da4fab55dd95fafcd
|
DIST fleet-0.5.3.tar.gz 359305 SHA256 10cc25190df66fa407d06570b9d42248b7bb59b98a1c37fa9b6a8816f26fb9b5 SHA512 c321eb29a4ef383103e45dd62d91516d98f025d5d63e363f119d27906b49f8bb2791e0c40fdbd2e130b40c3a9a3de0c9d08ec6c98768b1badb76818257d11248 WHIRLPOOL 90d738de2b2e78b7c07e010fa0ac593bd26192b7cacef3d8853a8ca6b3573ed765f87f3a7e50bb8296d2c825152689dfdfa5e0fd9afd634da4fab55dd95fafcd
|
||||||
DIST fleet-0.5.4.tar.gz 362695 SHA256 a293afa0c0fe0819fe40feff2650503a59831816aaad03f39866e8ecf30c00be SHA512 a67210ccc62cc7805f280fd1c61bc98460cb336ba9e97897f6ec49fcd88522bedf0b26ad5bce362abd0292a9adaf8f374b8923d8fa4630d5c06d9a171d29bb0f WHIRLPOOL 246dde2734da93eed044f9a783dd61d00ee3d5dbcd8783067844b30abda8458e7f34e89c25fe7917f609c32942bfc8c74237a3dd50012f66323672790b8b7183
|
DIST fleet-0.5.4.tar.gz 362695 SHA256 a293afa0c0fe0819fe40feff2650503a59831816aaad03f39866e8ecf30c00be SHA512 a67210ccc62cc7805f280fd1c61bc98460cb336ba9e97897f6ec49fcd88522bedf0b26ad5bce362abd0292a9adaf8f374b8923d8fa4630d5c06d9a171d29bb0f WHIRLPOOL 246dde2734da93eed044f9a783dd61d00ee3d5dbcd8783067844b30abda8458e7f34e89c25fe7917f609c32942bfc8c74237a3dd50012f66323672790b8b7183
|
||||||
DIST fleet-0.8.3.tar.gz 390950 SHA256 bedfcfa77fa655f0eadb522ca45d1ecdb7d7fbd3285e8e50e090dba65dac6cd8 SHA512 0557e663c0c007d2bdc2a736db4675761251a56ed190a58e529d0caf3f55a50f75e6c6ccb7b56601df7f657a0920158233bd95dcd0f66477794230c9ebc78158 WHIRLPOOL 2c54dbd219c946e661523e383486e63042ac1659afd33c8629e50e8d31cfce6501810171bb11c43918c1163ebe7bac10b1cb4770fd2ed6d5438c2ecfe9698d5b
|
DIST fleet-0.8.3.tar.gz 390950 SHA256 bedfcfa77fa655f0eadb522ca45d1ecdb7d7fbd3285e8e50e090dba65dac6cd8 SHA512 0557e663c0c007d2bdc2a736db4675761251a56ed190a58e529d0caf3f55a50f75e6c6ccb7b56601df7f657a0920158233bd95dcd0f66477794230c9ebc78158 WHIRLPOOL 2c54dbd219c946e661523e383486e63042ac1659afd33c8629e50e8d31cfce6501810171bb11c43918c1163ebe7bac10b1cb4770fd2ed6d5438c2ecfe9698d5b
|
||||||
|
DIST fleet-0.9.0.tar.gz 405482 SHA256 3198e19e038a4a4f2f7d2f36aa7ffd3cdf2cfdaed0e7c255b33c465deded90e8 SHA512 cbff807f38cad108112216751fd0aa1ab402062d0cb68245c177fc89d88bb6a43c10d8b6ba577b493f1b16c910f6cf1e209bec96da550a3e44fad5ce004ab1d3 WHIRLPOOL 5b1cafe5bd48a30c3a523d00fbeb311db4ecafe7737564389f4223f5deedbc5e4056f001084e652a1e9c61e5fff25b8cc1e2ee32930b6a514c5ca8f41aefbcca
|
||||||
|
@ -0,0 +1,50 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-admin/fleet/fleet-0.9.0.ebuild,v 1.1 2014/12/07 20:30:55 alunduil Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit systemd vcs-snapshot
|
||||||
|
|
||||||
|
DESCRIPTION="A Distributed init System"
|
||||||
|
HOMEPAGE="https://github.com/coreos/fleet"
|
||||||
|
SRC_URI="https://github.com/coreos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="doc examples"
|
||||||
|
|
||||||
|
DEPEND=">=dev-lang/go-1.3"
|
||||||
|
RDEPEND=""
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
./build || die 'Build failed'
|
||||||
|
}
|
||||||
|
|
||||||
|
RESTRICT="test" # Tests fail due to Gentoo bug #500452
|
||||||
|
src_test() {
|
||||||
|
./test || die 'Tests failed'
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin "${S}"/bin/fleetd
|
||||||
|
dobin "${S}"/bin/fleetctl
|
||||||
|
|
||||||
|
systemd_dounit "${FILESDIR}"/fleetd.service
|
||||||
|
|
||||||
|
dodoc README.md
|
||||||
|
use doc && dodoc -r Documentation
|
||||||
|
use examples && dodoc -r examples
|
||||||
|
|
||||||
|
keepdir /etc/${PN}
|
||||||
|
insinto /etc/${PN}
|
||||||
|
newins "${PN}".conf.sample "${PN}".conf
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
ewarn "If you're upgrading from a version less than 0.8.0, please read the messages!"
|
||||||
|
elog "The fleet binary name changed to fleetd."
|
||||||
|
elog "If you're using systemd, update your configuration:"
|
||||||
|
elog " systemctl disable fleet && systemctl enable fleetd"
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
DIST kpcli-2.7.pl 166288 SHA256 6bb1f7320b4474d6dbb73915393e5df96862f27c6228aa042a810fef46e2b777 SHA512 4a64164cc43b51a2f35a4dc348054e0299a8ac745ac8ca280b43b37b2813200afe2c7ec393ccca6a4e357252f59ca2315e71c87a5e512ff2f2b1569160a76b4e WHIRLPOOL 4b9e4872b6479b7c5757c95d07be6e72c32bb11cdaf559a64bf8f8e94a970c511be44ec566beeb30d805059a5651be90b1438faa08f41ac5ca5e66007d6de4be
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-admin/kpcli/kpcli-2.7.ebuild,v 1.1 2014/12/07 16:48:28 dilfridge Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
DESCRIPTION="A command line interface to KeePass database files"
|
||||||
|
HOMEPAGE="http://kpcli.sourceforge.net"
|
||||||
|
SRC_URI="http://downloads.sourceforge.net/project/kpcli/${P}.pl"
|
||||||
|
|
||||||
|
LICENSE="|| ( Artistic GPL-1+ )"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND="dev-lang/perl
|
||||||
|
dev-perl/Clone
|
||||||
|
dev-perl/Crypt-Rijndael
|
||||||
|
dev-perl/TermReadKey
|
||||||
|
dev-perl/Sort-Naturally
|
||||||
|
dev-perl/Term-ShellUI
|
||||||
|
>=dev-perl/File-KeePass-0.30.0
|
||||||
|
virtual/perl-File-Spec
|
||||||
|
virtual/perl-Getopt-Long
|
||||||
|
virtual/perl-Digest-MD5
|
||||||
|
virtual/perl-Digest-SHA
|
||||||
|
virtual/perl-Data-Dumper
|
||||||
|
virtual/perl-Term-ANSIColor
|
||||||
|
virtual/perl-Carp
|
||||||
|
"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
mkdir "${S}" || die
|
||||||
|
cp "${DISTDIR}/${P}.pl" "${S}/${PN}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() { :; }
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin kpcli
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<herd>ruby</herd>
|
<herd>perl</herd>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
@ -1,3 +1,4 @@
|
|||||||
DIST isomaster-1.3.11.tar.bz2 232153 SHA256 ab8c334d6df1996fc1872affc01e82aa3917b9d3ae37300e41491b7b2666b857 SHA512 98c654c9320410765f5d7656396b3d87c34505410638c01e3ae65b89a20eb19d6554a70c3deca79e39524459e3cce618be3e42fdce8b5de1d88fa72fa6e122d9 WHIRLPOOL e5e57fd99a09df55938805141d57dab5af163f413c8d6816bf9702f7fedd54d38021e0ddd1125093bcd764381e84f7f99cae5b07b07249b785299cf038cf4449
|
DIST isomaster-1.3.11.tar.bz2 232153 SHA256 ab8c334d6df1996fc1872affc01e82aa3917b9d3ae37300e41491b7b2666b857 SHA512 98c654c9320410765f5d7656396b3d87c34505410638c01e3ae65b89a20eb19d6554a70c3deca79e39524459e3cce618be3e42fdce8b5de1d88fa72fa6e122d9 WHIRLPOOL e5e57fd99a09df55938805141d57dab5af163f413c8d6816bf9702f7fedd54d38021e0ddd1125093bcd764381e84f7f99cae5b07b07249b785299cf038cf4449
|
||||||
|
DIST isomaster-1.3.13.tar.bz2 245085 SHA256 b700d10f1de240fe385e4294205e6cf5e51c0552f72efe26ae4a112a374a9e18 SHA512 dbc6a77fabf8d454bbde25a7540e68820bf773bc991176e5684e87aeb6044ad1bbbcf1c4f537148c18ec8847572949a52d6578a14f68b8ad3f21d542685859ba WHIRLPOOL 6315bba9b76e743c064c86adba4c06ab31b1aea115af4c93df1908648a3a70b28fee3d16105c2601913abadf9cfdb267d08997c731d3c310e47f9a8ed33ec90a
|
||||||
DIST isomaster-1.3.5.tar.bz2 196042 SHA256 27b9b53d5e361b56a6e302131af2dc97f7135f74786637e6244e075606226597 SHA512 25ef3a8e4a381100ea8c1aa913f7ec28dc8b7c2c0f8bfa1cdcda529d69a76b7d8baf35ca3dfa087b7210f3ad53f340259717c099c188386b511e641a358aac93 WHIRLPOOL f08657b60f4d2ca7df6d531dc5d744faf69b79e3ec83fcf5cc23640e0581cb3f16317a8a659f6e9903b2392a58262c4d7732d3ba0e9a0ec90fb4ce77da156e30
|
DIST isomaster-1.3.5.tar.bz2 196042 SHA256 27b9b53d5e361b56a6e302131af2dc97f7135f74786637e6244e075606226597 SHA512 25ef3a8e4a381100ea8c1aa913f7ec28dc8b7c2c0f8bfa1cdcda529d69a76b7d8baf35ca3dfa087b7210f3ad53f340259717c099c188386b511e641a358aac93 WHIRLPOOL f08657b60f4d2ca7df6d531dc5d744faf69b79e3ec83fcf5cc23640e0581cb3f16317a8a659f6e9903b2392a58262c4d7732d3ba0e9a0ec90fb4ce77da156e30
|
||||||
DIST isomaster-1.3.9.tar.bz2 223514 SHA256 2bf798a19af43113391144c4a3f2f3b33366f640c5695d356c151e83c49dc853 SHA512 746f8e67fc5ebf39caaf1900c55752c07761cf919f49b49fdbf449b0c1309445c01b38d57cd5b741c057dd8d020d941863d2b29c1d5a725078cf8448d3ff8a4b WHIRLPOOL 92159a394ca99ca4ec079dddff21ed6a0a298ab0c393c54e31a81ea0b66cf77957c5c7edf498cbfc6f01f49512baa498d3810aee56d07b71d0333c580014d25e
|
DIST isomaster-1.3.9.tar.bz2 223514 SHA256 2bf798a19af43113391144c4a3f2f3b33366f640c5695d356c151e83c49dc853 SHA512 746f8e67fc5ebf39caaf1900c55752c07761cf919f49b49fdbf449b0c1309445c01b38d57cd5b741c057dd8d020d941863d2b29c1d5a725078cf8448d3ff8a4b WHIRLPOOL 92159a394ca99ca4ec079dddff21ed6a0a298ab0c393c54e31a81ea0b66cf77957c5c7edf498cbfc6f01f49512baa498d3810aee56d07b71d0333c580014d25e
|
||||||
|
@ -0,0 +1,69 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-cdr/isomaster/isomaster-1.3.13.ebuild,v 1.1 2014/12/07 17:56:22 sping Exp $
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
inherit eutils fdo-mime toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Graphical CD image editor for reading, modifying and writing ISO images"
|
||||||
|
HOMEPAGE="http://littlesvr.ca/isomaster"
|
||||||
|
SRC_URI="http://littlesvr.ca/${PN}/releases/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
|
||||||
|
IUSE="nls"
|
||||||
|
|
||||||
|
RDEPEND=">=dev-libs/iniparser-3.0.0
|
||||||
|
x11-libs/gtk+:2"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
nls? ( >=sys-devel/gettext-0.19.1 )" # bug 512448
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
myisoconf=(
|
||||||
|
DEFAULT_EDITOR=leafpad
|
||||||
|
MYDOCPATH=/usr/share/doc/${PF}/bkisofs
|
||||||
|
USE_SYSTEM_INIPARSER=1
|
||||||
|
PREFIX=/usr
|
||||||
|
)
|
||||||
|
|
||||||
|
use nls || myisoconf+=( WITHOUT_NLS=1 )
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/${PN}-1.3.9-iniparser-3.0.0.patch #399629
|
||||||
|
rm -R iniparser-2.17 || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() { :; } #274361
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
tc-export CC
|
||||||
|
emake "${myisoconf[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
_apply_linguas() {
|
||||||
|
mv "${D}"/usr/share/locale{,_ALL} || die
|
||||||
|
dodir /usr/share/locale || die
|
||||||
|
for lingua in ${LINGUAS}; do
|
||||||
|
[[ -d "${D}"/usr/share/locale_ALL/${lingua} ]] || break
|
||||||
|
mv "${D}"/usr/share/{locale_ALL/${lingua},locale/} || die
|
||||||
|
done
|
||||||
|
rm -R "${D}"/usr/share/locale_ALL || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake "${myisoconf[@]}" DESTDIR="${D}" install
|
||||||
|
dodoc {CHANGELOG,CREDITS,README,TODO}.TXT *.txt
|
||||||
|
|
||||||
|
use nls && _apply_linguas # bug 402679, bug 512448
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
fdo-mime_desktop_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
fdo-mime_desktop_database_update
|
||||||
|
}
|
@ -1,22 +0,0 @@
|
|||||||
--- leo/external/edb.py
|
|
||||||
+++ leo/external/edb.py
|
|
||||||
@@ -74,6 +74,8 @@
|
|
||||||
|
|
||||||
"""
|
|
||||||
|
|
||||||
+from __future__ import print_function
|
|
||||||
+
|
|
||||||
# NOTE: the actual command documentation is collected from docstrings of the
|
|
||||||
# commands and is appended to __doc__ after the class has been defined.
|
|
||||||
#@-<< docstring >>
|
|
||||||
--- leo/scripts/gen_blender_docs.py
|
|
||||||
+++ leo/scripts/gen_blender_docs.py
|
|
||||||
@@ -857,7 +857,7 @@
|
|
||||||
py_descr2predef(_IDENT, fw, descr, module_name, type_name, key)
|
|
||||||
|
|
||||||
for key, descr in descr_items:
|
|
||||||
- if type(descr) in {types.FunctionType, types.MethodType}:
|
|
||||||
+ if type(descr) in (types.FunctionType, types.MethodType):
|
|
||||||
pyfunc2predef(_IDENT, fw, key, descr)
|
|
||||||
|
|
||||||
for key, descr in descr_items:
|
|
@ -1,11 +0,0 @@
|
|||||||
--- leo/plugins/old_plugin_manager.py
|
|
||||||
+++ leo/plugins/old_plugin_manager.py
|
|
||||||
@@ -1386,7 +1386,7 @@
|
|
||||||
self.name, directive_text))
|
|
||||||
else:
|
|
||||||
# if isinstance(directive, (str,unicode)):
|
|
||||||
- if g.isString(directive)
|
|
||||||
+ if g.isString(directive):
|
|
||||||
requires.append(directive)
|
|
||||||
else:
|
|
||||||
requires.extend(directive)
|
|
@ -0,0 +1,44 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-text/code2html/code2html-0.9.1-r2.ebuild,v 1.2 2014/12/07 17:19:50 dilfridge Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils prefix
|
||||||
|
|
||||||
|
DESCRIPTION="Converts source files to colored HTML output"
|
||||||
|
HOMEPAGE="http://www.palfrader.org/code2html/"
|
||||||
|
SRC_URI="http://www.palfrader.org/code2html/all/${P}.tar.gz
|
||||||
|
mirror://gentoo/${P}-gentoo_patches.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND=">=dev-lang/perl-5"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Be consistent in color codes (bug #119406)
|
||||||
|
epatch "${WORKDIR}"/${P}-lowercase_color_codes.patch
|
||||||
|
|
||||||
|
# Improved C++ support (bug #133159)
|
||||||
|
epatch "${WORKDIR}"/${P}-cpp_keywords.patch
|
||||||
|
|
||||||
|
# Improved Ada support (bug #133176)
|
||||||
|
epatch "${WORKDIR}"/${P}-ada_identifiers.patch
|
||||||
|
|
||||||
|
# For prefix paths
|
||||||
|
epatch "${FILESDIR}"/${P}-prefix.patch
|
||||||
|
eprefixify code2html
|
||||||
|
|
||||||
|
# For newer Perl, bug 523610
|
||||||
|
epatch "${FILESDIR}"/${P}-scalar.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin code2html
|
||||||
|
dodoc ChangeLog CREDITS README
|
||||||
|
doman code2html.1
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
--- code2html.orig 2002-01-12 22:17:02.000000000 +0100
|
||||||
|
+++ code2html 2014-09-24 13:52:52.000000000 +0200
|
||||||
|
@@ -1357,7 +1357,7 @@
|
||||||
|
my @lines = split ( /\n/, $_[0] );
|
||||||
|
|
||||||
|
my $nr = 0;
|
||||||
|
- my $lengthofnr = length(@lines);
|
||||||
|
+ my $lengthofnr = length(scalar(@lines));
|
||||||
|
my $format = qq{<a name="$_[1]line%u">%${lengthofnr}u</a> %s\n} ;
|
||||||
|
join ('', map ( {$nr++; sprintf ( $format , $nr, $nr, $_ )} @lines));
|
||||||
|
},
|
||||||
|
@@ -1367,7 +1367,7 @@
|
||||||
|
my @lines = split ( /\n/, $_[0] );
|
||||||
|
|
||||||
|
my $nr = 0;
|
||||||
|
- my $lengthofnr = length(@lines);
|
||||||
|
+ my $lengthofnr = length(scalar(@lines));
|
||||||
|
my $format = qq{<a name="$_[1]line%u" href="#$_[1]line%u">%$ {lengthofnr}u</a> %s\n};
|
||||||
|
join ('', map ( {$nr++; sprintf ( $format , $nr, $nr, $nr, $_ )} @lines));
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
DIST cpdf-2.1.1.tar.gz 349536 SHA256 00a3c8b6f1ff60feff7d0b72c095befb576c08edc35ffee28a4d3a24ad599956 SHA512 aa06efaf098d3fe3f560ea30da9c3546e13d294b22d61c4cc3df553eb90e338d59ee1b51d14d7982ce52967bcf98c2afec9a5b5ae101e2183961f4be862c6517 WHIRLPOOL 317af6b976820ddbf3340b75e026f673bd47a7ce4f7de715cd6d71754b1fd403a4fadddffee85023dfd9a6aa44dfeeaf8dfb025784e70d0c33f0418420b80fc3
|
@ -0,0 +1,40 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/app-text/cpdf/cpdf-2.1.1.ebuild,v 1.1 2014/12/07 18:41:42 radhermit Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit findlib
|
||||||
|
|
||||||
|
DESCRIPTION="PDF command line tools"
|
||||||
|
HOMEPAGE="https://github.com/johnwhitington/cpdf-source/"
|
||||||
|
SRC_URI="https://github.com/johnwhitington/cpdf-source/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
# BSD is only for xmlm.ml
|
||||||
|
LICENSE="Coherent-Graphics BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="doc"
|
||||||
|
|
||||||
|
RDEPEND="dev-lang/ocaml:=
|
||||||
|
~dev-ml/camlpdf-${PV}:="
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
S=${WORKDIR}/${PN}-source-${PV}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# parallel make issues
|
||||||
|
emake -j1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
findlib_src_install
|
||||||
|
|
||||||
|
dobin cpdf
|
||||||
|
dodoc Changes README.md
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
dodoc cpdfmanual.pdf
|
||||||
|
dohtml doc/cpdf/html/*
|
||||||
|
fi
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version = '1.0' encoding = 'UTF-8'?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer>
|
||||||
|
<email>radhermit@gentoo.org</email>
|
||||||
|
<name>Tim Harder</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,111 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-apisupport/netbeans-apisupport-8.0.2.ebuild,v 1.1 2014/12/07 17:54:16 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans API Support Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/projects/apisupport"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-extide-${PV}
|
||||||
|
~dev-java/netbeans-harness-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-java-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.apisupport -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||||
|
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.extide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-harness-${SLOT} harness || die
|
||||||
|
cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.harness.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-java-${SLOT} java || die
|
||||||
|
cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.java.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/apisupport >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/apisupport$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/apisupport
|
||||||
|
}
|
@ -0,0 +1,125 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-cnd/netbeans-cnd-8.0.2.ebuild,v 1.1 2014/12/07 17:54:31 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans CND Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/projects/cnd"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/5CAB59D859CAA6598E28131D30DD2E89806DB57F-antlr-3.4.jar
|
||||||
|
http://hg.netbeans.org/binaries/4E74C6BE42FE89871A878C7C4D6158F21A6D8010-antlr-runtime-3.4.jar
|
||||||
|
http://hg.netbeans.org/binaries/24C58A1D3C410AD3E23CD828871630C17068B238-cnd-build-trace-1.0.zip
|
||||||
|
http://hg.netbeans.org/binaries/2BCF2047382FB68A2F275677745C80E79B4046AB-cnd-rfs-1.0.zip
|
||||||
|
http://hg.netbeans.org/binaries/C51780D99464CBF45B0495C7646B442AB3C7B463-open-fortran-parser-0.7.1.2.zip"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
# These files are for remote development and debugging
|
||||||
|
QA_PREBUILT="usr/share/netbeans-cnd-${SLOT}/bin/*"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-dlight-${PV}
|
||||||
|
~dev-java/netbeans-harness-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
>=dev-java/jna-3.4.0
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.cnd -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/5CAB59D859CAA6598E28131D30DD2E89806DB57F-antlr-3.4.jar libs.antlr3.devel/external/antlr-3.4.jar || die
|
||||||
|
ln -s "${DISTDIR}"/4E74C6BE42FE89871A878C7C4D6158F21A6D8010-antlr-runtime-3.4.jar libs.antlr3.runtime/external/antlr-runtime-3.4.jar || die
|
||||||
|
ln -s "${DISTDIR}"/24C58A1D3C410AD3E23CD828871630C17068B238-cnd-build-trace-1.0.zip cnd.discovery/external/cnd-build-trace-1.0.zip || die
|
||||||
|
ln -s "${DISTDIR}"/2BCF2047382FB68A2F275677745C80E79B4046AB-cnd-rfs-1.0.zip cnd.remote/external/cnd-rfs-1.0.zip || die
|
||||||
|
ln -s "${DISTDIR}"/C51780D99464CBF45B0495C7646B442AB3C7B463-open-fortran-parser-0.7.1.2.zip cnd.modelimpl/external/open-fortran-parser-0.7.1.2.zip || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
java-pkg_jar-from --build-only --into libs.jna/external jna jna.jar jna-4.1.0.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-dlight-${SLOT} dlight || die
|
||||||
|
cat /usr/share/netbeans-dlight-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.dlight.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-harness-${SLOT} harness || die
|
||||||
|
cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.harness.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/cnd >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/cnd$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
fperms 755 bin/dorun.sh
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/cnd
|
||||||
|
}
|
@ -0,0 +1,101 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-dlight/netbeans-dlight-8.0.2.ebuild,v 1.1 2014/12/07 17:54:45 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans D-Light Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/457A4C66AE33D1D5887BB1F359EEA41A10EBB2AB-fs_server-1.0.zip"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.dlight -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/457A4C66AE33D1D5887BB1F359EEA41A10EBB2AB-fs_server-1.0.zip dlight.remote.impl/external/fs_server-1.0.zip || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/dlight >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/dlight$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/dlight
|
||||||
|
}
|
@ -0,0 +1,249 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-enterprise/netbeans-enterprise-8.0.2.ebuild,v 1.1 2014/12/07 17:55:06 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans Enterprise cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/8BFEBCD4B39B87BBE788B4EECED068C8DBE75822-aws-java-sdk-1.2.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/BA8A45A96AFE07D914DE153E0BB137DCDC7734F6-el-impl.jar
|
||||||
|
http://hg.netbeans.org/binaries/33B0D0945555A06B74931DEACF9DB1A4AE2A3EC4-glassfish-jspparser-4.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/D813E05A06B587CD0FE36B00442EAB03C1431AA9-glassfish-logging-2.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/75C30C488AD2A18A82C7FE3829F4A33FC7841643-glassfish-tooling-sdk-0.3-b054-246345.jar
|
||||||
|
http://hg.netbeans.org/binaries/3D74BFB229C259E2398F2B383D5425CB81C643F0-httpclient-4.1.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/33FC26C02F8043AB0EDE19EADC8C9885386B255C-httpcore-4.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/D6F416983EA13C334D5C599A9045414ECAF5D66D-javaee-api-6.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/51399F902CC27A808122EDCBEBFAA1AD989954BA-javaee-api-7.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/EBEC44255251E6D3B8DDBAF701F732DAF0238CBF-javaee-web-api-6.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/B1FCE45BA94108EBF7E1CACE6427EC8761CABEC1-javaee-web-api-7.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/27E9711AA35C39EF455BFD900D544BACB99C0E89-javaee-doc-api.jar
|
||||||
|
http://hg.netbeans.org/binaries/B290091E71DEED6CE7F9EB40523D49C26399A2B4-javax.annotation.jar
|
||||||
|
http://hg.netbeans.org/binaries/1DEEA980904E39C3D7AA240B72CDBBEB8E4860F9-javax.annotation-api.jar
|
||||||
|
http://hg.netbeans.org/binaries/E11C0F07A92F6D02A347DD9C55EE56692A6D9F7E-javax.xml.soap-api.jar
|
||||||
|
http://hg.netbeans.org/binaries/EB77D3664EEA27D67B799ED28CB766B4D0971505-jaxb-api-osgi.jar
|
||||||
|
http://hg.netbeans.org/binaries/45EBA8B0520A70787D5DD2EA154ACE152F817C0D-jaxb-api-osgi.jar
|
||||||
|
http://hg.netbeans.org/binaries/C614ECF62381F88208D66D96146A8307781058DB-jaxrs-ri-2.5.1.zip
|
||||||
|
http://hg.netbeans.org/binaries/D4C96D968F87B1BFEF138E91E06C8FD4A1904208-jaxws-api.jar
|
||||||
|
http://hg.netbeans.org/binaries/B9DB1A789C301F1D31DD6CC524DA2EBD7F89190D-jsf-1.2.zip
|
||||||
|
http://hg.netbeans.org/binaries/99277566601C4D5C2598B0206B5DC071932F3641-jsf-2.2.zip
|
||||||
|
http://hg.netbeans.org/binaries/93A58E37BA1D014375B1578F3D904736CB2D408F-jsf-api-docs.zip
|
||||||
|
http://hg.netbeans.org/binaries/F072F63AB1689E885AC40C221DF3E6BB3E64A84A-jstl-api.jar
|
||||||
|
http://hg.netbeans.org/binaries/5B2E83EF42B4EEF0A7E41D43BB1D4B835F59AC7A-jstl-impl.jar
|
||||||
|
http://hg.netbeans.org/binaries/FDECFB78184C7D19E7E20130A7D7E88C1DF0BDD1-metro-1.4-doc.zip
|
||||||
|
http://hg.netbeans.org/binaries/F05AE8173BC750ECF1B52AD1F80050226458E490-metro-2.0.zip
|
||||||
|
http://hg.netbeans.org/binaries/065BDCE80509320280B3B5210FCDDAE9B7D50338-primefaces-5.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/68C97A238A2143B616879E8C1EF5BF01EA25B11E-servlet3.1-jsp2.3-api.jar
|
||||||
|
http://hg.netbeans.org/binaries/9319FDBED11E0D2EB03E4BB9E94BAA439A1DA469-struts-1.3.10-javadoc.zip
|
||||||
|
http://hg.netbeans.org/binaries/9E226CFC08177A6666E5A2C535C25837A92C54C9-struts-1.3.10-lib.zip
|
||||||
|
http://hg.netbeans.org/binaries/F6E990DF59BD1FD2058320002A853A5411A45CD4-syntaxref20.zip
|
||||||
|
http://hg.netbeans.org/binaries/A5744971ACE1F44A0FC71CCB93DE530CB3022965-webservices-api-osgi.jar"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-harness-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-java-${PV}
|
||||||
|
~dev-java/netbeans-profiler-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}
|
||||||
|
~dev-java/netbeans-webcommon-${PV}
|
||||||
|
~dev-java/netbeans-websvccommon-${PV}
|
||||||
|
dev-java/commons-codec:0
|
||||||
|
dev-java/commons-fileupload:0
|
||||||
|
dev-java/commons-logging:0
|
||||||
|
dev-java/glassfish-deployment-api:1.2"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0
|
||||||
|
dev-java/jsr181:0
|
||||||
|
>=dev-java/junit-4.4:4
|
||||||
|
dev-java/tomcat-servlet-api:2.3"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/antlr:0[java]
|
||||||
|
dev-java/bsf:2.3
|
||||||
|
dev-java/commons-beanutils:1.7
|
||||||
|
dev-java/commons-collections:0
|
||||||
|
dev-java/commons-digester:0
|
||||||
|
dev-java/commons-io:1
|
||||||
|
dev-java/commons-validator:0
|
||||||
|
dev-java/jakarta-oro:2.0"
|
||||||
|
# dev-java/commons-chain:1.1 in overlay
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.enterprise -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/8BFEBCD4B39B87BBE788B4EECED068C8DBE75822-aws-java-sdk-1.2.1.jar libs.amazon/external/aws-java-sdk-1.2.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/BA8A45A96AFE07D914DE153E0BB137DCDC7734F6-el-impl.jar libs.elimpl/external/el-impl.jar || die
|
||||||
|
ln -s "${DISTDIR}"/33B0D0945555A06B74931DEACF9DB1A4AE2A3EC4-glassfish-jspparser-4.0.jar web.jspparser/external/glassfish-jspparser-4.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/D813E05A06B587CD0FE36B00442EAB03C1431AA9-glassfish-logging-2.0.jar libs.glassfish_logging/external/glassfish-logging-2.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/75C30C488AD2A18A82C7FE3829F4A33FC7841643-glassfish-tooling-sdk-0.3-b054-246345.jar libs.glassfish.sdk/external/glassfish-tooling-sdk-0.3-b054-246345.jar || die
|
||||||
|
ln -s "${DISTDIR}"/3D74BFB229C259E2398F2B383D5425CB81C643F0-httpclient-4.1.1.jar libs.amazon/external/httpclient-4.1.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/33FC26C02F8043AB0EDE19EADC8C9885386B255C-httpcore-4.1.jar libs.amazon/external/httpcore-4.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/D6F416983EA13C334D5C599A9045414ECAF5D66D-javaee-api-6.0.jar javaee.api/external/javaee-api-6.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/51399F902CC27A808122EDCBEBFAA1AD989954BA-javaee-api-7.0.jar javaee7.api/external/javaee-api-7.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/EBEC44255251E6D3B8DDBAF701F732DAF0238CBF-javaee-web-api-6.0.jar javaee.api/external/javaee-web-api-6.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/B1FCE45BA94108EBF7E1CACE6427EC8761CABEC1-javaee-web-api-7.0.jar javaee7.api/external/javaee-web-api-7.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/27E9711AA35C39EF455BFD900D544BACB99C0E89-javaee-doc-api.jar j2ee.platform/external/javaee-doc-api.jar || die
|
||||||
|
ln -s "${DISTDIR}"/B290091E71DEED6CE7F9EB40523D49C26399A2B4-javax.annotation.jar javaee.api/external/javax.annotation.jar || die
|
||||||
|
ln -s "${DISTDIR}"/1DEEA980904E39C3D7AA240B72CDBBEB8E4860F9-javax.annotation-api.jar javaee7.api/external/javax.annotation-api.jar || die
|
||||||
|
ln -s "${DISTDIR}"/E11C0F07A92F6D02A347DD9C55EE56692A6D9F7E-javax.xml.soap-api.jar javaee7.api/external/javax.xml.soap-api.jar || die
|
||||||
|
ln -s "${DISTDIR}"/EB77D3664EEA27D67B799ED28CB766B4D0971505-jaxb-api-osgi.jar javaee.api/external/jaxb-api-osgi.jar || die
|
||||||
|
ln -s "${DISTDIR}"/45EBA8B0520A70787D5DD2EA154ACE152F817C0D-jaxb-api-osgi.jar javaee7.api/external/jaxb-api-osgi.jar || die
|
||||||
|
ln -s "${DISTDIR}"/C614ECF62381F88208D66D96146A8307781058DB-jaxrs-ri-2.5.1.zip websvc.restlib/external/jaxrs-ri-2.5.1.zip || die
|
||||||
|
ln -s "${DISTDIR}"/D4C96D968F87B1BFEF138E91E06C8FD4A1904208-jaxws-api.jar javaee7.api/external/jaxws-api.jar || die
|
||||||
|
ln -s "${DISTDIR}"/B9DB1A789C301F1D31DD6CC524DA2EBD7F89190D-jsf-1.2.zip web.jsf12/external/jsf-1.2.zip || die
|
||||||
|
ln -s "${DISTDIR}"/99277566601C4D5C2598B0206B5DC071932F3641-jsf-2.2.zip web.jsf20/external/jsf-2.2.zip || die
|
||||||
|
ln -s "${DISTDIR}"/93A58E37BA1D014375B1578F3D904736CB2D408F-jsf-api-docs.zip web.jsf.editor/external/jsf-api-docs.zip || die
|
||||||
|
ln -s "${DISTDIR}"/F072F63AB1689E885AC40C221DF3E6BB3E64A84A-jstl-api.jar libs.jstl/external/jstl-api.jar || die
|
||||||
|
ln -s "${DISTDIR}"/5B2E83EF42B4EEF0A7E41D43BB1D4B835F59AC7A-jstl-impl.jar libs.jstl/external/jstl-impl.jar || die
|
||||||
|
ln -s "${DISTDIR}"/FDECFB78184C7D19E7E20130A7D7E88C1DF0BDD1-metro-1.4-doc.zip websvc.metro.lib/external/metro-1.4-doc.zip || die
|
||||||
|
ln -s "${DISTDIR}"/F05AE8173BC750ECF1B52AD1F80050226458E490-metro-2.0.zip websvc.metro.lib/external/metro-2.0.zip || die
|
||||||
|
ln -s "${DISTDIR}"/065BDCE80509320280B3B5210FCDDAE9B7D50338-primefaces-5.0.jar web.primefaces/external/primefaces-5.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/68C97A238A2143B616879E8C1EF5BF01EA25B11E-servlet3.1-jsp2.3-api.jar servletjspapi/external/servlet3.1-jsp2.3-api.jar || die
|
||||||
|
ln -s "${DISTDIR}"/9319FDBED11E0D2EB03E4BB9E94BAA439A1DA469-struts-1.3.10-javadoc.zip web.struts/external/struts-1.3.10-javadoc.zip || die
|
||||||
|
ln -s "${DISTDIR}"/9E226CFC08177A6666E5A2C535C25837A92C54C9-struts-1.3.10-lib.zip web.struts/external/struts-1.3.10-lib.zip || die
|
||||||
|
ln -s "${DISTDIR}"/F6E990DF59BD1FD2058320002A853A5411A45CD4-syntaxref20.zip web.core.syntax/external/syntaxref20.zip || die
|
||||||
|
ln -s "${DISTDIR}"/A5744971ACE1F44A0FC71CCB93DE530CB3022965-webservices-api-osgi.jar javaee.api/external/webservices-api-osgi.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
java-pkg_jar-from --into j2eeapis/external glassfish-deployment-api-1.2 glassfish-deployment-api.jar jsr88javax.jar
|
||||||
|
java-pkg_jar-from --into libs.amazon/external commons-codec commons-codec.jar commons-codec-1.3.jar
|
||||||
|
java-pkg_jar-from --into libs.amazon/external commons-logging commons-logging.jar commons-logging-1.1.1.jar
|
||||||
|
java-pkg_jar-from --into libs.commons_fileupload/external commons-fileupload commons-fileupload.jar commons-fileupload-1.3.jar
|
||||||
|
java-pkg_jar-from --build-only --into javaee7.api/external jsr181 jsr181.jar jsr181-api.jar
|
||||||
|
java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.10.jar
|
||||||
|
java-pkg_jar-from --build-only --into web.monitor/external tomcat-servlet-api-2.3 servlet.jar servlet-2.3.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||||
|
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.extide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-harness-${SLOT} harness || die
|
||||||
|
cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.harness.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-java-${SLOT} java || die
|
||||||
|
cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.java.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-profiler-${SLOT} profiler || die
|
||||||
|
cat /usr/share/netbeans-profiler-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.profiler.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-webcommon-${SLOT} webcommon || die
|
||||||
|
cat /usr/share/netbeans-webcommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.webcommon.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
|
||||||
|
cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.websvccommon.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/enterprise >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/enterprise$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm commons-fileupload-1.3.jar && dosym /usr/share/commons-fileupload/lib/commons-fileupload.jar ${instdir}/commons-fileupload-1.3.jar || die
|
||||||
|
rm jsr88javax.jar && dosym /usr/share/glassfish-deployment-api-1.2/lib/glassfish-deployment-api.jar ${instdir}/jsr88javax.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext/aws-sdk
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm commons-codec-1.3.jar && dosym /usr/share/commons-codec/lib/commons-codec.jar ${instdir}/commons-codec-1.3.jar || die
|
||||||
|
rm commons-logging-1.1.1.jar && dosym /usr/share/commons-logging/lib/commons-logging.jar ${instdir}/commons-logging-1.1.1.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext/jsf-1_2
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm commons-beanutils.jar && dosym /usr/share/commons-beanutils-1.7/lib/commons-beanutils.jar ${instdir}/commons-beanutils.jar || die
|
||||||
|
rm commons-collections.jar && dosym /usr/share/commons-collections/lib/commons-collections.jar ${instdir}/commons-collections.jar || die
|
||||||
|
rm commons-digester.jar && dosym /usr/share/commons-digester/lib/commons-digester.jar ${instdir}/commons-digester.jar || die
|
||||||
|
rm commons-logging.jar && dosym /usr/share/commons-logging/lib/commons-logging.jar ${instdir}/commons-logging.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext/struts
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm antlr-2.7.2.jar && dosym /usr/share/antlr/lib/antlr.jar ${instdir}/antlr-2.7.2.jar || die
|
||||||
|
rm bsf-2.3.0.jar && dosym /usr/share/bsf-2.3/lib/bsf.jar ${instdir}/bsf-2.3.0.jar || die
|
||||||
|
rm commons-beanutils-1.8.0.jar && dosym /usr/share/commons-beanutils-1.7/lib/commons-beanutils.jar ${instdir}/commons-beanutils-1.8.0.jar || die
|
||||||
|
rm commons-digester-1.8.jar && dosym /usr/share/commons-digester/lib/commons-digester.jar ${instdir}/commons-digester-1.8.jar || die
|
||||||
|
rm commons-fileupload-1.1.1.jar && dosym /usr/share/commons-fileupload/lib/commons-fileupload.jar ${instdir}/commons-fileupload-1.1.1.jar || die
|
||||||
|
rm commons-io-1.1.jar && dosym /usr/share/commons-io-1/lib/commons-io.jar ${instdir}/commons-io-1.1.jar || die
|
||||||
|
rm commons-logging-1.0.4.jar && dosym /usr/share/commons-logging/lib/commons-logging.jar ${instdir}/commons-logging-1.0.4.jar || die
|
||||||
|
rm commons-validator-1.3.1.jar && dosym /usr/share/commons-validator/lib/commons-validator.jar ${instdir}/commons-validator-1.3.1.jar || die
|
||||||
|
rm oro-2.0.8.jar && dosym /usr/share/jakarta-oro-2.0/lib/jakarta-oro.jar ${instdir}/oro-2.0.8.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/enterprise
|
||||||
|
}
|
@ -0,0 +1,101 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-ergonomics/netbeans-ergonomics-8.0.2.ebuild,v 1.1 2014/12/07 17:55:22 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans Ergonomics Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-nb-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.ergonomics -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-nb-${SLOT}/nb nb || die
|
||||||
|
cat /usr/share/netbeans-nb-${SLOT}/nb/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.nb.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/ergonomics >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/ergonomics$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/ergonomics
|
||||||
|
}
|
@ -1,8 +1,12 @@
|
|||||||
|
DIST 22CB933E3A1450B092C45785C187837E97523F5C-ant-libs-1.9.4.zip 2318445 SHA256 9d251f217f0f39c098d4fa576d77c720f8039b43becb15d88912d9c3fdcd2c3e SHA512 c696b7984a663257210b03bb9a7d4a8da8a53d7e727de068558380b14c0f17aefe8cfe310c0b96f277010756b277f500629db3c9d9a1fcf38f5113708d8dbd34 WHIRLPOOL a8e55e84ee661eb951dec065cf0f2ac6f19720a30bbe8432c95a56d531fdd2bb48a8359946fc8a1bc8d789a568bfed87bcdee04efdc86be58a518434616d6641
|
||||||
DIST 32F6CF2B9EE5F69DCB020E7B5833227933FBEAA7-ant-libs-1.9.1.zip 2293688 SHA256 fa60dd9147a22fba485c30f80be49d215965f9c4c41337890e03dfdb7f2f7d80 SHA512 715e052a80ec3def48efef8060eda29ddfce57ec5e76581f5f189257214c8e46615f9550eeedbe5b6f26982b11ccbbc45c9fee406fe7ddedd2c8a1d5ff5ec262 WHIRLPOOL 9bc5f9d3470dceb690b2c9e063cd00de83f0eb5a8c64fa882dc60a9d4c025588c2465a2ece93dad57e05bf5b2fffbf95638eeea955bf2731fe966d679a2cbf18
|
DIST 32F6CF2B9EE5F69DCB020E7B5833227933FBEAA7-ant-libs-1.9.1.zip 2293688 SHA256 fa60dd9147a22fba485c30f80be49d215965f9c4c41337890e03dfdb7f2f7d80 SHA512 715e052a80ec3def48efef8060eda29ddfce57ec5e76581f5f189257214c8e46615f9550eeedbe5b6f26982b11ccbbc45c9fee406fe7ddedd2c8a1d5ff5ec262 WHIRLPOOL 9bc5f9d3470dceb690b2c9e063cd00de83f0eb5a8c64fa882dc60a9d4c025588c2465a2ece93dad57e05bf5b2fffbf95638eeea955bf2731fe966d679a2cbf18
|
||||||
DIST 51449E030F3A5F80327536CC51D75EE9D7E59BDA-ant-libs-1.9.2.zip 2295901 SHA256 38a2e63a7e6a7e7b0d2a129cecb3cd53eb1cf76e209538a62d021a0c105ed4ca SHA512 7c14cdf5d353c6c480491ab768392907a552b95fb2e74c4f0fbaf9bd8e8f37b26f765180e1248b6b8655a2671ae0875d82ae92e66829bff5ba4d9bc9e9e5cc5b WHIRLPOOL a072a74c0e7e8d785b6e537a918ff313e3f6497bd8d8e59e941cfec59d18e926ef77c36b6d22700b1eccc6134f8c79af995fdf0cb7cc3b165b27f1d60c38ced9
|
DIST 51449E030F3A5F80327536CC51D75EE9D7E59BDA-ant-libs-1.9.2.zip 2295901 SHA256 38a2e63a7e6a7e7b0d2a129cecb3cd53eb1cf76e209538a62d021a0c105ed4ca SHA512 7c14cdf5d353c6c480491ab768392907a552b95fb2e74c4f0fbaf9bd8e8f37b26f765180e1248b6b8655a2671ae0875d82ae92e66829bff5ba4d9bc9e9e5cc5b WHIRLPOOL a072a74c0e7e8d785b6e537a918ff313e3f6497bd8d8e59e941cfec59d18e926ef77c36b6d22700b1eccc6134f8c79af995fdf0cb7cc3b165b27f1d60c38ced9
|
||||||
|
DIST 95CCE237B1E9390FBED0440B601822813DB220E6-ant-misc-1.9.4.zip 95179 SHA256 040359927e4e0e77f28649de1618a5170200c31b00b5f4ac53fb5a06dfeee886 SHA512 977c9cd7c91c3ccce4d8bd9bafe6302c99bae2bc8e53ab1776602ba1e61770ac1a68c1109aeb6d609126a1916b3f4d961d2574a7d6b8a280262878e022c5edb5 WHIRLPOOL e1671f868a0da75d31408e1a91ebeaaa4ed03f40bc2a8040ba8e5d4b1ffe0dc71e2874d96240df0d0c9170bd0f12fca25a565504ba91462422f9f4de65a51208
|
||||||
DIST BEB2DE1B81AFF4A4B68D7839BB10341EE10A7A55-ant-misc-1.9.2.zip 93486 SHA256 7408403eac0aaeb7c5badfea2aaa392b66fc85966b9c87f23c1f8c4bcc31c6b4 SHA512 de91d640ba6b32a24930ddecbdc1c77edc00f4c6141d6c1b19602b420e62c06ab850a7b2cb87c41e4a7a6f3337728d91452e97a4a14c48a90f757703b1f1fce1 WHIRLPOOL d3484ee36b20b4ea8b00c8fed9834c40918344374c83d29e071791cf18393c284005297999b7f0a53cabd3dad7207eaccd39aca0b7a57b088f59bc3b21f0a1e7
|
DIST BEB2DE1B81AFF4A4B68D7839BB10341EE10A7A55-ant-misc-1.9.2.zip 93486 SHA256 7408403eac0aaeb7c5badfea2aaa392b66fc85966b9c87f23c1f8c4bcc31c6b4 SHA512 de91d640ba6b32a24930ddecbdc1c77edc00f4c6141d6c1b19602b420e62c06ab850a7b2cb87c41e4a7a6f3337728d91452e97a4a14c48a90f757703b1f1fce1 WHIRLPOOL d3484ee36b20b4ea8b00c8fed9834c40918344374c83d29e071791cf18393c284005297999b7f0a53cabd3dad7207eaccd39aca0b7a57b088f59bc3b21f0a1e7
|
||||||
DIST FCC654151181159A667BBCB5517880E96051FCE0-ant-misc-1.9.1.zip 93481 SHA256 89cfd0ab126f40e9383b33e35900c29c60760a429d627a3d24c744ac1a1cd023 SHA512 9cc92ce712c2ffeb17fa91ad42e2d572ec5e79385d2cc1c719a6c447b890038ae5fffa11489ac9c05e5b750f955be1c0e39e9573cb82a9101f8bbda559704c6c WHIRLPOOL f7ef0a369b00a7b6877585250ce0e8fd704a7693931b96867fafc7fcd60b89f2d7662f78ac25a9c893c1034a41c68c6b17e9800b14865c0488069302e0bb9aaf
|
DIST FCC654151181159A667BBCB5517880E96051FCE0-ant-misc-1.9.1.zip 93481 SHA256 89cfd0ab126f40e9383b33e35900c29c60760a429d627a3d24c744ac1a1cd023 SHA512 9cc92ce712c2ffeb17fa91ad42e2d572ec5e79385d2cc1c719a6c447b890038ae5fffa11489ac9c05e5b750f955be1c0e39e9573cb82a9101f8bbda559704c6c WHIRLPOOL f7ef0a369b00a7b6877585250ce0e8fd704a7693931b96867fafc7fcd60b89f2d7662f78ac25a9c893c1034a41c68c6b17e9800b14865c0488069302e0bb9aaf
|
||||||
DIST netbeans-7.4-201310111528-src.zip 185900858 SHA256 b6c584c2091d600dcb4d10a732812864265f6ec776da11b4f700195eb3d6fd05 SHA512 424124000026e161bf91688106c0d25668869abde49b6f0fad1a2a8a9ca3b40e664f14056132f3ded43bc319056b2ac56a705c3624f175f279824cae42f9a9a2 WHIRLPOOL 0200e37fc6ca22d8e679327c55fb2fec2fc030106e3802cdec2dde2766df354faec3659a4867cbfc908c673c1a770f59b37c6b4b9cd391b3844d6af11cafc01a
|
DIST netbeans-7.4-201310111528-src.zip 185900858 SHA256 b6c584c2091d600dcb4d10a732812864265f6ec776da11b4f700195eb3d6fd05 SHA512 424124000026e161bf91688106c0d25668869abde49b6f0fad1a2a8a9ca3b40e664f14056132f3ded43bc319056b2ac56a705c3624f175f279824cae42f9a9a2 WHIRLPOOL 0200e37fc6ca22d8e679327c55fb2fec2fc030106e3802cdec2dde2766df354faec3659a4867cbfc908c673c1a770f59b37c6b4b9cd391b3844d6af11cafc01a
|
||||||
DIST netbeans-7.4-build.xml.patch.bz2 2685 SHA256 3ffbe61e33ab28f39acbe28209469c673ac97ba4620e9ab7391537b9d242da6a SHA512 247c67cf53ee40e94768d547218664cbf82c487f16982a43daed054a17327f168f35319ed4fa2def995adf3f0a6d25f85a3bb23ff4a84aa4e4f751257f255545 WHIRLPOOL bceeaebe6a7079910cfabcbf48738694b8b86a5ab7147002182eba3c305a310febe5861abdc3e63df904b45fcf3a5ecb3007c15611b59b4ce53406e578d13c47
|
DIST netbeans-7.4-build.xml.patch.bz2 2685 SHA256 3ffbe61e33ab28f39acbe28209469c673ac97ba4620e9ab7391537b9d242da6a SHA512 247c67cf53ee40e94768d547218664cbf82c487f16982a43daed054a17327f168f35319ed4fa2def995adf3f0a6d25f85a3bb23ff4a84aa4e4f751257f255545 WHIRLPOOL bceeaebe6a7079910cfabcbf48738694b8b86a5ab7147002182eba3c305a310febe5861abdc3e63df904b45fcf3a5ecb3007c15611b59b4ce53406e578d13c47
|
||||||
DIST netbeans-8.0-201403101706-src.zip 194215149 SHA256 737a6fe9313e720590933773672c1f241820b795ce384a605743f3eeba0a9396 SHA512 dbc4ea3852ac0a698729a7698f2dccff427680bf01234c8a463268540e886f57b39697ec124fc0701cd52b558987961fc82e6f27bc9f0fc115159d250fddd676 WHIRLPOOL 47d914d023212076c463a99eda49b202aa6c05a2ffd5c32b61f97a4cd76930c94e18059292a8520359f38736e838a7c2d053ecf584493dbb3a9d8f5133ed6b36
|
DIST netbeans-8.0-201403101706-src.zip 194215149 SHA256 737a6fe9313e720590933773672c1f241820b795ce384a605743f3eeba0a9396 SHA512 dbc4ea3852ac0a698729a7698f2dccff427680bf01234c8a463268540e886f57b39697ec124fc0701cd52b558987961fc82e6f27bc9f0fc115159d250fddd676 WHIRLPOOL 47d914d023212076c463a99eda49b202aa6c05a2ffd5c32b61f97a4cd76930c94e18059292a8520359f38736e838a7c2d053ecf584493dbb3a9d8f5133ed6b36
|
||||||
DIST netbeans-8.0-build.xml.patch.bz2 2685 SHA256 3ffbe61e33ab28f39acbe28209469c673ac97ba4620e9ab7391537b9d242da6a SHA512 247c67cf53ee40e94768d547218664cbf82c487f16982a43daed054a17327f168f35319ed4fa2def995adf3f0a6d25f85a3bb23ff4a84aa4e4f751257f255545 WHIRLPOOL bceeaebe6a7079910cfabcbf48738694b8b86a5ab7147002182eba3c305a310febe5861abdc3e63df904b45fcf3a5ecb3007c15611b59b4ce53406e578d13c47
|
DIST netbeans-8.0-build.xml.patch.bz2 2685 SHA256 3ffbe61e33ab28f39acbe28209469c673ac97ba4620e9ab7391537b9d242da6a SHA512 247c67cf53ee40e94768d547218664cbf82c487f16982a43daed054a17327f168f35319ed4fa2def995adf3f0a6d25f85a3bb23ff4a84aa4e4f751257f255545 WHIRLPOOL bceeaebe6a7079910cfabcbf48738694b8b86a5ab7147002182eba3c305a310febe5861abdc3e63df904b45fcf3a5ecb3007c15611b59b4ce53406e578d13c47
|
||||||
|
DIST netbeans-8.0.2-201411181905-src.zip 196585461 SHA256 581f80d3c2e8d87a0f007dd3f358ce0534a0bb2e4b3312cd6c8c7263713bc530 SHA512 9533de5b3c45e4a5b025213dd5602344e16d024e0cdb013f207ac3c7a9d8e63da19279f97910ad136777d75780c620224953f2974070d5c9833d1d6ef3fd427c WHIRLPOOL 2e45e83309743df167ddd1d58068848166d01ef6d9eec99ddf72b9ba7664cb182a04d6420ab03a9270842b3cd9a16a161c1eebb66953ef09158d8d521fb96516
|
||||||
|
DIST netbeans-8.0.2-build.xml.patch.bz2 2671 SHA256 b5384db6533d41c7d3fdaffd3cd296d156ac99f0a026e3d74c4ac5b5d388a70f SHA512 1dd5dcf02fd81691b0f9c531470379138484dcbc271f65ba53a3844a1e697719e47cb98c90f92f92c5980a577d27370efc800297525f62da7211393ea0a18915 WHIRLPOOL c77621b5f4eea9e688d9714be9268d05f7c1e792d9d46d3a082418d8c1cb52c35f76d59f0befddc73f30a0e0e12c0af25b4b31c1cb69b68dd90e48638d7da509
|
||||||
|
@ -0,0 +1,108 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-extide/netbeans-extide-8.0.2.ebuild,v 1.1 2014/12/07 17:55:40 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans ExtIDE Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/projects/ide"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/22CB933E3A1450B092C45785C187837E97523F5C-ant-libs-1.9.4.zip
|
||||||
|
http://hg.netbeans.org/binaries/95CCE237B1E9390FBED0440B601822813DB220E6-ant-misc-1.9.4.zip"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
dev-java/javahelp:0
|
||||||
|
${CDEPEND}"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.extide -Dext.binaries.downloaded=true -Djava.awt.headless=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/22CB933E3A1450B092C45785C187837E97523F5C-ant-libs-1.9.4.zip o.apache.tools.ant.module/external/ant-libs-1.9.4.zip || die
|
||||||
|
ln -s "${DISTDIR}"/95CCE237B1E9390FBED0440B601822813DB220E6-ant-misc-1.9.4.zip o.apache.tools.ant.module/external/ant-misc-1.9.4.zip || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
unset DISPLAY
|
||||||
|
eant -f ${EANT_BUILD_XML} ${EANT_EXTRA_ARGS} ${EANT_BUILD_TARGET} || die "Compilation failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/extide >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/extide$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/extide
|
||||||
|
}
|
@ -0,0 +1,111 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-groovy/netbeans-groovy-8.0.2.ebuild,v 1.1 2014/12/07 17:55:57 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans Groovy Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/projects/groovy"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/C136AE67C3C40740AE986582BAF65BA5C5CE69A0-groovy-all-2.1.7.jar"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-extide-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-java-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.groovy -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/C136AE67C3C40740AE986582BAF65BA5C5CE69A0-groovy-all-2.1.7.jar libs.groovy/external/groovy-all-2.1.7.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||||
|
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.extide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-java-${SLOT} java || die
|
||||||
|
cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.java.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/groovy >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/groovy$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/groovy
|
||||||
|
}
|
@ -0,0 +1,114 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-harness/netbeans-harness-8.0.2.ebuild,v 1.1 2014/12/07 17:56:12 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans Harness"
|
||||||
|
HOMEPAGE="http://netbeans.org/features/platform/"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar
|
||||||
|
http://hg.netbeans.org/binaries/D325D3913CBC0F9A8D73A466FABB98EDEEC014AB-jemmy-2.3.1.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/D06C8980C9025183C044202419EA29E69FBD4B99-jemmy-2.3.1.1-doc.zip
|
||||||
|
http://hg.netbeans.org/binaries/49197106637CCA8C337AF16CC01BB5D9DEC7E179-jemmy-2.3.1.1-src.zip
|
||||||
|
http://hg.netbeans.org/binaries/20D826CC819A5A969CF3F7204E2E26CB6263EC43-jnlp-servlet.jar"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-platform-${PV}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
>=dev-java/junit-4.4:4"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.harness -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar apisupport.harness/external/bindex-2.2.jar || die
|
||||||
|
ln -s "${DISTDIR}"/20D826CC819A5A969CF3F7204E2E26CB6263EC43-jnlp-servlet.jar apisupport.harness/external/jnlp-servlet.jar || die
|
||||||
|
ln -s "${DISTDIR}"/D325D3913CBC0F9A8D73A466FABB98EDEEC014AB-jemmy-2.3.1.1.jar jemmy/external/jemmy-2.3.1.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/D06C8980C9025183C044202419EA29E69FBD4B99-jemmy-2.3.1.1-doc.zip jemmy/external/jemmy-2.3.1.1-doc.zip || die
|
||||||
|
ln -s "${DISTDIR}"/49197106637CCA8C337AF16CC01BB5D9DEC7E179-jemmy-2.3.1.1-src.zip jemmy/external/jemmy-2.3.1.1-src.zip || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
java-pkg_jar-from --into apisupport.harness/external javahelp jsearch.jar jsearch-2.0_05.jar
|
||||||
|
java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.10.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/harness >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/harness$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
fperms 755 launchers/app.sh
|
||||||
|
find "${D}" -name "*.exe" -type f -delete
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/antlib
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm jsearch-2.0_05.jar && dosym /usr/share/javahelp/lib/jsearch.jar ${instdir}/jsearch-2.0_05.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/harness
|
||||||
|
}
|
@ -0,0 +1,371 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-ide/netbeans-ide-8.0.2.ebuild,v 1.1 2014/12/07 17:56:31 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans IDE Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/projects/ide"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/4E74C6BE42FE89871A878C7C4D6158F21A6D8010-antlr-runtime-3.4.jar
|
||||||
|
http://hg.netbeans.org/binaries/98308890597ACB64047F7E896638E0D98753AE82-asm-all-4.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/886FAF4B85054DD6E50D9B3438542F432B5F9251-bytelist-0.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/A8762D07E76CFDE2395257A5DA47BA7C1DBD3DCE-commons-io-1.4.jar
|
||||||
|
http://hg.netbeans.org/binaries/CD0D5510908225F76C5FE5A3F1DF4FA44866F81E-commons-net-3.3.jar
|
||||||
|
http://hg.netbeans.org/binaries/901D8F815922C435D985DA3814D20E34CC7622CB-css21-spec.zip
|
||||||
|
http://hg.netbeans.org/binaries/53AFD6CAA1B476204557B0626E7D673FBD5D245C-css3-spec.zip
|
||||||
|
http://hg.netbeans.org/binaries/C9A6304FAA121C97CB2458B93D30B1FD6F0F7691-derbysampledb.zip
|
||||||
|
http://hg.netbeans.org/binaries/C40DFDACDF892D1BA14B540B32C11B6F34659931-exechlp-1.0.zip
|
||||||
|
http://hg.netbeans.org/binaries/5EEAAC41164FEBCB79C73BEBD678A7B6C10C3E80-freemarker-2.3.19.jar
|
||||||
|
http://hg.netbeans.org/binaries/75C30C488AD2A18A82C7FE3829F4A33FC7841643-glassfish-tooling-sdk-0.3-b054-246345.jar
|
||||||
|
http://hg.netbeans.org/binaries/23123BB29025254556B6E573023FCDF0F6715A66-html-4.01.zip
|
||||||
|
http://hg.netbeans.org/binaries/F4A1696661E6233F8C27EE323CAEF9CB052666F1-html5-datatypes.jar
|
||||||
|
http://hg.netbeans.org/binaries/4388C34B9F085A42FBEA06C5B00FDF0A251171EC-html5doc.zip
|
||||||
|
http://hg.netbeans.org/binaries/D528B44AE7593D2275927396BF930B28078C5220-htmlparser-1.2.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/8E737D82ECAC9BA6100A9BBA71E92A381B75EFDC-ini4j-0.5.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/A2862B7795EF0E0F0716BEC84528FA3B629E479C-io-xml-util.jar
|
||||||
|
http://hg.netbeans.org/binaries/0DCC973606CBD9737541AA5F3E76DED6E3F4D0D0-iri.jar
|
||||||
|
http://hg.netbeans.org/binaries/F90E3DA5259DB07F36E6987EFDED647A5231DE76-ispell-enwl-3.1.20.zip
|
||||||
|
http://hg.netbeans.org/binaries/71F434378F822B09A57174AF6C75D37408687C57-jaxb-api.jar
|
||||||
|
http://hg.netbeans.org/binaries/27FAE927B5B9AE53A5B0ED825575DD8217CE7042-jaxb-api-doc.zip
|
||||||
|
http://hg.netbeans.org/binaries/387BE740EAEF52B3F6E6EE2F140757E7632584CE-jaxb-impl.jar
|
||||||
|
http://hg.netbeans.org/binaries/C3787DAB0DDFBD9E98086ED2F219859B0CB77EF7-jaxb-xjc.jar
|
||||||
|
http://hg.netbeans.org/binaries/F4DB465F207907A2406B0BF5C8FFEE22A5C3E4E3-jaxb1-impl.jar
|
||||||
|
http://hg.netbeans.org/binaries/5E40984A55F6FFF704F05D511A119CA5B456DDB1-jfxrt.jar
|
||||||
|
http://hg.netbeans.org/binaries/483A61B688B13C62BB201A683D98A6688B5373B6-jing.jar
|
||||||
|
http://hg.netbeans.org/binaries/DA6CE3C2EB334DB61EFA99CD66134619867368FA-js-corestubs.zip
|
||||||
|
http://hg.netbeans.org/binaries/997BF4A93B8A99E37AB51C9016D1D18CF5FF4B60-js-domstubs.zip
|
||||||
|
http://hg.netbeans.org/binaries/A723CD3E76C92CFE563B602035532C1C9D3D7192-js-reststubs.zip
|
||||||
|
http://hg.netbeans.org/binaries/036FA0032B44AD06A1F13504D97B3685B1C88961-jsch.agentproxy.core-0.0.7.jar
|
||||||
|
http://hg.netbeans.org/binaries/9F31964104D71855DF6B73F0C761CDEB3FA3C49C-jsch.agentproxy.sshagent-0.0.7.jar
|
||||||
|
http://hg.netbeans.org/binaries/3FA59A536F3DC2197826DC7F224C0823C1534203-jsch.agentproxy.pageant-0.0.7.jar
|
||||||
|
http://hg.netbeans.org/binaries/F759114E5A9F9AE907EADB59DBF65189AA399B45-jsch.agentproxy.usocket-jna-0.0.7.jar
|
||||||
|
http://hg.netbeans.org/binaries/2E07375E5CA3A452472F0E87FB33F243F7A5C08C-libpam4j-1.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/76E901A1F432323E7E90FC86FDB2534A28952293-nashorn-02f810c26ff9-patched.jar
|
||||||
|
http://hg.netbeans.org/binaries/010FC8BD229B7F68C8C4D5BDE399475373096601-non-schema.jar
|
||||||
|
http://hg.netbeans.org/binaries/7052E115041D04410A4519A61307502FB7C138E6-org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar
|
||||||
|
http://hg.netbeans.org/binaries/B19A4D998C76FE7A30830C96B9E3A47682F320FC-org.eclipse.core.jobs-3.5.101.jar
|
||||||
|
http://hg.netbeans.org/binaries/E64EF6A3FC5DB01AD95632B843706CCE56614C90-org.eclipse.core.net_1.2.100.I20110511-0800.jar
|
||||||
|
http://hg.netbeans.org/binaries/6658C235056134F7E86295E751129508802D71F2-org.eclipse.core.runtime-3.7.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/0CA9B9DF8A8E4C6805C60A5761C470FCE8AE828F-org.eclipse.core.runtime.compatibility.auth_3.2.200.v20110110.jar
|
||||||
|
http://hg.netbeans.org/binaries/9C74D245214DB08E7EB9BC07A951B41CFE3E3648-org.eclipse.equinox.app-1.3.100.jar
|
||||||
|
http://hg.netbeans.org/binaries/78E5D0B8516B042495660DA36CE5114650F8F156-org.eclipse.equinox.common_3.6.0.v20110523.jar
|
||||||
|
http://hg.netbeans.org/binaries/FD94003A1BCE42008753522BFED68E5A84B92644-org.eclipse.equinox.preferences-3.4.2.jar
|
||||||
|
http://hg.netbeans.org/binaries/54AE046B40C9095C2637F8D21664C5CD76E34485-org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar
|
||||||
|
http://hg.netbeans.org/binaries/0FFB9B1D7CD992CE6C8AAEEC2F6F98DFBB1D2F91-org.eclipse.equinox.security-1.1.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/7FE73A21F4A078ABAAFACE4D2B03B5EB3D306F63-org.eclipse.jgit-3.4.1.201406201815-r.jar
|
||||||
|
http://hg.netbeans.org/binaries/49F1EFEBC8CECA5D514209BE18A048EB5707C0A7-org.eclipse.jgit.java7-3.4.1.201406201815-r.jar
|
||||||
|
http://hg.netbeans.org/binaries/A94F8F805202B28236FFBC03C1CA149129DAEA1C-org.eclipse.mylyn.bugzilla.core_3.10.0.20131024-1218.jar
|
||||||
|
http://hg.netbeans.org/binaries/19D64C17A692D2023E22B16AD515118DF6427790-org.eclipse.mylyn.commons.core_3.10.0.20130926-1710.jar
|
||||||
|
http://hg.netbeans.org/binaries/A1BF01D1DD09274446738C3F83360314B8881CD5-org.eclipse.mylyn.commons.net_3.10.0.20131018-1210.jar
|
||||||
|
http://hg.netbeans.org/binaries/136A7EB3BB9B2559C5F9184B438F108C959B3C03-org.eclipse.mylyn.commons.repositories.core_1.2.0.20130704-2116.jar
|
||||||
|
http://hg.netbeans.org/binaries/531746EBE57071AB7F8CCC7ACB0E806F25893916-org.eclipse.mylyn.commons.xmlrpc_3.10.0.20130704-2116.jar
|
||||||
|
http://hg.netbeans.org/binaries/D3ED088A49DE9E5163457E9279181DD4185BFBE6-org.eclipse.mylyn.tasks.core_3.10.0.20131010-2023.jar
|
||||||
|
http://hg.netbeans.org/binaries/8D4278A9F47D17A104182E59CF06D682B3DE0B3E-org.eclipse.mylyn.wikitext.confluence.core_1.9.0.20131007-2055.jar
|
||||||
|
http://hg.netbeans.org/binaries/1FC011B8A350B70950B3F1D722D7F2890C6E76D8-org.eclipse.mylyn.wikitext.core_1.9.0.20131007-2055.jar
|
||||||
|
http://hg.netbeans.org/binaries/6E914CA3075C8FDF7652F04A02868CF32F2EDCE3-org.eclipse.mylyn.wikitext.textile.core_1.9.0.20131007-2055.jar
|
||||||
|
http://hg.netbeans.org/binaries/8A2F6232978E0330A5D36F19BA0686F96FB980B5-org.tmatesoft.svnkit_1.8.4.r10218_v20140302_1242.jar
|
||||||
|
http://hg.netbeans.org/binaries/820FD32B3FB7F885996B15474F220BDCCACD6D27-processtreekiller-1.0.2.jar
|
||||||
|
http://hg.netbeans.org/binaries/B0D0FCBAC68826D2AFA3C7C89FC4D57B95A000C3-resolver-1.2.jar
|
||||||
|
http://hg.netbeans.org/binaries/D08E473A4D0510FB329D64E4CC4F2963D000699C-svnClientAdapter-javahl-1.10.3.jar
|
||||||
|
http://hg.netbeans.org/binaries/2CD487DCDE4C4FC38D1C9EBCD45418A1B5EF188D-svnClientAdapter-main-1.10.3.jar
|
||||||
|
http://hg.netbeans.org/binaries/5D37A7FE167A1D44731192748C79B2D7905D474F-svnClientAdapter-svnkit-1.10.3.jar
|
||||||
|
http://hg.netbeans.org/binaries/24CEAE4A9A2AAAA0BD78FF001914BA06B59CEDF2-svnjavahl-1.8.4.jar
|
||||||
|
http://hg.netbeans.org/binaries/4F94E5B4F14B4571A1D8E37885A3037C91F7C02C-svnkit_1.7.8.r9538_v20130107_2001.jar
|
||||||
|
http://hg.netbeans.org/binaries/C0D8A3265D194CC886BAFD585117B6465FD97DCE-swingx-all-1.6.4.jar
|
||||||
|
http://hg.netbeans.org/binaries/EDE7FBABD4C96D34E48FDA0E8FECED24C98CEDCA-sqljet-1.1.10.jar
|
||||||
|
http://hg.netbeans.org/binaries/CD5B5996B46CB8D96C8F0F89A7A734B3C01F3DF7-tomcat-webserver-3.2.jar
|
||||||
|
http://hg.netbeans.org/binaries/CE9A1C96875443F2FDD5127B750DA39CF4CE818B-com.trilead.ssh2_1.0.0.build217_r155_v20130603_1628.jar
|
||||||
|
http://hg.netbeans.org/binaries/89BC047153217F5254506F4C622A771A78883CBC-ValidationAPI.jar
|
||||||
|
http://hg.netbeans.org/binaries/6FC6098C230D7CBA5730106D379CBBB42F6EC48A-validator.jar
|
||||||
|
http://hg.netbeans.org/binaries/C9757EFB2CFBA523A7375A78FA9ECFAF0D0AC505-winp-1.14-patched.jar
|
||||||
|
http://hg.netbeans.org/binaries/64F5BEEADD2A239C4BC354B8DFDB97CF7FDD9983-xmlrpc-client-3.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/8FA16AD28B5E79A7CD52B8B72985B0AE8CCD6ADF-xmlrpc-common-3.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/D6917BF718583002CBE44E773EE21E2DF08ADC71-xmlrpc-server-3.0.jar"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-harness-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}
|
||||||
|
dev-java/commons-httpclient:3
|
||||||
|
dev-java/commons-lang:2.1
|
||||||
|
dev-java/commons-logging:0
|
||||||
|
dev-java/icu4j:4.4
|
||||||
|
dev-java/iso-relax:0
|
||||||
|
dev-java/jdbc-mysql:0
|
||||||
|
dev-java/jdbc-postgresql:0
|
||||||
|
>=dev-java/json-simple-1.1:0
|
||||||
|
dev-java/jsr173:0
|
||||||
|
dev-java/jvyamlb:0
|
||||||
|
dev-java/log4j:0
|
||||||
|
dev-java/lucene:3.5
|
||||||
|
dev-java/rhino:1.6
|
||||||
|
dev-java/saxon:9
|
||||||
|
dev-java/smack:2.2
|
||||||
|
dev-java/sun-jaf:0
|
||||||
|
dev-java/tomcat-servlet-api:2.2
|
||||||
|
dev-java/ws-commons-util:0
|
||||||
|
dev-java/xerces:2"
|
||||||
|
# dev-vcs/subversion>=1.8.4:0[java] missing from the tree
|
||||||
|
# app-text/jing:0 our version is probably too old
|
||||||
|
# dev-java/commons-io:1 fails with "Missing manifest tag OpenIDE-Module"
|
||||||
|
# dev-java/freemarker:2.3
|
||||||
|
# dev-java/ini4j:0 our version is too old
|
||||||
|
# dev-java/jaxb:2 upstream version contains more stuff so websvccommon does not compile with ours
|
||||||
|
# dev-java/trilead-ssh2:0 in overlay
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
dev-java/commons-codec:0
|
||||||
|
>=dev-java/jsch-0.1.46:0
|
||||||
|
dev-java/jzlib:0
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javacc:0
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.ide -Dext.binaries.downloaded=true -Djava.awt.headless=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
JAVA_PKG_WANT_SOURCE="1.7"
|
||||||
|
JAVA_PKG_WANT_TARGET="1.7"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/4E74C6BE42FE89871A878C7C4D6158F21A6D8010-antlr-runtime-3.4.jar libs.antlr3.runtime/external/antlr-runtime-3.4.jar || die
|
||||||
|
ln -s "${DISTDIR}"/98308890597ACB64047F7E896638E0D98753AE82-asm-all-4.0.jar libs.nashorn/external/asm-all-4.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/886FAF4B85054DD6E50D9B3438542F432B5F9251-bytelist-0.1.jar libs.bytelist/external/bytelist-0.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/A8762D07E76CFDE2395257A5DA47BA7C1DBD3DCE-commons-io-1.4.jar o.apache.commons.io/external/commons-io-1.4.jar || die
|
||||||
|
ln -s "${DISTDIR}"/CD0D5510908225F76C5FE5A3F1DF4FA44866F81E-commons-net-3.3.jar libs.commons_net/external/commons-net-3.3.jar || die
|
||||||
|
ln -s "${DISTDIR}"/901D8F815922C435D985DA3814D20E34CC7622CB-css21-spec.zip css.editor/external/css21-spec.zip || die
|
||||||
|
ln -s "${DISTDIR}"/53AFD6CAA1B476204557B0626E7D673FBD5D245C-css3-spec.zip css.editor/external/css3-spec.zip || die
|
||||||
|
ln -s "${DISTDIR}"/C9A6304FAA121C97CB2458B93D30B1FD6F0F7691-derbysampledb.zip derby/external/derbysampledb.zip || die
|
||||||
|
ln -s "${DISTDIR}"/C40DFDACDF892D1BA14B540B32C11B6F34659931-exechlp-1.0.zip dlight.nativeexecution/external/exechlp-1.0.zip || die
|
||||||
|
ln -s "${DISTDIR}"/5EEAAC41164FEBCB79C73BEBD678A7B6C10C3E80-freemarker-2.3.19.jar libs.freemarker/external/freemarker-2.3.19.jar || die
|
||||||
|
ln -s "${DISTDIR}"/75C30C488AD2A18A82C7FE3829F4A33FC7841643-glassfish-tooling-sdk-0.3-b054-246345.jar libs.glassfish.sdk/external/glassfish-tooling-sdk-0.3-b054-246345.jar || die
|
||||||
|
ln -s "${DISTDIR}"/23123BB29025254556B6E573023FCDF0F6715A66-html-4.01.zip html.editor/external/html-4.01.zip || die
|
||||||
|
ln -s "${DISTDIR}"/F4A1696661E6233F8C27EE323CAEF9CB052666F1-html5-datatypes.jar html.validation/external/html5-datatypes.jar || die
|
||||||
|
ln -s "${DISTDIR}"/4388C34B9F085A42FBEA06C5B00FDF0A251171EC-html5doc.zip html.parser/external/html5doc.zip || die
|
||||||
|
ln -s "${DISTDIR}"/D528B44AE7593D2275927396BF930B28078C5220-htmlparser-1.2.1.jar html.parser/external/htmlparser-1.2.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/8E737D82ECAC9BA6100A9BBA71E92A381B75EFDC-ini4j-0.5.1.jar libs.ini4j/external/ini4j-0.5.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/A2862B7795EF0E0F0716BEC84528FA3B629E479C-io-xml-util.jar html.validation/external/io-xml-util.jar || die
|
||||||
|
ln -s "${DISTDIR}"/0DCC973606CBD9737541AA5F3E76DED6E3F4D0D0-iri.jar html.validation/external/iri.jar || die
|
||||||
|
ln -s "${DISTDIR}"/F90E3DA5259DB07F36E6987EFDED647A5231DE76-ispell-enwl-3.1.20.zip spellchecker.dictionary_en/external/ispell-enwl-3.1.20.zip || die
|
||||||
|
ln -s "${DISTDIR}"/71F434378F822B09A57174AF6C75D37408687C57-jaxb-api.jar xml.jaxb.api/external/jaxb-api.jar || die
|
||||||
|
ln -s "${DISTDIR}"/27FAE927B5B9AE53A5B0ED825575DD8217CE7042-jaxb-api-doc.zip libs.jaxb/external/jaxb-api-doc.zip || die
|
||||||
|
ln -s "${DISTDIR}"/387BE740EAEF52B3F6E6EE2F140757E7632584CE-jaxb-impl.jar libs.jaxb/external/jaxb-impl.jar || die
|
||||||
|
ln -s "${DISTDIR}"/C3787DAB0DDFBD9E98086ED2F219859B0CB77EF7-jaxb-xjc.jar libs.jaxb/external/jaxb-xjc.jar || die
|
||||||
|
ln -s "${DISTDIR}"/F4DB465F207907A2406B0BF5C8FFEE22A5C3E4E3-jaxb1-impl.jar libs.jaxb/external/jaxb1-impl.jar || die
|
||||||
|
ln -s "${DISTDIR}"/5E40984A55F6FFF704F05D511A119CA5B456DDB1-jfxrt.jar libs.javafx/external/jfxrt.jar || die
|
||||||
|
ln -s "${DISTDIR}"/483A61B688B13C62BB201A683D98A6688B5373B6-jing.jar html.validation/external/jing.jar || die
|
||||||
|
ln -s "${DISTDIR}"/DA6CE3C2EB334DB61EFA99CD66134619867368FA-js-corestubs.zip javascript2.editor/external/js-corestubs.zip || die
|
||||||
|
ln -s "${DISTDIR}"/997BF4A93B8A99E37AB51C9016D1D18CF5FF4B60-js-domstubs.zip javascript2.editor/external/js-domstubs.zip || die
|
||||||
|
ln -s "${DISTDIR}"/A723CD3E76C92CFE563B602035532C1C9D3D7192-js-reststubs.zip javascript2.editor/external/js-reststubs.zip || die
|
||||||
|
ln -s "${DISTDIR}"/036FA0032B44AD06A1F13504D97B3685B1C88961-jsch.agentproxy.core-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.core-0.0.7.jar || die
|
||||||
|
ln -s "${DISTDIR}"/9F31964104D71855DF6B73F0C761CDEB3FA3C49C-jsch.agentproxy.sshagent-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.sshagent-0.0.7.jar || die
|
||||||
|
ln -s "${DISTDIR}"/3FA59A536F3DC2197826DC7F224C0823C1534203-jsch.agentproxy.pageant-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.pageant-0.0.7.jar || die
|
||||||
|
ln -s "${DISTDIR}"/F759114E5A9F9AE907EADB59DBF65189AA399B45-jsch.agentproxy.usocket-jna-0.0.7.jar libs.jsch.agentproxy/external/jsch.agentproxy.usocket-jna-0.0.7.jar || die
|
||||||
|
ln -s "${DISTDIR}"/2E07375E5CA3A452472F0E87FB33F243F7A5C08C-libpam4j-1.1.jar extexecution.impl/external/libpam4j-1.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/76E901A1F432323E7E90FC86FDB2534A28952293-nashorn-02f810c26ff9-patched.jar libs.nashorn/external/nashorn-02f810c26ff9-patched.jar || die
|
||||||
|
ln -s "${DISTDIR}"/010FC8BD229B7F68C8C4D5BDE399475373096601-non-schema.jar html.validation/external/non-schema.jar || die
|
||||||
|
ln -s "${DISTDIR}"/7052E115041D04410A4519A61307502FB7C138E6-org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar o.eclipse.core.contenttype/external/org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar || die
|
||||||
|
ln -s "${DISTDIR}"/B19A4D998C76FE7A30830C96B9E3A47682F320FC-org.eclipse.core.jobs-3.5.101.jar o.eclipse.core.jobs/external/org.eclipse.core.jobs-3.5.101.jar || die
|
||||||
|
ln -s "${DISTDIR}"/E64EF6A3FC5DB01AD95632B843706CCE56614C90-org.eclipse.core.net_1.2.100.I20110511-0800.jar o.eclipse.core.net/external/org.eclipse.core.net_1.2.100.I20110511-0800.jar || die
|
||||||
|
ln -s "${DISTDIR}"/6658C235056134F7E86295E751129508802D71F2-org.eclipse.core.runtime-3.7.0.jar o.eclipse.core.runtime/external/org.eclipse.core.runtime-3.7.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/0CA9B9DF8A8E4C6805C60A5761C470FCE8AE828F-org.eclipse.core.runtime.compatibility.auth_3.2.200.v20110110.jar o.eclipse.core.runtime.compatibility.auth/external/org.eclipse.core.runtime.compatibility.auth_3.2.200.v20110110.jar || die
|
||||||
|
ln -s "${DISTDIR}"/9C74D245214DB08E7EB9BC07A951B41CFE3E3648-org.eclipse.equinox.app-1.3.100.jar o.eclipse.equinox.app/external/org.eclipse.equinox.app-1.3.100.jar || die
|
||||||
|
ln -s "${DISTDIR}"/78E5D0B8516B042495660DA36CE5114650F8F156-org.eclipse.equinox.common_3.6.0.v20110523.jar o.eclipse.equinox.common/external/org.eclipse.equinox.common_3.6.0.v20110523.jar || die
|
||||||
|
ln -s "${DISTDIR}"/FD94003A1BCE42008753522BFED68E5A84B92644-org.eclipse.equinox.preferences-3.4.2.jar o.eclipse.equinox.preferences/external/org.eclipse.equinox.preferences-3.4.2.jar || die
|
||||||
|
ln -s "${DISTDIR}"/54AE046B40C9095C2637F8D21664C5CD76E34485-org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar o.eclipse.equinox.registry/external/org.eclipse.equinox.registry_3.5.200.v20120522-1841.jar || die
|
||||||
|
ln -s "${DISTDIR}"/0FFB9B1D7CD992CE6C8AAEEC2F6F98DFBB1D2F91-org.eclipse.equinox.security-1.1.1.jar o.eclipse.equinox.security/external/org.eclipse.equinox.security-1.1.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/7FE73A21F4A078ABAAFACE4D2B03B5EB3D306F63-org.eclipse.jgit-3.4.1.201406201815-r.jar o.eclipse.jgit/external/org.eclipse.jgit-3.4.1.201406201815-r.jar || die
|
||||||
|
ln -s "${DISTDIR}"/49F1EFEBC8CECA5D514209BE18A048EB5707C0A7-org.eclipse.jgit.java7-3.4.1.201406201815-r.jar o.eclipse.jgit.java7/external/org.eclipse.jgit.java7-3.4.1.201406201815-r.jar || die
|
||||||
|
ln -s "${DISTDIR}"/A94F8F805202B28236FFBC03C1CA149129DAEA1C-org.eclipse.mylyn.bugzilla.core_3.10.0.20131024-1218.jar o.eclipse.mylyn.bugzilla.core/external/org.eclipse.mylyn.bugzilla.core_3.10.0.20131024-1218.jar || die
|
||||||
|
ln -s "${DISTDIR}"/19D64C17A692D2023E22B16AD515118DF6427790-org.eclipse.mylyn.commons.core_3.10.0.20130926-1710.jar o.eclipse.mylyn.commons.core/external/org.eclipse.mylyn.commons.core_3.10.0.20130926-1710.jar || die
|
||||||
|
ln -s "${DISTDIR}"/A1BF01D1DD09274446738C3F83360314B8881CD5-org.eclipse.mylyn.commons.net_3.10.0.20131018-1210.jar o.eclipse.mylyn.commons.net/external/org.eclipse.mylyn.commons.net_3.10.0.20131018-1210.jar || die
|
||||||
|
ln -s "${DISTDIR}"/136A7EB3BB9B2559C5F9184B438F108C959B3C03-org.eclipse.mylyn.commons.repositories.core_1.2.0.20130704-2116.jar o.eclipse.mylyn.commons.repositories.core/external/org.eclipse.mylyn.commons.repositories.core_1.2.0.20130704-2116.jar || die
|
||||||
|
ln -s "${DISTDIR}"/531746EBE57071AB7F8CCC7ACB0E806F25893916-org.eclipse.mylyn.commons.xmlrpc_3.10.0.20130704-2116.jar o.eclipse.mylyn.commons.xmlrpc/external/org.eclipse.mylyn.commons.xmlrpc_3.10.0.20130704-2116.jar || die
|
||||||
|
ln -s "${DISTDIR}"/D3ED088A49DE9E5163457E9279181DD4185BFBE6-org.eclipse.mylyn.tasks.core_3.10.0.20131010-2023.jar o.eclipse.mylyn.tasks.core/external/org.eclipse.mylyn.tasks.core_3.10.0.20131010-2023.jar || die
|
||||||
|
ln -s "${DISTDIR}"/8D4278A9F47D17A104182E59CF06D682B3DE0B3E-org.eclipse.mylyn.wikitext.confluence.core_1.9.0.20131007-2055.jar o.eclipse.mylyn.wikitext.confluence.core/external/org.eclipse.mylyn.wikitext.confluence.core_1.9.0.20131007-2055.jar || die
|
||||||
|
ln -s "${DISTDIR}"/1FC011B8A350B70950B3F1D722D7F2890C6E76D8-org.eclipse.mylyn.wikitext.core_1.9.0.20131007-2055.jar o.eclipse.mylyn.wikitext.core/external/org.eclipse.mylyn.wikitext.core_1.9.0.20131007-2055.jar || die
|
||||||
|
ln -s "${DISTDIR}"/6E914CA3075C8FDF7652F04A02868CF32F2EDCE3-org.eclipse.mylyn.wikitext.textile.core_1.9.0.20131007-2055.jar o.eclipse.mylyn.wikitext.textile.core/external/org.eclipse.mylyn.wikitext.textile.core_1.9.0.20131007-2055.jar || die
|
||||||
|
ln -s "${DISTDIR}"/8A2F6232978E0330A5D36F19BA0686F96FB980B5-org.tmatesoft.svnkit_1.8.4.r10218_v20140302_1242.jar libs.svnClientAdapter.svnkit/external/org.tmatesoft.svnkit_1.8.4.r10218_v20140302_1242.jar || die
|
||||||
|
ln -s "${DISTDIR}"/4F94E5B4F14B4571A1D8E37885A3037C91F7C02C-svnkit_1.7.8.r9538_v20130107_2001.jar libs.svnClientAdapter.svnkit/external/svnkit_1.7.8.r9538_v20130107_2001.jar || die
|
||||||
|
ln -s "${DISTDIR}"/820FD32B3FB7F885996B15474F220BDCCACD6D27-processtreekiller-1.0.2.jar extexecution.impl/external/processtreekiller-1.0.2.jar || die
|
||||||
|
ln -s "${DISTDIR}"/B0D0FCBAC68826D2AFA3C7C89FC4D57B95A000C3-resolver-1.2.jar o.apache.xml.resolver/external/resolver-1.2.jar || die
|
||||||
|
ln -s "${DISTDIR}"/EDE7FBABD4C96D34E48FDA0E8FECED24C98CEDCA-sqljet-1.1.10.jar libs.svnClientAdapter.svnkit/external/sqljet-1.1.10.jar || die
|
||||||
|
ln -s "${DISTDIR}"/D08E473A4D0510FB329D64E4CC4F2963D000699C-svnClientAdapter-javahl-1.10.3.jar libs.svnClientAdapter.javahl/external/svnClientAdapter-javahl-1.10.3.jar || die
|
||||||
|
ln -s "${DISTDIR}"/2CD487DCDE4C4FC38D1C9EBCD45418A1B5EF188D-svnClientAdapter-main-1.10.3.jar libs.svnClientAdapter/external/svnClientAdapter-main-1.10.3.jar || die
|
||||||
|
ln -s "${DISTDIR}"/5D37A7FE167A1D44731192748C79B2D7905D474F-svnClientAdapter-svnkit-1.10.3.jar libs.svnClientAdapter.svnkit/external/svnClientAdapter-svnkit-1.10.3.jar || die
|
||||||
|
ln -s "${DISTDIR}"/24CEAE4A9A2AAAA0BD78FF001914BA06B59CEDF2-svnjavahl-1.8.4.jar libs.svnClientAdapter.javahl/external/svnjavahl-1.8.4.jar || die
|
||||||
|
ln -s "${DISTDIR}"/3B91269E9055504778F57744D24F505856698602-svnkit-1.7.0-beta4-20120316.233307-1.jar libs.svnClientAdapter.svnkit/external/svnkit-1.7.0-beta4-20120316.233307-1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/015525209A02BD74254930FF844C7C13498B7FB9-svnkit-javahl16-1.7.0-beta4-20120316.233536-1.jar libs.svnClientAdapter.svnkit/external/svnkit-javahl16-1.7.0-beta4-20120316.233536-1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/C0D8A3265D194CC886BAFD585117B6465FD97DCE-swingx-all-1.6.4.jar libs.swingx/external/swingx-all-1.6.4.jar || die
|
||||||
|
ln -s "${DISTDIR}"/CD5B5996B46CB8D96C8F0F89A7A734B3C01F3DF7-tomcat-webserver-3.2.jar httpserver/external/tomcat-webserver-3.2.jar || die
|
||||||
|
ln -s "${DISTDIR}"/CE9A1C96875443F2FDD5127B750DA39CF4CE818B-com.trilead.ssh2_1.0.0.build217_r155_v20130603_1628.jar libs.svnClientAdapter.svnkit/external/com.trilead.ssh2_1.0.0.build217_r155_v20130603_1628.jar || die
|
||||||
|
ln -s "${DISTDIR}"/89BC047153217F5254506F4C622A771A78883CBC-ValidationAPI.jar swing.validation/external/ValidationAPI.jar || die
|
||||||
|
ln -s "${DISTDIR}"/6FC6098C230D7CBA5730106D379CBBB42F6EC48A-validator.jar html.validation/external/validator.jar || die
|
||||||
|
ln -s "${DISTDIR}"/64F5BEEADD2A239C4BC354B8DFDB97CF7FDD9983-xmlrpc-client-3.0.jar o.apache.xmlrpc/external/xmlrpc-client-3.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/8FA16AD28B5E79A7CD52B8B72985B0AE8CCD6ADF-xmlrpc-common-3.0.jar o.apache.xmlrpc/external/xmlrpc-common-3.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/D6917BF718583002CBE44E773EE21E2DF08ADC71-xmlrpc-server-3.0.jar o.apache.xmlrpc/external/xmlrpc-server-3.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/C9757EFB2CFBA523A7375A78FA9ECFAF0D0AC505-winp-1.14-patched.jar extexecution.impl/external/winp-1.14-patched.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
java-pkg_jar-from --into libs.json_simple/external json-simple json-simple.jar json-simple-1.1.1.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-harness-${SLOT} harness || die
|
||||||
|
cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.harness.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg_jar-from --build-only --into c.jcraft.jsch/external jsch jsch.jar jsch-0.1.49.jar
|
||||||
|
java-pkg_jar-from --build-only --into c.jcraft.jzlib/external jzlib jzlib.jar jzlib-1.0.7.jar
|
||||||
|
java-pkg_jar-from --into db.drivers/external jdbc-mysql jdbc-mysql.jar mysql-connector-java-5.1.23-bin.jar
|
||||||
|
java-pkg_jar-from --into db.drivers/external jdbc-postgresql jdbc-postgresql.jar postgresql-9.2-1002.jdbc4.jar
|
||||||
|
java-pkg_jar-from --build-only --into db.sql.visualeditor/external javacc javacc.jar javacc-3.2.jar
|
||||||
|
java-pkg_jar-from --into html.parser/external icu4j-4.4 icu4j.jar icu4j-4_4_2.jar
|
||||||
|
java-pkg_jar-from --into html.validation/external iso-relax isorelax.jar isorelax.jar
|
||||||
|
java-pkg_jar-from --into html.validation/external log4j log4j.jar log4j-1.2.15.jar
|
||||||
|
java-pkg_jar-from --into html.validation/external saxon-9 saxon.jar saxon9B.jar
|
||||||
|
# java-pkg_jar-from --into libs.freemarker/external freemarker-2.3 freemarker.jar freemarker-2.3.19.jar
|
||||||
|
java-pkg_jar-from --into libs.jvyamlb/external jvyamlb jvyamlb.jar jvyamlb-0.2.3.jar
|
||||||
|
java-pkg_jar-from --into libs.lucene/external lucene-3.5 lucene-core.jar lucene-core-3.5.0.jar
|
||||||
|
java-pkg_jar-from --into libs.smack/external smack-2.2 smack.jar smack.jar
|
||||||
|
java-pkg_jar-from --into libs.smack/external smack-2.2 smackx.jar smackx.jar
|
||||||
|
# java-pkg_jar-from --into libs.svnClientAdapter.javahl/external subversion svn-javahl.jar svnjavahl-1.8.4.jar
|
||||||
|
java-pkg_jar-from --into libs.xerces/external xerces-2 xercesImpl.jar xerces-2.8.0.jar
|
||||||
|
java-pkg_jar-from --build-only --into o.apache.commons.codec/external commons-codec commons-codec.jar apache-commons-codec-1.3.jar
|
||||||
|
java-pkg_jar-from --into o.apache.commons.httpclient/external commons-httpclient-3 commons-httpclient.jar commons-httpclient-3.1.jar
|
||||||
|
java-pkg_jar-from --into o.apache.commons.lang/external commons-lang-2.1 commons-lang.jar commons-lang-2.4.jar
|
||||||
|
java-pkg_jar-from --into o.apache.commons.logging/external commons-logging commons-logging.jar commons-logging-1.1.1.jar
|
||||||
|
java-pkg_jar-from --into o.apache.ws.commons.util/external ws-commons-util ws-commons-util.jar ws-commons-util-1.0.1.jar
|
||||||
|
java-pkg_jar-from --into servletapi/external tomcat-servlet-api-2.2 servlet.jar servlet-2.2.jar
|
||||||
|
java-pkg_jar-from --into xml.jaxb.api/external sun-jaf activation.jar activation.jar
|
||||||
|
java-pkg_jar-from --into xml.jaxb.api/external jsr173 jsr173.jar jsr173_1.0_api.jar
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
unset DISPLAY
|
||||||
|
eant -f ${EANT_BUILD_XML} ${EANT_EXTRA_ARGS} ${EANT_BUILD_TARGET} || die "Compilation failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/ide >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/ide$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
rm -fr "${D}"/${INSTALL_DIR}/bin/nativeexecution || die
|
||||||
|
rm -fr "${D}"/${INSTALL_DIR}/modules/lib || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}/bin/nativeexecution
|
||||||
|
doins bin/nativeexecution/*
|
||||||
|
|
||||||
|
pushd "${D}"/${INSTALL_DIR}/bin/nativeexecution >/dev/null || die
|
||||||
|
for file in *.sh ; do
|
||||||
|
fperms 755 ${file}
|
||||||
|
done
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
if use x86 ; then
|
||||||
|
doins -r bin/nativeexecution/Linux-x86
|
||||||
|
pushd "${D}"/${INSTALL_DIR}/bin/nativeexecution/Linux-x86 >/dev/null || die
|
||||||
|
for file in * ; do
|
||||||
|
fperms 755 ${file}
|
||||||
|
done
|
||||||
|
popd >/dev/null || die
|
||||||
|
elif use amd64 ; then
|
||||||
|
doins -r bin/nativeexecution/Linux-x86_64
|
||||||
|
pushd "${D}"/${INSTALL_DIR}/bin/nativeexecution/Linux-x86_64 >/dev/null || die
|
||||||
|
for file in * ; do
|
||||||
|
fperms 755 ${file}
|
||||||
|
done
|
||||||
|
popd >/dev/null || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
# rm freemarker-2.3.19.jar && dosym /usr/share/freemarker-2.3/lib/freemarker.jar ${instdir}/freemarker-2.3.19.jar || die
|
||||||
|
rm icu4j-4_4_2.jar && dosym /usr/share/icu4j-4.4/lib/icu4j.jar ${instdir}/icu4j-4_4_2.jar || die
|
||||||
|
rm isorelax.jar && dosym /usr/share/iso-relax/lib/isorelax.jar ${instdir}/isorelax.jar || die
|
||||||
|
rm json-simple-1.1.1.jar && dosym /usr/share/json-simple/lib/json-simple.jar ${instdir}/json-simple-1.1.1.jar || die
|
||||||
|
rm jvyamlb-0.2.3.jar && dosym /usr/share/jvyamlb/lib/jvyamlb.jar ${instdir}/jvyamlb-0.2.3.jar || die
|
||||||
|
rm log4j-1.2.15.jar && dosym /usr/share/log4j/lib/log4j.jar ${instdir}/log4j-1.2.15.jar || die
|
||||||
|
rm lucene-core-3.5.0.jar && dosym /usr/share/lucene-3.5/lib/lucene-core.jar ${instdir}/lucene-core-3.5.0.jar || die
|
||||||
|
rm mysql-connector-java-5.1.23-bin.jar && dosym /usr/share/jdbc-mysql/lib/jdbc-mysql.jar ${instdir}/mysql-connector-java-5.1.23-bin.jar || die
|
||||||
|
rm postgresql-9.2-1002.jdbc4.jar && dosym /usr/share/jdbc-postgresql/lib/jdbc-postgresql.jar ${instdir}/postgresql-9.2-1002.jdbc4.jar || die
|
||||||
|
rm saxon9B.jar && dosym /usr/share/saxon-9/lib/saxon.jar ${instdir}/saxon9B.jar || die
|
||||||
|
rm servlet-2.2.jar && dosym /usr/share/tomcat-servlet-api-2.2/lib/servlet.jar ${instdir}/servlet-2.2.jar || die
|
||||||
|
rm smack.jar && dosym /usr/share/smack-2.2/lib/smack.jar ${instdir}/smack.jar || die
|
||||||
|
rm smackx.jar && dosym /usr/share/smack-2.2/lib/smackx.jar ${instdir}/smackx.jar || die
|
||||||
|
# rm svnjavahl.jar && dosym /usr/share/subversion/lib/svn-javahl.jar ${instdir}/svnjavahl.jar || die
|
||||||
|
rm xerces-2.8.0.jar && dosym /usr/share/xerces-2/lib/xercesImpl.jar ${instdir}/xerces-2.8.0.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext/jaxb
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm activation.jar && dosym /usr/share/sun-jaf/lib/activation.jar ${instdir}/activation.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext/jaxb/api
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm jsr173_1.0_api.jar && dosym /usr/share/jsr173/lib/jsr173.jar ${instdir}/jsr173_1.0_api.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/ide
|
||||||
|
}
|
@ -0,0 +1,253 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-java/netbeans-java-8.0.2.ebuild,v 1.1 2014/12/07 17:57:43 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
# Maven cannot be unbundled because it depends on exact maven version and exact content of maven directory
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans Java Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/projects/java"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/694F57282D92C434800F79218E64704E5947008A-apache-maven-3.0.5-bin.zip
|
||||||
|
http://hg.netbeans.org/binaries/F7BD95641780C2AAE8CB9BED1686441A1CE5E749-beansbinding-1.2.1-doc.zip
|
||||||
|
http://hg.netbeans.org/binaries/CD2211635F3011E300CA8FEDC1CE0E1CF61C175B-eclipselink.jar
|
||||||
|
http://hg.netbeans.org/binaries/A9A0648BD7D9FD2CDFBD22C25366E71DA72438DA-hibernate-release-4.3.1-lib.zip
|
||||||
|
http://hg.netbeans.org/binaries/562F0CFA47F0636EBB5A544968EE7A692FC5D26D-indexer-artifact-5.1.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/2B9EAB164D8748F9793F6A0D29B6463E97B284DA-indexer-core-5.1.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/D87F53C99E4CD88F5416EDD5ABB77F2A1CCFB050-jarjar-1.4.jar
|
||||||
|
http://hg.netbeans.org/binaries/5BAB675816DBE0F64BB86004B108BF2A00292358-javax.persistence_2.1.0.v201304241213.jar
|
||||||
|
http://hg.netbeans.org/binaries/84E2020E5499015E9F40D1212C86918264B89EB1-jaxws-2.2.6.zip
|
||||||
|
http://hg.netbeans.org/binaries/D64C40E770C95C2A6994081C00CCD489C0AA20C9-jaxws-2.2.6-api.zip
|
||||||
|
http://hg.netbeans.org/binaries/8ECD169E9E308C258287E4F28B03B6D6F1E55F47-jaxws-api-doc.zip
|
||||||
|
http://hg.netbeans.org/binaries/A8BD39C5B88571B4D4697E78DD1A56566E44B1DD-JPAjavadocs04032013.zip
|
||||||
|
http://hg.netbeans.org/binaries/9EC77E2507F9CC01756964C71D91EFD8154A8C47-lucene-core-3.6.2.jar
|
||||||
|
http://hg.netbeans.org/binaries/A90682C6BC0B9E105BD260C9A041FEFEA9579E46-lucene-highlighter-3.6.2.jar
|
||||||
|
http://hg.netbeans.org/binaries/BF206C4AA93C74A739FBAF1F1C78E3AD5F167245-maven-dependency-tree-2.0.jar
|
||||||
|
http://hg.netbeans.org/binaries/E5579EF3B0C1EF2F43562DD0C3B32F8E1F603B49-nb-javac-api.jar
|
||||||
|
http://hg.netbeans.org/binaries/8BDE88C9512D8783E64788F32A50E4CCBC48485E-nb-javac-impl.jar
|
||||||
|
http://hg.netbeans.org/binaries/29AF1D338CBB76290D1A96F5A6610F1E8C319AE5-org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar
|
||||||
|
http://hg.netbeans.org/binaries/3CE04BDB48FE315736B1DCE407362C57DFAE286D-org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar
|
||||||
|
http://hg.netbeans.org/binaries/7666B94C1004AFFFE88E5328BD70EBA6F60125F4-spring-framework-3.2.7.RELEASE.zip
|
||||||
|
http://hg.netbeans.org/binaries/91B55CDAC59BC4DDDF0AF9A54EAAE4304EDEF266-spring-framework-4.0.1.RELEASE.zip"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-platform-${PV}
|
||||||
|
~dev-java/netbeans-extide-${PV}
|
||||||
|
~dev-java/netbeans-harness-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-websvccommon-${PV}
|
||||||
|
dev-java/beansbinding:0
|
||||||
|
dev-java/cglib:2.2
|
||||||
|
dev-java/jdom:1.0"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0
|
||||||
|
dev-java/json-simple:0
|
||||||
|
dev-java/junit:4"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/absolutelayout:0
|
||||||
|
dev-java/antlr:0[java]
|
||||||
|
dev-java/c3p0:0
|
||||||
|
dev-java/cglib:2.1
|
||||||
|
dev-java/commons-collections:0
|
||||||
|
dev-java/dom4j:1
|
||||||
|
dev-java/fastinfoset:0
|
||||||
|
dev-java/glassfish-transaction-api:0
|
||||||
|
dev-java/javassist:3
|
||||||
|
dev-java/jboss-logging:0
|
||||||
|
dev-java/jsr67:0
|
||||||
|
dev-java/jsr181:0
|
||||||
|
dev-java/jtidy:0
|
||||||
|
dev-java/log4j:0
|
||||||
|
dev-java/mimepull:0
|
||||||
|
dev-java/saaj:0
|
||||||
|
dev-java/stax-ex:0
|
||||||
|
dev-java/xmlstreambuffer:0"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.java -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
local die_now=""
|
||||||
|
|
||||||
|
if [ -d /usr/share/netbeans-java-${SLOT}/ant ]; then
|
||||||
|
if [ -n "$(find /usr/share/netbeans-java-${SLOT}/ant -type l)" ]; then
|
||||||
|
eerror "Please remove following symlinks and run emerge again:"
|
||||||
|
find /usr/share/netbeans-java-${SLOT}/ant -type l
|
||||||
|
die_now="1"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -L /usr/share/netbeans-java-${SLOT}/maven ]; then
|
||||||
|
if [ -z "${die_now}" ]; then
|
||||||
|
eerror "Please remove following symlinks and run emerge again:"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "/usr/share/netbeans-java-${SLOT}/maven"
|
||||||
|
die_now="1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${die_now}" ]; then
|
||||||
|
die "Symlinks exist"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/694F57282D92C434800F79218E64704E5947008A-apache-maven-3.0.5-bin.zip maven.embedder/external/apache-maven-3.0.5-bin.zip || die
|
||||||
|
ln -s "${DISTDIR}"/F7BD95641780C2AAE8CB9BED1686441A1CE5E749-beansbinding-1.2.1-doc.zip o.jdesktop.beansbinding/external/beansbinding-1.2.1-doc.zip || die
|
||||||
|
ln -s "${DISTDIR}"/CD2211635F3011E300CA8FEDC1CE0E1CF61C175B-eclipselink.jar j2ee.eclipselink/external/eclipselink.jar || die
|
||||||
|
ln -s "${DISTDIR}"/A9A0648BD7D9FD2CDFBD22C25366E71DA72438DA-hibernate-release-4.3.1-lib.zip hibernate4lib/external/hibernate-release-4.3.1-lib.zip || die
|
||||||
|
ln -s "${DISTDIR}"/562F0CFA47F0636EBB5A544968EE7A692FC5D26D-indexer-artifact-5.1.1.jar maven.indexer/external/indexer-artifact-5.1.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/2B9EAB164D8748F9793F6A0D29B6463E97B284DA-indexer-core-5.1.1.jar maven.indexer/external/indexer-core-5.1.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/D87F53C99E4CD88F5416EDD5ABB77F2A1CCFB050-jarjar-1.4.jar maven/external/jarjar-1.4.jar || die
|
||||||
|
ln -s "${DISTDIR}"/5BAB675816DBE0F64BB86004B108BF2A00292358-javax.persistence_2.1.0.v201304241213.jar j2ee.eclipselink/external/javax.persistence_2.1.0.v201304241213.jar || die
|
||||||
|
ln -s "${DISTDIR}"/84E2020E5499015E9F40D1212C86918264B89EB1-jaxws-2.2.6.zip websvc.jaxws21/external/jaxws-2.2.6.zip || die
|
||||||
|
ln -s "${DISTDIR}"/D64C40E770C95C2A6994081C00CCD489C0AA20C9-jaxws-2.2.6-api.zip websvc.jaxws21api/external/jaxws-2.2.6-api.zip || die
|
||||||
|
ln -s "${DISTDIR}"/8ECD169E9E308C258287E4F28B03B6D6F1E55F47-jaxws-api-doc.zip websvc.jaxws21/external/jaxws-api-doc.zip || die
|
||||||
|
ln -s "${DISTDIR}"/A8BD39C5B88571B4D4697E78DD1A56566E44B1DD-JPAjavadocs04032013.zip j2ee.eclipselink/external/JPAjavadocs04032013.zip || die
|
||||||
|
ln -s "${DISTDIR}"/9EC77E2507F9CC01756964C71D91EFD8154A8C47-lucene-core-3.6.2.jar maven.indexer/external/lucene-core-3.6.2.jar || die
|
||||||
|
ln -s "${DISTDIR}"/A90682C6BC0B9E105BD260C9A041FEFEA9579E46-lucene-highlighter-3.6.2.jar maven.indexer/external/lucene-highlighter-3.6.2.jar || die
|
||||||
|
ln -s "${DISTDIR}"/BF206C4AA93C74A739FBAF1F1C78E3AD5F167245-maven-dependency-tree-2.0.jar maven.embedder/external/maven-dependency-tree-2.0.jar || die
|
||||||
|
ln -s "${DISTDIR}"/E5579EF3B0C1EF2F43562DD0C3B32F8E1F603B49-nb-javac-api.jar libs.javacapi/external/nb-javac-api.jar || die
|
||||||
|
ln -s "${DISTDIR}"/8BDE88C9512D8783E64788F32A50E4CCBC48485E-nb-javac-impl.jar libs.javacimpl/external/nb-javac-impl.jar || die
|
||||||
|
ln -s "${DISTDIR}"/29AF1D338CBB76290D1A96F5A6610F1E8C319AE5-org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar j2ee.eclipselink/external/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar || die
|
||||||
|
ln -s "${DISTDIR}"/3CE04BDB48FE315736B1DCE407362C57DFAE286D-org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar j2ee.eclipselinkmodelgen/external/org.eclipse.persistence.jpa.modelgen_2.5.2.v20140319-9ad6abd.jar || die
|
||||||
|
ln -s "${DISTDIR}"/7666B94C1004AFFFE88E5328BD70EBA6F60125F4-spring-framework-3.2.7.RELEASE.zip libs.springframework/external/spring-framework-3.2.7.RELEASE.zip || die
|
||||||
|
ln -s "${DISTDIR}"/91B55CDAC59BC4DDDF0AF9A54EAAE4304EDEF266-spring-framework-4.0.1.RELEASE.zip libs.springframework/external/spring-framework-4.0.1.RELEASE.zip || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
java-pkg_jar-from --into libs.cglib/external cglib-2.2 cglib.jar cglib-2.2.jar
|
||||||
|
java-pkg_jar-from --build-only --into libs.json_simple/external json-simple json-simple.jar json-simple-1.1.1.jar
|
||||||
|
java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.10.jar
|
||||||
|
java-pkg_jar-from --into maven.embedder/external jdom-1.0 jdom.jar jdom-1.0.jar
|
||||||
|
java-pkg_jar-from --into o.jdesktop.beansbinding/external beansbinding beansbinding.jar beansbinding-1.2.1.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||||
|
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.extide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-harness-${SLOT} harness || die
|
||||||
|
cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.harness.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
|
||||||
|
cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.websvccommon.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/java >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
grep -E "/java$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
chmod 755 "${D}"/${INSTALL_DIR}/maven/bin/mvn* || die
|
||||||
|
rm -fr "${D}"/${INSTALL_DIR}/maven/bin/*.bat || die
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=/${INSTALL_DIR}/modules/ext
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm AbsoluteLayout.jar && dosym /usr/share/absolutelayout/lib/absolutelayout.jar ${instdir}/AbsoluteLayout.jar || die
|
||||||
|
rm beansbinding-1.2.1.jar && dosym /usr/share/beansbinding/lib/beansbinding.jar ${instdir}/beansbinding-1.2.1.jar || die
|
||||||
|
rm cglib-2.2.jar && dosym /usr/share/cglib-2.2/lib/cglib.jar ${instdir}/cglib-2.2.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext/hibernate4
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm antlr-2.7.7.jar && dosym /usr/share/antlr/lib/antlr.jar ${instdir}/antlr-2.7.7.jar || die
|
||||||
|
rm c3p0-0.9.2.1.jar && dosym /usr/share/c3p0/lib/c3p0.jar ${instdir}/c3p0-0.9.2.1.jar || die
|
||||||
|
rm cglib-2.2.jar && dosym /usr/share/cglib-2.1/lib/cglib.jar ${instdir}/cglib-2.2.jar || die
|
||||||
|
rm commons-collections-3.2.1.jar && dosym /usr/share/commons-collections/lib/commons-collections.jar ${instdir}/commons-collections-3.2.1.jar || die
|
||||||
|
rm dom4j-1.6.1.jar && dosym /usr/share/dom4j-1/lib/dom4j.jar ${instdir}/dom4j-1.6.1.jar || die
|
||||||
|
rm javassist-3.18.1-GA.jar && dosym /usr/share/javassist-3/lib/javassist.jar ${instdir}/javassist-3.18.1-GA.jar || die
|
||||||
|
rm jboss-logging-3.1.3.GA.jar && dosym /usr/share/jboss-logging/lib/jboss-logging.jar ${instdir}/jboss-logging-3.1.3.GA.jar || die
|
||||||
|
rm jboss-transaction-api_1.2_spec-1.0.0.Final.jar && dosym /usr/share/glassfish-transaction-api/lib/jta.jar ${instdir}/jboss-transaction-api_1.2_spec-1.0.0.Final.jar || die
|
||||||
|
rm jtidy-r8-20060801.jar && dosym /usr/share/jtidy/lib/Tidy.jar ${instdir}/jtidy-r8-20060801.jar || die
|
||||||
|
rm log4j-1.2.12.jar && dosym /usr/share/log4j/lib/log4j.jar ${instdir}/log4j-1.2.12.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=/${INSTALL_DIR}/modules/ext/jaxws22
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm FastInfoset.jar && dosym /usr/share/fastinfoset/lib/fastinfoset.jar ${instdir}/FastInfoset.jar || die
|
||||||
|
rm mimepull.jar && dosym /usr/share/mimepull/lib/mimepull.jar ${instdir}/mimepull.jar || die
|
||||||
|
rm saaj-impl.jar && dosym /usr/share/saaj/lib/saaj.jar ${instdir}/saaj-impl.jar || die
|
||||||
|
rm stax-ex.jar && dosym /usr/share/stax-ex/lib/stax-ex.jar ${instdir}/stax-ex.jar || die
|
||||||
|
rm streambuffer.jar && dosym /usr/share/xmlstreambuffer/lib/streambuffer.jar ${instdir}/streambuffer.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext/jaxws22/api
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm jsr181-api.jar && dosym /usr/share/jsr181/lib/jsr181.jar ${instdir}/jsr181-api.jar || die
|
||||||
|
rm saaj-api.jar && dosym /usr/share/jsr67/lib/jsr67.jar ${instdir}/saaj-api.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext/maven
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm jdom-1.0.jar && dosym /usr/share/jdom-1.0/lib/jdom.jar ${instdir}/jdom-1.0.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/java
|
||||||
|
}
|
@ -0,0 +1,134 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-javacard/netbeans-javacard-8.0.2.ebuild,v 1.1 2014/12/07 17:56:54 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans JavaCard Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/projects/javacard"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/33DCFAE258453BDD3D8A042F6ECF80656A82B8DD-anttasks.jar
|
||||||
|
http://hg.netbeans.org/binaries/9C1A8BC9D3270D184F1D1BCC5F60AA81D46E1ADF-apduio.jar
|
||||||
|
http://hg.netbeans.org/binaries/6243337E93F5841D4FFB404011AA076BFEB1590A-javacard_ri.zip"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-extide-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-java-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/ant-contrib:0
|
||||||
|
dev-java/asm:3
|
||||||
|
dev-java/bcel:0
|
||||||
|
dev-java/commons-cli:1
|
||||||
|
dev-java/commons-codec:0
|
||||||
|
dev-java/commons-httpclient:3
|
||||||
|
dev-java/commons-logging:0"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.javacard -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/33DCFAE258453BDD3D8A042F6ECF80656A82B8DD-anttasks.jar javacard.ri.platform/external/anttasks.jar || die
|
||||||
|
ln -s "${DISTDIR}"/9C1A8BC9D3270D184F1D1BCC5F60AA81D46E1ADF-apduio.jar javacard.apdu.io/external/apduio.jar || die
|
||||||
|
ln -s "${DISTDIR}"/6243337E93F5841D4FFB404011AA076BFEB1590A-javacard_ri.zip javacard.ri.bundle/external/javacard_ri.zip || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||||
|
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.extide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-java-${SLOT} java || die
|
||||||
|
cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.java.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/javacard >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/javacard$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
rm -fr "${D}"/${INSTALL_DIR}/bin || die
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/JCDK3.0.2_ConnectedEdition/lib
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm ant-contrib-1.0b3.jar && dosym /usr/share/ant-contrib/lib/ant-contrib.jar ${instdir}/ant-contrib-1.0b3.jar || die
|
||||||
|
rm asm-all-3.1.jar && dosym /usr/share/asm-3/lib/asm.jar ${instdir}/asm-all-3.1.jar || die
|
||||||
|
rm bcel-5.2.jar && dosym /usr/share/bcel/lib/bcel.jar ${instdir}/bcel-5.2.jar || die
|
||||||
|
rm commons-cli-1.0.jar && dosym /usr/share/commons-cli-1/lib/commons-cli.jar ${instdir}/commons-cli-1.0.jar || die
|
||||||
|
rm commons-codec-1.3.jar && dosym /usr/share/commons-codec/lib/commons-codec.jar ${instdir}/commons-codec-1.3.jar || die
|
||||||
|
rm commons-httpclient-3.0.jar && dosym /usr/share/commons-httpclient-3/lib/commons-httpclient.jar ${instdir}/commons-httpclient-3.0.jar || die
|
||||||
|
rm commons-logging-1.1.jar && dosym /usr/share/commons-logging/lib/commons-logging.jar ${instdir}/commons-logging-1.1.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/javacard
|
||||||
|
}
|
@ -0,0 +1,164 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-javadoc/netbeans-javadoc-8.0.2.ebuild,v 1.1 2014/12/07 17:57:11 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans JavaDocs"
|
||||||
|
HOMEPAGE="http://netbeans.org/"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/22CB933E3A1450B092C45785C187837E97523F5C-ant-libs-1.9.4.zip"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
dev-java/javahelp:0
|
||||||
|
dev-java/junit:4
|
||||||
|
~dev-java/netbeans-apisupport-${PV}
|
||||||
|
~dev-java/netbeans-cnd-${PV}
|
||||||
|
~dev-java/netbeans-dlight-${PV}
|
||||||
|
~dev-java/netbeans-enterprise-${PV}
|
||||||
|
~dev-java/netbeans-ergonomics-${PV}
|
||||||
|
~dev-java/netbeans-extide-${PV}
|
||||||
|
~dev-java/netbeans-groovy-${PV}
|
||||||
|
~dev-java/netbeans-harness-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-java-${PV}
|
||||||
|
~dev-java/netbeans-javacard-${PV}
|
||||||
|
~dev-java/netbeans-mobility-${PV}
|
||||||
|
~dev-java/netbeans-nb-${PV}
|
||||||
|
~dev-java/netbeans-php-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}
|
||||||
|
~dev-java/netbeans-profiler-${PV}
|
||||||
|
~dev-java/netbeans-websvccommon-${PV}"
|
||||||
|
RDEPEND=""
|
||||||
|
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/22CB933E3A1450B092C45785C187837E97523F5C-ant-libs-1.9.4.zip o.apache.tools.ant.module/external/ant-libs-1.9.4.zip || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.10.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-apisupport-${SLOT} apisupport || die
|
||||||
|
cat /usr/share/netbeans-apisupport-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.apisupport.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-cnd-${SLOT} cnd || die
|
||||||
|
cat /usr/share/netbeans-cnd-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.cnd.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-dlight-${SLOT} dlight || die
|
||||||
|
cat /usr/share/netbeans-dlight-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.dlight.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-enterprise-${SLOT} enterprise || die
|
||||||
|
cat /usr/share/netbeans-enterprise-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.enterprise.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ergonomics-${SLOT} ergonomics || die
|
||||||
|
cat /usr/share/netbeans-ergonomics-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ergonomics.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||||
|
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.extide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-groovy-${SLOT} groovy || die
|
||||||
|
cat /usr/share/netbeans-groovy-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.groovy.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-harness-${SLOT} harness || die
|
||||||
|
cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.harness.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-java-${SLOT} java || die
|
||||||
|
cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.java.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-javacard-${SLOT} javacard || die
|
||||||
|
cat /usr/share/netbeans-javacard-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.javacard.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-mobility-${SLOT} mobility || die
|
||||||
|
cat /usr/share/netbeans-mobility-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.mobility.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-nb-${SLOT}/nb nb || die
|
||||||
|
cat /usr/share/netbeans-nb-${SLOT}/nb/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.nb.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-php-${SLOT} php || die
|
||||||
|
cat /usr/share/netbeans-php-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.php.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-profiler-${SLOT} profiler || die
|
||||||
|
cat /usr/share/netbeans-profiler-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.profiler.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
|
||||||
|
cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.websvccommon.built
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
eant -f nbbuild/build.xml bootstrap || die
|
||||||
|
ANT_OPTS="-Xmx1536m" eant -f nbbuild/javadoctools/build.xml build-javadoc
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
rm nbbuild/build/javadoc/*.zip
|
||||||
|
java-pkg_dojavadoc nbbuild/build/javadoc
|
||||||
|
}
|
@ -0,0 +1,124 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-javafx/netbeans-javafx-8.0.2.ebuild,v 1.1 2014/12/07 17:57:27 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans JavaFX Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/projects/javafx"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar
|
||||||
|
http://hg.netbeans.org/binaries/D325D3913CBC0F9A8D73A466FABB98EDEEC014AB-jemmy-2.3.1.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/D06C8980C9025183C044202419EA29E69FBD4B99-jemmy-2.3.1.1-doc.zip
|
||||||
|
http://hg.netbeans.org/binaries/49197106637CCA8C337AF16CC01BB5D9DEC7E179-jemmy-2.3.1.1-src.zip
|
||||||
|
http://hg.netbeans.org/binaries/20D826CC819A5A969CF3F7204E2E26CB6263EC43-jnlp-servlet.jar
|
||||||
|
http://hg.netbeans.org/binaries/0F7FC8D69950B86D5F67529B5C551DB84C5BCF87-nb-javac-api.jar"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-extide-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-java-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0
|
||||||
|
dev-java/junit:4"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.javafx -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/A806D99716C5E9441BFD8B401176FDDEFC673022-bindex-2.2.jar apisupport.harness/external/bindex-2.2.jar || die
|
||||||
|
ln -s "${DISTDIR}"/20D826CC819A5A969CF3F7204E2E26CB6263EC43-jnlp-servlet.jar apisupport.harness/external/jnlp-servlet.jar || die
|
||||||
|
ln -s "${DISTDIR}"/D325D3913CBC0F9A8D73A466FABB98EDEEC014AB-jemmy-2.3.1.1.jar jemmy/external/jemmy-2.3.1.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/D06C8980C9025183C044202419EA29E69FBD4B99-jemmy-2.3.1.1-doc.zip jemmy/external/jemmy-2.3.1.1-doc.zip || die
|
||||||
|
ln -s "${DISTDIR}"/49197106637CCA8C337AF16CC01BB5D9DEC7E179-jemmy-2.3.1.1-src.zip jemmy/external/jemmy-2.3.1.1-src.zip || die
|
||||||
|
ln -s "${DISTDIR}"/0F7FC8D69950B86D5F67529B5C551DB84C5BCF87-nb-javac-api.jar libs.javacapi/external/nb-javac-api.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into apisupport.harness/external javahelp jsearch.jar jsearch-2.0_05.jar
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
java-pkg_jar-from --build-only --into libs.junit4/external junit-4 junit.jar junit-4.10.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||||
|
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.extide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-java-${SLOT} java || die
|
||||||
|
cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.java.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/javafx >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/javafx$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/javafx
|
||||||
|
}
|
@ -0,0 +1,126 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-mobility/netbeans-mobility-8.0.2.ebuild,v 1.1 2014/12/07 17:57:58 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans Mobility Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/features/platform/"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-apisupport-${PV}
|
||||||
|
~dev-java/netbeans-enterprise-${PV}
|
||||||
|
~dev-java/netbeans-extide-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-java-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}
|
||||||
|
~dev-java/netbeans-websvccommon-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.mobility -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f | grep -vE "mobility.databindingme/lib/netbeans_databindingme.*\.jar" \
|
||||||
|
| grep -v "vmd.components.midp/netbeans_midp_components_basic/dist/netbeans_midp_components_basic.jar" \
|
||||||
|
| grep -v "vmd.components.midp.pda/netbeans_midp_components_pda/dist/netbeans_midp_components_pda.jar" \
|
||||||
|
| grep -v "vmd.components.midp.wma/netbeans_midp_components_wma/dist/netbeans_midp_components_wma.jar" \
|
||||||
|
| grep -v "vmd.components.svg/nb_svg_midp_components/dist/nb_svg_midp_components.jar" | xargs rm
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-apisupport-${SLOT} apisupport || die
|
||||||
|
cat /usr/share/netbeans-apisupport-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.apisupport.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-enterprise-${SLOT} enterprise || die
|
||||||
|
cat /usr/share/netbeans-enterprise-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.enterprise.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||||
|
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.extide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-java-${SLOT} java || die
|
||||||
|
cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.java.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
|
||||||
|
cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.websvccommon.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/mobility >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/mobility$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
rm -rf "${D}"/${INSTALL_DIR}/modules/lib || die
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/mobility
|
||||||
|
}
|
@ -0,0 +1,148 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-nb/netbeans-nb-8.0.2.ebuild,v 1.1 2014/12/07 17:58:17 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans IDE Branding"
|
||||||
|
HOMEPAGE="http://netbeans.org/"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-7.0.png"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="keychain"
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-platform-${PV}
|
||||||
|
~dev-java/netbeans-harness-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}
|
||||||
|
keychain? (
|
||||||
|
net-misc/keychain:0
|
||||||
|
net-misc/x11-ssh-askpass:0
|
||||||
|
)"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster create-netbeans-import finish-build"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.nb -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
use keychain && epatch "${FILESDIR}"/${SLOT}/keychain-support.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-harness-${SLOT} harness || die
|
||||||
|
cat /usr/share/netbeans-harness-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.harness.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}/nb
|
||||||
|
|
||||||
|
grep -E "/nb$" moduleCluster.properties > "${D}"/${INSTALL_DIR}/nb/moduleCluster.properties || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
doins -r nb
|
||||||
|
dodoc *.txt
|
||||||
|
dohtml *.html *.css
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}/bin
|
||||||
|
doins bin/netbeans
|
||||||
|
dosym ${INSTALL_DIR}/bin/netbeans /usr/bin/netbeans-${SLOT}
|
||||||
|
fperms 755 ${INSTALL_DIR}/bin/netbeans
|
||||||
|
|
||||||
|
insinto /etc/netbeans-${SLOT}
|
||||||
|
doins etc/*
|
||||||
|
dosym /etc/netbeans-${SLOT} ${INSTALL_DIR}/etc
|
||||||
|
|
||||||
|
# fix paths per bug# 163483
|
||||||
|
if [[ -e "${D}"/${INSTALL_DIR}/bin/netbeans ]]; then
|
||||||
|
sed -i -e "s:\"\$progdir\"/../etc/:/etc/netbeans-${SLOT}/:" "${D}"/${INSTALL_DIR}/bin/netbeans
|
||||||
|
sed -i -e "s:\"\${userdir}\"/etc/:/etc/netbeans-${SLOT}/:" "${D}"/${INSTALL_DIR}/bin/netbeans
|
||||||
|
fi
|
||||||
|
|
||||||
|
dodir /usr/share/icons/hicolor/32x32/apps
|
||||||
|
dosym ${INSTALL_DIR}/nb/netbeans.png /usr/share/icons/hicolor/32x32/apps/netbeans-${SLOT}.png
|
||||||
|
dodir /usr/share/icons/hicolor/128x128/apps
|
||||||
|
cp "${DISTDIR}"/netbeans-7.0.png "${D}"/usr/share/icons/hicolor/128x128/apps/netbeans-${SLOT}.png || die
|
||||||
|
dosym /usr/share/icons/hicolor/128x128/apps/netbeans-${SLOT}.png /usr/share/pixmaps/netbeans-${SLOT}.png
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
make_desktop_entry netbeans-${SLOT} "Netbeans ${PV}" netbeans-${SLOT} Development
|
||||||
|
|
||||||
|
mkdir -p "${D}"/${INSTALL_DIR}/nb/config || die
|
||||||
|
echo "NBGNT" > "${D}"/${INSTALL_DIR}/nb/config/productid || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if use keychain ; then
|
||||||
|
einfo "You enabled keychain support, that means NetBeans will use keychain for managing"
|
||||||
|
einfo "your keys while connecting to ssh protected repositories. If you want to load some"
|
||||||
|
einfo "keys on NetBeans startup, create file keychain-keys.txt in your userdir"
|
||||||
|
einfo "(~/.netbeans/${SLOT}/keychain-keys.txt) and put names of your keys in the file,"
|
||||||
|
einfo "each key on single line, for example:"
|
||||||
|
einfo "id_dsa"
|
||||||
|
einfo "id_dsa_gentoo"
|
||||||
|
einfo "If on NetBeans startup key will not be handled by keychain yet, you will be asked"
|
||||||
|
einfo "for key password (only this time and never again). You can find more information"
|
||||||
|
einfo "about keychain at http://www.gentoo.org/doc/en/keychain-guide.xml"
|
||||||
|
fi
|
||||||
|
}
|
@ -0,0 +1,127 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-php/netbeans-php-8.0.2.ebuild,v 1.1 2014/12/07 17:58:30 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans PHP Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/projects/php"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/0702230EB3354A1687E4496D73A94F33A1E343BD-phpdocdesc.zip
|
||||||
|
http://hg.netbeans.org/binaries/BFB982F9B33E2F1A1766C212C8208793F9B7E77C-phpsigfiles.zip
|
||||||
|
http://hg.netbeans.org/binaries/3D6AF75EA20D715887DAF47A3F063864EF0814C1-predefined_vars.zip"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-extide-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}
|
||||||
|
~dev-java/netbeans-webcommon-${PV}
|
||||||
|
~dev-java/netbeans-websvccommon-${PV}
|
||||||
|
dev-java/javacup:0"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.php -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/0702230EB3354A1687E4496D73A94F33A1E343BD-phpdocdesc.zip php.phpdoc.documentation/external/phpdocdesc.zip || die
|
||||||
|
ln -s "${DISTDIR}"/BFB982F9B33E2F1A1766C212C8208793F9B7E77C-phpsigfiles.zip php.project/external/phpsigfiles.zip || die
|
||||||
|
ln -s "${DISTDIR}"/3D6AF75EA20D715887DAF47A3F063864EF0814C1-predefined_vars.zip php.editor/external/predefined_vars.zip || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
java-pkg_jar-from --into libs.javacup/external javacup javacup.jar java-cup-11a.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||||
|
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.extide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-webcommon-${SLOT} webcommon || die
|
||||||
|
cat /usr/share/netbeans-webcommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.webcommon.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-websvccommon-${SLOT} websvccommon || die
|
||||||
|
cat /usr/share/netbeans-websvccommon-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.websvccommon.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/php >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/php$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm java-cup-11a.jar && dosym /usr/share/javacup/lib/javacup.jar ${instdir}/java-cup-11a.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/php
|
||||||
|
}
|
@ -0,0 +1,126 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-platform/netbeans-platform-8.0.2.ebuild,v 1.1 2014/12/07 17:58:43 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans Platform"
|
||||||
|
HOMEPAGE="http://netbeans.org/features/platform/"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/1BA97A9FFD4A1DFF3E75B76CD3AE3D0EFF8493B7-felix-4.2.1.jar
|
||||||
|
http://hg.netbeans.org/binaries/B27F1304F18FEDE876F940AEFA6C9EB5632619D7-org.eclipse.osgi_3.9.1.v20140110-1610.jar
|
||||||
|
http://hg.netbeans.org/binaries/972E6455724DC6ADB1C1912F53B5E3D7DF20C5FD-osgi.cmpn-4.2.jar
|
||||||
|
http://hg.netbeans.org/binaries/1C7FE319052EF49126CF07D0DB6953CB7007229E-swing-layout-1.0.4-doc.zip
|
||||||
|
http://hg.netbeans.org/binaries/AC97B566699146713B3CF0ABC226B5C08EF7CF33-testng-6.8.1-dist.jar
|
||||||
|
http://hg.netbeans.org/binaries/AF022CBCACD8CBFCF946816441D1E7568D817745-testng-6.8.1-javadoc.zip"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="dev-java/javahelp:0
|
||||||
|
>=dev-java/jna-3.4:0
|
||||||
|
>=dev-java/osgi-core-api-5:0
|
||||||
|
dev-java/swing-layout:1[source]"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.platform -Dext.binaries.downloaded=true -Djava.awt.headless=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/1BA97A9FFD4A1DFF3E75B76CD3AE3D0EFF8493B7-felix-4.2.1.jar libs.felix/external/felix-4.2.1.jar || die
|
||||||
|
ln -s "${DISTDIR}"/B27F1304F18FEDE876F940AEFA6C9EB5632619D7-org.eclipse.osgi_3.9.1.v20140110-1610.jar netbinox/external/org.eclipse.osgi_3.9.1.v20140110-1610.jar || die
|
||||||
|
ln -s "${DISTDIR}"/972E6455724DC6ADB1C1912F53B5E3D7DF20C5FD-osgi.cmpn-4.2.jar libs.osgi/external/osgi.cmpn-4.2.jar || die
|
||||||
|
ln -s "${DISTDIR}"/1C7FE319052EF49126CF07D0DB6953CB7007229E-swing-layout-1.0.4-doc.zip o.jdesktop.layout/external/swing-layout-1.0.4-doc.zip || die
|
||||||
|
ln -s "${DISTDIR}"/AC97B566699146713B3CF0ABC226B5C08EF7CF33-testng-6.8.1-dist.jar libs.testng/external/testng-6.8.1-dist.jar || die
|
||||||
|
ln -s "${DISTDIR}"/AF022CBCACD8CBFCF946816441D1E7568D817745-testng-6.8.1-javadoc.zip libs.testng/external/testng-6.8.1-javadoc.zip || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
# upstream jna jar contains bundled binary libraries so we disable that feature
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --into libs.jna.platform/external jna platform.jar jna-platform-4.1.0.jar
|
||||||
|
java-pkg_jar-from --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
java-pkg_jar-from --into libs.jna/external jna jna.jar jna-4.1.0.jar
|
||||||
|
java-pkg_jar-from --into libs.osgi/external osgi-core-api osgi-core-api.jar osgi.core-5.0.0.jar
|
||||||
|
java-pkg_jar-from --into o.jdesktop.layout/external swing-layout-1 swing-layout.jar swing-layout-1.0.4.jar
|
||||||
|
ln -s /usr/share/swing-layout-1/sources/swing-layout-src.zip o.jdesktop.layout/external/swing-layout-1.0.4-src.zip || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
unset DISPLAY
|
||||||
|
eant -f ${EANT_BUILD_XML} ${EANT_EXTRA_ARGS} ${EANT_BUILD_TARGET} || die "Compilation failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/platform >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg_dojar lib/*.jar
|
||||||
|
grep -E "/platform$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
doins -r *
|
||||||
|
rm "${D}"/${INSTALL_DIR}/docs/swing-layout-1.0.4-src.zip || die
|
||||||
|
dosym /usr/share/swing-layout-1/sources/swing-layout-src.zip ${INSTALL_DIR}/docs/swing-layout-1.0.4-src.zip
|
||||||
|
find "${D}"/${INSTALL_DIR} -name "*.exe" -delete
|
||||||
|
find "${D}"/${INSTALL_DIR} -name "*.dll" -delete
|
||||||
|
rm -fr "${D}"/modules/lib || die
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
fperms 775 ${INSTALL_DIR}/lib/nbexec
|
||||||
|
dosym ${INSTALL_DIR}/lib/nbexec /usr/bin/nbexec-${SLOT}
|
||||||
|
|
||||||
|
local instdir=${INSTALL_DIR}/modules/ext
|
||||||
|
pushd "${D}"/${instdir} >/dev/null || die
|
||||||
|
rm jhall-2.0_05.jar && dosym /usr/share/javahelp/lib/jhall.jar ${instdir}/jhall-2.0_05.jar || die
|
||||||
|
rm jna-4.1.0.jar && dosym /usr/share/jna/lib/jna.jar ${instdir}/jna-4.1.0.jar || die
|
||||||
|
rm jna-platform-4.1.0.jar && dosym /usr/share/jna/lib/platform.jar ${instdir}/jna-platform-4.1.0.jar || die
|
||||||
|
rm osgi.core-5.0.0.jar && dosym /usr/share/osgi-core-api/lib/osgi-core-api.jar ${instdir}/osgi.core-5.0.0.jar || die
|
||||||
|
rm swing-layout-1.0.4.jar && dosym /usr/share/swing-layout-1/lib/swing-layout.jar ${instdir}/swing-layout-1.0.4.jar || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/platform
|
||||||
|
}
|
@ -0,0 +1,121 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-profiler/netbeans-profiler-8.0.2.ebuild,v 1.1 2014/12/07 17:59:00 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans Profiler Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/projects/profiler"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
# Binary files needed for remote profiling
|
||||||
|
QA_PREBUILT="usr/share/netbeans-profiler-${SLOT}/lib/deployed/*"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-extide-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}
|
||||||
|
~dev-java/netbeans-java-${PV}
|
||||||
|
~dev-java/netbeans-platform-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.profiler -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||||
|
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.extide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-java-${SLOT} java || die
|
||||||
|
cat /usr/share/netbeans-java-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.java.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/profiler >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
|
||||||
|
grep -E "/profiler$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
|
||||||
|
doins -r *
|
||||||
|
|
||||||
|
for file in lib/deployed/cvm/linux/*.so ; do
|
||||||
|
fperms 755 ${file}
|
||||||
|
done
|
||||||
|
|
||||||
|
for file in lib/deployed/jdk*/linux*/*.so ; do
|
||||||
|
fperms 755 ${file}
|
||||||
|
done
|
||||||
|
|
||||||
|
for file in remote-pack-defs/*.sh ; do
|
||||||
|
fperms 755 ${file}
|
||||||
|
done
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/profiler
|
||||||
|
}
|
@ -0,0 +1,118 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-webcommon/netbeans-webcommon-8.0.2.ebuild,v 1.1 2014/12/07 17:59:14 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans Web Services Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
http://hg.netbeans.org/binaries/20317762D93542637CD2C6123B836C8DA267DE9D-cdnjs.zip
|
||||||
|
http://hg.netbeans.org/binaries/59631804B5A7FF3CEAA3F0E113584AF7E1BB6E9B-dd-plist.jar
|
||||||
|
http://hg.netbeans.org/binaries/81483881778F37D0495C07323E445361084CA1DB-ios-sim
|
||||||
|
http://hg.netbeans.org/binaries/9D29F2A9722C91A403F32971E97DD0E49E97B02E-libiDeviceNativeBinding.dylib
|
||||||
|
http://hg.netbeans.org/binaries/9F0D0D95F57E73C0110FA023813A4F9756D543B1-libimobiledevice.4.dylib
|
||||||
|
http://hg.netbeans.org/binaries/480C9E376169E21EA3BDA5D5841425BD7CC054D7-libplist.1.dylib
|
||||||
|
http://hg.netbeans.org/binaries/08FE518AB60FFA2E5440B75B4D9F8502E0791B3C-libs.jstestdriver-ext.jar
|
||||||
|
http://hg.netbeans.org/binaries/D05B7274396C8EED185207399B6D0400DE347DB7-libusbmuxd.2.dylib"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-platform-${PV}
|
||||||
|
~dev-java/netbeans-extide-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.webcommon -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
|
||||||
|
pushd "${S}" >/dev/null || die
|
||||||
|
ln -s "${DISTDIR}"/20317762D93542637CD2C6123B836C8DA267DE9D-cdnjs.zip web.clientproject.api/external/cdnjs.zip || die
|
||||||
|
ln -s "${DISTDIR}"/59631804B5A7FF3CEAA3F0E113584AF7E1BB6E9B-dd-plist.jar libs.plist/external/dd-plist.jar || die
|
||||||
|
ln -s "${DISTDIR}"/81483881778F37D0495C07323E445361084CA1DB-ios-sim cordova.platforms.ios/external/ios-sim || die
|
||||||
|
ln -s "${DISTDIR}"/9D29F2A9722C91A403F32971E97DD0E49E97B02E-libiDeviceNativeBinding.dylib cordova.platforms.ios/external/libiDeviceNativeBinding.dylib || die
|
||||||
|
ln -s "${DISTDIR}"/9F0D0D95F57E73C0110FA023813A4F9756D543B1-libimobiledevice.4.dylib cordova.platforms.ios/external/libimobiledevice.4.dylib || die
|
||||||
|
ln -s "${DISTDIR}"/480C9E376169E21EA3BDA5D5841425BD7CC054D7-libplist.1.dylib cordova.platforms.ios/external/libplist.1.dylib || die
|
||||||
|
ln -s "${DISTDIR}"/08FE518AB60FFA2E5440B75B4D9F8502E0791B3C-libs.jstestdriver-ext.jar libs.jstestdriver/external/libs.jstestdriver-ext.jar || die
|
||||||
|
ln -s "${DISTDIR}"/D05B7274396C8EED185207399B6D0400DE347DB7-libusbmuxd.2.dylib cordova.platforms.ios/external/libusbmuxd.2.dylib || die
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-extide-${SLOT} extide || die
|
||||||
|
cat /usr/share/netbeans-extide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.extide.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/webcommon >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
grep -E "/webcommon$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
doins -r *
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/webcommon
|
||||||
|
}
|
@ -0,0 +1,94 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/netbeans-websvccommon/netbeans-websvccommon-8.0.2.ebuild,v 1.1 2014/12/07 17:59:30 fordfrog Exp $
|
||||||
|
|
||||||
|
EAPI="4"
|
||||||
|
inherit eutils java-pkg-2 java-ant-2
|
||||||
|
|
||||||
|
DESCRIPTION="Netbeans Web Services Common Cluster"
|
||||||
|
HOMEPAGE="http://netbeans.org/"
|
||||||
|
SLOT="8.0"
|
||||||
|
SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
|
||||||
|
SRC_URI="${SOURCE_URL}
|
||||||
|
http://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2"
|
||||||
|
LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
CDEPEND="~dev-java/netbeans-platform-${PV}
|
||||||
|
~dev-java/netbeans-ide-${PV}"
|
||||||
|
DEPEND=">=virtual/jdk-1.7
|
||||||
|
app-arch/unzip
|
||||||
|
${CDEPEND}
|
||||||
|
dev-java/javahelp:0"
|
||||||
|
RDEPEND=">=virtual/jdk-1.7
|
||||||
|
${CDEPEND}"
|
||||||
|
|
||||||
|
INSTALL_DIR="/usr/share/${PN}-${SLOT}"
|
||||||
|
|
||||||
|
EANT_BUILD_XML="nbbuild/build.xml"
|
||||||
|
EANT_BUILD_TARGET="rebuild-cluster"
|
||||||
|
EANT_EXTRA_ARGS="-Drebuild.cluster.name=nb.cluster.websvccommon -Dext.binaries.downloaded=true"
|
||||||
|
EANT_FILTER_COMPILER="ecj-3.3 ecj-3.4 ecj-3.5 ecj-3.6 ecj-3.7"
|
||||||
|
JAVA_PKG_BSFIX="off"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack $(basename ${SOURCE_URL})
|
||||||
|
|
||||||
|
einfo "Deleting bundled jars..."
|
||||||
|
find -name "*.jar" -type f -delete
|
||||||
|
|
||||||
|
unpack netbeans-8.0.2-build.xml.patch.bz2
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
einfo "Deleting bundled class files..."
|
||||||
|
find -name "*.class" -type f | xargs rm -vf
|
||||||
|
|
||||||
|
epatch netbeans-8.0.2-build.xml.patch
|
||||||
|
|
||||||
|
# Support for custom patches
|
||||||
|
if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
|
||||||
|
local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
|
||||||
|
|
||||||
|
if [ -n "${files}" ] ; then
|
||||||
|
einfo "Applying custom patches:"
|
||||||
|
|
||||||
|
for file in ${files} ; do
|
||||||
|
epatch "${file}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Symlinking external libraries..."
|
||||||
|
java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
|
||||||
|
|
||||||
|
einfo "Linking in other clusters..."
|
||||||
|
mkdir "${S}"/nbbuild/netbeans || die
|
||||||
|
pushd "${S}"/nbbuild/netbeans >/dev/null || die
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-platform-${SLOT} platform || die
|
||||||
|
cat /usr/share/netbeans-platform-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.platform.built
|
||||||
|
|
||||||
|
ln -s /usr/share/netbeans-ide-${SLOT} ide || die
|
||||||
|
cat /usr/share/netbeans-ide-${SLOT}/moduleCluster.properties >> moduleCluster.properties || die
|
||||||
|
touch nb.cluster.ide.built
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
java-pkg-2_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
pushd nbbuild/netbeans/websvccommon >/dev/null || die
|
||||||
|
|
||||||
|
insinto ${INSTALL_DIR}
|
||||||
|
grep -E "/websvccommon$" ../moduleCluster.properties > "${D}"/${INSTALL_DIR}/moduleCluster.properties || die
|
||||||
|
doins -r *
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
|
||||||
|
dosym ${INSTALL_DIR} /usr/share/netbeans-nb-${SLOT}/websvccommon
|
||||||
|
}
|
@ -1,14 +1,6 @@
|
|||||||
DIST ruby-1.9.3-p550.tar.bz2 10053787 SHA256 d3da003896db47fb10ba4d2e0285eea7fe8cdc785b86c02ebad5bc9cdeaa4748 SHA512 38767e98df25484f7292437f3cb0f798b3a43e9a7414a5401677e96ad1cc367cb3fa23ac3abe568d5bf2b2ca553713469a8770d41b79bc63daf3fa59cb4e15c6 WHIRLPOOL e5a975ab3c11c323916c1e28011e1e65226813805bdd0ef155609750d137ca40d094a70c6f79dc2e65bcb8852c3e864a946c5c0e3b3951451b5d6fee32a968f0
|
|
||||||
DIST ruby-1.9.3-p551.tar.bz2 10049332 SHA256 b0c5e37e3431d58613a160504b39542ec687d473de1d4da983dabcf3c5de771e SHA512 5ea40f8c40cf116030ffdedbe436c1fdbf9a50b7bb44bc890845c9c2a885c34da711bc1a9e9694788c2f4710f7e6e0adc4410aec1ab18a25a27168f25ac3d68c WHIRLPOOL a4de6b7300e1f1cb22b01b1fbe0a73928baf6e5b1d083e8eb239e7696703e13774fdcb52bbb7f4253ea75b597663c43a8fbea2df7b77ed95f3fd8b2512ff1f1e
|
DIST ruby-1.9.3-p551.tar.bz2 10049332 SHA256 b0c5e37e3431d58613a160504b39542ec687d473de1d4da983dabcf3c5de771e SHA512 5ea40f8c40cf116030ffdedbe436c1fdbf9a50b7bb44bc890845c9c2a885c34da711bc1a9e9694788c2f4710f7e6e0adc4410aec1ab18a25a27168f25ac3d68c WHIRLPOOL a4de6b7300e1f1cb22b01b1fbe0a73928baf6e5b1d083e8eb239e7696703e13774fdcb52bbb7f4253ea75b597663c43a8fbea2df7b77ed95f3fd8b2512ff1f1e
|
||||||
DIST ruby-2.0.0-p594.tar.xz 8316772 SHA256 561465447428a5bc52ed3cca98c6067948b2c81811e1445a196b1c24913b3e72 SHA512 d5ba88dd5eb3569203cbe91e75bf21bea6897338885479e34a839569de15ca2f09e4eff655636923892e9234a0f0b6a2c058442ebc1b13a3d2ddced25bd88fa8 WHIRLPOOL 2babf30aa05e52d06d5177d0265c20629de9b17254a47c284e74acfb2beb0f9f4aa8663ae70a2697ca4805f08c4fb7a90453a4e0a65f87e9ab1065ecc164901b
|
|
||||||
DIST ruby-2.0.0-p598.tar.xz 8316092 SHA256 9dccf4c30e1bb004b18cb1129d9daac3c0ec510a671f4f4f13a2747897ffab35 SHA512 bf7b93d9fbaab98a64d1f45c3f3bbcdfebd3e1d0584dfb27696b2716d93c2ba13881e1edaef6d3eccd769ac2e21d6157024c902f3d891951a20b972c1942ef99 WHIRLPOOL 1c60cb96a1c5d75d157b281182e5caf16f8479d52c8eb61748c63884d9dbf020f6e79ccabdc50b6f35bba1eb994c04ade5cdda550902dd6135c3838263445d12
|
DIST ruby-2.0.0-p598.tar.xz 8316092 SHA256 9dccf4c30e1bb004b18cb1129d9daac3c0ec510a671f4f4f13a2747897ffab35 SHA512 bf7b93d9fbaab98a64d1f45c3f3bbcdfebd3e1d0584dfb27696b2716d93c2ba13881e1edaef6d3eccd769ac2e21d6157024c902f3d891951a20b972c1942ef99 WHIRLPOOL 1c60cb96a1c5d75d157b281182e5caf16f8479d52c8eb61748c63884d9dbf020f6e79ccabdc50b6f35bba1eb994c04ade5cdda550902dd6135c3838263445d12
|
||||||
DIST ruby-2.1.4.tar.xz 9392500 SHA256 e1cc5cbbcaa8644e282f04763d96057ddd6f443338a5019200e8726273e84fcf SHA512 b0fbecca0ffec8f6a3c5d27f62087628b8a79874b7bdbfd8ce39cfc5b6f5cb4da2f8a3e6031abae9c59273cf629f41cf5987e2a5f4c083b0f3a3b02eeb5d7dca WHIRLPOOL 12c631c5f0000504001fabffe06b80c36ce2c573aad8215d32ab705872878917578e5df81f787695d79a66128c67f9981dcd3a29fc9bb526744ca7017c652782
|
|
||||||
DIST ruby-2.1.5.tar.xz 9371780 SHA256 22ba1eb8d475c9ed7e0541418d86044c1ea4c093ab79c300c38fc0f721afe9a3 SHA512 8a257da64158d49bc2810695baf4b5849ef83e3dde452bf1e4823e52e8261225427d729fce2fb4e9b53d6d17ca9c96d491f242535c2f963738b74f90944e2a0b WHIRLPOOL 7dab5db91e56ba95a221c456fbcebfb86aff038a084b7638f504e91e4c9b45a0ad7ee0296d6531281c33d75a31ee4f5ad05af6567a93034316f3992ebc5d6bf3
|
DIST ruby-2.1.5.tar.xz 9371780 SHA256 22ba1eb8d475c9ed7e0541418d86044c1ea4c093ab79c300c38fc0f721afe9a3 SHA512 8a257da64158d49bc2810695baf4b5849ef83e3dde452bf1e4823e52e8261225427d729fce2fb4e9b53d6d17ca9c96d491f242535c2f963738b74f90944e2a0b WHIRLPOOL 7dab5db91e56ba95a221c456fbcebfb86aff038a084b7638f504e91e4c9b45a0ad7ee0296d6531281c33d75a31ee4f5ad05af6567a93034316f3992ebc5d6bf3
|
||||||
DIST ruby-patches-1.9.3_p550.tar.bz2 2154 SHA256 c1c40f2b1f186a05774fd15c3566d722a5ab1af5b93a7c73f2d3c247d604fd73 SHA512 fdb07393439dfcc97e5d4ecd12059ef69983b23588079e1292cec1c93544524a67265e4f61f75d20ac540ee9f9ace730a584462f94bea4919124a3264e6f0ae1 WHIRLPOOL 422b7bfcbdb564fd89ae9536c15d78442ad5597c7728f84f2523a751a862807a92a77779cfdd42fcdd20569726f401e391e33c1666b0455432ddff228ea674fc
|
|
||||||
DIST ruby-patches-1.9.3_p551.tar.bz2 2154 SHA256 c1c40f2b1f186a05774fd15c3566d722a5ab1af5b93a7c73f2d3c247d604fd73 SHA512 fdb07393439dfcc97e5d4ecd12059ef69983b23588079e1292cec1c93544524a67265e4f61f75d20ac540ee9f9ace730a584462f94bea4919124a3264e6f0ae1 WHIRLPOOL 422b7bfcbdb564fd89ae9536c15d78442ad5597c7728f84f2523a751a862807a92a77779cfdd42fcdd20569726f401e391e33c1666b0455432ddff228ea674fc
|
DIST ruby-patches-1.9.3_p551.tar.bz2 2154 SHA256 c1c40f2b1f186a05774fd15c3566d722a5ab1af5b93a7c73f2d3c247d604fd73 SHA512 fdb07393439dfcc97e5d4ecd12059ef69983b23588079e1292cec1c93544524a67265e4f61f75d20ac540ee9f9ace730a584462f94bea4919124a3264e6f0ae1 WHIRLPOOL 422b7bfcbdb564fd89ae9536c15d78442ad5597c7728f84f2523a751a862807a92a77779cfdd42fcdd20569726f401e391e33c1666b0455432ddff228ea674fc
|
||||||
DIST ruby-patches-2.0.0_p594-r1.tar.bz2 2947 SHA256 dc173fe94af215fd2c1823f46140e4f11892dec59ce55b10ffad26b622bb6e4e SHA512 423a4fddfc8d7fd4f5b041989da343bc96ce0c3f22a448cab8cec47d4c458f4deeb83b167a0a3ae71d3be57df9b41151d1cafadd191bd3d3e9b08b32732e36cd WHIRLPOOL 9c728e95cf01abdb48afc2ff008dc73d341096b253c664297b6780b32821c1ec406c388ce5860b5dd2ce2de862fb80b2ae45d03750045aaf13c371743f97c92e
|
|
||||||
DIST ruby-patches-2.0.0_p594.tar.bz2 2525 SHA256 9842526b161105af36bf67d22ad578a5c4f82bd1feaf78eee72e674df594d997 SHA512 6c844bd7930ee0d6b62759f5217508f5267c857ed1ff0fc857d6077c17ecb5733d949aa9154fa22e51f8f973719749360a6b821832f2e59c37e65c080fa0c292 WHIRLPOOL 2c302058886d9bc06a5e5febd54e2419a362ca141dd18f70bf7d4c4be65484fc95c9cd432717f6f97f5949f7cf69bb9f5df6e99ae94e14df1802a6f9244a2a7a
|
|
||||||
DIST ruby-patches-2.0.0_p598.tar.bz2 2947 SHA256 dc173fe94af215fd2c1823f46140e4f11892dec59ce55b10ffad26b622bb6e4e SHA512 423a4fddfc8d7fd4f5b041989da343bc96ce0c3f22a448cab8cec47d4c458f4deeb83b167a0a3ae71d3be57df9b41151d1cafadd191bd3d3e9b08b32732e36cd WHIRLPOOL 9c728e95cf01abdb48afc2ff008dc73d341096b253c664297b6780b32821c1ec406c388ce5860b5dd2ce2de862fb80b2ae45d03750045aaf13c371743f97c92e
|
DIST ruby-patches-2.0.0_p598.tar.bz2 2947 SHA256 dc173fe94af215fd2c1823f46140e4f11892dec59ce55b10ffad26b622bb6e4e SHA512 423a4fddfc8d7fd4f5b041989da343bc96ce0c3f22a448cab8cec47d4c458f4deeb83b167a0a3ae71d3be57df9b41151d1cafadd191bd3d3e9b08b32732e36cd WHIRLPOOL 9c728e95cf01abdb48afc2ff008dc73d341096b253c664297b6780b32821c1ec406c388ce5860b5dd2ce2de862fb80b2ae45d03750045aaf13c371743f97c92e
|
||||||
DIST ruby-patches-2.1.4-r1.tar.bz2 2310 SHA256 1743dc0cec0adc1a0b5d90b0ed7908f888b8251b7a414049a57e6e32e01e4ad6 SHA512 b695621d210a7afc6704dd480bf3e7fc559174ebf240d2287338d60537ba45e5bf0f5defac6b254064d4b28077e2b97ef23b7eadc1bfa1a6bf2c616e828f937c WHIRLPOOL e9fde062fc04e4e22aec2dc55250f9007c64b07c7d03875b4073c19af9cfb0ae735d6dcb2b65bd1465a457cf0ff0602866600b5af1d520df3efc8a418763ab5b
|
|
||||||
DIST ruby-patches-2.1.4.tar.bz2 2310 SHA256 1743dc0cec0adc1a0b5d90b0ed7908f888b8251b7a414049a57e6e32e01e4ad6 SHA512 b695621d210a7afc6704dd480bf3e7fc559174ebf240d2287338d60537ba45e5bf0f5defac6b254064d4b28077e2b97ef23b7eadc1bfa1a6bf2c616e828f937c WHIRLPOOL e9fde062fc04e4e22aec2dc55250f9007c64b07c7d03875b4073c19af9cfb0ae735d6dcb2b65bd1465a457cf0ff0602866600b5af1d520df3efc8a418763ab5b
|
|
||||||
DIST ruby-patches-2.1.5.tar.bz2 2310 SHA256 1743dc0cec0adc1a0b5d90b0ed7908f888b8251b7a414049a57e6e32e01e4ad6 SHA512 b695621d210a7afc6704dd480bf3e7fc559174ebf240d2287338d60537ba45e5bf0f5defac6b254064d4b28077e2b97ef23b7eadc1bfa1a6bf2c616e828f937c WHIRLPOOL e9fde062fc04e4e22aec2dc55250f9007c64b07c7d03875b4073c19af9cfb0ae735d6dcb2b65bd1465a457cf0ff0602866600b5af1d520df3efc8a418763ab5b
|
DIST ruby-patches-2.1.5.tar.bz2 2310 SHA256 1743dc0cec0adc1a0b5d90b0ed7908f888b8251b7a414049a57e6e32e01e4ad6 SHA512 b695621d210a7afc6704dd480bf3e7fc559174ebf240d2287338d60537ba45e5bf0f5defac6b254064d4b28077e2b97ef23b7eadc1bfa1a6bf2c616e828f937c WHIRLPOOL e9fde062fc04e4e22aec2dc55250f9007c64b07c7d03875b4073c19af9cfb0ae735d6dcb2b65bd1465a457cf0ff0602866600b5af1d520df3efc8a418763ab5b
|
||||||
|
@ -1,217 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.9.3_p550.ebuild,v 1.10 2014/11/12 16:55:49 ago Exp $
|
|
||||||
|
|
||||||
EAPI=4
|
|
||||||
|
|
||||||
#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})
|
|
||||||
# 1.9.3 still uses 1.9.1
|
|
||||||
RUBYVERSION=1.9.1
|
|
||||||
|
|
||||||
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/1.9/${MY_P}.tar.bz2
|
|
||||||
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 +yaml" #libedit
|
|
||||||
|
|
||||||
# libedit support is removed everywhere because of this upstream bug:
|
|
||||||
# http://redmine.ruby-lang.org/issues/show/3698
|
|
||||||
|
|
||||||
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 )
|
|
||||||
yaml? ( dev-libs/libyaml )
|
|
||||||
virtual/libffi
|
|
||||||
sys-libs/zlib
|
|
||||||
>=app-admin/eselect-ruby-20100402
|
|
||||||
!<dev-ruby/rdoc-3.9.4
|
|
||||||
!<dev-ruby/rubygems-1.8.10-r1"
|
|
||||||
# libedit? ( dev-libs/libedit )
|
|
||||||
# !libedit? ( readline? ( sys-libs/readline ) )
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
PDEPEND="
|
|
||||||
virtual/rubygems:ruby19
|
|
||||||
rdoc? ( >=dev-ruby/rdoc-3.9.4[ruby_targets_ruby19] )
|
|
||||||
xemacs? ( app-xemacs/ruby-modes )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
|
||||||
epatch "${WORKDIR}/patches"
|
|
||||||
|
|
||||||
einfo "Unbundling gems..."
|
|
||||||
cd "$S"
|
|
||||||
rm -r \
|
|
||||||
{bin,lib}/rake lib/rake.rb man/rake.1 \
|
|
||||||
ext/json \
|
|
||||||
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=
|
|
||||||
|
|
||||||
# -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"
|
|
||||||
|
|
||||||
# if use libedit; then
|
|
||||||
# einfo "Using libedit to provide readline extension"
|
|
||||||
# myconf="${myconf} --enable-libedit --with-readline"
|
|
||||||
# elif use readline; then
|
|
||||||
# einfo "Using readline to provide readline extension"
|
|
||||||
# myconf="${myconf} --with-readline"
|
|
||||||
# else
|
|
||||||
# myconf="${myconf} --without-readline"
|
|
||||||
# fi
|
|
||||||
myconf="${myconf} $(use_with readline)"
|
|
||||||
|
|
||||||
# Always disable tk because the module is no longer compatible with
|
|
||||||
# stable tcl/tk: https://bugs.gentoo.org/show_bug.cgi?id=500894
|
|
||||||
INSTALL="${EPREFIX}/usr/bin/install -c" econf \
|
|
||||||
--program-suffix=${MY_SUFFIX} \
|
|
||||||
--with-soname=ruby${MY_SUFFIX} \
|
|
||||||
--enable-shared \
|
|
||||||
--enable-pthread \
|
|
||||||
--without-tk \
|
|
||||||
$(use_enable socks5 socks) \
|
|
||||||
$(use_enable doc install-doc) \
|
|
||||||
--enable-ipv6 \
|
|
||||||
$(use_enable debug) \
|
|
||||||
$(use_with berkdb dbm) \
|
|
||||||
$(use_with gdbm) \
|
|
||||||
$(use_with ssl openssl) \
|
|
||||||
$(use_with ncurses curses) \
|
|
||||||
$(use_with yaml psych) \
|
|
||||||
${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() {
|
|
||||||
# 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* ToDo || 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,230 +0,0 @@
|
|||||||
# Copyright 1999-2014 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_p594-r1.ebuild,v 1.1 2014/11/10 18:30:19 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)-${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 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-admin/eselect-ruby-20100402
|
|
||||||
!<dev-ruby/rdoc-3.9.4
|
|
||||||
!<dev-ruby/rubygems-1.8.10-r1"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
PDEPEND="
|
|
||||||
virtual/rubygems: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 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,226 +0,0 @@
|
|||||||
# Copyright 1999-2014 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_p594.ebuild,v 1.10 2014/11/12 16:55:49 ago 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"
|
|
||||||
|
|
||||||
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-admin/eselect-ruby-20100402
|
|
||||||
!<dev-ruby/rdoc-3.9.4
|
|
||||||
!<dev-ruby/rubygems-1.8.10-r1"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
PDEPEND="
|
|
||||||
virtual/rubygems: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() {
|
|
||||||
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-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.1.4-r1.ebuild,v 1.1 2014/11/10 18:30:19 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 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-admin/eselect-ruby-20131227
|
|
||||||
!<dev-ruby/rdoc-3.9.4
|
|
||||||
!<dev-ruby/rubygems-1.8.10-r1"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
PDEPEND="
|
|
||||||
virtual/rubygems: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 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,227 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.1.4.ebuild,v 1.1 2014/10/27 19:15:55 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"
|
|
||||||
|
|
||||||
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-admin/eselect-ruby-20131227
|
|
||||||
!<dev-ruby/rdoc-3.9.4
|
|
||||||
!<dev-ruby/rubygems-1.8.10-r1"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
PDEPEND="
|
|
||||||
virtual/rubygems: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() {
|
|
||||||
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
|
|
||||||
}
|
|
@ -0,0 +1 @@
|
|||||||
|
DIST camlpdf-2.1.1.tar.gz 563633 SHA256 970b63bbe0d78c415813f48b103066286e95fe04ad5fb30cc968472b3c3b00b1 SHA512 db6f9f61c43113e1f4d8741d88766bacc489a45b8e7164e4619f8bb88c527bc7cbeebdaaa673a77ab16c60dc3c90d21a69844e9fed92c222fc8fe0424f328cf2 WHIRLPOOL af0c8a80f03f789890f1ed0358a028c6d7dd754a564dce3bc0cf642e0ea9c620ce9d1d514e8d4c27fb4fa030551434aa4f01bc29eccdad02ca5f5dd7c4ba2c61
|
@ -0,0 +1,36 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlpdf/camlpdf-2.1.1.ebuild,v 1.2 2014/12/07 18:37:48 radhermit Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit findlib
|
||||||
|
|
||||||
|
DESCRIPTION="OCaml library for reading, writing, and modifying PDF files"
|
||||||
|
HOMEPAGE="https://github.com/johnwhitington/camlpdf/"
|
||||||
|
SRC_URI="https://github.com/johnwhitington/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1+"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="doc examples"
|
||||||
|
|
||||||
|
RDEPEND="dev-lang/ocaml:="
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# parallel make bugs
|
||||||
|
emake -j1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
findlib_src_install
|
||||||
|
dodoc Changes README.md
|
||||||
|
|
||||||
|
if use doc ; then
|
||||||
|
dodoc introduction_to_camlpdf.pdf
|
||||||
|
dohtml doc/camlpdf/html/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
use examples && dodoc -r examples
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version = '1.0' encoding = 'UTF-8'?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer>
|
||||||
|
<email>radhermit@gentoo.org</email>
|
||||||
|
<name>Tim Harder</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,18 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Audio-Musepack/Audio-Musepack-1.0.1.ebuild,v 1.1 2014/12/07 14:14:40 dilfridge Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
MODULE_AUTHOR=DANIEL
|
||||||
|
inherit perl-module
|
||||||
|
|
||||||
|
DESCRIPTION="An OO interface to Musepack file information and APE tag fields"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
COMMON_DEPEND=">=dev-perl/Audio-Scan-0.850.0"
|
||||||
|
RDEPEND="${COMMON_DEPEND}"
|
||||||
|
DEPEND="${COMMON_DEPEND}"
|
||||||
|
|
||||||
|
SRC_TEST="do parallel"
|
@ -0,0 +1 @@
|
|||||||
|
DIST Audio-Musepack-1.0.1.tar.gz 104455 SHA256 3fd082efa38cc1d38097fbee690bd7961074f989dba87f41241413139c38ce3b SHA512 704b8d7948675fc8c5c691dd1ca10b375b6089b5bd538ccfeefbeed327bb95661e45562dccf39aa95852810e3e2dd75e6a576781fc781b8bf1b5c33569db1f50 WHIRLPOOL 5a3276b2edab73148691cd5ed26cb39bf86cbd2dc5532db29a07160c729a5bcc458cdff32995d2f1cccb1538e7db3a9ac3fc39f1ca0a4ffdcbc2a5c7fd8d4ae5
|
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<herd>perl</herd>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="cpan">Audio-Musepack</remote-id>
|
||||||
|
<remote-id type="cpan-module">Audio::APE</remote-id>
|
||||||
|
<remote-id type="cpan-module">Audio::APETags</remote-id>
|
||||||
|
<remote-id type="cpan-module">Audio::Musepack</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,22 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Audio-WMA/Audio-WMA-1.300.0.ebuild,v 1.1 2014/12/07 14:22:55 dilfridge Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
MODULE_VERSION=1.3
|
||||||
|
MODULE_AUTHOR=DANIEL
|
||||||
|
inherit perl-module
|
||||||
|
|
||||||
|
DESCRIPTION="extension for reading WMA/ASF metadata"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
RDEPEND=""
|
||||||
|
DEPEND="
|
||||||
|
test? ( dev-perl/Test-Pod
|
||||||
|
dev-perl/Test-Pod-Coverage )"
|
||||||
|
|
||||||
|
SRC_TEST="do parallel"
|
@ -0,0 +1 @@
|
|||||||
|
DIST Audio-WMA-1.3.tar.gz 131543 SHA256 cdf95f55901f98525a428cb2f9be6afdabdb508f78e20efced4f0c23d6ef4b37 SHA512 b0156ad792dada196bf529b80fd52dba321be46b39783d6072aff7a4ce18802b0039f3ece6204b68b2dcd4d77bd19b2f1f6bd203a0c2fa8dbab208e82e76e8ef WHIRLPOOL daef50ce577a3b6875568676cf92af1fd0c55079beeb6a05f35f4af9750c36a1f2c9d61543c30aef983c7a419ef6f180d5a47eb6c722472bb20e02bec2142d4b
|
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<herd>perl</herd>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="cpan">Audio-WMA</remote-id>
|
||||||
|
<remote-id type="cpan-module">Audio::WMA</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,24 @@
|
|||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: /var/cvsroot/gentoo-x86/dev-perl/CGI-Ajax/CGI-Ajax-0.707.0.ebuild,v 1.1 2014/12/07 15:40:31 dilfridge Exp $
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
MODULE_VERSION=0.707
|
||||||
|
MODULE_AUTHOR=BPEDERSE
|
||||||
|
inherit perl-module
|
||||||
|
|
||||||
|
DESCRIPTION="a perl-specific system for writing Asynchronous web applications"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
virtual/perl-CGI
|
||||||
|
dev-perl/Class-Accessor
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
test? ( virtual/perl-Test-Simple )
|
||||||
|
"
|
||||||
|
|
||||||
|
SRC_TEST=do
|
@ -0,0 +1 @@
|
|||||||
|
DIST CGI-Ajax-0.707.tar.gz 37661 SHA256 fb18801bf6473231199bb9e81f56ce945c4b93c68b05ed17049a8885b9e211f7 SHA512 093c884086017b37bf4ae58b25ec96425eb896b73e528dd9b656975b9ecd9bd438db637a4b3149ccccd4108637c5cde55e6f45a92d4e865a1b0cf866bf5d8e85 WHIRLPOOL 33f470a99f3e37f09493f41294325e9145b3a6fe65dae568dff45a3f3338a9719326fac12472bb5333debc85369fdae8ad98b7265c2696806deca16b825680ef
|
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<herd>perl</herd>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="cpan">CGI-Ajax</remote-id>
|
||||||
|
<remote-id type="cpan-module">CGI::Ajax</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue