parent
cf8266174f
commit
0844bd2beb
@ -0,0 +1,45 @@
|
||||
From 437d0f671a07361e79dd9ce2a1064855efba3308 Mon Sep 17 00:00:00 2001
|
||||
From: Alexandre Rostovtsev <tetromino@gentoo.org>
|
||||
Date: Wed, 17 Oct 2012 06:19:46 -0400
|
||||
Subject: [PATCH] Do not call g_thread_init()
|
||||
|
||||
It's not needed with >=glib-2.34 since gst_init_tool() calls gtk_init(),
|
||||
which calls g_type_init(), which initializes the threading system
|
||||
automatically.
|
||||
|
||||
With >=glib-2.32, using g_thread_init() is deprecated and results in a
|
||||
linking error.
|
||||
|
||||
https://bugs.gentoo.org/show_bug.cgi?id=438474
|
||||
---
|
||||
src/network/main.c | 1 -
|
||||
src/shares/main.c | 1 -
|
||||
2 files changed, 2 deletions(-)
|
||||
|
||||
diff --git a/src/network/main.c b/src/network/main.c
|
||||
index 8d302b4..0438b26 100644
|
||||
--- a/src/network/main.c
|
||||
+++ b/src/network/main.c
|
||||
@@ -185,7 +185,6 @@ main (int argc, gchar *argv[])
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
- g_thread_init (NULL);
|
||||
gst_init_tool ("network-admin", argc, argv, entries);
|
||||
tool = gst_network_tool_new ();
|
||||
|
||||
diff --git a/src/shares/main.c b/src/shares/main.c
|
||||
index f859ecc..beee15a 100644
|
||||
--- a/src/shares/main.c
|
||||
+++ b/src/shares/main.c
|
||||
@@ -104,7 +104,6 @@ main (int argc, char *argv[])
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
- g_thread_init (NULL);
|
||||
gst_init_tool ("shares-admin", argc, argv, entries);
|
||||
tool = GST_TOOL (gst_shares_tool_new ());
|
||||
|
||||
--
|
||||
1.7.12.3
|
||||
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/gnome-system-tools/gnome-system-tools-2.32.0-r1.ebuild,v 1.3 2012/05/03 18:02:21 jdhore Exp $
|
||||
|
||||
EAPI="3"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
|
||||
inherit eutils gnome2
|
||||
|
||||
DESCRIPTION="Tools aimed to make easy the administration of UNIX systems"
|
||||
HOMEPAGE="http://www.gnome.org/projects/gst/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="nfs samba" # policykit
|
||||
|
||||
RDEPEND="
|
||||
>=app-admin/system-tools-backends-2.10.1
|
||||
>=dev-libs/liboobs-2.31.91
|
||||
>=x11-libs/gtk+-2.19.7:2
|
||||
>=dev-libs/glib-2.25.3:2
|
||||
dev-libs/dbus-glib
|
||||
>=gnome-base/nautilus-2.9.90
|
||||
sys-libs/cracklib
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
samba? ( >=net-fs/samba-3 )"
|
||||
# policykit? (
|
||||
# >=sys-auth/polkit-0.92
|
||||
# >=gnome-extra/polkit-gnome-0.92 )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
app-text/scrollkeeper
|
||||
>=app-text/gnome-doc-utils-0.3.2
|
||||
virtual/pkgconfig
|
||||
>=dev-util/intltool-0.35.0"
|
||||
|
||||
pkg_setup() {
|
||||
DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO"
|
||||
|
||||
G2CONF="${G2CONF}
|
||||
--disable-static
|
||||
--disable-polkit-gtk"
|
||||
# $(use_enable policykit polkit-gtk)"
|
||||
|
||||
if ! use nfs && ! use samba; then
|
||||
G2CONF="${G2CONF} --disable-shares"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-gold.patch
|
||||
gnome2_src_prepare
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/gnome-system-tools/gnome-system-tools-2.32.0.ebuild,v 1.7 2012/05/03 18:02:21 jdhore Exp $
|
||||
|
||||
EAPI="3"
|
||||
GCONF_DEBUG="no"
|
||||
|
||||
inherit gnome2
|
||||
|
||||
DESCRIPTION="Tools aimed to make easy the administration of UNIX systems"
|
||||
HOMEPAGE="http://www.gnome.org/projects/gst/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ia64 ppc sparc x86"
|
||||
IUSE="nfs policykit samba"
|
||||
|
||||
RDEPEND="
|
||||
>=app-admin/system-tools-backends-2.10.1
|
||||
>=dev-libs/liboobs-2.31.91
|
||||
>=x11-libs/gtk+-2.19.7:2
|
||||
>=dev-libs/glib-2.25.3:2
|
||||
dev-libs/dbus-glib
|
||||
>=gnome-base/nautilus-2.9.90
|
||||
sys-libs/cracklib
|
||||
nfs? ( net-fs/nfs-utils )
|
||||
samba? ( >=net-fs/samba-3 )
|
||||
policykit? (
|
||||
>=sys-auth/polkit-0.92
|
||||
>=gnome-extra/polkit-gnome-0.92 )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
app-text/scrollkeeper
|
||||
>=app-text/gnome-doc-utils-0.3.2
|
||||
virtual/pkgconfig
|
||||
>=dev-util/intltool-0.35.0"
|
||||
|
||||
pkg_setup() {
|
||||
DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO"
|
||||
|
||||
G2CONF="${G2CONF}
|
||||
--disable-static
|
||||
$(use_enable policykit polkit-gtk)"
|
||||
|
||||
if ! use nfs && ! use samba; then
|
||||
G2CONF="${G2CONF} --disable-shares"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
|
||||
# No la files needed for nautilus-extensions
|
||||
find "${ED}" -name "*.la" -delete || die "failed to delete *.la files"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST jre-6u35-linux-i586.bin 21697122 SHA256 55959143e602cb4edf2786d0f78c288eb44e7f105836aa949f2e0081a2fbd70c SHA512 981c9177b910f3530acf9b0998e33c79c9d5e0bb6da73694d87d48be50a30ba349e088e7b32ba8bf3b3c6b48789d12948eb82477123944dfef61d2972ddf88a5 WHIRLPOOL 8313107f4aee0b877bc4ba4f4fe22738a41a0229e04af7b0b528fe23b820ec207efff6a7565c97985e8b9497ff73c1b7f4117b281ab286b49d91583f45a67835
|
||||
DIST jre-6u37-linux-i586.bin 21704353 SHA256 aeba98f45e3dcddd460e28165d89de521e69dfa69b76ca6aa21bda633dce4776 SHA512 5f80c83c4b359d044c09b8854536a04c59f0e8d0699c29920114866b348c666f6227719bdf2236961cd0ee2bbaf82d3d75f97d413e6a26a02a4b075ac0d0907c WHIRLPOOL 6ebdc24c344173fe2011cf3197e66f7291b2985e99357740d543e3f715dce14101cac7213ff2e782b0a1af328e94d813e8843a5fe22b12dc96002b97e05cd8b1
|
||||
|
@ -0,0 +1,112 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.6.0.37.ebuild,v 1.1 2012/10/17 14:45:17 sera Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit java-vm-2 eutils prefix versionator
|
||||
|
||||
# This URIs need to be updated when bumping!
|
||||
JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre6u37-downloads-1859589.html"
|
||||
|
||||
MY_PV="$(get_version_component_range 2)u$(get_version_component_range 4)"
|
||||
S_PV="$(replace_version_separator 3 '_')"
|
||||
|
||||
X86_AT="jre-${MY_PV}-linux-i586.bin"
|
||||
|
||||
DESCRIPTION="Oracle's Java SE Runtime Environment (32bit)"
|
||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
||||
SRC_URI="${X86_AT}"
|
||||
|
||||
LICENSE="Oracle-BCLA-JavaSE"
|
||||
SLOT="1.6"
|
||||
KEYWORDS="-* ~amd64"
|
||||
IUSE="X alsa nsplugin pax_kernel"
|
||||
|
||||
RESTRICT="fetch strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
RDEPEND="
|
||||
X? ( app-emulation/emul-linux-x86-xlibs )
|
||||
alsa? ( app-emulation/emul-linux-x86-soundlibs )"
|
||||
# scanelf won't create a PaX header, so depend on paxctl to avoid fallback
|
||||
# marking. #427642
|
||||
DEPEND="
|
||||
pax_kernel? ( sys-apps/paxctl )"
|
||||
|
||||
S="${WORKDIR}/jre${S_PV}"
|
||||
|
||||
pkg_nofetch() {
|
||||
einfo "Due to Oracle no longer providing the distro-friendly DLJ bundles, the package has become fetch restricted again."
|
||||
einfo ""
|
||||
einfo "Please download '${X86_AT}' from:"
|
||||
einfo "'${JRE_URI}'"
|
||||
einfo "and move it to '${DISTDIR}'"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
sh "${DISTDIR}"/${A} -noregister || die "Failed to unpack"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# This needs to be done before CDS - #215225
|
||||
java-vm_set-pax-markings "${S}"
|
||||
|
||||
# see bug #207282
|
||||
einfo "Creating the Class Data Sharing archives"
|
||||
bin/java -client -Xshare:dump || die
|
||||
bin/java -server -Xshare:dump || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/opt/${P}"
|
||||
local ddest="${ED}${dest}"
|
||||
|
||||
# We should not need the ancient plugin for Firefox 2 anymore, plus it has
|
||||
# writable executable segments
|
||||
rm -vf lib/i386/libjavaplugin_oji.so \
|
||||
lib/i386/libjavaplugin_nscp*.so
|
||||
rm -vrf plugin/i386
|
||||
# Without nsplugin flag, also remove the new plugin
|
||||
arch=i386;
|
||||
if ! use nsplugin; then
|
||||
rm -vf lib/${arch}/libnpjp2.so \
|
||||
lib/${arch}/libjavaplugin_jni.so
|
||||
fi
|
||||
|
||||
dodir "${dest}"
|
||||
cp -pPR bin lib man "${ddest}" || die
|
||||
|
||||
# Remove empty dirs we might have copied
|
||||
find "${D}" -type d -empty -exec rmdir {} + || die
|
||||
|
||||
dodoc COPYRIGHT README
|
||||
|
||||
if use nsplugin; then
|
||||
install_mozilla_plugin "${dest}"/lib/${arch}/libnpjp2.so
|
||||
fi
|
||||
|
||||
# Install desktop file for the Java Control Panel.
|
||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
|
||||
# make_desktop_entry can't be used as ${P} would end up in filename.
|
||||
newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT} (${PN})#" \
|
||||
-e "s#Exec=.*#Exec=${dest}/bin/jcontrol#" \
|
||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
||||
-e "s#Application;##" \
|
||||
-e "/Encoding/d" \
|
||||
lib/desktop/applications/sun_java.desktop > \
|
||||
"${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
||||
|
||||
# http://docs.oracle.com/javase/6/docs/technotes/guides/intl/fontconfig.html
|
||||
rm "${ddest}"/lib/fontconfig.* || die
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
||||
eprefixify "${T}"/fontconfig.properties
|
||||
insinto "${dest}"/lib/
|
||||
doins "${T}"/fontconfig.properties
|
||||
|
||||
set_java_env "${FILESDIR}/${VMHANDLE}.env-r1"
|
||||
java-vm_revdep-mask
|
||||
}
|
@ -1,52 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vboxgtk/vboxgtk-0.8.0.ebuild,v 1.2 2012/07/23 15:46:28 hasufell Exp $
|
||||
|
||||
EAPI="4"
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="2.[45] 3.* *-jython"
|
||||
|
||||
inherit gnome2-utils distutils
|
||||
|
||||
DESCRIPTION="GTK frontend for VirtualBox"
|
||||
HOMEPAGE="http://code.google.com/p/vboxgtk/"
|
||||
SRC_URI="http://vboxgtk.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
|| ( app-emulation/virtualbox[-headless,python,sdk]
|
||||
>=app-emulation/virtualbox-bin-2.2.2[python] )
|
||||
>=dev-python/pygobject-2.28.0:2"
|
||||
|
||||
PKG_LINGUAS="cs gl"
|
||||
for PKG_LINGUA in ${PKG_LINGUAS}; do
|
||||
IUSE="${IUSE} linguas_${PKG_LINGUA/-/_}"
|
||||
done
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
for LINGUA in ${PKG_LINGUAS}; do
|
||||
if ! use linguas_${LINGUA/-/_}; then
|
||||
rm -r po/"${LINGUA}".po || die "LINGUAS removal failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
distutils_pkg_postrm
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,13 +1,13 @@
|
||||
# Copyright 1999-2005 Gentoo Foundation
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-vim/thlnk/thlnk-1.2.1.ebuild,v 1.12 2007/07/11 05:14:07 mr_bones_ Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-vim/thlnk/thlnk-1.2.1.ebuild,v 1.13 2012/10/17 17:46:26 ago Exp $
|
||||
|
||||
inherit vim-plugin
|
||||
|
||||
DESCRIPTION="vim plugin: linking in plaintext"
|
||||
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=293"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="alpha sparc x86 ia64 ppc"
|
||||
KEYWORDS="alpha ~amd64 ia64 ppc sparc x86"
|
||||
IUSE=""
|
||||
|
||||
VIM_PLUGIN_HELPFILES="thlnk thlnk-reference-manual"
|
||||
|
@ -0,0 +1,238 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.7.0.9.ebuild,v 1.1 2012/10/17 15:56:09 sera Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit java-vm-2 eutils prefix versionator
|
||||
|
||||
# This URIs need to be updated when bumping!
|
||||
JDK_URI="http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html"
|
||||
# api and fx docs for 7u6
|
||||
#DOCS_URI=http://www.oracle.com/technetwork/java/javase/documentation/java-se-7-doc-download-435117.html
|
||||
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html"
|
||||
|
||||
# This is a list of archs supported by this update
|
||||
# arm currently missing
|
||||
JDK_AVAILABLE=( amd64 x86 x64-solaris x86-solaris sparc-solaris sparc64-solaris )
|
||||
DEMOS_AVAILABLE=( amd64 x86 x64-solaris x86-solaris sparc-solaris sparc64-solaris )
|
||||
|
||||
FX_VERSION="2_2_3"
|
||||
UPDATE="$(get_version_component_range 4)"
|
||||
MY_PV="$(get_version_component_range 2)u${UPDATE}"
|
||||
S="${WORKDIR}/jdk$(get_version_component_range 1-3)_0${UPDATE}"
|
||||
# for when oracle messes with us again.
|
||||
DEMOS_PV="${MY_PV}"
|
||||
DEMOS_S="${S}"
|
||||
|
||||
at_x86="jdk-${MY_PV}-linux-i586.tar.gz"
|
||||
at_amd64="jdk-${MY_PV}-linux-x64.tar.gz"
|
||||
at_arm="jdk-${MY_PV}-linux-arm-sfp.tar.gz"
|
||||
at_x86_solaris="jdk-${MY_PV}-solaris-i586.tar.gz"
|
||||
at_x64_solaris="${at_x86_solaris} jdk-${MY_PV}-solaris-x64.tar.gz"
|
||||
at_sparc_solaris="jdk-${MY_PV}-solaris-sparc.tar.gz"
|
||||
at_sparc64_solaris="${at_sparc_solaris} jdk-${MY_PV}-solaris-sparcv9.tar.gz"
|
||||
|
||||
fx_demos_linux="javafx_samples-${FX_VERSION}-linux.zip"
|
||||
demos_x86="${fx_demos_linux} jdk-${DEMOS_PV}-linux-i586-demos.tar.gz"
|
||||
demos_amd64="${fx_demos_linux} jdk-${DEMOS_PV}-linux-x64-demos.tar.gz"
|
||||
demos_arm="${fx_demos_linux} jdk-${DEMOS_PV}-linux-arm-sfp-demos.tar.gz"
|
||||
demos_x86_solaris="jdk-${DEMOS_PV}-solaris-i586-demos.tar.gz"
|
||||
demos_x64_solaris="${demos_x86_solaris} jdk-${DEMOS_PV}-solaris-x64-demos.tar.gz"
|
||||
demos_sparc_solaris="jdk-${DEMOS_PV}-solaris-sparc-demos.tar.gz"
|
||||
demos_sparc64_solaris="${demos_sparc_solaris} jdk-${DEMOS_PV}-solaris-sparcv9-demos.tar.gz"
|
||||
|
||||
# docs #67266
|
||||
#JDK_API_DOCS="jdk-${MY_PV}-apidocs.zip"
|
||||
#FX_API_DOCS="javafx-${FX_VERSION}-apidocs.zip"
|
||||
|
||||
JCE_DIR="UnlimitedJCEPolicy"
|
||||
JCE_FILE="${JCE_DIR}JDK7.zip"
|
||||
|
||||
DESCRIPTION="Oracle's Java SE Development Kit"
|
||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
||||
for d in "${JDK_AVAILABLE[@]}"; do
|
||||
SRC_URI+=" ${d}? ("
|
||||
SRC_URI+=" $(eval "echo \${$(echo at_${d/-/_})}")"
|
||||
if has ${d} "${DEMOS_AVAILABLE[@]}"; then
|
||||
SRC_URI+=" examples? ( $(eval "echo \${$(echo demos_${d/-/_})}") )"
|
||||
fi
|
||||
SRC_URI+=" )"
|
||||
done
|
||||
unset d
|
||||
SRC_URI+=" jce? ( ${JCE_FILE} )"
|
||||
|
||||
LICENSE="Oracle-BCLA-JavaSE examples? ( BSD )" # doc? ( Oracle-DLA-JavaSE )
|
||||
SLOT="1.7"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+X alsa derby doc examples +fontconfig jce nsplugin pax_kernel +source"
|
||||
|
||||
RESTRICT="fetch strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
RDEPEND="
|
||||
X? (
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libX11
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
doc? ( dev-java/java-sdk-docs:1.7 )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
!prefix? ( sys-libs/glibc )"
|
||||
# scanelf won't create a PaX header, so depend on paxctl to avoid fallback
|
||||
# marking. #427642
|
||||
DEPEND="
|
||||
jce? ( app-arch/unzip )
|
||||
examples? ( kernel_linux? ( app-arch/unzip ) )
|
||||
pax_kernel? ( sys-apps/paxctl )"
|
||||
|
||||
check_tarballs_available() {
|
||||
local uri=$1; shift
|
||||
local dl= unavailable=
|
||||
for dl in "${@}"; do
|
||||
[[ ! -f "${DISTDIR}/${dl}" ]] && unavailable+=" ${dl}"
|
||||
done
|
||||
|
||||
if [[ -n "${unavailable}" ]]; then
|
||||
if [[ -z ${_check_tarballs_available_once} ]]; then
|
||||
einfo
|
||||
einfo "Oracle requires you to download the needed files manually after"
|
||||
einfo "accepting their license through a javascript capable web browser."
|
||||
einfo
|
||||
_check_tarballs_available_once=done
|
||||
fi
|
||||
einfo "Downlod the following files:"
|
||||
for dl in ${unavailable}; do
|
||||
einfo " ${dl}"
|
||||
done
|
||||
einfo "at '${uri}'"
|
||||
einfo "and move them to '${DISTDIR}'"
|
||||
einfo
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_nofetch() {
|
||||
local distfiles=( $(eval "echo \${$(echo at_${ARCH/-/_})}") )
|
||||
if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then
|
||||
distfiles+=( $(eval "echo \${$(echo demos_${ARCH/-/_})}") )
|
||||
fi
|
||||
check_tarballs_available "${JDK_URI}" "${distfiles[@]}"
|
||||
|
||||
use jce && check_tarballs_available "${JCE_URI}" "${JCE_FILE}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use jce; then
|
||||
mv "${WORKDIR}"/${JCE_DIR} "${S}"/jre/lib/security/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# This needs to be done before CDS - #215225
|
||||
java-vm_set-pax-markings "${S}"
|
||||
|
||||
# see bug #207282
|
||||
einfo "Creating the Class Data Sharing archives"
|
||||
if use x86; then
|
||||
bin/java -client -Xshare:dump || die
|
||||
fi
|
||||
bin/java -server -Xshare:dump || die
|
||||
|
||||
# Create files used as storage for system preferences.
|
||||
mkdir jre/.systemPrefs || die
|
||||
touch jre/.systemPrefs/.system.lock || die
|
||||
touch jre/.systemPrefs/.systemRootModFile || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/opt/${P}"
|
||||
local ddest="${ED}${dest}"
|
||||
|
||||
dodoc COPYRIGHT
|
||||
dohtml README.html
|
||||
|
||||
# We should not need the ancient plugin for Firefox 2 anymore, plus it has
|
||||
# writable executable segments
|
||||
if use x86; then
|
||||
rm -vf {,jre/}lib/i386/libjavaplugin_oji.so \
|
||||
{,jre/}lib/i386/libjavaplugin_nscp*.so
|
||||
rm -vrf jre/plugin/i386
|
||||
fi
|
||||
# Without nsplugin flag, also remove the new plugin
|
||||
local arch=${ARCH};
|
||||
use x86 && arch=i386;
|
||||
if ! use nsplugin; then
|
||||
rm -vf {,jre/}lib/${arch}/libnpjp2.so \
|
||||
{,jre/}lib/${arch}/libjavaplugin_jni.so
|
||||
fi
|
||||
|
||||
dodir "${dest}"
|
||||
cp -pPR bin include jre lib man "${ddest}" || die
|
||||
|
||||
if use derby; then
|
||||
cp -pPR db "${ddest}" || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
cp -pPR "${DEMOS_S}"/{demo,sample} "${ddest}" || die
|
||||
if use kernel_linux && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then
|
||||
cp -pPR "${WORKDIR}"/javafx-samples-${FX_VERSION//_/.} \
|
||||
"${ddest}"/javafx-samples || die
|
||||
fi
|
||||
fi
|
||||
|
||||
if use jce; then
|
||||
dodir "${dest}"/jre/lib/security/strong-jce
|
||||
mv "${ddest}"/jre/lib/security/US_export_policy.jar \
|
||||
"${ddest}"/jre/lib/security/strong-jce || die
|
||||
mv "${ddest}"/jre/lib/security/local_policy.jar \
|
||||
"${ddest}"/jre/lib/security/strong-jce || die
|
||||
dosym "${dest}"/jre/lib/security/${JCE_DIR}/US_export_policy.jar \
|
||||
"${dest}"/jre/lib/security/US_export_policy.jar
|
||||
dosym "${dest}"/jre/lib/security/${JCE_DIR}/local_policy.jar \
|
||||
"${dest}"/jre/lib/security/local_policy.jar
|
||||
fi
|
||||
|
||||
if use nsplugin; then
|
||||
install_mozilla_plugin "${dest}"/jre/lib/${arch}/libnpjp2.so
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
cp src.zip "${ddest}" || die
|
||||
fi
|
||||
|
||||
# Install desktop file for the Java Control Panel.
|
||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
|
||||
# make_desktop_entry can't be used as ${P} would end up in filename.
|
||||
newicon jre/lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT}#" \
|
||||
-e "s#Exec=.*#Exec=/opt/${P}/jre/bin/jcontrol#" \
|
||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
||||
-e "s#Application;##" \
|
||||
-e "/Encoding/d" \
|
||||
jre/lib/desktop/applications/sun_java.desktop > \
|
||||
"${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
||||
|
||||
# Prune all fontconfig files so libfontconfig will be used and only install
|
||||
# a Gentoo specific one if fontconfig is disabled.
|
||||
# http://docs.oracle.com/javase/7/docs/technotes/guides/intl/fontconfig.html
|
||||
rm "${ddest}"/jre/lib/fontconfig.*
|
||||
if ! use fontconfig; then
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
||||
eprefixify "${T}"/fontconfig.properties
|
||||
insinto "${dest}"/jre/lib/
|
||||
doins "${T}"/fontconfig.properties
|
||||
fi
|
||||
|
||||
# Remove empty dirs we might have copied
|
||||
find "${D}" -type d -empty -exec rmdir {} + || die
|
||||
|
||||
set_java_env
|
||||
java-vm_revdep-mask
|
||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
||||
}
|
@ -0,0 +1,169 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/oracle-jre-bin/oracle-jre-bin-1.7.0.9.ebuild,v 1.1 2012/10/17 14:33:20 sera Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit java-vm-2 eutils prefix versionator
|
||||
|
||||
UPDATE="$(get_version_component_range 4)"
|
||||
MY_PV="$(get_version_component_range 2)u${UPDATE}"
|
||||
S_PV="$(get_version_component_range 1-3)_0${UPDATE}"
|
||||
|
||||
X86_AT="jre-${MY_PV}-linux-i586.tar.gz"
|
||||
AMD64_AT="jre-${MY_PV}-linux-x64.tar.gz"
|
||||
|
||||
# This URIs need updating when bumping!
|
||||
JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre7u9-downloads-1859586.html"
|
||||
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html"
|
||||
|
||||
JCE_DIR="UnlimitedJCEPolicy"
|
||||
JCE_FILE="${JCE_DIR}JDK7.zip"
|
||||
|
||||
DESCRIPTION="Oracle's Java SE Runtime Environment"
|
||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
||||
SRC_URI="
|
||||
x86? ( ${X86_AT} )
|
||||
amd64? ( ${AMD64_AT} )
|
||||
jce? ( ${JCE_FILE} )"
|
||||
|
||||
LICENSE="Oracle-BCLA-JavaSE"
|
||||
SLOT="1.7"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="X alsa fontconfig jce nsplugin pax_kernel"
|
||||
|
||||
RESTRICT="fetch strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
RDEPEND="
|
||||
X? (
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libX11
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
!prefix? ( sys-libs/glibc )"
|
||||
# scanelf won't create a PaX header, so depend on paxctl to avoid fallback
|
||||
# marking. #427642
|
||||
DEPEND="
|
||||
jce? ( app-arch/unzip )
|
||||
pax_kernel? ( sys-apps/paxctl )"
|
||||
|
||||
S="${WORKDIR}/jre${S_PV}"
|
||||
|
||||
pkg_nofetch() {
|
||||
if use x86; then
|
||||
AT=${X86_AT}
|
||||
elif use amd64; then
|
||||
AT=${AMD64_AT}
|
||||
fi
|
||||
|
||||
einfo "Please download '${AT}' from:"
|
||||
einfo "'${JRE_URI}'"
|
||||
einfo "and move it to '${DISTDIR}'"
|
||||
|
||||
if use jce; then
|
||||
einfo "Also download '${JCE_FILE}' from:"
|
||||
einfo "'${JCE_URI}'"
|
||||
einfo "and move it to '${DISTDIR}'"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use jce; then
|
||||
mv "${WORKDIR}"/${JCE_DIR} lib/security/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# This needs to be done before CDS - #215225
|
||||
java-vm_set-pax-markings "${S}"
|
||||
|
||||
# see bug #207282
|
||||
einfo "Creating the Class Data Sharing archives"
|
||||
if use x86; then
|
||||
bin/java -client -Xshare:dump || die
|
||||
fi
|
||||
bin/java -server -Xshare:dump || die
|
||||
|
||||
# Create files used as storage for system preferences.
|
||||
mkdir .systemPrefs || die
|
||||
touch .systemPrefs/.system.lock || die
|
||||
touch .systemPrefs/.systemRootModFile || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/opt/${P}"
|
||||
local ddest="${ED}${dest}"
|
||||
|
||||
# We should not need the ancient plugin for Firefox 2 anymore, plus it has
|
||||
# writable executable segments
|
||||
if use x86; then
|
||||
rm -vf lib/i386/libjavaplugin_oji.so \
|
||||
lib/i386/libjavaplugin_nscp*.so
|
||||
rm -vrf plugin/i386
|
||||
fi
|
||||
# Without nsplugin flag, also remove the new plugin
|
||||
local arch=${ARCH};
|
||||
use x86 && arch=i386;
|
||||
if ! use nsplugin; then
|
||||
rm -vf lib/${arch}/libnpjp2.so \
|
||||
lib/${arch}/libjavaplugin_jni.so
|
||||
fi
|
||||
|
||||
dodir "${dest}"
|
||||
cp -pPR bin lib man "${ddest}" || die
|
||||
|
||||
# Remove empty dirs we might have copied
|
||||
find "${D}" -type d -empty -exec rmdir -v {} + || die
|
||||
|
||||
dodoc COPYRIGHT README
|
||||
|
||||
if use jce; then
|
||||
dodir ${dest}/lib/security/strong-jce
|
||||
mv "${ddest}"/lib/security/US_export_policy.jar \
|
||||
"${ddest}"/lib/security/strong-jce || die
|
||||
mv "${ddest}"/lib/security/local_policy.jar \
|
||||
"${ddest}"/lib/security/strong-jce || die
|
||||
dosym "${dest}"/lib/security/${JCE_DIR}/US_export_policy.jar \
|
||||
"${dest}"/lib/security/US_export_policy.jar
|
||||
dosym "${dest}"/lib/security/${JCE_DIR}/local_policy.jar \
|
||||
"${dest}"/lib/security/local_policy.jar
|
||||
fi
|
||||
|
||||
if use nsplugin; then
|
||||
install_mozilla_plugin "${dest}"/lib/${arch}/libnpjp2.so
|
||||
fi
|
||||
|
||||
# Install desktop file for the Java Control Panel.
|
||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
|
||||
# make_desktop_entry can't be used as ${P} would end up in filename.
|
||||
newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JRE ${SLOT}#" \
|
||||
-e "s#Exec=.*#Exec=/opt/${P}/bin/jcontrol#" \
|
||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
||||
-e "s#Application;##" \
|
||||
-e "/Encoding/d" \
|
||||
lib/desktop/applications/sun_java.desktop > \
|
||||
"${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
||||
|
||||
# Prune all fontconfig files so libfontconfig will be used and only install
|
||||
# a Gentoo specific one if fontconfig is disabled.
|
||||
# http://docs.oracle.com/javase/7/docs/technotes/guides/intl/fontconfig.html
|
||||
rm "${ddest}"/lib/fontconfig.* || die
|
||||
if ! use fontconfig; then
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
||||
eprefixify "${T}"/fontconfig.properties
|
||||
insinto "${dest}"/lib/
|
||||
doins "${T}"/fontconfig.properties
|
||||
fi
|
||||
|
||||
set_java_env
|
||||
java-vm_revdep-mask
|
||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
||||
}
|
@ -0,0 +1,269 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.37.ebuild,v 1.1 2012/10/17 15:19:20 sera Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit java-vm-2 eutils prefix versionator
|
||||
|
||||
# This URIs need to be updated when bumping!
|
||||
JDK_URI="http://www.oracle.com/technetwork/java/javase/downloads/jdk6u37-downloads-1859587.html"
|
||||
|
||||
MY_PV="$(get_version_component_range 2)u$(get_version_component_range 4)"
|
||||
S_PV="$(replace_version_separator 3 '_')"
|
||||
# for when oracle messes with us again.
|
||||
DEMOS_PV="${MY_PV}"
|
||||
DEMOS_S_PV="${S_PV}"
|
||||
|
||||
X86_AT="jdk-${MY_PV}-linux-i586.bin"
|
||||
AMD64_AT="jdk-${MY_PV}-linux-x64.bin"
|
||||
IA64_AT="jdk-${MY_PV}-linux-ia64.bin"
|
||||
SOL_X86_AT="jdk-${MY_PV}-solaris-i586.sh"
|
||||
SOL_AMD64_AT="jdk-${MY_PV}-solaris-x64.sh"
|
||||
SOL_SPARC_AT="jdk-${MY_PV}-solaris-sparc.sh"
|
||||
SOL_SPARCv9_AT="jdk-${MY_PV}-solaris-sparcv9.sh"
|
||||
|
||||
X86_DEMOS="jdk-${DEMOS_PV}-linux-i586-demos.tar.gz"
|
||||
AMD64_DEMOS="jdk-${DEMOS_PV}-linux-x64-demos.tar.gz"
|
||||
IA64_DEMOS="jdk-${DEMOS_PV}-linux-ia64-demos.tar.gz"
|
||||
SOL_X86_DEMOS="jdk-${DEMOS_PV}-solaris-i586-demos.tar.Z"
|
||||
SOL_AMD64_DEMOS="jdk-${DEMOS_PV}-solaris-x64-demos.tar.Z"
|
||||
SOL_SPARC_DEMOS="jdk-${DEMOS_PV}-solaris-sparc-demos.tar.Z"
|
||||
SOL_SPARCv9_DEMOS="jdk-${DEMOS_PV}-solaris-sparcv9-demos.tar.Z"
|
||||
|
||||
DESCRIPTION="Oracle's Java SE Development Kit"
|
||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
||||
SRC_URI="
|
||||
x86? ( ${X86_AT}
|
||||
examples? ( ${X86_DEMOS} ) )
|
||||
amd64? ( ${AMD64_AT}
|
||||
examples? ( ${AMD64_DEMOS} ) )
|
||||
ia64? ( ${IA64_AT}
|
||||
examples? ( ${IA64_DEMOS} ) )
|
||||
x86-solaris? ( ${SOL_X86_AT}
|
||||
examples? ( ${SOL_X86_DEMOS} ) )
|
||||
x64-solaris? ( ${SOL_X86_AT} ${SOL_AMD64_AT}
|
||||
examples? ( ${SOL_X86_DEMOS} ${SOL_AMD64_DEMOS} ) )
|
||||
sparc-solaris? ( ${SOL_SPARC_AT}
|
||||
examples? ( ${SOL_SPARC_DEMOS} ) )
|
||||
sparc64-solaris? ( ${SOL_SPARC_AT} ${SOL_SPARCv9_AT}
|
||||
examples? ( ${SOL_SPARC_DEMOS} ${SOL_SPARCv9_DEMOS} ) )"
|
||||
|
||||
LICENSE="Oracle-BCLA-JavaSE examples? ( BSD )"
|
||||
SLOT="1.6"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
IUSE="X alsa derby doc examples jce kernel_SunOS nsplugin pax_kernel +source"
|
||||
|
||||
RESTRICT="fetch strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
RDEPEND="
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXt
|
||||
x11-libs/libXtst
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
doc? ( dev-java/java-sdk-docs:1.6.0 )
|
||||
jce? ( dev-java/sun-jce-bin:1.6 )
|
||||
kernel_SunOS? ( app-arch/unzip )
|
||||
!prefix? ( sys-libs/glibc )"
|
||||
# scanelf won't create a PaX header, so depend on paxctl to avoid fallback
|
||||
# marking. #427642
|
||||
DEPEND="
|
||||
pax_kernel? ( sys-apps/paxctl )"
|
||||
|
||||
S="${WORKDIR}/jdk${S_PV}"
|
||||
|
||||
_set_at() {
|
||||
if use x86; then
|
||||
AT=${X86_AT}
|
||||
elif use amd64; then
|
||||
AT=${AMD64_AT}
|
||||
elif use ia64; then
|
||||
AT=${IA64_AT}
|
||||
elif use x86-solaris; then
|
||||
AT=${SOL_X86_AT}
|
||||
elif use x64-solaris; then
|
||||
AT="${SOL_X86_AT} and ${SOL_AMD64_AT}"
|
||||
elif use sparc-solaris; then
|
||||
AT=${SOL_SPARC_AT}
|
||||
elif use sparc64-solaris; then
|
||||
AT="${SOL_SPARC_AT} and ${SOL_SPARCv9_AT}"
|
||||
fi
|
||||
}
|
||||
|
||||
_set_demos() {
|
||||
if use x86; then
|
||||
DEMOS=${X86_DEMOS}
|
||||
elif use amd64; then
|
||||
DEMOS=${AMD64_DEMOS}
|
||||
elif use ia64; then
|
||||
DEMOS=${IA64_DEMOS}
|
||||
elif use x86-solaris; then
|
||||
DEMOS=${SOL_X86_DEMOS}
|
||||
elif use x64-solaris; then
|
||||
DEMOS="${SOL_X86_DEMOS} and ${SOL_AMD64_DEMOS}"
|
||||
elif use sparc-solaris; then
|
||||
DEMOS=${SOL_SPARC_AT}
|
||||
elif use sparc64-solaris; then
|
||||
DEMOS="${SOL_SPARC_AT_DEMOS} and ${SOL_SPARCv9_DEMOS}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_nofetch() {
|
||||
_set_at
|
||||
_set_demos
|
||||
|
||||
einfo "Due to Oracle no longer providing the distro-friendly DLJ bundles, the package"
|
||||
einfo "has become fetch restricted again. Alternatives are switching to"
|
||||
einfo "dev-java/icedtea-bin:6 or the source-based dev-java/icedtea:6"
|
||||
einfo ""
|
||||
einfo "Please download ${AT} from:"
|
||||
einfo "${JDK_URI}"
|
||||
einfo "and move it to ${DISTDIR}"
|
||||
|
||||
if use examples; then
|
||||
einfo ""
|
||||
einfo "Also download ${DEMOS} from:"
|
||||
einfo "${JDK_URI}"
|
||||
einfo "and move it to ${DISTDIR}"
|
||||
fi
|
||||
}
|
||||
|
||||
_sol_src_unpack() {
|
||||
for i in ${AT}; do
|
||||
[[ ${i} == "and" ]] && continue
|
||||
rm -f "${S}"/jre/{LICENSE,README} "${S}"/LICENSE
|
||||
# don't die on unzip, it always "fails"
|
||||
unzip "${DISTDIR}"/${i}
|
||||
done
|
||||
for f in $(find "${S}" -name "*.pack") ; do
|
||||
"${S}"/bin/unpack200 ${f} ${f%.pack}.jar
|
||||
rm ${f}
|
||||
done
|
||||
if use examples ; then
|
||||
for i in ${DEMOS}; do
|
||||
[[ ${i} == "and" ]] && continue
|
||||
use examples && unpack ${i}
|
||||
done
|
||||
mv "${WORKDIR}"/SUNWj6dmo/reloc/jdk/instances/jdk1.6.0/{demo,sample} \
|
||||
"${S}"/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
_set_at
|
||||
_set_demos
|
||||
if use kernel_SunOS; then
|
||||
_sol_src_unpack
|
||||
else
|
||||
sh "${DISTDIR}"/${AT} -noregister || die "Failed to unpack"
|
||||
use examples && unpack ${DEMOS}
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# This needs to be done before CDS - #215225
|
||||
java-vm_set-pax-markings "${S}"
|
||||
|
||||
# see bug #207282
|
||||
einfo "Creating the Class Data Sharing archives"
|
||||
if use x86; then
|
||||
bin/java -client -Xshare:dump || die
|
||||
fi
|
||||
# limit heap size for large memory on x86 #405239
|
||||
# this is a workaround and shouldn't be needed.
|
||||
bin/java -server -Xmx64m -Xshare:dump || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/opt/${P}"
|
||||
local ddest="${ED}${dest}"
|
||||
|
||||
# We should not need the ancient plugin for Firefox 2 anymore, plus it has
|
||||
# writable executable segments
|
||||
if use x86; then
|
||||
rm -vf {,jre/}lib/i386/libjavaplugin_oji.so \
|
||||
{,jre/}lib/i386/libjavaplugin_nscp*.so
|
||||
rm -vrf jre/plugin/i386
|
||||
fi
|
||||
# Without nsplugin flag, also remove the new plugin
|
||||
local arch=${ARCH};
|
||||
use x86 && arch=i386;
|
||||
if ! use nsplugin; then
|
||||
rm -vf {,jre/}lib/${arch}/libnpjp2.so \
|
||||
{,jre/}lib/${arch}/libjavaplugin_jni.so
|
||||
fi
|
||||
|
||||
dodir "${dest}"
|
||||
cp -pPR bin include jre lib man "${ddest}" || die
|
||||
|
||||
if use derby; then
|
||||
cp -pPR db "${ddest}" || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
cp -pPR "${WORKDIR}/jdk${DEMOS_S_PV}"/{demo,sample} "${ddest}" || die
|
||||
fi
|
||||
|
||||
# Remove empty dirs we might have copied
|
||||
find "${D}" -type d -empty -exec rmdir -v {} + || die
|
||||
|
||||
dodoc COPYRIGHT
|
||||
dohtml README.html
|
||||
|
||||
if use jce; then
|
||||
dodir "${dest}"/jre/lib/security/strong-jce
|
||||
mv "${ddest}"/jre/lib/security/US_export_policy.jar \
|
||||
"${ddest}"/jre/lib/security/strong-jce || die
|
||||
mv "${ddest}"/jre/lib/security/local_policy.jar \
|
||||
"${ddest}"/jre/lib/security/strong-jce || die
|
||||
dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/US_export_policy.jar \
|
||||
"${dest}"/jre/lib/security/US_export_policy.jar
|
||||
dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/local_policy.jar \
|
||||
"${dest}"/jre/lib/security/local_policy.jar
|
||||
fi
|
||||
|
||||
if use nsplugin; then
|
||||
install_mozilla_plugin "${dest}"/jre/lib/${arch}/libnpjp2.so
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
cp src.zip "${ddest}" || die
|
||||
fi
|
||||
|
||||
# Install desktop file for the Java Control Panel.
|
||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
|
||||
# make_desktop_entry can't be used as ${P} would end up in filename.
|
||||
newicon jre/lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT} (sun-jdk)#" \
|
||||
-e "s#Exec=.*#Exec=/opt/${P}/jre/bin/jcontrol#" \
|
||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
||||
-e "s#Application;##" \
|
||||
-e "/Encoding/d" \
|
||||
jre/lib/desktop/applications/sun_java.desktop > \
|
||||
"${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
||||
|
||||
# http://docs.oracle.com/javase/6/docs/technotes/guides/intl/fontconfig.html
|
||||
rm "${ddest}"/jre/lib/fontconfig.* || die
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties-r1 "${T}"/fontconfig.properties || die
|
||||
eprefixify "${T}"/fontconfig.properties
|
||||
insinto "${dest}"/jre/lib/
|
||||
doins "${T}"/fontconfig.properties
|
||||
|
||||
set_java_env "${FILESDIR}/${VMHANDLE}.env-r1"
|
||||
java-vm_revdep-mask
|
||||
java-vm_sandbox-predict /dev/random
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
java-vm-2_pkg_postinst
|
||||
|
||||
elog "If you want Oracles JDK 7 'emerge oracle-jdk-bin' instead."
|
||||
}
|
@ -0,0 +1,160 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.37.ebuild,v 1.1 2012/10/17 14:22:00 sera Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit java-vm-2 eutils prefix versionator
|
||||
|
||||
# This URIs need to be updated when bumping!
|
||||
JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre6u37-downloads-1859589.html"
|
||||
|
||||
MY_PV="$(get_version_component_range 2)u$(get_version_component_range 4)"
|
||||
S_PV="$(replace_version_separator 3 '_')"
|
||||
|
||||
X86_AT="jre-${MY_PV}-linux-i586.bin"
|
||||
AMD64_AT="jre-${MY_PV}-linux-x64.bin"
|
||||
IA64_AT="jre-${MY_PV}-linux-ia64.bin"
|
||||
|
||||
DESCRIPTION="Oracle's Java SE Runtime Environment"
|
||||
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
|
||||
SRC_URI="
|
||||
amd64? ( ${AMD64_AT} )
|
||||
ia64? ( ${IA64_AT} )
|
||||
x86? ( ${X86_AT} )"
|
||||
|
||||
LICENSE="Oracle-BCLA-JavaSE"
|
||||
SLOT="1.6"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="X alsa jce nsplugin pax_kernel"
|
||||
|
||||
RESTRICT="fetch strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
RDEPEND="
|
||||
X? (
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libX11
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
jce? ( dev-java/sun-jce-bin:1.6 )
|
||||
!prefix? ( sys-libs/glibc )"
|
||||
# scanelf won't create a PaX header, so depend on paxctl to avoid fallback
|
||||
# marking. #427642
|
||||
DEPEND="
|
||||
pax_kernel? ( sys-apps/paxctl )"
|
||||
|
||||
S="${WORKDIR}/jre${S_PV}"
|
||||
|
||||
pkg_nofetch() {
|
||||
if use x86; then
|
||||
AT=${X86_AT}
|
||||
elif use amd64; then
|
||||
AT=${AMD64_AT}
|
||||
elif use ia64; then
|
||||
AT=${IA64_AT}
|
||||
fi
|
||||
|
||||
einfo "Due to Oracle no longer providing the distro-friendly DLJ bundles, the package"
|
||||
einfo "has become fetch restricted again. Alternatives are switching to"
|
||||
einfo "dev-java/icedtea-bin:6 or the source-based dev-java/icedtea:6"
|
||||
einfo ""
|
||||
einfo "Please download '${AT}' from:"
|
||||
einfo "'${JRE_URI}'"
|
||||
einfo "and move it to '${DISTDIR}'"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
sh "${DISTDIR}"/${A} -noregister || die "Failed to unpack"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# This needs to be done before CDS - #215225
|
||||
java-vm_set-pax-markings "${S}"
|
||||
|
||||
# see bug #207282
|
||||
einfo "Creating the Class Data Sharing archives"
|
||||
if use x86; then
|
||||
bin/java -client -Xshare:dump || die
|
||||
fi
|
||||
# limit heap size for large memory on x86 #405239
|
||||
# this is a workaround and shouldn't be needed.
|
||||
bin/java -server -Xmx64m -Xshare:dump || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/opt/${P}"
|
||||
local ddest="${ED}${dest}"
|
||||
|
||||
# We should not need the ancient plugin for Firefox 2 anymore, plus it has
|
||||
# writable executable segments
|
||||
if use x86; then
|
||||
rm -vf lib/i386/libjavaplugin_oji.so \
|
||||
lib/i386/libjavaplugin_nscp*.so
|
||||
rm -vrf plugin/i386
|
||||
fi
|
||||
# Without nsplugin flag, also remove the new plugin
|
||||
local arch=${ARCH};
|
||||
use x86 && arch=i386;
|
||||
if ! use nsplugin; then
|
||||
rm -vf lib/${arch}/libnpjp2.so \
|
||||
lib/${arch}/libjavaplugin_jni.so
|
||||
fi
|
||||
|
||||
dodir "${dest}"
|
||||
cp -pPR bin lib man "${ddest}" || die
|
||||
|
||||
# Remove empty dirs we might have copied
|
||||
find "${D}" -type d -empty -exec rmdir {} + || die
|
||||
|
||||
dodoc COPYRIGHT README
|
||||
|
||||
if use jce; then
|
||||
dodir "${dest}"/lib/security/strong-jce
|
||||
mv "${ddest}"/lib/security/US_export_policy.jar \
|
||||
"${ddest}"/lib/security/strong-jce || die
|
||||
mv "${ddest}"/lib/security/local_policy.jar \
|
||||
"${ddest}"/lib/security/strong-jce || die
|
||||
dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/US_export_policy.jar \
|
||||
"${dest}"/lib/security/US_export_policy.jar
|
||||
dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/local_policy.jar \
|
||||
"${dest}"/lib/security/local_policy.jar
|
||||
fi
|
||||
|
||||
if use nsplugin; then
|
||||
install_mozilla_plugin "${dest}"/lib/${arch}/libnpjp2.so
|
||||
fi
|
||||
|
||||
# Install desktop file for the Java Control Panel.
|
||||
# Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
|
||||
# make_desktop_entry can't be used as ${P} would end up in filename.
|
||||
newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
|
||||
sun-jcontrol-${PN}-${SLOT}.png || die
|
||||
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT} (${PN})#" \
|
||||
-e "s#Exec=.*#Exec=${dest}/bin/jcontrol#" \
|
||||
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
|
||||
-e "s#Application;##" \
|
||||
-e "/Encoding/d" \
|
||||
lib/desktop/applications/sun_java.desktop > \
|
||||
"${T}"/jcontrol-${PN}-${SLOT}.desktop || die
|
||||
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
|
||||
|
||||
# http://docs.oracle.com/javase/6/docs/technotes/guides/intl/fontconfig.html
|
||||
rm "${ddest}"/lib/fontconfig.* || die
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties-r1 "${T}"/fontconfig.properties || die
|
||||
eprefixify "${T}"/fontconfig.properties
|
||||
insinto "${dest}"/lib/
|
||||
doins "${T}"/fontconfig.properties
|
||||
|
||||
set_java_env "${FILESDIR}/${VMHANDLE}.env-r1"
|
||||
java-vm_revdep-mask
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
java-vm-2_pkg_postinst
|
||||
|
||||
elog "If you want Oracles JRE 7 'emerge oracle-jre-bin' instead."
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
DIST v8-3.12.19.15.tar.bz2 10184474 SHA256 5f8f0a700a88250170118b5994aacf57f6527a6c0017096b5cb322ecbad6e187 SHA512 40c1bbc4dc48331c5f6cfeb4a0168abd47b8c11d68be64bef25a094439898f197920f3bb5b7be2c795a9906a5789239f843702ae6f65439bb6b1f958fb40297d WHIRLPOOL 65e145a8b866213790e03d97293d7911754169f33c497007f5f1806e9ab32f1fe9a257a3966a8814972c8b0d08361f81548ec01c0fbd3f6dcc742bbf13f1c868
|
||||
DIST v8-3.13.7.1.tar.bz2 10201729 SHA256 6c903410651d87f67e7c5b35321e8a6709b2e442fa6e283ac2def898fdc4d4a7 SHA512 015285af38b9e9259abb0f1fe2f1c1c24b7280c3a2424c119d9dc64b1d213942a30f6eec8e7517a6badad88e455b8fc97d8ea074d991153853529a29d942a5cf WHIRLPOOL b2f002e5dfc3e9c344dced70c9f0999fa2087636842053df25168af324d71ec3ecffd4d506d924f7d8a6e4303d691cb18bc6af7ccbb49452d38a3b34fa63b581
|
||||
DIST v8-3.13.7.2.tar.bz2 10202585 SHA256 ff5761dcd52c4479237e39e6e20fcfcc511764ece69109541a9b461c6a5dad5a SHA512 987e06f34d2f45ece40a3fd6957a827cb971adc44c52380b4cf9086f075885c4dcf42edb407c89b14652f4e824fb840ed8c21429230fe2d279d158b170fa0d96 WHIRLPOOL e38dd3f8f53cdfc86b4af88a47bce523ec045866d6a88c6e5f7b8caf9e5e8ab383a7428091c3048e92687df89a1718bce9fc72997ae23e503db68192b2676b9c
|
||||
DIST v8-3.13.7.4.tar.bz2 10203184 SHA256 8faa9c1e797f0499378ed03f3d809dcd4bc64a7d1dd6b2b303e1a3039357b888 SHA512 e324a2e52740c9d155c81d2a1b54778f1f03451b2c5b0aeb0894791845252e4182bee0dc94cb56019d70aa424214cecba86a0f91ab8db426e321728050f504bd WHIRLPOOL 4755754012e33b2d21260aa409f900bc9f9fa3c4ce31aff1a1228d28297f707e178c0cd2121449e6dcf9cc6dc3d44f8a56f90b714a8f210a3fd3a40ff14a33e8
|
||||
DIST v8-3.14.4.1.tar.bz2 10347734 SHA256 06ccd996d8e82580aa6a9ea41bbd2a5c66fa599b666df3b4b2b3deca453831b1 SHA512 c6b13365529c3440b717cc4cbd0563e1a0246bc694eaf9aa11bbe18f4526aa373af36252310fc8f2e83620adb7a81b1214da71d5d31a328b5accd32144992e76 WHIRLPOOL 218dc59348327dbd0750aa6422114abf6ffb4a85050fe72c83745e16d8cbbfa7a5b4c0afeab4ab4dca6d36a35beae36079f4d566ac0181c69ba5ab719b4a80d9
|
||||
|
@ -0,0 +1,139 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.13.7.4.ebuild,v 1.1 2012/10/17 22:22:56 floppym Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
|
||||
inherit eutils multilib pax-utils python toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="Google's open source JavaScript engine"
|
||||
HOMEPAGE="http://code.google.com/p/v8"
|
||||
SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
|
||||
LICENSE="BSD"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-3.10.8.10-freebsd9.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export AR CC CXX RANLIB
|
||||
export LINK=${CXX}
|
||||
|
||||
local hardfp=off
|
||||
|
||||
# Use target arch detection logic from bug #354601.
|
||||
case ${CHOST} in
|
||||
i?86-*) myarch=ia32 ;;
|
||||
x86_64-*)
|
||||
if [[ $ABI = x86 ]] ; then
|
||||
myarch=ia32
|
||||
else
|
||||
myarch=x64
|
||||
fi ;;
|
||||
arm*-hardfloat-*)
|
||||
hardfp=on
|
||||
myarch=arm ;;
|
||||
arm*-*) myarch=arm ;;
|
||||
*) die "Unrecognized CHOST: ${CHOST}"
|
||||
esac
|
||||
mytarget=${myarch}.release
|
||||
|
||||
soname_version="$(get_version_component_range 1-3)"
|
||||
|
||||
local snapshot=on
|
||||
host-is-pax && snapshot=off
|
||||
|
||||
# TODO: Add console=readline option once implemented upstream
|
||||
# http://code.google.com/p/v8/issues/detail?id=1781
|
||||
|
||||
emake V=1 \
|
||||
library=shared \
|
||||
werror=no \
|
||||
soname_version=${soname_version} \
|
||||
snapshot=${snapshot} \
|
||||
hardfp=${hardfp} \
|
||||
${mytarget} || die
|
||||
|
||||
pax-mark m out/${mytarget}/{cctest,d8,shell} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local arg testjobs
|
||||
for arg in ${MAKEOPTS}; do
|
||||
case ${arg} in
|
||||
-j*) testjobs=${arg#-j} ;;
|
||||
--jobs=*) testjobs=${arg#--jobs=} ;;
|
||||
esac
|
||||
done
|
||||
|
||||
tools/test-wrapper-gypbuild.py \
|
||||
-j${testjobs:-1} \
|
||||
--arch-and-mode=${mytarget} \
|
||||
--no-presubmit \
|
||||
--progress=dots || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr
|
||||
doins -r include || die
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# buildsystem is too horrific to get this built correctly
|
||||
mkdir -p out/${mytarget}/lib.target
|
||||
mv out/${mytarget}/libv8.so.${soname_version} \
|
||||
out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
|
||||
install_name_tool \
|
||||
-id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
|
||||
out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) \
|
||||
|| die
|
||||
install_name_tool \
|
||||
-change \
|
||||
"${S}"/out/${mytarget}/libv8.so.${soname_version} \
|
||||
"${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
|
||||
out/${mytarget}/d8 || die
|
||||
fi
|
||||
|
||||
dobin out/${mytarget}/d8 || die
|
||||
|
||||
dolib out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
|
||||
dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) || die
|
||||
|
||||
dodoc AUTHORS ChangeLog || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserved_libs=()
|
||||
local baselib candidate
|
||||
|
||||
eshopts_push -s nullglob
|
||||
|
||||
for candidate in "${EROOT}usr/$(get_libdir)"/libv8$(get_libname).*; do
|
||||
baselib=${candidate##*/}
|
||||
if [[ ! -e "${ED}usr/$(get_libdir)/${baselib}" ]]; then
|
||||
preserved_libs+=( "${EPREFIX}/usr/$(get_libdir)/${baselib}" )
|
||||
fi
|
||||
done
|
||||
|
||||
eshopts_pop
|
||||
|
||||
if [[ ${#preserved_libs[@]} -gt 0 ]]; then
|
||||
preserve_old_lib "${preserved_libs[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${#preserved_libs[@]} -gt 0 ]]; then
|
||||
preserve_old_lib_notify "${preserved_libs[@]}"
|
||||
fi
|
||||
}
|
@ -0,0 +1,135 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/v8/v8-3.14.4.1.ebuild,v 1.1 2012/10/18 00:00:58 phajdan.jr Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
|
||||
inherit eutils multilib pax-utils python toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="Google's open source JavaScript engine"
|
||||
HOMEPAGE="http://code.google.com/p/v8"
|
||||
SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
|
||||
LICENSE="BSD"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export AR CC CXX RANLIB
|
||||
export LINK=${CXX}
|
||||
|
||||
local hardfp=off
|
||||
|
||||
# Use target arch detection logic from bug #354601.
|
||||
case ${CHOST} in
|
||||
i?86-*) myarch=ia32 ;;
|
||||
x86_64-*)
|
||||
if [[ $ABI = x86 ]] ; then
|
||||
myarch=ia32
|
||||
else
|
||||
myarch=x64
|
||||
fi ;;
|
||||
arm*-hardfloat-*)
|
||||
hardfp=on
|
||||
myarch=arm ;;
|
||||
arm*-*) myarch=arm ;;
|
||||
*) die "Unrecognized CHOST: ${CHOST}"
|
||||
esac
|
||||
mytarget=${myarch}.release
|
||||
|
||||
soname_version="$(get_version_component_range 1-3)"
|
||||
|
||||
local snapshot=on
|
||||
host-is-pax && snapshot=off
|
||||
|
||||
# TODO: Add console=readline option once implemented upstream
|
||||
# http://code.google.com/p/v8/issues/detail?id=1781
|
||||
|
||||
emake V=1 \
|
||||
library=shared \
|
||||
werror=no \
|
||||
soname_version=${soname_version} \
|
||||
snapshot=${snapshot} \
|
||||
hardfp=${hardfp} \
|
||||
${mytarget} || die
|
||||
|
||||
pax-mark m out/${mytarget}/{cctest,d8,shell} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local arg testjobs
|
||||
for arg in ${MAKEOPTS}; do
|
||||
case ${arg} in
|
||||
-j*) testjobs=${arg#-j} ;;
|
||||
--jobs=*) testjobs=${arg#--jobs=} ;;
|
||||
esac
|
||||
done
|
||||
|
||||
tools/test-wrapper-gypbuild.py \
|
||||
-j${testjobs:-1} \
|
||||
--arch-and-mode=${mytarget} \
|
||||
--no-presubmit \
|
||||
--progress=dots || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr
|
||||
doins -r include || die
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# buildsystem is too horrific to get this built correctly
|
||||
mkdir -p out/${mytarget}/lib.target
|
||||
mv out/${mytarget}/libv8.so.${soname_version} \
|
||||
out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
|
||||
install_name_tool \
|
||||
-id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
|
||||
out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) \
|
||||
|| die
|
||||
install_name_tool \
|
||||
-change \
|
||||
"${S}"/out/${mytarget}/libv8.so.${soname_version} \
|
||||
"${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
|
||||
out/${mytarget}/d8 || die
|
||||
fi
|
||||
|
||||
dobin out/${mytarget}/d8 || die
|
||||
|
||||
dolib out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
|
||||
dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) || die
|
||||
|
||||
dodoc AUTHORS ChangeLog || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserved_libs=()
|
||||
local baselib candidate
|
||||
|
||||
eshopts_push -s nullglob
|
||||
|
||||
for candidate in "${EROOT}usr/$(get_libdir)"/libv8$(get_libname).*; do
|
||||
baselib=${candidate##*/}
|
||||
if [[ ! -e "${ED}usr/$(get_libdir)/${baselib}" ]]; then
|
||||
preserved_libs+=( "${EPREFIX}/usr/$(get_libdir)/${baselib}" )
|
||||
fi
|
||||
done
|
||||
|
||||
eshopts_pop
|
||||
|
||||
if [[ ${#preserved_libs[@]} -gt 0 ]]; then
|
||||
preserve_old_lib "${preserved_libs[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${#preserved_libs[@]} -gt 0 ]]; then
|
||||
preserve_old_lib_notify "${preserved_libs[@]}"
|
||||
fi
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST pkgconf-0.8.5.tar.bz2 81307 SHA256 78283c42f6ba80e58f6425a9b2d5878f0cfa3b34f4e9bf130c2b97137b7e41f0 SHA512 708fdf6602d824281e23a675496f5845998c9d2fb08291335faa553ad9d1af6196ec2c15913c313ec5c3ce2a7f798db8e362b28fbf80df636d368bfb5c6e4f95 WHIRLPOOL b90582eaf1843c1ae08ba062b0dcc96f6d6ec8cc16688c4f8a6241d85755fb53f36aecb078dd5dadc7aaecd8130db4472df5875eaa23a45c754328343d60a269
|
||||
DIST pkgconf-0.8.7.tar.bz2 79823 SHA256 ee075e9d601e5d8582085fc662a619b34643550383c75f6aef37016ab99371f9 SHA512 09229858b298878fe87372aed5e67fdc8c3b1c9b2d59072cb2964a773ac4f6e8b5278c8938b8fba063bc12b42a3e0d3f4bdfe5e8c3c0f08749d8224fc020f273 WHIRLPOOL e4aabc87ec947a69b2951f057f25ebace11926d203c246315a15ab8d5af7fda2fc54015e982278ec1803ec1231d4393343af07dacfa353f650fbfd225ab88e58
|
||||
DIST pkgconf-0.8.9.tar.gz 59077 SHA256 dd4a8651d242e6d58361d72723614e30f0b207731a1d14d1bbe15a752fc11fc3 SHA512 64dd6c846a23d87b63d013a80f0643050c47c996db2dbd14a875dbe32b831121dc82b85f753b05486a1cbed2ec81957d035b91c8c18bd522358099cdc1840172 WHIRLPOOL f80c79e5e4fc0b61f1d6ad952e5c3eb1b9d46f14cadf2d45a7258b0361b454fa512ff34da8a39aa19a502da8c831b74afedc8b9610aed7d56b108a6c8b7c4531
|
||||
|
@ -0,0 +1,525 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-1.7.12.4.ebuild,v 1.1 2012/10/18 00:44:40 robbat2 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
GENTOO_DEPEND_ON_PERL=no
|
||||
|
||||
# bug #329479: git-remote-testgit is not multiple-version aware
|
||||
PYTHON_DEPEND="python? 2"
|
||||
[[ ${PV} == *9999 ]] && SCM="git-2"
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
|
||||
|
||||
inherit toolchain-funcs eutils elisp-common perl-module bash-completion-r1 python ${SCM}
|
||||
|
||||
MY_PV="${PV/_rc/.rc}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DOC_VER=${MY_PV}
|
||||
|
||||
DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
|
||||
HOMEPAGE="http://www.git-scm.com/"
|
||||
if [[ ${PV} != *9999 ]]; then
|
||||
SRC_URI_SUFFIX="gz"
|
||||
SRC_URI_GOOG="http://git-core.googlecode.com/files"
|
||||
SRC_URI_KORG="mirror://kernel/software/scm/git"
|
||||
SRC_URI="${SRC_URI_GOOG}/${MY_P}.tar.${SRC_URI_SUFFIX}
|
||||
${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
|
||||
${SRC_URI_GOOG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
doc? (
|
||||
${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
${SRC_URI_GOOG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
)"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
else
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+blksha1 +curl cgi doc emacs +gpg gtk highlight +iconv +nls +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test"
|
||||
|
||||
# Common to both DEPEND and RDEPEND
|
||||
CDEPEND="
|
||||
dev-libs/openssl
|
||||
sys-libs/zlib
|
||||
pcre? ( dev-libs/libpcre )
|
||||
perl? ( dev-lang/perl[-build] )
|
||||
tk? ( dev-lang/tk )
|
||||
curl? (
|
||||
net-misc/curl
|
||||
webdav? ( dev-libs/expat )
|
||||
)
|
||||
emacs? ( virtual/emacs )"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
gpg? ( app-crypt/gnupg )
|
||||
perl? ( dev-perl/Error
|
||||
dev-perl/Net-SMTP-SSL
|
||||
dev-perl/Authen-SASL
|
||||
cgi? ( virtual/perl-CGI highlight? ( app-text/highlight ) )
|
||||
cvs? ( >=dev-vcs/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
|
||||
subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey )
|
||||
)
|
||||
python? ( gtk?
|
||||
(
|
||||
>=dev-python/pygtk-2.8
|
||||
dev-python/pygtksourceview:2
|
||||
) )"
|
||||
|
||||
# This is how info docs are created with Git:
|
||||
# .txt/asciidoc --(asciidoc)---------> .xml/docbook
|
||||
# .xml/docbook --(docbook2texi.pl)--> .texi
|
||||
# .texi --(makeinfo)---------> .info
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/cpio
|
||||
doc? (
|
||||
app-text/asciidoc
|
||||
app-text/docbook2X
|
||||
sys-apps/texinfo
|
||||
)
|
||||
test? (
|
||||
app-crypt/gnupg
|
||||
)"
|
||||
|
||||
# Live ebuild builds man pages and HTML docs, additionally
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
DEPEND="${DEPEND}
|
||||
app-text/asciidoc
|
||||
app-text/xmlto"
|
||||
fi
|
||||
|
||||
SITEFILE=50${PN}-gentoo.el
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
REQUIRED_USE="
|
||||
cgi? ( perl )
|
||||
cvs? ( perl )
|
||||
subversion? ( perl )
|
||||
webdav? ( curl )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
if use subversion && has_version dev-vcs/subversion && built_with_use --missing false dev-vcs/subversion dso ; then
|
||||
ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
|
||||
ewarn "with USE=dso, there may be weird crashes in git-svn. You"
|
||||
ewarn "have been warned."
|
||||
fi
|
||||
if use python ; then
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
# This is needed because for some obscure reasons future calls to make don't
|
||||
# pick up these exports if we export them in src_unpack()
|
||||
exportmakeopts() {
|
||||
local myopts
|
||||
|
||||
if use blksha1 ; then
|
||||
myopts="${myopts} BLK_SHA1=YesPlease"
|
||||
elif use ppcsha1 ; then
|
||||
myopts="${myopts} PPC_SHA1=YesPlease"
|
||||
fi
|
||||
|
||||
if use curl ; then
|
||||
use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
|
||||
else
|
||||
myopts="${myopts} NO_CURL=YesPlease"
|
||||
fi
|
||||
|
||||
# broken assumptions, because of broken build system ...
|
||||
myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
|
||||
myopts="${myopts} INSTALL=install TAR=tar"
|
||||
myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh"
|
||||
myopts="${myopts} SANE_TOOL_PATH="
|
||||
myopts="${myopts} OLD_ICONV="
|
||||
myopts="${myopts} NO_EXTERNAL_GREP="
|
||||
|
||||
# can't define this to null, since the entire makefile depends on it
|
||||
sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
|
||||
|
||||
use iconv \
|
||||
|| myopts="${myopts} NO_ICONV=YesPlease"
|
||||
use nls \
|
||||
|| myopts="${myopts} NO_GETTEXT=YesPlease"
|
||||
use tk \
|
||||
|| myopts="${myopts} NO_TCLTK=YesPlease"
|
||||
use pcre \
|
||||
&& myopts="${myopts} USE_LIBPCRE=yes"
|
||||
use perl \
|
||||
&& myopts="${myopts} INSTALLDIRS=vendor" \
|
||||
|| myopts="${myopts} NO_PERL=YesPlease"
|
||||
use python \
|
||||
|| myopts="${myopts} NO_PYTHON=YesPlease"
|
||||
use subversion \
|
||||
|| myopts="${myopts} NO_SVN_TESTS=YesPlease"
|
||||
use threads \
|
||||
&& myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
|
||||
use cvs \
|
||||
|| myopts="${myopts} NO_CVS=YesPlease"
|
||||
# Disabled until ~m68k-mint can be keyworded again
|
||||
# if [[ ${CHOST} == *-mint* ]] ; then
|
||||
# myopts="${myopts} NO_MMAP=YesPlease"
|
||||
# myopts="${myopts} NO_IPV6=YesPlease"
|
||||
# myopts="${myopts} NO_STRLCPY=YesPlease"
|
||||
# myopts="${myopts} NO_MEMMEM=YesPlease"
|
||||
# myopts="${myopts} NO_MKDTEMP=YesPlease"
|
||||
# myopts="${myopts} NO_MKSTEMPS=YesPlease"
|
||||
# fi
|
||||
if [[ ${CHOST} == ia64-*-hpux* ]]; then
|
||||
myopts="${myopts} NO_NSEC=YesPlease"
|
||||
fi
|
||||
if [[ ${CHOST} == *-*-aix* ]]; then
|
||||
myopts="${myopts} NO_FNMATCH_CASEFOLD=YesPlease"
|
||||
fi
|
||||
|
||||
has_version '>=app-text/asciidoc-8.0' \
|
||||
&& myopts="${myopts} ASCIIDOC8=YesPlease"
|
||||
myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease"
|
||||
|
||||
# Bug 290465:
|
||||
# builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
|
||||
[[ "${CHOST}" == *-uclibc* ]] && \
|
||||
myopts="${myopts} NO_NSEC=YesPlease"
|
||||
|
||||
export MY_MAKEOPTS="${myopts}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} != *9999 ]]; then
|
||||
unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
|
||||
cd "${S}"
|
||||
unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
use doc && \
|
||||
cd "${S}"/Documentation && \
|
||||
unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
cd "${S}"
|
||||
else
|
||||
git-2_src_unpack
|
||||
cd "${S}"
|
||||
#cp "${FILESDIR}"/GIT-VERSION-GEN .
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# bug #418431 - stated for upstream 1.7.13. Developed by Michael Schwern,
|
||||
# funded as a bounty by the Gentoo Foundation.
|
||||
epatch "${FILESDIR}"/git-1.7.12-git-svn-backport.patch
|
||||
|
||||
# bug #350330 - automagic CVS when we don't want it is bad.
|
||||
epatch "${FILESDIR}"/git-1.7.12-optional-cvs.patch
|
||||
|
||||
sed -i \
|
||||
-e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
|
||||
-e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
|
||||
-e 's:^\(CC = \).*$:\1$(OPTCC):' \
|
||||
-e 's:^\(AR = \).*$:\1$(OPTAR):' \
|
||||
-e "s:\(PYTHON_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
|
||||
-e "s:\(PERL_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
|
||||
Makefile || die "sed failed"
|
||||
|
||||
# Never install the private copy of Error.pm (bug #296310)
|
||||
sed -i \
|
||||
-e '/private-Error.pm/s,^,#,' \
|
||||
perl/Makefile.PL
|
||||
|
||||
# Fix docbook2texi command
|
||||
sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \
|
||||
Documentation/Makefile || die "sed failed"
|
||||
}
|
||||
|
||||
git_emake() {
|
||||
# bug #326625: PERL_PATH, PERL_MM_OPT
|
||||
# bug #320647: PYTHON_PATH
|
||||
PYTHON_PATH=""
|
||||
use python && PYTHON_PATH="$(PYTHON -a)"
|
||||
emake ${MY_MAKEOPTS} \
|
||||
DESTDIR="${D}" \
|
||||
OPTCFLAGS="${CFLAGS}" \
|
||||
OPTLDFLAGS="${LDFLAGS}" \
|
||||
OPTCC="$(tc-getCC)" \
|
||||
OPTAR="$(tc-getAR)" \
|
||||
prefix="${EPREFIX}"/usr \
|
||||
htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
sysconfdir="${EPREFIX}"/etc \
|
||||
PYTHON_PATH="${PYTHON_PATH}" \
|
||||
PERL_MM_OPT="" \
|
||||
GIT_TEST_OPTS="--no-color" \
|
||||
"$@"
|
||||
# This is the fix for bug #326625, but it also causes breakage, see bug
|
||||
# #352693.
|
||||
# PERL_PATH="${EPREFIX}/usr/bin/env perl" \
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
exportmakeopts
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use perl ; then
|
||||
git_emake perl/PM.stamp || die "emake perl/PM.stamp failed"
|
||||
git_emake perl/perl.mak || die "emake perl/perl.mak failed"
|
||||
fi
|
||||
git_emake || die "emake failed"
|
||||
|
||||
if use emacs ; then
|
||||
elisp-compile contrib/emacs/git{,-blame}.el \
|
||||
|| die "emacs modules failed"
|
||||
fi
|
||||
|
||||
if use perl && use cgi ; then
|
||||
git_emake \
|
||||
gitweb/gitweb.cgi \
|
||||
|| die "emake gitweb/gitweb.cgi failed"
|
||||
fi
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
cd "${S}"/contrib/credential/osxkeychain || die "cd credential/osxkeychain"
|
||||
git_emake || die "email credential-osxkeychain"
|
||||
fi
|
||||
|
||||
cd "${S}"/Documentation
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
git_emake man \
|
||||
|| die "emake man failed"
|
||||
if use doc ; then
|
||||
git_emake info html \
|
||||
|| die "emake info html failed"
|
||||
fi
|
||||
else
|
||||
if use doc ; then
|
||||
git_emake info \
|
||||
|| die "emake info html failed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
git_emake \
|
||||
install || \
|
||||
die "make install failed"
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
dobin contrib/credential/osxkeychain/git-credential-osxkeychain
|
||||
fi
|
||||
|
||||
# Depending on the tarball and manual rebuild of the documentation, the
|
||||
# manpages may exist in either OR both of these directories.
|
||||
find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
|
||||
find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
|
||||
|
||||
dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
|
||||
use doc && dodir /usr/share/doc/${PF}/html
|
||||
for d in / /howto/ /technical/ ; do
|
||||
docinto ${d}
|
||||
dodoc Documentation${d}*.txt
|
||||
use doc && dohtml -p ${d} Documentation${d}*.html
|
||||
done
|
||||
docinto /
|
||||
# Upstream does not ship this pre-built :-(
|
||||
use doc && doinfo Documentation/{git,gitman}.info
|
||||
|
||||
newbashcomp contrib/completion/git-completion.bash ${PN}
|
||||
newbashcomp contrib/completion/git-prompt.sh ${PN}-prompt
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} contrib/emacs/git.{el,elc} || die
|
||||
elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die
|
||||
#elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die
|
||||
# don't add automatically to the load-path, so the sitefile
|
||||
# can do a conditional loading
|
||||
touch "${ED}${SITELISP}/${PN}/compat/.nosearch"
|
||||
elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
|
||||
fi
|
||||
|
||||
if use python && use gtk ; then
|
||||
dobin "${S}"/contrib/gitview/gitview
|
||||
python_convert_shebangs ${PYTHON_ABI} "${ED}"/usr/bin/gitview
|
||||
dodoc "${S}"/contrib/gitview/gitview.txt
|
||||
fi
|
||||
|
||||
#dobin contrib/fast-import/git-p4 # Moved upstream
|
||||
#dodoc contrib/fast-import/git-p4.txt # Moved upstream
|
||||
newbin contrib/fast-import/import-tars.perl import-tars
|
||||
newbin contrib/git-resurrect.sh git-resurrect
|
||||
|
||||
dodir /usr/share/${PN}/contrib
|
||||
# The following are excluded:
|
||||
# completion - installed above
|
||||
# emacs - installed above
|
||||
# examples - these are stuff that is not used in Git anymore actually
|
||||
# gitview - installed above
|
||||
# p4import - excluded because fast-import has a better one
|
||||
# patches - stuff the Git guys made to go upstream to other places
|
||||
# svnimport - use git-svn
|
||||
# thunderbird-patch-inline - fixes thunderbird
|
||||
for i in \
|
||||
blameview buildsystems ciabot continuous convert-objects fast-import \
|
||||
hg-to-git hooks remotes2config.sh remotes2config.sh rerere-train.sh \
|
||||
stats svn-fe vim workdir \
|
||||
; do
|
||||
cp -rf \
|
||||
"${S}"/contrib/${i} \
|
||||
"${ED}"/usr/share/${PN}/contrib \
|
||||
|| die "Failed contrib ${i}"
|
||||
done
|
||||
|
||||
if use perl && use cgi ; then
|
||||
# We used to install in /usr/share/${PN}/gitweb
|
||||
# but upstream installs in /usr/share/gitweb
|
||||
# so we will install a symlink and use their location for compat with other
|
||||
# distros
|
||||
dosym /usr/share/gitweb /usr/share/${PN}/gitweb
|
||||
|
||||
# INSTALL discusses configuration issues, not just installation
|
||||
docinto /
|
||||
newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
|
||||
newdoc "${S}"/gitweb/README README.gitweb
|
||||
|
||||
find "${ED}"/usr/lib64/perl5/ \
|
||||
-name .packlist \
|
||||
-exec rm \{\} \;
|
||||
else
|
||||
rm -rf "${ED}"/usr/share/gitweb
|
||||
fi
|
||||
|
||||
if ! use subversion ; then
|
||||
rm -f "${ED}"/usr/libexec/git-core/git-svn \
|
||||
"${ED}"/usr/share/man/man1/git-svn.1*
|
||||
fi
|
||||
|
||||
if use xinetd ; then
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}"/git-daemon.xinetd git-daemon
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}"/git-daemon.initd git-daemon
|
||||
newconfd "${FILESDIR}"/git-daemon.confd git-daemon
|
||||
|
||||
fixlocalpod
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local disabled=""
|
||||
local tests_cvs="t9200-git-cvsexportcommit.sh \
|
||||
t9400-git-cvsserver-server.sh \
|
||||
t9401-git-cvsserver-crlf.sh \
|
||||
t9600-cvsimport.sh \
|
||||
t9601-cvsimport-vendor-branch.sh \
|
||||
t9602-cvsimport-branches-tags.sh \
|
||||
t9603-cvsimport-patchsets.sh"
|
||||
local tests_perl="t5502-quickfetch.sh \
|
||||
t5512-ls-remote.sh \
|
||||
t5520-pull.sh"
|
||||
# Bug #225601 - t0004 is not suitable for root perm
|
||||
# Bug #219839 - t1004 is not suitable for root perm
|
||||
# t0001-init.sh - check for init notices EPERM* fails
|
||||
local tests_nonroot="t0001-init.sh \
|
||||
t0004-unwritable.sh \
|
||||
t0070-fundamental.sh \
|
||||
t1004-read-tree-m-u-wf.sh \
|
||||
t3700-add.sh \
|
||||
t7300-clean.sh"
|
||||
# t9100 still fails with symlinks in SVN 1.7
|
||||
local test_svn="t9100-git-svn-basic.sh"
|
||||
|
||||
# Unzip is used only for the testcase code, not by any normal parts of Git.
|
||||
if ! has_version app-arch/unzip ; then
|
||||
einfo "Disabling tar-tree tests"
|
||||
disabled="${disabled} t5000-tar-tree.sh"
|
||||
fi
|
||||
|
||||
cvs=0
|
||||
use cvs && let cvs=$cvs+1
|
||||
if [[ ${EUID} -eq 0 ]]; then
|
||||
if [[ $cvs -eq 1 ]]; then
|
||||
ewarn "Skipping CVS tests because CVS does not work as root!"
|
||||
ewarn "You should retest with FEATURES=userpriv!"
|
||||
disabled="${disabled} ${tests_cvs}"
|
||||
fi
|
||||
einfo "Skipping other tests that require being non-root"
|
||||
disabled="${disabled} ${tests_nonroot}"
|
||||
else
|
||||
[[ $cvs -gt 0 ]] && \
|
||||
has_version dev-vcs/cvs && \
|
||||
let cvs=$cvs+1
|
||||
[[ $cvs -gt 1 ]] && \
|
||||
built_with_use dev-vcs/cvs server && \
|
||||
let cvs=$cvs+1
|
||||
if [[ $cvs -lt 3 ]]; then
|
||||
einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
|
||||
disabled="${disabled} ${tests_cvs}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use perl ; then
|
||||
einfo "Disabling tests that need Perl"
|
||||
disabled="${disabled} ${tests_perl}"
|
||||
fi
|
||||
|
||||
einfo "Disabling tests that fail with SVN 1.7"
|
||||
disabled="${disabled} ${test_svn}"
|
||||
|
||||
# Reset all previously disabled tests
|
||||
cd "${S}/t"
|
||||
for i in *.sh.DISABLED ; do
|
||||
[[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
|
||||
done
|
||||
einfo "Disabled tests:"
|
||||
for i in ${disabled} ; do
|
||||
[[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
|
||||
done
|
||||
|
||||
# Avoid the test system removing the results because we want them ourselves
|
||||
sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \
|
||||
-i "${S}"/t/Makefile
|
||||
|
||||
# Clean old results first, must always run
|
||||
cd "${S}/t"
|
||||
nonfatal git_emake clean
|
||||
|
||||
# Now run the tests, keep going if we hit an error, and don't terminate on
|
||||
# failure
|
||||
cd "${S}"
|
||||
einfo "Start test run"
|
||||
#MAKEOPTS=-j1
|
||||
nonfatal git_emake --keep-going test
|
||||
rc=$?
|
||||
|
||||
# Display nice results, now print the results
|
||||
cd "${S}/t"
|
||||
nonfatal git_emake aggregate-results
|
||||
|
||||
# And bail if there was a problem
|
||||
[ $rc -eq 0 ] || die "tests failed. Please file a bug."
|
||||
}
|
||||
|
||||
showpkgdeps() {
|
||||
local pkg=$1
|
||||
shift
|
||||
elog " $(printf "%-17s:" ${pkg}) ${@}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
use python && python_mod_optimize git_remote_helpers
|
||||
einfo "Please read /usr/share/bash-completion/git for Git bash command completion"
|
||||
einfo "Please read /usr/share/bash-completion/git-prompt for Git bash prompt"
|
||||
einfo "Note that the prompt bash code is now in the seperate script"
|
||||
elog "These additional scripts need some dependencies:"
|
||||
echo
|
||||
showpkgdeps git-quiltimport "dev-util/quilt"
|
||||
showpkgdeps git-instaweb \
|
||||
"|| ( www-servers/lighttpd www-servers/apache )"
|
||||
echo
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
use python && python_mod_cleanup git_remote_helpers
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue