parent
ddda18fcb6
commit
e6b90c8837
@ -1,3 +1,4 @@
|
||||
DIST espeak-1.42.04-source.zip 1537076 RMD160 1b0747501d81acf48241dc6b0da7fb555a1e3927 SHA1 fe3c0e20b994d2332d8841f61ccc2ae016a836b0 SHA256 3791bb853e9283950d58c02396b3b9b1313adf27c0004bcd1e0cdaf87a683eeb
|
||||
DIST espeak-1.45.03-source.zip 1894722 RMD160 7acb21e77b72ab8888a3cbf09d2ffa851c78de0b SHA1 0aef9196e7e1347eb470d50b30d6e5323c4ec7eb SHA256 74ed21cb0f4f4a040db93ffa9f4dac463a53281fe47ef4e63605a3ee3e8e0eea
|
||||
DIST espeak-1.45.04-source.zip 1904805 RMD160 c717da9f7bc2aa6ec62a2f4a20007141ac865e67 SHA1 8b4f6fe720a3a64f0bfdf97abd970e99009603fa SHA256 816825f8aadb8ce9487808d35f698a9ac39b158cf43ad0aa98e8b4d7c5ab9780
|
||||
DIST espeak-1.46.01-source.zip 2371712 RMD160 bed5f83ad0e14e4f1269ce5832af2217f908278a SHA1 2f3c14192b012c945db9f06dd47d366f4c3cf15f SHA256 87fc4fdeea9d5151909515ab6258ca0cccea78356037380fa8dcf09953e93de4
|
||||
|
@ -0,0 +1,73 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/espeak/espeak-1.46.01.ebuild,v 1.1 2011/12/18 17:45:53 williamh Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
MY_P="${P}-source"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
|
||||
DESCRIPTION="Speech synthesizer for English and other languages"
|
||||
HOMEPAGE="http://espeak.sourceforge.net/"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="portaudio pulseaudio"
|
||||
REQUIRED_USE="portaudio? ( !pulseaudio )
|
||||
pulseaudio? ( !portaudio )"
|
||||
RDEPEND="media-sound/sox
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
portaudio? ( >=media-libs/portaudio-19_pre20071207 )"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
get_audio() {
|
||||
if use portaudio; then
|
||||
echo portaudio
|
||||
elif use pulseaudio; then
|
||||
echo pulseaudio
|
||||
else
|
||||
echo none
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cd src
|
||||
# gentoo uses portaudio 19.
|
||||
mv -f portaudio19.h portaudio.h
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd src
|
||||
emake PREFIX="${EPREFIX}/usr" AUDIO="$(get_audio)" \
|
||||
CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" all
|
||||
|
||||
einfo "Fixing byte order of phoneme data files"
|
||||
cd "${S}/platforms/big_endian"
|
||||
make
|
||||
./espeak-phoneme-data "${S}/espeak-data"
|
||||
cp -f phondata phonindex phontab "${S}/espeak-data"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd src
|
||||
make DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="\$(PREFIX)/$(get_libdir)" AUDIO="$(get_audio)" install
|
||||
|
||||
cd ..
|
||||
insinto /usr/share/espeak-data
|
||||
doins -r dictsource
|
||||
dodoc ChangeLog.txt ReadMe
|
||||
dohtml -r docs/*
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use portaudio && ! use pulseaudio; then
|
||||
ewarn "Since portaudio and pulseaudio are not in your use flags,"
|
||||
ewarn "espeak will only be able to create wav files."
|
||||
ewarn "If this is not what you want, please reemerge ${CATEGORY}/${PN}"
|
||||
ewarn "with either portaudio or pulseaudio USE flag enabled."
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST pigz-2.1.6.tar.gz 52250 RMD160 715a90eefbb9d2f6dbd94ec7ee196a0ea7b32e7f SHA1 df05bdcc7b08246a3c1e6a2ab2edc7d0a45c0369 SHA256 2ff1ba812407848787fe6719fde4436cb7c490e6d8c6e721f4e4309caa5f3640
|
||||
DIST pigz-2.1.7.tar.gz 44800 RMD160 a3b29bc6b80de489b61fbb903d072a3378c0a732 SHA1 d8a5ab8887741353d8174b89280ed1b8b19515aa SHA256 a7ca0d68295e485115fef9c73917b6bcaab3aa6ca1cb2801f25c5b858fdac0e4
|
||||
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/pigz/pigz-2.1.7.ebuild,v 1.1 2011/12/18 20:56:54 spatz Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="A parallel implementation of gzip"
|
||||
HOMEPAGE="http://www.zlib.net/pigz/"
|
||||
SRC_URI="http://www.zlib.net/pigz/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~mips ~sparc ~x86 ~amd64-linux ~sparc64-solaris"
|
||||
IUSE="symlink test"
|
||||
|
||||
RDEPEND="sys-libs/zlib"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( app-arch/ncompress )"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '1,3d' -e '5s/$(CC)/$(CC) $(LDFLAGS)/' "${S}/Makefile" || die
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
dosym /usr/bin/${PN} /usr/bin/un${PN}
|
||||
dodoc README
|
||||
doman ${PN}.1
|
||||
|
||||
if use symlink; then
|
||||
dosym /usr/bin/${PN} /usr/bin/gzip
|
||||
dosym /usr/bin/un${PN} /usr/bin/gunzip
|
||||
fi
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST unrarsrc-3.9.10.tar.gz 142718 RMD160 7c7d3f5e89ed1657f716c883ef9aaae1f37c1134 SHA1 8654c4c539a0a05b8cf52ff1aa2fca180601c8e9 SHA256 3b4627d8f5700588bc594afee6911865f55201625299f414438a654da488207a
|
||||
DIST unrarsrc-4.0.6.tar.gz 152794 RMD160 5590b2c269b6e1d01f8050a0a8eb11a911e38656 SHA1 764b87dd8b0a79bde116cdb73a517b05b649c15e SHA256 7a60246a0e76bc24495eb0aadb8b61eb6362ece405de01cec940436f416b437a
|
||||
DIST unrarsrc-4.0.7.tar.gz 152853 RMD160 0629f8600e9ddb298f59fc05b9569bd40703acaf SHA1 e4c8b0d47278475f3dfb77e8497f5818eca3d4a0 SHA256 eac9ed7493870ca7f67b23e9208aef1db701c381123ac462e97f703777a33071
|
||||
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/unrar/unrar-3.9.10.ebuild,v 1.9 2010/12/05 16:06:35 armin76 Exp $
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_PN=${PN}src
|
||||
DESCRIPTION="Uncompress rar files"
|
||||
HOMEPAGE="http://www.rarlab.com/rar_add.htm"
|
||||
SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz"
|
||||
|
||||
LICENSE="unRAR"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
|
||||
|
||||
S=${WORKDIR}/unrar
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
-f makefile.unix \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
CXX="$(tc-getCXX)" \
|
||||
STRIP="true" || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin unrar || die
|
||||
dodoc readme.txt
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/unrar/unrar-4.0.6.ebuild,v 1.3 2011/02/23 03:18:47 vapier Exp $
|
||||
|
||||
inherit toolchain-funcs flag-o-matic
|
||||
|
||||
MY_PN=${PN}src
|
||||
DESCRIPTION="Uncompress rar files"
|
||||
HOMEPAGE="http://www.rarlab.com/rar_add.htm"
|
||||
SRC_URI="http://www.rarlab.com/rar/${MY_PN}-${PV}.tar.gz"
|
||||
|
||||
LICENSE="unRAR"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="!<=app-arch/unrar-gpl-0.0.1_p20080417"
|
||||
|
||||
S=${WORKDIR}/unrar
|
||||
|
||||
src_compile() {
|
||||
append-lfs-flags #356155
|
||||
emake \
|
||||
-f makefile.unix \
|
||||
CXXFLAGS="${CXXFLAGS}" \
|
||||
CXX="$(tc-getCXX)" \
|
||||
STRIP="true" || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin unrar || die
|
||||
dodoc readme.txt
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST samsung-tools-1.4.tar.gz 441042 RMD160 8e166e9e018f5e2887dce20ae43f996f85c9fd25 SHA1 fcadaf5335023c5389508aac42e716eda058c86b SHA256 c075c5e62d57262f9846e86c4f3b9a37db5adbdff296773bbee527d9f293b67a
|
||||
DIST samsung-tools-1.5.tar.gz 441205 RMD160 c48126f8e6d80082d0de3ab92df64191d734246d SHA1 4c31c3bae2576eef87c825969f01c4346e3ef2df SHA256 3ebd64648e2f065859cc29b2415e83f6a003a6ab29c15895fe787fc1ae04e5e2
|
||||
DIST samsung-tools-2.0.tar.gz 435233 RMD160 3d6f2925a93d4c649e313d2f5a9a44e009dd9ee0 SHA1 8229ff4bf6f32ead7ea9279a49ad2985f65faef2 SHA256 e9f5bc07e58004665d3496d9d5048015c62c2997600b6d446d7d60be2f86ab0d
|
||||
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-laptop/samsung-tools/samsung-tools-2.0.ebuild,v 1.1 2011/12/18 10:12:20 angelos Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND=2
|
||||
inherit fdo-mime python
|
||||
|
||||
DESCRIPTION="Tools for Samsung laptops"
|
||||
HOMEPAGE="http://launchpad.net/samsung-tools"
|
||||
SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-laptop/easy-slow-down-manager
|
||||
dev-python/dbus-python
|
||||
dev-python/notify-python
|
||||
dev-python/pygtk
|
||||
net-wireless/rfkill
|
||||
sys-power/pm-utils
|
||||
x11-misc/xbindkeys"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
python_convert_shebangs -r -q 2 .
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
return
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
newinitd "${FILESDIR}"/${PN}.init ${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
python_mod_optimize /usr/lib/${PN}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
python_mod_cleanup /usr/lib/${PN}
|
||||
}
|
@ -0,0 +1,129 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.5.19.ebuild,v 1.1 2011/12/18 23:43:43 robbat2 Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
MY_EXTRAS_VER="20110713-0702Z"
|
||||
MY_PV="${PV//_alpha_pre/-m}"
|
||||
MY_PV="${MY_PV//_/-}"
|
||||
|
||||
# Build type
|
||||
BUILD="cmake"
|
||||
|
||||
inherit toolchain-funcs mysql-v2
|
||||
# only to make repoman happy. it is really set in the eclass
|
||||
IUSE="$IUSE"
|
||||
|
||||
# Define the mysql-extras source
|
||||
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/mysql-extras.git"
|
||||
|
||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
|
||||
# When MY_EXTRAS is bumped, the index should be revised to exclude these.
|
||||
EPATCH_EXCLUDE=''
|
||||
|
||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
|
||||
RDEPEND="${RDEPEND}"
|
||||
|
||||
# Please do not add a naive src_unpack to this ebuild
|
||||
# If you want to add a single patch, copy the ebuild to an overlay
|
||||
# and create your own mysql-extras tarball, looking at 000_index.txt
|
||||
|
||||
# Official test instructions:
|
||||
# USE='berkdb -cluster embedded extraengine perl ssl community' \
|
||||
# FEATURES='test userpriv -usersandbox' \
|
||||
# ebuild mysql-X.X.XX.ebuild \
|
||||
# digest clean package
|
||||
src_test() {
|
||||
|
||||
local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test"
|
||||
local retstatus_unit
|
||||
local retstatus_tests
|
||||
|
||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
||||
# localhost. Also causes weird failures.
|
||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
||||
|
||||
if ! use "minimal" ; then
|
||||
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
||||
fi
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
addpredict /this-dir-does-not-exist/t9.MYI
|
||||
|
||||
# Run CTest (test-units)
|
||||
cmake-utils_src_test
|
||||
retstatus_unit=$?
|
||||
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
|
||||
|
||||
# Ensure that parallel runs don't die
|
||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
||||
|
||||
# create directories because mysqladmin might right out of order
|
||||
mkdir -p "${S}"/mysql-test/var-{tests}{,/log}
|
||||
|
||||
# These are failing in MySQL 5.5 for now and are believed to be
|
||||
# false positives:
|
||||
#
|
||||
# main.information_schema, binlog.binlog_statement_insert_delayed,
|
||||
# main.mysqld--help-notwin
|
||||
# fails due to USE=-latin1 / utf8 default
|
||||
#
|
||||
# main.mysql_client_test:
|
||||
# segfaults at random under Portage only, suspect resource limits.
|
||||
#
|
||||
# sys_vars.plugin_dir_basic
|
||||
# fails because PLUGIN_DIR is set to MYSQL_LIBDIR64/plugin
|
||||
# instead of MYSQL_LIBDIR/plugin
|
||||
#
|
||||
# main.flush_read_lock_kill
|
||||
# fails because of unknown system variable 'DEBUG_SYNC'
|
||||
#
|
||||
# main.openssl_1
|
||||
# error message changing
|
||||
# -mysqltest: Could not open connection 'default': 2026 SSL connection
|
||||
# error: ASN: bad other signature confirmation
|
||||
# +mysqltest: Could not open connection 'default': 2026 SSL connection
|
||||
# error: error:00000001:lib(0):func(0):reason(1)
|
||||
#
|
||||
|
||||
for t in main.mysql_client_test \
|
||||
binlog.binlog_statement_insert_delayed main.information_schema \
|
||||
main.mysqld--help-notwin main.flush_read_lock_kill \
|
||||
sys_vars.plugin_dir_basic main.openssl_1 ; do
|
||||
mysql-v2_disable_test "$t" "False positives in Gentoo"
|
||||
done
|
||||
|
||||
# Run mysql tests
|
||||
pushd "${TESTDIR}"
|
||||
|
||||
# run mysql-test tests
|
||||
perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests"
|
||||
retstatus_tests=$?
|
||||
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
popd
|
||||
|
||||
# Cleanup is important for these testcases.
|
||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
||||
|
||||
failures=""
|
||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
||||
einfo "Tests successfully completed"
|
||||
|
||||
else
|
||||
|
||||
einfo "Skipping server tests due to minimal build."
|
||||
fi
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
diff --git a/uuagc.cabal b/uuagc.cabal
|
||||
index 5012e56..281e68f 100644
|
||||
--- a/uuagc.cabal
|
||||
+++ b/uuagc.cabal
|
||||
@@ -3,7 +3,7 @@ version: 0.9.1
|
||||
license: GPL
|
||||
license-file: LICENSE
|
||||
maintainer: Arthur Baars <arthurb@cs.uu.nl>
|
||||
-Build-Depends: base, haskell98, uulib
|
||||
+Build-Depends: base, haskell98, uulib, directory
|
||||
|
||||
Executable: uuagc
|
||||
Main-Is: Ag.hs
|
||||
@@ -31,5 +31,5 @@ Other-Modules: AbstractSyntax,
|
||||
Streaming,
|
||||
TokenDef,
|
||||
Transform
|
||||
-Extensions: TypeSynonymInstances
|
||||
+Extensions: TypeSynonymInstances, MultiParamTypeClasses
|
||||
Hs-Source-Dir: src
|
||||
diff --git a/uuagc.cabal.in b/uuagc.cabal.in
|
||||
index 754b4ba..9693be5 100644
|
||||
--- a/uuagc.cabal.in
|
||||
+++ b/uuagc.cabal.in
|
||||
@@ -3,7 +3,7 @@ version: @VERSION@
|
||||
license: GPL
|
||||
license-file: LICENSE
|
||||
maintainer: Arthur Baars <arthurb@cs.uu.nl>
|
||||
-Build-Depends: base, haskell98, uulib
|
||||
+Build-Depends: base, haskell98, uulib, directory
|
||||
|
||||
Executable: uuagc
|
||||
Main-Is: Ag.hs
|
||||
@@ -31,5 +31,5 @@ Other-Modules: AbstractSyntax,
|
||||
Streaming,
|
||||
TokenDef,
|
||||
Transform
|
||||
-Extensions: TypeSynonymInstances
|
||||
+Extensions: TypeSynonymInstances, MultiParamTypeClasses
|
||||
Hs-Source-Dir: src
|
@ -0,0 +1,239 @@
|
||||
# Copyright 1999-2011 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.2.ebuild,v 1.2 2011/12/18 19:23:13 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/jdk-7u2-download-1377129.html"
|
||||
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html"
|
||||
|
||||
UPDATE="$(get_version_component_range 4)"
|
||||
UPDATE="${UPDATE#0}"
|
||||
MY_PV="$(get_version_component_range 2)u${UPDATE}"
|
||||
S_PV="$(get_version_component_range 1-3)_0${UPDATE}"
|
||||
|
||||
X86_AT="jdk-${MY_PV}-linux-i586.tar.gz"
|
||||
AMD64_AT="jdk-${MY_PV}-linux-x64.tar.gz"
|
||||
SOL_X86_AT="jdk-${MY_PV}-solaris-i586.tar.gz"
|
||||
SOL_AMD64_AT="jdk-${MY_PV}-solaris-x64.tar.gz"
|
||||
SOL_SPARC_AT="jdk-${MY_PV}-solaris-sparc.tar.gz"
|
||||
SOL_SPARCv9_AT="jdk-${MY_PV}-solaris-sparcv9.tar.gz"
|
||||
|
||||
X86_DEMOS="jdk-${MY_PV}-linux-i586-demos.tar.gz"
|
||||
AMD64_DEMOS="jdk-${MY_PV}-linux-x64-demos.tar.gz"
|
||||
SOL_X86_DEMOS="jdk-${MY_PV}-solaris-i586-demos.tar.gz"
|
||||
SOL_AMD64_DEMOS="jdk-${MY_PV}-solaris-x64-demos.tar.gz"
|
||||
SOL_SPARC_DEMOS="jdk-${MY_PV}-solaris-sparc-demos.tar.gz"
|
||||
SOL_SPARCv9_DEMOS="jdk-${MY_PV}-solaris-sparcv9-demos.tar.gz"
|
||||
|
||||
JCE_DIR="UnlimitedJCEPolicy"
|
||||
JCE_FILE="${JCE_DIR}JDK7.zip"
|
||||
|
||||
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}
|
||||
)
|
||||
)
|
||||
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}
|
||||
)
|
||||
)
|
||||
jce? ( ${JCE_FILE} )"
|
||||
|
||||
LICENSE="Oracle-BCLA-JavaSE"
|
||||
SLOT="1.7"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
RESTRICT="fetch strip"
|
||||
IUSE="X alsa derby doc examples jce nsplugin"
|
||||
|
||||
DEPEND="jce? ( app-arch/unzip )"
|
||||
RDEPEND="${DEPEND}
|
||||
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 )
|
||||
!prefix? ( sys-libs/glibc )"
|
||||
|
||||
S="${WORKDIR}/jdk${S_PV}"
|
||||
|
||||
QA_TEXTRELS_x86="
|
||||
opt/${P}/jre/lib/i386/client/libjvm.so
|
||||
opt/${P}/jre/lib/i386/server/libjvm.so"
|
||||
|
||||
pkg_nofetch() {
|
||||
if use x86; then
|
||||
AT=${X86_AT}
|
||||
elif use amd64; then
|
||||
AT=${AMD64_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
|
||||
|
||||
if use x86; then
|
||||
DEMOS=${X86_DEMOS}
|
||||
elif use amd64; then
|
||||
DEMOS=${AMD64_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
|
||||
|
||||
einfo "Please download ${AT} from:"
|
||||
einfo "${JDK_URI}"
|
||||
einfo "and move it to ${DISTDIR}"
|
||||
|
||||
if use examples; then
|
||||
einfo "Also download ${DEMOS} from:"
|
||||
einfo ${JDK_URI}
|
||||
einfo "and move it to ${DISTDIR}"
|
||||
fi
|
||||
|
||||
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} "${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
|
||||
"${S}"/bin/java -client -Xshare:dump || die
|
||||
fi
|
||||
"${S}"/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() {
|
||||
# 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 /opt/${P}
|
||||
cp -pPR bin include jre lib man src.zip "${ED}"/opt/${P} || die
|
||||
|
||||
if use derby; then
|
||||
cp -pPR db "${ED}"/opt/${P} || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
cp -pPR demo sample "${ED}"/opt/${P} || die
|
||||
fi
|
||||
|
||||
# Remove empty dirs we might have copied
|
||||
rmdir -v $(find "${D}" -type d -empty) || die
|
||||
|
||||
dodoc COPYRIGHT
|
||||
dohtml README.html
|
||||
|
||||
if use jce; then
|
||||
dodir /opt/${P}/jre/lib/security/strong-jce
|
||||
mv "${ED}"/opt/${P}/jre/lib/security/US_export_policy.jar \
|
||||
"${ED}"/opt/${P}/jre/lib/security/strong-jce || die
|
||||
mv "${ED}"/opt/${P}/jre/lib/security/local_policy.jar \
|
||||
"${ED}"/opt/${P}/jre/lib/security/strong-jce || die
|
||||
dosym /opt/${P}/jre/lib/security/${JCE_DIR}/US_export_policy.jar \
|
||||
/opt/${P}/jre/lib/security/
|
||||
dosym /opt/${P}/jre/lib/security/${JCE_DIR}/local_policy.jar \
|
||||
/opt/${P}/jre/lib/security/
|
||||
fi
|
||||
|
||||
if use nsplugin; then
|
||||
install_mozilla_plugin /opt/${P}/jre/lib/${arch}/libnpjp2.so
|
||||
fi
|
||||
|
||||
# Install desktop file for the Java Control Panel. Using VMHANDLE as file
|
||||
# name to prevent file collision with jre and or other slots.
|
||||
[[ -f "${ED}"/opt/${P}/jre/lib/desktop/applications/sun_java.desktop ]] || die
|
||||
sed -e "s/\(Name=\)Java/\1 Java Control Panel for Oracle JDK ${SLOT}/" \
|
||||
-e "s#Exec=.*#Exec=/opt/${P}/jre/bin/jcontrol#" \
|
||||
-e "s#Icon=.*#Icon=/opt/${P}/jre/lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png#" \
|
||||
"${ED}"/opt/${P}/jre/lib/desktop/applications/sun_java.desktop > \
|
||||
"${T}"/${VMHANDLE}.desktop
|
||||
|
||||
domenu "${T}"/${VMHANDLE}.desktop
|
||||
|
||||
# bug #56444
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
||||
eprefixify "${T}"/fontconfig.properties
|
||||
insinto /opt/${P}/jre/lib/
|
||||
doins "${T}"/fontconfig.properties
|
||||
|
||||
set_java_env
|
||||
java-vm_revdep-mask
|
||||
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
DIST UnlimitedJCEPolicyJDK7.zip 7426 RMD160 a4a6a284579f43d2df3532d279e143d2f03c2c3f SHA1 7d3c9ee89536b82cd21c680088b1bced16017253 SHA256 7a8d790e7bd9c2f82a83baddfae765797a4a56ea603c9150c87b7cdb7800194d
|
||||
DIST jre-7u1-linux-i586.tar.gz 33753969 RMD160 653313221a0dc0c7b69e158b003c8658eee8f529 SHA1 04f58ab69b479d475933d2270876fd6c9e97a3b6 SHA256 76bfa6d7b80e077a399bf69fbc8e031ee8f4094be0b6d1e30e247e7341ae2d40
|
||||
DIST jre-7u1-linux-x64.tar.gz 32352700 RMD160 5e032865ffd75961decf959fe4f166833a4f7593 SHA1 fcbd35065ac6040b4160ca93ecd5cf6521885303 SHA256 41d9e1c3f51f7c5041ae9f1c3f200a716903d8d010d5a771e6672766ae95ee92
|
||||
DIST jre-7u2-linux-i586.tar.gz 33811799 RMD160 727967586fc25ceeb3700fbc40f065fd60e3f9f5 SHA1 3c08b2da8612514642d76c5ab85fc22975f7a507 SHA256 00018d12a74a8b65cfbeccbce78223ffad46aadfa13209beeae7d98bb6bc69c3
|
||||
DIST jre-7u2-linux-x64.tar.gz 32423874 RMD160 6e8e37ba27f5b567450cb38344395e1f9200e442 SHA1 c1b7bc57d2a1d2c2237fe0ed902ec1b7986694bd SHA256 f2ac504f54e5c0952c07ce4a7718d23c627d514cf1250c0749dcdb6a55f9d53a
|
||||
|
@ -0,0 +1,158 @@
|
||||
# Copyright 1999-2011 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.2.ebuild,v 1.1 2011/12/18 09:52:17 sera Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit java-vm-2 eutils prefix versionator
|
||||
|
||||
UPDATE="$(get_version_component_range 4)"
|
||||
UPDATE="${UPDATE#0}"
|
||||
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/jre-7u2-download-1377135.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"
|
||||
RESTRICT="fetch strip"
|
||||
IUSE="X alsa jce nsplugin"
|
||||
|
||||
DEPEND="jce? ( app-arch/unzip )"
|
||||
RDEPEND="${DEPEND}
|
||||
X? (
|
||||
x11-libs/libXext
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libX11
|
||||
)
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
!prefix? ( sys-libs/glibc )"
|
||||
|
||||
QA_TEXTRELS_x86="
|
||||
opt/${P}/lib/i386/client/libjvm.so
|
||||
opt/${P}/lib/i386/server/libjvm.so"
|
||||
|
||||
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} "${S}"/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
|
||||
"${S}"/bin/java -client -Xshare:dump || die
|
||||
fi
|
||||
"${S}"/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() {
|
||||
# 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 /opt/${P}
|
||||
cp -pPR bin lib man "${ED}"/opt/${P} || die
|
||||
|
||||
# Remove empty dirs we might have copied
|
||||
rmdir -v $(find "${D}" -type d -empty) || die
|
||||
|
||||
dodoc COPYRIGHT README
|
||||
|
||||
if use jce; then
|
||||
dodir /opt/${P}/lib/security/strong-jce
|
||||
mv "${ED}"/opt/${P}/lib/security/US_export_policy.jar \
|
||||
"${ED}"/opt/${P}/lib/security/strong-jce || die
|
||||
mv "${ED}"/opt/${P}/lib/security/local_policy.jar \
|
||||
"${ED}"/opt/${P}/lib/security/strong-jce || die
|
||||
dosym /opt/${P}/lib/security/${JCE_DIR}/US_export_policy.jar \
|
||||
/opt/${P}/lib/security/
|
||||
dosym /opt/${P}/lib/security/${JCE_DIR}/local_policy.jar \
|
||||
/opt/${P}/lib/security/
|
||||
fi
|
||||
|
||||
if use nsplugin; then
|
||||
install_mozilla_plugin /opt/${P}/lib/${arch}/libnpjp2.so
|
||||
fi
|
||||
|
||||
# Install desktop file for the Java Control Panel. Using VMHANDLE as file
|
||||
# name to prevent file collision with jre and or other slots.
|
||||
[[ -f "${ED}"/opt/${P}/lib/desktop/applications/sun_java.desktop ]] || die
|
||||
sed -e "s/\(Name=\)Java/\1 Java Control Panel for Oracle JRE ${SLOT}/" \
|
||||
-e "s#Exec=.*#Exec=/opt/${P}/bin/jcontrol#" \
|
||||
-e "s#Icon=.*#Icon=/opt/${P}/lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png#" \
|
||||
"${ED}"/opt/${P}/lib/desktop/applications/sun_java.desktop > \
|
||||
"${T}"/${VMHANDLE}.desktop
|
||||
|
||||
domenu "${T}"/${VMHANDLE}.desktop
|
||||
|
||||
# bug #56444
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
|
||||
eprefixify "${T}"/fontconfig.properties
|
||||
insinto /opt/${P}/lib/
|
||||
doins "${T}"/fontconfig.properties
|
||||
|
||||
# bug #388127
|
||||
dodir /etc/sandbox.d
|
||||
echo 'SANDBOX_PREDICT="/dev/random:/proc/self/coredump_filter"' > "${D}/etc/sandbox.d/20${VMHANDLE}"
|
||||
|
||||
set_java_env
|
||||
java-vm_revdep-mask
|
||||
}
|
@ -1,9 +1,11 @@
|
||||
DIST ruby-1.8.7-p334.tar.bz2 4190857 RMD160 f3d078d526f1b19d3255dc236f5a46062883e7c9 SHA1 4311ce257f2e54f247bfe07b48e799d293d041f2 SHA256 3e7f1a15fb2c205ac9eb0da804983b83bf8c0ffeb2f146d1eb9e0579ea2507da
|
||||
DIST ruby-1.8.7-p352.tar.bz2 4207576 RMD160 9a0ea7e7eb83c809d2890b08db2e78eeb93dee0d SHA1 9f3d039e9bfeda54ea2c2175bbeace375a1ea1ae SHA256 9df4e9108387f7d24a6ab8950984d0c0f8cdbc1dad63194e744f1a176d1c5576
|
||||
DIST ruby-1.9.2-p290.tar.bz2 8811237 RMD160 9722a91445fa81a101a2a8ab5753780c4601cc5a SHA1 8f25a74f50a10fdd9724e3c74ccd7bae596e198b SHA256 403b3093fbe8a08dc69c269753b8c6e7bd8f87fb79a7dd7d676913efe7642487
|
||||
DIST ruby-1.9.3-p0.tar.bz2 9554576 RMD160 92e95f1d41f89864e2e4791b522a815e6bf51711 SHA1 f63c116411b981ef54c2caeefb9ccc4d71a5d2cf SHA256 ca8ba4e564fc5f98b210a5784e43dfffef9471222849e46f8e848b37e9f38acf
|
||||
DIST ruby-1.9.3-rc1.tar.bz2 9552727 RMD160 d81a0f8933804f83fc7db4689ec18669701233a8 SHA1 d922890fabd97016e2a30ee7f7b3241df98e72a6 SHA256 951a8810086abca0e200f81767a518ee2730d6dc9b0cc2c7e3587dcfc3bf5fc8
|
||||
DIST ruby-patches-1.8.7_p334-r1.tar.bz2 2060 RMD160 6c20b0cf9ce9f15dc0d0d63afc7f93abd7521317 SHA1 85360153650e942f1cfe4041018fcf1406c1c979 SHA256 fc6069897b0e6480e46c7fca3d8ef3508b6c106f34a8695a6784b20b97f5cc61
|
||||
DIST ruby-patches-1.8.7_p334-r2.tar.bz2 2638 RMD160 02feaf918801b8a81716ceb1e9761eca149246d0 SHA1 cbbd3d9d473458d44b83c5d8c9016a62db0337f4 SHA256 d4316ca0f4b504d5aa237c8852533c8e504da76d9aec8305227d12910239e431
|
||||
DIST ruby-patches-1.8.7_p352.tar.bz2 2646 RMD160 7af0ab7c86c9284ade489d3a07eb592cb8f20827 SHA1 f4df1f011a96153d4e804be1080a493b454a1852 SHA256 695895d4ab77294975669d879f0b03e08af5fcd750b967b44305031b2c115da6
|
||||
DIST ruby-patches-1.9.2_p290.tar.bz2 2246 RMD160 66e8287fa35cf34c471dc19215f4a6f63b67661b SHA1 b1a07618a62877ced18000ceb77bbbed132492e6 SHA256 bc01ad4e6e6dc5cae4c323cc16e9a441f38652eab3e6e3cecdff3baf46102889
|
||||
DIST ruby-patches-1.9.3_p0.tar.bz2 2228 RMD160 5fc6e647ec3f1fe6cbe8014121aa6265c8cd9315 SHA1 10fc10bdde1cc40d4153be840a1314da1d988049 SHA256 22116a403a111701972a5a10d5c31b0bb86dd822c346d0079e86e03866d55df6
|
||||
DIST ruby-patches-1.9.3_rc1.tar.bz2 2228 RMD160 5fc6e647ec3f1fe6cbe8014121aa6265c8cd9315 SHA1 10fc10bdde1cc40d4153be840a1314da1d988049 SHA256 22116a403a111701972a5a10d5c31b0bb86dd822c346d0079e86e03866d55df6
|
||||
|
@ -0,0 +1,225 @@
|
||||
# Copyright 1999-2011 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_p0.ebuild,v 1.1 2011/12/18 18:09:12 graaff Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
#PATCHSET=
|
||||
|
||||
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-2 )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
||||
IUSE="berkdb debug doc examples gdbm ipv6 +rdoc rubytests socks5 ssl tk 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 )
|
||||
tk? ( dev-lang/tk[threads] )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
readline? ( sys-libs/readline )
|
||||
yaml? ( dev-libs/libyaml )
|
||||
virtual/libffi
|
||||
sys-libs/zlib
|
||||
>=app-admin/eselect-ruby-20100402
|
||||
!=dev-lang/ruby-cvs-${SLOT}*
|
||||
!<dev-ruby/rdoc-2
|
||||
!<dev-ruby/rubygems-1.3.7-r4
|
||||
!dev-ruby/rexml"
|
||||
# libedit? ( dev-libs/libedit )
|
||||
# !libedit? ( readline? ( sys-libs/readline ) )
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="
|
||||
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)"
|
||||
|
||||
# Set a faux target (bug #342819)
|
||||
use hppa && myconf="${myconf} --target=parisc"
|
||||
|
||||
econf \
|
||||
--program-suffix=${MY_SUFFIX} \
|
||||
--with-soname=ruby${MY_SUFFIX} \
|
||||
--enable-shared \
|
||||
--enable-pthread \
|
||||
$(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 tk) \
|
||||
$(use_with ncurses curses) \
|
||||
$(use_with yaml psych) \
|
||||
${myconf} \
|
||||
--enable-option-checking=no \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 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 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
|
||||
|
||||
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
|
||||
"/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})"
|
||||
dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
|
||||
"/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})"
|
||||
|
||||
dodoc ChangeLog NEWS doc/NEWS-1.8.7 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(18|19|...)"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect ruby cleanup
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index ce9ce28..f1c4826 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -50,6 +50,7 @@ AC_CHECK_HEADERS([iconv.h],check_iconv=true)
|
||||
if test "x$check_iconv" == x ; then
|
||||
AC_MSG_ERROR([*** iconv.h not found.])
|
||||
fi
|
||||
+AC_CHECK_LIB([iconv], libiconv_open)
|
||||
|
||||
# check Doxygen
|
||||
DOXYGEN=""
|
@ -1,2 +1,3 @@
|
||||
DIST libzeitgeist-0.3.10.tar.gz 497473 RMD160 b8e47998838a8432a0074caeaed8166e225118de SHA1 3d6719c7f30ac7d66e4da267f23692d39fd99840 SHA256 5f92e75b077972e0fab3d8d39551305592c05e1f5c6599104d3517b14a614c8c
|
||||
DIST libzeitgeist-0.3.12.tar.gz 516407 RMD160 1a06ef5408bd59faf7a920c7dfa73d22df460967 SHA1 b0081f7925501b59e1d3dd1eb24f881def046aae SHA256 4a97b95c2847e3e63dcc9163df44f41816be105d8463868fdaff7887470b7490
|
||||
DIST libzeitgeist-0.3.4.tar.gz 489955 RMD160 9281087ddadbf849e745f28d5344daeded48b284 SHA1 1712ab66d183b950ec88d3e471691a25949172bd SHA256 a033f1f3d89062b1a1cfd7410b397b44a490804c5cc7aa74a3a0c8c5e0f1becf
|
||||
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libzeitgeist/libzeitgeist-0.3.12.ebuild,v 1.1 2011/12/18 16:57:05 eva Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit autotools eutils versionator
|
||||
|
||||
MY_PV=$(get_version_component_range 1-2)
|
||||
DESCRIPTION="Client library to interact with zeitgeist"
|
||||
HOMEPAGE="http://launchpad.net/libzeitgeist"
|
||||
SRC_URI="http://launchpad.net/libzeitgeist/${MY_PV}/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
CDEPEND=">=dev-libs/glib-2.26:2"
|
||||
RDEPEND="${CDEPEND}
|
||||
gnome-extra/zeitgeist"
|
||||
DEPEND="${CDEPEND}
|
||||
dev-util/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "s:doc/libzeitgeist:doc/${PF}:" \
|
||||
Makefile.am || die
|
||||
# FIXME: This is the unique test failing
|
||||
sed -i -e '/TEST_PROGS += test-log/d' \
|
||||
tests/Makefile.am || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -type f -name "*.la" -delete
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue