parent
48de6dee64
commit
ea29a8e2f7
@ -1,2 +1,3 @@
|
||||
DIST bcfg2-1.1.3.tar.gz 1784202 RMD160 b00ce8b7f89142e1bb24cb843697a7a0a854b31d SHA1 d3690cc62e0acc8d4affa43b7b48f3280355f5f6 SHA256 bc345a158896967450ddb0c56ae66a25dd31216eb1a1ea954ded494535fdcb05
|
||||
DIST bcfg2-1.2.0.tar.gz 1945551 RMD160 db89ee0b8975bf50ad68bfac122e50253ded1906 SHA1 4fb57f24d2fbce3d6afc0d0b4fbecdd7e05bc5a9 SHA256 138d792423475ae6516a95578a3df191504afaff31007877c7c2b36830d1a260
|
||||
DIST bcfg2-1.2.0rc2.tar.gz 1942476 RMD160 a717f46623f4251c2cee1b4cf143d380e50ffe14 SHA1 d11d09269200d3d866e4574e052a3102a5d19222 SHA256 d9d9b269fb25b3898b92532bfdb26ab8905a8184824e3576ff5c95d9c08f09ab
|
||||
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/bcfg2/bcfg2-1.2.0.ebuild,v 1.1 2011/12/28 07:56:20 xmw Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
# ssl module required.
|
||||
RESTRICT_PYTHON_ABIS="2.4 2.5 3.*"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="configuration management tool"
|
||||
HOMEPAGE="http://bcfg2.org"
|
||||
SRC_URI="ftp://ftp.mcs.anl.gov/pub/bcfg/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
|
||||
IUSE="server"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="app-portage/gentoolkit
|
||||
server? (
|
||||
dev-python/lxml
|
||||
dev-libs/libgamin[python] )"
|
||||
|
||||
PYTHON_MODNAME="Bcfg2"
|
||||
|
||||
distutils_src_install_post_hook() {
|
||||
if ! use server; then
|
||||
rm -f "$(distutils_get_intermediate_installation_image)${EPREFIX}/usr/sbin/bcfg2-"*
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install --record=PY_SERVER_LIBS --install-scripts "${EPREFIX}/usr/sbin"
|
||||
|
||||
if ! use server; then
|
||||
rm -rf "${ED}usr/share/bcfg2"
|
||||
rm -rf "${ED}usr/share/man/man8"
|
||||
else
|
||||
newinitd "${FILESDIR}/bcfg2-server.rc" bcfg2-server
|
||||
fi
|
||||
|
||||
insinto /etc
|
||||
doins examples/bcfg2.conf || die
|
||||
}
|
||||
|
||||
pkg_postinst () {
|
||||
distutils_pkg_postinst
|
||||
|
||||
if use server; then
|
||||
einfo "If this is a new installation, you probably need to run:"
|
||||
einfo " bcfg2-admin init"
|
||||
fi
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
#!/sbin/runscript
|
||||
#
|
||||
# bcfgd - bcfg configuration daemon
|
||||
#
|
||||
#
|
||||
|
||||
depend () {
|
||||
need net
|
||||
}
|
||||
|
||||
start () {
|
||||
ebegin "Starting bcfg2-server"
|
||||
start-stop-daemon --start --quiet --pidfile /var/run/bcfg2-server.pid \
|
||||
--exec /usr/sbin/bcfg2-server -- -D /var/run/bcfg2-server.pid
|
||||
eend $? "Failed to start bcfg2-server"
|
||||
}
|
||||
|
||||
stop () {
|
||||
ebegin "Stopping bcfg2-server"
|
||||
start-stop-daemon --stop --quiet --pidfile /var/run/bcfg2-server.pid \
|
||||
--signal INT
|
||||
eend $? "Failed to stop bcfg2-server"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
DIST tracker-0.10.27.tar.xz 5721444 RMD160 63e3609ac51fae013fc0daf9935ec50ef3a4c609 SHA1 01f0a52a21c3aecaaf6cfb140f7a4b5085a7bc5f SHA256 30ca97cc8a1c82cb0e09a921c0ebe8acbfe7be6908b2303266f447477465444f
|
||||
DIST tracker-0.10.35.tar.xz 5754872 RMD160 6919a7623bf3f041b617d7c2a2b55856863b5e9e SHA1 93fdeb6be256085e72f1ab9f9e578332de9605f0 SHA256 5f6a32d0b2b0036f4aec74a6d36d889e33ea038a1530161ca4eb9a549cc87fe3
|
||||
DIST tracker-0.12.7.tar.xz 5969180 RMD160 e31b85538145404640c303968ecbbb8f729d2564 SHA1 188c9aaa5478302be818e36c3ef126267971289d SHA256 e7a4d016326bc0a1b6aea07e48c3de73ffc29119812149e2dee5eac35104f1b4
|
||||
DIST tracker-0.12.8.tar.xz 5876100 RMD160 10f29842973c0489d5e0c2e0c0c977ca87d47fee SHA1 a1a528bdcaacce4350c2368026083236db7cd165 SHA256 92b18cc381a80d87d52e386f51ca1475b94f82cf5adf668424669c5b63474473
|
||||
DIST tracker-0.12.9.tar.xz 5867980 RMD160 1c6054ffc9f3588db0d355fcfb02703ab8d403c2 SHA1 b5fc5465f3da00c0b2b23cddc0f55a3d1b66d0b7 SHA256 ccd61c8f79905f7e09af3a4a863772256601dcd3213b0f9a3f76add04e553b5c
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/tracker/tracker-0.12.7.ebuild,v 1.3 2011/11/26 19:27:22 tetromino Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/tracker/tracker-0.12.9.ebuild,v 1.1 2011/12/28 05:39:02 tetromino Exp $
|
||||
|
||||
EAPI="3"
|
||||
GCONF_DEBUG="no"
|
@ -0,0 +1,23 @@
|
||||
commit 243c304273a1254418aeacf4d81cadb2d59945ad
|
||||
Author: Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
Date: Mon Apr 4 22:40:15 2011 +1000
|
||||
|
||||
Fix compiling on linux-powerpc.
|
||||
|
||||
diff --git a/rts/Linker.c b/rts/Linker.c
|
||||
index 5285ec6..c840857 100644
|
||||
--- a/rts/Linker.c
|
||||
+++ b/rts/Linker.c
|
||||
@@ -2572,7 +2572,11 @@ static void
|
||||
ocFlushInstructionCache( ObjectCode *oc )
|
||||
{
|
||||
/* The main object code */
|
||||
- ocFlushInstructionCacheFrom(oc->image + oc->misalignment, oc->fileSize);
|
||||
+ ocFlushInstructionCacheFrom(oc->image
|
||||
+#ifdef darwin_HOST_OS
|
||||
+ + oc->misalignment
|
||||
+#endif
|
||||
+ , oc->fileSize);
|
||||
|
||||
/* Jump Islands */
|
||||
ocFlushInstructionCacheFrom(oc->symbol_extras, sizeof(SymbolExtra) * oc->n_symbol_extras);
|
@ -1,195 +0,0 @@
|
||||
# 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.8.7_p334-r1.ebuild,v 1.8 2011/06/07 09:46:44 xarthisius Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
MY_P="${PN}-$(replace_version_separator 3 '-')"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
# 1.8 and 1.9 series disagree on this
|
||||
RUBYVERSION=$(get_version_component_range 1-2)
|
||||
|
||||
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/${SLOT}/${MY_P}.tar.bz2
|
||||
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby GPL-2 )"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="+berkdb debug doc examples +gdbm ipv6 rubytests socks5 ssl threads tk xemacs ncurses +readline libedit"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
ssl? ( >=dev-libs/openssl-0.9.8m )
|
||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
||||
tk? ( dev-lang/tk[threads=] )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
libedit? ( dev-libs/libedit )
|
||||
!libedit? ( readline? ( sys-libs/readline ) )
|
||||
sys-libs/zlib
|
||||
>=app-admin/eselect-ruby-20100603
|
||||
!=dev-lang/ruby-cvs-${SLOT}*
|
||||
!<dev-ruby/rdoc-2
|
||||
!dev-ruby/rexml"
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
econf \
|
||||
--program-suffix="${MY_SUFFIX}" \
|
||||
--enable-shared \
|
||||
$(use_enable socks5 socks) \
|
||||
$(use_enable doc install-doc) \
|
||||
$(use_enable threads pthread) \
|
||||
--enable-ipv6 \
|
||||
$(use_enable debug) \
|
||||
$(use_with berkdb dbm) \
|
||||
$(use_with gdbm) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tk) \
|
||||
$(use_with ncurses curses) \
|
||||
${myconf} \
|
||||
--with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \
|
||||
--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"
|
||||
|
||||
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']")
|
||||
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']")
|
||||
|
||||
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 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
|
||||
}
|
@ -1,195 +0,0 @@
|
||||
# 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.8.7_p334-r2.ebuild,v 1.2 2011/08/10 18:16:07 xarthisius Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib versionator
|
||||
|
||||
MY_P="${PN}-$(replace_version_separator 3 '-')"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
# 1.8 and 1.9 series disagree on this
|
||||
RUBYVERSION=$(get_version_component_range 1-2)
|
||||
|
||||
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/${SLOT}/${MY_P}.tar.bz2
|
||||
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby GPL-2 )"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="+berkdb debug doc examples +gdbm ipv6 rubytests socks5 ssl threads tk xemacs ncurses +readline libedit"
|
||||
|
||||
RDEPEND="
|
||||
berkdb? ( sys-libs/db )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
ssl? ( >=dev-libs/openssl-0.9.8m )
|
||||
socks5? ( >=net-proxy/dante-1.1.13 )
|
||||
tk? ( dev-lang/tk[threads=] )
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
libedit? ( dev-libs/libedit )
|
||||
!libedit? ( readline? ( sys-libs/readline ) )
|
||||
sys-libs/zlib
|
||||
>=app-admin/eselect-ruby-20100603
|
||||
!=dev-lang/ruby-cvs-${SLOT}*
|
||||
!<dev-ruby/rdoc-2
|
||||
!dev-ruby/rexml"
|
||||
DEPEND="${RDEPEND}"
|
||||
PDEPEND="xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
econf \
|
||||
--program-suffix="${MY_SUFFIX}" \
|
||||
--enable-shared \
|
||||
$(use_enable socks5 socks) \
|
||||
$(use_enable doc install-doc) \
|
||||
$(use_enable threads pthread) \
|
||||
--enable-ipv6 \
|
||||
$(use_enable debug) \
|
||||
$(use_with berkdb dbm) \
|
||||
$(use_with gdbm) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tk) \
|
||||
$(use_with ncurses curses) \
|
||||
${myconf} \
|
||||
--with-sitedir=/usr/$(get_libdir)/ruby/site_ruby \
|
||||
--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"
|
||||
|
||||
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']")
|
||||
keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']")
|
||||
|
||||
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 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
|
||||
}
|
@ -1,225 +0,0 @@
|
||||
# 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.2_p290.ebuild,v 1.2 2011/10/22 16:53:31 jer 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:-p0}"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
SLOT=$(get_version_component_range 1-2)
|
||||
MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
|
||||
# 1.9.2 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/${MY_P}.tar.bz2
|
||||
http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2"
|
||||
|
||||
LICENSE="|| ( Ruby GPL-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-2.5.11[ruby_targets_ruby19] )
|
||||
xemacs? ( app-xemacs/ruby-modes )"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/patches"
|
||||
|
||||
einfo "Unbundling gems..."
|
||||
rm -r \
|
||||
{bin,lib}/rake \
|
||||
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
|
||||
}
|
@ -1,226 +0,0 @@
|
||||
# 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_rc1.ebuild,v 1.2 2011/10/22 17:16:53 jer 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}"
|
||||
MY_P="${PN}-$(get_version_component_range 1-3)-rc1"
|
||||
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-2.5.11[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,55 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/crypto++-5.6.1-r2.ebuild,v 1.1 2011/12/28 07:02:02 patrick Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Crypto++ is a C++ class library of cryptographic schemes"
|
||||
HOMEPAGE="http://cryptopp.com"
|
||||
SRC_URI="mirror://sourceforge/cryptopp/cryptopp${PV//.}.zip"
|
||||
|
||||
LICENSE="cryptopp"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-fix_build_system.patch" \
|
||||
"${FILESDIR}/${P}-sunos.patch" \
|
||||
"${FILESDIR}/${P}-rijndael.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Higher optimizations cause problems.
|
||||
replace-flags -O? -O1
|
||||
filter-flags -fomit-frame-pointer
|
||||
|
||||
emake -f GNUmakefile CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" \
|
||||
LIBDIR="$(get_libdir)" || die "emake failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Ensure that all test vectors have Unix line endings.
|
||||
local file
|
||||
for file in TestVectors/*; do
|
||||
edos2unix ${file}
|
||||
done
|
||||
|
||||
if ! emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" test; then
|
||||
eerror "Crypto++ self-tests failed."
|
||||
eerror "Try to remove some optimization flags and reemerge Crypto++."
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install \
|
||||
|| die "emake install failed"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
--- rijndael.cpp 2010-08-06 18:46:22.000000000 +0200
|
||||
+++ rijndael.cpp2 2011-12-27 16:10:52.606933355 +0100
|
||||
@@ -349,7 +349,11 @@
|
||||
void Rijndael::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const
|
||||
{
|
||||
#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE) || CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE
|
||||
+#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE)
|
||||
if (HasSSE2())
|
||||
+#else
|
||||
+ if (HasAESNI())
|
||||
+#endif
|
||||
{
|
||||
Rijndael::Enc::AdvancedProcessBlocks(inBlock, xorBlock, outBlock, 16, 0);
|
||||
return;
|
@ -1,19 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Geo-IP/Geo-IP-1.28.ebuild,v 1.6 2008/02/04 02:51:46 jer Exp $
|
||||
|
||||
inherit perl-module multilib
|
||||
|
||||
DESCRIPTION="Look up country by IP Address"
|
||||
HOMEPAGE="http://www.cpan.org/modules/by-authors/id/T/TJ/TJMATHER/${P}.readme"
|
||||
SRC_URI="mirror://cpan/authors/id/T/TJ/TJMATHER/${P}.tar.gz"
|
||||
|
||||
LICENSE="|| ( Artistic GPL-2 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 hppa ia64 ppc sparc x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-libs/geoip
|
||||
dev-lang/perl"
|
||||
|
||||
myconf="${myconf} LIBS='-L/usr/$(get_libdir)'"
|
@ -1,3 +1,2 @@
|
||||
DIST Geo-IP-1.28.tar.gz 13470 RMD160 e30a3b82d92e434cbf9ef4b0a89822b6939f1833 SHA1 8d69f4359ec49e7b225059aec0972b92d5f8c170 SHA256 bede8433e200a433cc0defd198136d5d6dd0580542a92f516a707f4829db0c52
|
||||
DIST Geo-IP-1.38.tar.gz 63418 RMD160 9f467dbaa677e708dc9ba0a6c12f90eaae810de0 SHA1 6c6ff8fcaf2fdd08ea33730a9cafb0c6df2a1745 SHA256 7c4744926833a6a9e454edea3c987452e4fae1372120186c6952515ca41c6b1f
|
||||
DIST Geo-IP-1.40.tar.gz 111898 RMD160 d2048c70626920d38ab06606ee15cead460ca764 SHA1 b13a3d74edf6aad22403b065b07cdaab7fdd207f SHA256 ca48babd3e944cb1bc5cac56f618c9f94f3a329dd2716d6b49b658ae28848ab3
|
||||
|
@ -0,0 +1 @@
|
||||
DIST msgpack-python-0.1.12.tar.gz 49674 RMD160 ededbaf655314cc2df0b2c86640dd894af62a27d SHA1 2cff528c1466b903b8b13b23f96f8486d3438576 SHA256 5aa1d925a536c399a07a1f1d8f394d991ff735724e304a8cdab768f216f93ee6
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
</pkgmetadata>
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/msgpack/msgpack-0.1.12.ebuild,v 1.1 2011/12/28 03:26:16 patrick Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2:2.5 3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="2.4"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
|
||||
|
||||
inherit distutils
|
||||
|
||||
MY_PN="${PN}-python"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="MessagePack (de)serializer for Python"
|
||||
HOMEPAGE="http://msgpack.org http://pypi.python.org/pypi/msgpack-python/"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
|
||||
preparation() {
|
||||
if [[ "${PYTHON_ABI}" == 3.* ]]; then
|
||||
rm -rf test || die
|
||||
mv test3 test || die
|
||||
else
|
||||
rm -rf test3 || die
|
||||
fi
|
||||
}
|
||||
python_execute_function -s preparation
|
||||
}
|
||||
|
||||
src_test() {
|
||||
distutils_src_test -P -w test;
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/deprecated/deprecated-2.0.1-r2.ebuild,v 1.1 2011/12/28 08:39:17 graaff Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
USE_RUBY="ruby18 ruby19 jruby"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Ruby library for handling deprecated code"
|
||||
HOMEPAGE="http://rubyforge.org/projects/deprecated"
|
||||
SRC_URI="mirror://rubyforge/deprecated/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -Ilib test/deprecated.rb || die "test failed"
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/gruff/gruff-0.3.6-r2.ebuild,v 1.1 2011/12/28 08:36:49 graaff Exp $
|
||||
|
||||
EAPI=2
|
||||
USE_RUBY="ruby18 ruby19"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC="docs"
|
||||
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
RUBY_FAKEGEM_EXTRADOC="History.txt Manifest.txt README.txt"
|
||||
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="assets rails_generators"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
ruby_add_rdepend '>=dev-ruby/rmagick-2'
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
dev-ruby/hoe
|
||||
virtual/ruby-test-unit
|
||||
)
|
||||
doc? ( dev-ruby/hoe )"
|
||||
|
||||
DESCRIPTION="RMagick Implementation for JRuby"
|
||||
HOMEPAGE="http://rubyforge.org/projects/gruff/"
|
||||
SRC_URI="mirror://rubyforge/${PN}/${P}.tgz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~x86 ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
RUBY_PATCHES=(
|
||||
${P}-sort-filenames.patch
|
||||
${P}-fix-tests.patch
|
||||
${P}-spider.patch
|
||||
)
|
||||
|
||||
# imagemagick is an indirect dependency through rmagick. However, for
|
||||
# gruff to work properly imagemagick needs to be compiled with
|
||||
# truetype support and this cannot be expressed in the rmagick
|
||||
# dependency. Test also require imagemagick to have jpeg support.
|
||||
DEPEND="${DEPEND} test? ( media-gfx/imagemagick[jpeg,truetype] )"
|
||||
RDEPEND="${RDEPEND} media-gfx/imagemagick[truetype]"
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mechanize/mechanize-1.0.0-r1.ebuild,v 1.1 2011/12/28 08:35:41 graaff Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
USE_RUBY="ruby18 ruby19 jruby"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC="redocs"
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc EXAMPLES.rdoc FAQ.rdoc GUIDE.rdoc README.rdoc"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Ruby library used for automating interaction with websites."
|
||||
HOMEPAGE="http://mechanize.rubyforge.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_bdepend ">=dev-ruby/hoe-2.3.3"
|
||||
ruby_add_rdepend ">=dev-ruby/nokogiri-1.4.4-r1"
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
docinto examples
|
||||
dodoc examples/* || die
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST method_source-0.6.5.gem 9216 RMD160 a50073f0eff4ba2b15c2d054a3504d91bc8b4c92 SHA1 3ef15705a158320de42fd91c7c9b8245c262b2e0 SHA256 c29bf3173ad848e6e1768d43232f12a3a95a287878b1ac23d3b99c5e75dc7d2b
|
||||
DIST method_source-0.6.6.gem 9728 RMD160 4b61b1372c335ed9f064718c4859aaec54566668 SHA1 faa5e7b48b0c8215eaf104cce33206ed86f934f9 SHA256 88163260208af7c0ffee227f4ce593fc3b2e8c52fd47e041d2a0d5c5bdcb4c63
|
||||
DIST method_source-0.6.7.gem 9728 RMD160 de8bfb506aa9715e398aa45bacf411b3b5b1eac3 SHA1 893b52ea4e2de8495c4d01d2c7d948dfe4092152 SHA256 a756ec0a61dbedc95048c8acff641d8cb80075044fb67d2d9754a039bc8c072d
|
||||
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/method_source/method_source-0.6.5.ebuild,v 1.1 2011/09/10 07:38:23 graaff Exp $
|
||||
|
||||
EAPI=4
|
||||
# jruby crashes on parsing the metadata.
|
||||
USE_RUBY="ruby18 ree18"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="none"
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.markdown"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Retrieve the source code for a method."
|
||||
HOMEPAGE="http://github.com/banister/method_source"
|
||||
IUSE=""
|
||||
SLOT="0"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
ruby_add_bdepend "test? ( >=dev-ruby/bacon-1.1.0 >=dev-ruby/open4-1.0.1 )"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ruby_parser-2.0.5"
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -S bacon -k test/test.rb || die "Tests failed."
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/method_source/method_source-0.6.6.ebuild,v 1.1 2011/10/16 08:44:34 graaff Exp $
|
||||
|
||||
EAPI=4
|
||||
# jruby crashes on parsing the metadata.
|
||||
USE_RUBY="ruby18 ree18"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="none"
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.markdown"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="method_source.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Retrieve the source code for a method."
|
||||
HOMEPAGE="http://github.com/banister/method_source"
|
||||
IUSE=""
|
||||
SLOT="0"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
ruby_add_bdepend "test? ( >=dev-ruby/bacon-1.1.0 >=dev-ruby/open4-1.0.1 )"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ruby_parser-2.0.5"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Newer versions of ruby_parser are compatible.
|
||||
sed -i -e 's/~> 2.0.5/>= 2.0.5/' method_source.gemspec || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -S bacon -k test/test.rb || die "Tests failed."
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mkrf/mkrf-0.2.3-r2.ebuild,v 1.1 2011/12/28 08:32:16 graaff Exp $
|
||||
|
||||
EAPI="2"
|
||||
USE_RUBY="ruby18"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README"
|
||||
RUBY_FAKEGEM_DOCDIR="html"
|
||||
|
||||
# The unit tests (test:units) fail so skip them for now, since we have
|
||||
# had this version in our tree for a long time. No bug tracker to
|
||||
# report this problem. :-(
|
||||
RUBY_FAKEGEM_TASK_TEST="test:integration"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="mkrf is a library for generating Rakefiles, primarily intended for building C extentions for Ruby."
|
||||
HOMEPAGE="http://mkrf.rubyforge.org/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
ruby_add_bdepend "test? ( virtual/ruby-test-unit )"
|
||||
|
||||
DEPEND="${DEPEND} test? ( virtual/libiconv dev-libs/libxml2 )"
|
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/narray/narray-0.6.0.1-r1.ebuild,v 1.1 2011/12/28 08:31:08 graaff Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
# jruby → native extension
|
||||
USE_RUBY="ruby18 ree18 ruby19"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="ChangeLog README.en README.ja SPEC.en SPEC.ja"
|
||||
|
||||
RUBY_FAKEGEM_VERSION="${PV/_p/.}"
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
DESCRIPTION="Numerical N-dimensional Array class"
|
||||
HOMEPAGE="http://www.ir.isas.ac.jp/~masa/ruby/index-e.html"
|
||||
SRC_URI="mirror://rubyforge/${PN}/${P/_/}.tar.gz"
|
||||
|
||||
LICENSE="Ruby"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
all_ruby_prepare() {
|
||||
# the tests aren't really written to be a testsuite, so the
|
||||
# failure cases will literally fail; ignore all of those ad
|
||||
# instead expect that the rest won't fail.
|
||||
sed -i -e '/[fF]ollowing will fail/,$ s:^:#:' \
|
||||
test/*.rb || die "sed failed"
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
${RUBY} extconf.rb || die "extconf.rb failed"
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
emake CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "emake failed"
|
||||
cp -l ${PN}$(get_modname) lib || die "copy of ${PN}$(get_modname) failed"
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
for unit in test/*; do
|
||||
# Skip over the FFTW test because it needs a package we don't
|
||||
# have in tree.
|
||||
[[ ${unit} == test/testfftw.rb ]] && continue
|
||||
|
||||
${RUBY} -Ilib ${unit} || die "test ${unit} failed"
|
||||
done
|
||||
}
|
@ -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/dev-ruby/rspec-core/rspec-core-2.6.4-r1.ebuild,v 1.1 2011/12/28 08:22:50 graaff Exp $
|
||||
|
||||
EAPI=2
|
||||
USE_RUBY="ruby18 ree18 ruby19 jruby"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="none"
|
||||
RUBY_FAKEGEM_TASK_DOC="none"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="http://rspec.rubyforge.org/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${RDEPEND} !<dev-ruby/rspec-1.3.1-r1"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/nokogiri
|
||||
dev-ruby/syntax
|
||||
>=dev-ruby/zentest-4.4.1
|
||||
dev-ruby/rspec-expectations:2
|
||||
dev-ruby/rspec-mocks:2
|
||||
)"
|
||||
|
||||
# >=dev-ruby/cucumber-0.5.3
|
||||
# >=dev-ruby/autotest-4.2.9 -> zentest-4.4.1
|
||||
# dev-ruby/aruba"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Remove the Gemfile to avoid running through 'bundle exec'
|
||||
rm Gemfile || die
|
||||
|
||||
# Also clean the /usr/lib/rubyee path (which is our own invention).
|
||||
sed -i -e 's#lib\\d\*\\/ruby\\/#lib\\d*\\/ruby(ee|)\\/#' lib/rspec/core/configuration.rb || die
|
||||
|
||||
# Remove jruby-specific comparison documents since for us the normal
|
||||
# version passes.
|
||||
cp spec/rspec/core/formatters/html_formatted-1.8.7.html spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html|| die
|
||||
cp spec/rspec/core/formatters/text_mate_formatted-1.8.7.html spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html|| die
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use doc ; then
|
||||
RUBYLIB="${S}/lib" rake rdoc || die "Unable to create documentation."
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
case ${RUBY} in
|
||||
*jruby)
|
||||
# Run jruby's tests with the installed rspec script since
|
||||
# otherwise files can't be found for some unknown reason.
|
||||
RUBYLIB=${S}/lib ${RUBY} -S rspec --color spec || die "Tests failed."
|
||||
;;
|
||||
*)
|
||||
PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -S rake spec || die "Tests failed."
|
||||
;;
|
||||
esac
|
||||
|
||||
# There are features but it seems as if these only work against a
|
||||
# fully installed version.
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-expectations/rspec-expectations-2.6.0-r1.ebuild,v 1.1 2011/12/28 08:21:30 graaff Exp $
|
||||
|
||||
EAPI=2
|
||||
USE_RUBY="ruby18 ree18 ruby19 jruby"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="none"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="http://rspec.rubyforge.org/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/diff-lcs-1.1.2"
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/rspec-core-2.4.0:2
|
||||
dev-ruby/rspec-mocks:2
|
||||
)"
|
||||
|
||||
ruby_add_bdepend "doc? ( dev-ruby/rspec-core:2 )"
|
||||
|
||||
# Not clear yet to what extend we need those (now)
|
||||
# >=dev-ruby/cucumber-0.6.2
|
||||
# >=dev-ruby/aruba-0.1.1"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Remove the Gemfile to avoid running through 'bundle exec'
|
||||
rm Gemfile || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -S rake spec
|
||||
|
||||
# There are features but they require aruba which we don't have yet.
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-mocks/rspec-mocks-2.6.0-r1.ebuild,v 1.1 2011/12/28 08:20:13 graaff Exp $
|
||||
|
||||
EAPI=2
|
||||
USE_RUBY="ruby18 ree18 ruby19 jruby"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="none"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC="none"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="http://rspec.rubyforge.org/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
# cucumber and rspec-core are loaded unconditionally in the Rakefile,
|
||||
# so we also need to require them for USE=doc.
|
||||
ruby_add_bdepend "test? (
|
||||
>=dev-ruby/rspec-core-2.6.0:2
|
||||
dev-ruby/rspec-expectations:2
|
||||
)
|
||||
doc? ( dev-ruby/rspec-core:2 )"
|
||||
|
||||
# Not clear yet to what extend we need those (now)
|
||||
# >=dev-ruby/cucumber-0.6.2
|
||||
# >=dev-ruby/aruba-0.1.1"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Don't set up bundler: it doesn't understand our setup.
|
||||
sed -i -e '/[Bb]undler/d' Rakefile || die
|
||||
|
||||
# Remove the Gemfile to avoid running through 'bundle exec'
|
||||
rm Gemfile || die
|
||||
}
|
||||
|
||||
all_ruby_compile() {
|
||||
if use doc ; then
|
||||
RUBYLIB="${S}/lib" rake rdoc || die
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
case ${RUBY} in
|
||||
*jruby)
|
||||
# This particular failure is reported to be fixed in jruby 1.6.
|
||||
ewarn "Tests disabled because they crash jruby."
|
||||
;;
|
||||
*)
|
||||
PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -S rake spec || die
|
||||
;;
|
||||
esac
|
||||
|
||||
# There are features but they require aruba which we don't have yet.
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec/rspec-2.6.0-r1.ebuild,v 1.1 2011/12/28 08:24:41 graaff Exp $
|
||||
|
||||
EAPI=2
|
||||
USE_RUBY="ruby18 ruby19 ree18 jruby"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.markdown"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
|
||||
HOMEPAGE="http://rspec.rubyforge.org/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
SUBVERSION="$(get_version_component_range 1-2)"
|
||||
|
||||
ruby_add_rdepend "
|
||||
=dev-ruby/rspec-core-${SUBVERSION}*
|
||||
=dev-ruby/rspec-expectations-${SUBVERSION}*
|
||||
=dev-ruby/rspec-mocks-${SUBVERSION}*"
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sary-ruby/sary-ruby-1.2.0-r3.ebuild,v 1.1 2011/12/28 08:17:26 graaff Exp $
|
||||
|
||||
EAPI="2"
|
||||
# jruby: mkmf issue
|
||||
USE_RUBY="ruby18 ree18 ruby19"
|
||||
inherit ruby-ng
|
||||
|
||||
DESCRIPTION="Ruby Binding of Sary"
|
||||
HOMEPAGE="http://sary.sourceforge.net/"
|
||||
SRC_URI="http://sary.sourceforge.net/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-text/sary-1.2.0"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/pkgconfig"
|
||||
|
||||
RUBY_PATCHES=(
|
||||
"${P}-gentoo.patch"
|
||||
"${P}-ruby19.patch"
|
||||
)
|
||||
|
||||
each_ruby_configure() {
|
||||
${RUBY} extconf.rb || die "extconf.rb failed"
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
# We have injected --no-undefined in Ruby as a safety precaution
|
||||
# against broken ebuilds, but the Ruby-Gnome bindings
|
||||
# unfortunately rely on the lazy load of other extensions; see bug
|
||||
# #320545.
|
||||
find . -name Makefile -print0 | xargs -0 \
|
||||
sed -i -e 's:-Wl,--no-undefined ::' || die "--no-undefined removal failed"
|
||||
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
emake DESTDIR="${D}" install || die "make install failed"
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
dodoc ChangeLog *.rd || die
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/tmail/tmail-1.2.7.1-r3.ebuild,v 1.1 2011/12/28 08:15:56 graaff Exp $
|
||||
|
||||
EAPI=2
|
||||
USE_RUBY="ruby18 ree18 ruby19 jruby"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC="doc"
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
RUBY_FAKEGEM_EXTRADOC="README CHANGES NOTES"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="An email handling library"
|
||||
HOMEPAGE="http://rubyforge.org/projects/tmail/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug"
|
||||
|
||||
# Tests seem to be broken with the new encoding handling from Ruby,
|
||||
# need to be verified twice; code seems to work anyway.
|
||||
RESTRICT=test
|
||||
|
||||
# Once it's added to portage, this should be added, right now it's
|
||||
# bundled.
|
||||
# ruby_add_rdepend dev-ruby/rchardet
|
||||
|
||||
ruby_add_bdepend "
|
||||
dev-ruby/racc
|
||||
test? ( >=dev-ruby/mocha-0.9.5 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Provide file that is no longer distributed but still needed
|
||||
mkdir meta || die "Failed to mkdir meta."
|
||||
echo "tmail" > meta/unixname || die "Failed to create unixname file."
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
case ${RUBY} in
|
||||
*ruby18 | *rubyee18)
|
||||
${RUBY} -Cext/tmailscanner/tmail extconf.rb || die "extconf failed"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
emake -C lib/tmail $(use debug && echo DEBUG=true) parser.rb || die "emake failed"
|
||||
|
||||
case ${RUBY} in
|
||||
*ruby18 | *rubyee18)
|
||||
emake -Cext/tmailscanner/tmail \
|
||||
CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "emake extension failed"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
# We cannot use the recursive install because there are
|
||||
# racc source files and a makefile.
|
||||
find lib -name '*.rb' | while read file; do
|
||||
ruby_fakegem_newins $file $file
|
||||
done
|
||||
|
||||
[[ -f ext/tmailscanner/tmail/tmailscanner.so ]] && \
|
||||
ruby_fakegem_newins ext/tmailscanner/tmail/tmailscanner.so lib/tmail/tmailscanner.so
|
||||
|
||||
ruby_fakegem_install_gemspec
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST tzinfo-0.3.27.tar.gz 303590 RMD160 a24ee1626aecdd386b93ac6a7aa676bc7d5f55ff SHA1 c55be7c97a504cad333f3de32a181956bfb26010 SHA256 2d4c06204957a77cd30f084c59e3b1f3dd348ee82814ad9d5f56a419e6c9a313
|
||||
DIST tzinfo-0.3.30.tar.gz 295064 RMD160 2d9bc13cedc31fe2dc456c4f5c3d2cc9a5ad35f5 SHA1 c8e1a5d466596fca07f947ab83365976cd87bfc5 SHA256 45069c6ebba94abcf8e982646eae91f1dc396251038931796d7e3394c2fea847
|
||||
DIST tzinfo-0.3.31.tar.gz 296665 RMD160 b855dff1b394681f91e70bbfd5ea94c5a214501a SHA1 37919023b2cde4068c6adb239b2cc4eb769777ed SHA256 a57118a631a7d90f978aa5d2b3b11e37385cfc5a17b81583ce9275322f1241a7
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue