Sync with portage [Fri Mar 22 21:04:09 MSK 2013].

mhiretskiy
root 11 years ago
parent 2fa5cd2392
commit 028fa263c6

@ -1,13 +1,13 @@
# Copyright 1999-2010 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-20091230.ebuild,v 1.8 2010/02/13 16:35:07 armin76 Exp $
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-20091230.ebuild,v 1.9 2013/03/22 03:09:50 vapier Exp $
EAPI="1"
inherit toolchain-funcs
DESCRIPTION="Eselect module for management of multiple Python versions"
HOMEPAGE="http://www.gentoo.org"
HOMEPAGE="http://www.gentoo.org/proj/en/Python/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"

@ -1,13 +1,13 @@
# Copyright 1999-2010 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-20100321.ebuild,v 1.6 2010/06/19 17:06:00 armin76 Exp $
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-20100321.ebuild,v 1.7 2013/03/22 03:09:50 vapier Exp $
EAPI="1"
inherit toolchain-funcs
DESCRIPTION="Eselect module for management of multiple Python versions"
HOMEPAGE="http://www.gentoo.org"
HOMEPAGE="http://www.gentoo.org/proj/en/Python/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-20111108.ebuild,v 1.2 2012/04/26 14:53:20 aballier Exp $
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-20111108.ebuild,v 1.3 2013/03/22 03:09:50 vapier Exp $
# Keep the EAPI low here because everything else depends on it.
# We want to make upgrading simpler.
@ -16,7 +16,7 @@ else
fi
DESCRIPTION="Eselect module for management of multiple Python versions"
HOMEPAGE="http://www.gentoo.org"
HOMEPAGE="http://www.gentoo.org/proj/en/Python/"
LICENSE="GPL-2"
SLOT="0"

@ -1,22 +1,20 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-99999999.ebuild,v 1.7 2012/04/26 14:53:20 aballier Exp $
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-99999999.ebuild,v 1.9 2013/03/22 03:25:53 vapier Exp $
# Keep the EAPI low here because everything else depends on it.
# We want to make upgrading simpler.
ESVN_PROJECT="eselect-python"
ESVN_REPO_URI="https://overlays.gentoo.org/svn/proj/python/projects/eselect-python/trunk"
if [[ ${PV} == "99999999" ]] ; then
inherit autotools subversion
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/${PN}.git"
inherit autotools git-2
else
SRC_URI="mirror://gentoo/${P}.tar.bz2"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
fi
DESCRIPTION="Eselect module for management of multiple Python versions"
HOMEPAGE="http://www.gentoo.org"
HOMEPAGE="http://www.gentoo.org/proj/en/Python/"
LICENSE="GPL-2"
SLOT="0"
@ -31,9 +29,13 @@ else
fi
src_unpack() {
unpack ${A}
cd "${S}"
[[ -x configure ]] || eautoreconf
if [[ ${PV} == "99999999" ]] ; then
git-2_src_unpack
cd "${S}"
eautoreconf
else
unpack ${A}
fi
}
src_install() {
@ -41,16 +43,10 @@ src_install() {
emake DESTDIR="${D}" install || die
}
pkg_preinst() {
if has_version "<${CATEGORY}/${PN}-20090804" || ! has_version "${CATEGORY}/${PN}"; then
run_eselect_python_update="1"
fi
}
pkg_postinst() {
if [[ "${run_eselect_python_update}" == "1" ]]; then
ebegin "Running \`eselect python update\`"
eselect python update --ignore 3.0 --ignore 3.1 --ignore 3.2 > /dev/null
eend "$?"
fi
local ret=0
ebegin "Running 'eselect python update'"
eselect python update --python2 --if-unset || ret=1
eselect python update --python3 --if-unset || ret=1
eend ${ret}
}

@ -0,0 +1,30 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
if [ "${SVCNAME}" = "puppetmaster" ] ; then
PUPPETMASTER_PID="master"
else
PUPPETMASTER_PID="${SVCNAME#*.}"
fi
PUPPETMASTER_PID_DIR="${PUPPETMASTER_PID_DIR:-/var/run/puppet}"
pidfile="${PUPPETMASTER_PID_DIR}/${PUPPETMASTER_PID}.pid"
PUPPET_LOG_DIR="/var/log/puppet"
command_args="master --pidfile ${pidfile} ${PUPPETMASTER_EXTRA_OPTS}"
if [ -n "${PUPPETMASTER_PORT}" ] ; then
command_args="${command_args} --masterport ${PUPPETMASTER_PORT}"
fi
command="/usr/bin/puppet"
depend() {
need localmount
use dns logger slapd netmount nfsmount
}
start_pre() {
checkpath --directory --owner puppet:puppet "${PUPPETMASTER_PID_DIR}"
checkpath --directory --owner puppet:puppet --mode 750 ${PUPPET_LOG_DIR}
checkpath --file --owner puppet:puppet --mode 640 "${PUPPET_LOG_DIR}/masterhttp.log"
}

@ -0,0 +1,158 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/puppet/puppet-3.1.1-r1.ebuild,v 1.1 2013/03/22 13:24:34 flameeyes Exp $
EAPI="4"
USE_RUBY="ruby18 ruby19"
inherit elisp-common xemacs-elisp-common eutils user ruby-ng versionator
DESCRIPTION="A system automation and configuration management software"
HOMEPAGE="http://puppetlabs.com/"
SRC_URI="http://www.puppetlabs.com/downloads/puppet/${P}.tar.gz"
LICENSE="Apache-2.0 GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
IUSE="augeas diff doc emacs ldap minimal rrdtool selinux shadow sqlite3 vim-syntax xemacs"
ruby_add_rdepend "
dev-ruby/hiera
>=dev-ruby/facter-1.6.2
augeas? ( dev-ruby/ruby-augeas )
diff? ( dev-ruby/diff-lcs )
doc? ( dev-ruby/rdoc )
ldap? ( dev-ruby/ruby-ldap )
shadow? ( dev-ruby/ruby-shadow )
sqlite3? ( dev-ruby/sqlite3 )
virtual/ruby-ssl"
DEPEND="${DEPEND}
ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] )
emacs? ( virtual/emacs )
xemacs? ( app-editors/xemacs )"
RDEPEND="${RDEPEND}
ruby_targets_ruby19? ( dev-lang/ruby:1.9[yaml] )
rrdtool? ( >=net-analyzer/rrdtool-1.2.23[ruby] )
selinux? (
sys-libs/libselinux[ruby]
sec-policy/selinux-puppet
)
vim-syntax? ( >=app-vim/puppet-syntax-3.0.1 )
>=app-portage/eix-0.18.0"
SITEFILE="50${PN}-mode-gentoo.el"
pkg_setup() {
enewgroup puppet
enewuser puppet -1 -1 /var/lib/puppet puppet
}
all_ruby_compile() {
if use emacs ; then
elisp-compile ext/emacs/puppet-mode.el
fi
if use xemacs ; then
# Create a separate version for xemacs to be able to install
# emacs and xemacs in parallel.
mkdir ext/xemacs
cp ext/emacs/* ext/xemacs/
xemacs-elisp-compile ext/xemacs/puppet-mode.el
fi
}
each_ruby_install() {
${RUBY} install.rb --destdir="${D}" install || die
}
all_ruby_install() {
newinitd "${FILESDIR}"/puppet.init-r1 puppet
# Initial configuration files
insinto /etc/puppet
# Location of log and data files
keepdir /var/log/puppet
fowners -R puppet:puppet /var/log/puppet
if use minimal ; then
rm "${ED}/etc/puppet/auth.conf"
else
newinitd "${FILESDIR}"/puppetmaster.init-r1 puppetmaster
newconfd "${FILESDIR}"/puppetmaster.confd puppetmaster
insinto /etc/puppet
keepdir /etc/puppet/manifests
keepdir /etc/puppet/modules
keepdir /var/lib/puppet/ssl
keepdir /var/lib/puppet/facts
keepdir /var/lib/puppet/files
fowners -R puppet:puppet /var/lib/puppet
fi
if use emacs ; then
elisp-install ${PN} ext/emacs/puppet-mode.el*
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
if use xemacs ; then
xemacs-elisp-install ${PN} ext/xemacs/puppet-mode.el*
xemacs-elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
if use ldap ; then
insinto /etc/openldap/schema; doins ext/ldap/puppet.schema
fi
# ext and examples files
for f in $(find ext examples -type f) ; do
docinto "$(dirname ${f})"; dodoc "${f}"
done
}
pkg_postinst() {
elog
elog "Please, *don't* include the --ask option in EMERGE_EXTRA_OPTS as this could"
elog "cause puppet to hang while installing packages."
elog
elog "Puppet uses eix to get information about currently installed packages,"
elog "so please keep the eix metadata cache updated so puppet is able to properly"
elog "handle package installations."
elog
elog "Currently puppet only supports adding and removing services to the default"
elog "runlevel, if you want to add/remove a service from another runlevel you may"
elog "do so using symlinking."
elog
if [ \
-f "${EPREFIX}/etc/puppet/puppetd.conf" -o \
-f "${EPREFIX}/etc/puppet/puppetmaster.conf" -o \
-f "${EPREFIX}/etc/puppet/puppetca.conf" \
] ; then
elog
elog "Please remove deprecated config files."
elog " /etc/puppet/puppetca.conf"
elog " /etc/puppet/puppetd.conf"
elog " /etc/puppet/puppetmasterd.conf"
elog
fi
if [ "$(get_major_version $REPLACING_VERSIONS)" = "2" ]; then
elog
elog "If you're upgrading from 2.x then we strongly suggest you to read:"
elog "http://docs.puppetlabs.com/guides/upgrading.html"
elog
fi
use emacs && elisp-site-regen
use xemacs && xemacs-elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
use xemacs && xemacs-elisp-site-regen
}

@ -0,0 +1,11 @@
--- libipulog/Makefile.in.orig 2013-03-20 19:18:05.000692936 +0400
+++ libipulog/Makefile.in 2013-03-20 19:18:12.987692835 +0400
@@ -1,7 +1,7 @@
#
include @top_srcdir@/Rules.make
-CFLAGS+=-Iinclude -I/usr/src/linux/include
+CFLAGS+=-Iinclude
libipulog.a: libipulog.o
$(LD) -i $< -o $@

@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/ulogd-1.23-r1.ebuild,v 1.9 2011/07/02 10:27:29 flameeyes Exp $
# $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/ulogd-1.23-r1.ebuild,v 1.10 2013/03/21 09:07:11 pinkbyte Exp $
inherit eutils flag-o-matic
@ -25,6 +25,9 @@ src_unpack() {
epatch "${FILESDIR}/${P}-gcc41.patch"
EPATCH_OPTS="-F3" \
epatch "${WORKDIR}/${PN}-glsa-200701.patch"
# bug #285376
epatch "${FILESDIR}/${P}-fix-include-in-libipulog-Makefile.patch"
}
src_compile() {

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/ulogd-1.24-r2.ebuild,v 1.6 2012/05/31 03:00:39 zmedico Exp $
# $Header: /var/cvsroot/gentoo-x86/app-admin/ulogd/ulogd-1.24-r2.ebuild,v 1.7 2013/03/21 09:07:11 pinkbyte Exp $
EAPI="1"
@ -48,6 +48,9 @@ src_unpack() {
sed -i -e 's/$(LD)/$(CC) -nostartfiles/' $f || die "failed to update $f"
done
# bug #285376
epatch "${FILESDIR}/${PN}-1.23-fix-include-in-libipulog-Makefile.patch"
eautoconf
}

@ -2,3 +2,4 @@ DIST phoronix-test-suite-2.8.1.tar.gz 465548 SHA256 395a21147c735b8e8b44294d9d54
DIST phoronix-test-suite-3.2.1.tar.gz 399167 SHA256 b5c8d35ece50450e5b50e67d3f6bd67cb41821d5e181551a514344afa9b25962 SHA512 2f96e81212d920466ca1edb6f9f43ddc60b68519d62f6441c8c163b769c7bb87110eee47ee3370e010d0868a0fc23d01bdbed8c3a51e8f17d87b2e773f12e002 WHIRLPOOL 13f95c22c01350362b6cad71c411eb0f5a553fa897dc0f52c7ff00f9da824d27ec3430f0901204e2f5ec3fb963351f6e3045512f3cf1fac5ec1decab52e8062d
DIST phoronix-test-suite-3.8.0.tar.gz 471257 SHA256 951ed041dcf06178b4eb92535b4a6d5c97d62415c85af0feb04a0db3cbb342fb SHA512 74c55145d9fd87c0463307c43f23dee5432193699cb665046b9ccc5c711cef89f9967ca1fa4c6ab236424621e14926e6b7b0e5692829d9efadb8fe3f722713dd WHIRLPOOL c2b94cfaf2b81ae5ec581f1b542c59cc38f37ea5e8aec220fc3aa762ba9e6ca0462290c8293365942d8f37a3262fc812965565778d368ee9c8ab2fc4f172c5da
DIST phoronix-test-suite-4.0.1.tar.gz 492587 SHA256 2dd463dbaad8763b73170e94f4ecd3c9b9578ad5d3a67ca82855ab0509a5c90a SHA512 4f56edde1bf097d5f04edd5c7576df0403859e6a9c0b9d034381bb2c4a7a40ccd5e465af45ec523ebc5568052147f4770fdf449ae084c000fd4de6597005a4a7 WHIRLPOOL 7ce3f91d9f7282b4d158c81baac4e3e2794bdbdc33169d4741659169fcd4ba1b85784e365e9e4d9b106a541ee4f3a9eb44661c4fa55e973fe9ced6bc78dfa70c
DIST phoronix-test-suite-4.2.0.tar.gz 499461 SHA256 48ee8ecf73702756c6787f686cf217d5c0ae216b7944b013bc86ab95e9c11912 SHA512 7f087b05738817f597cf4578fee93ca740ae5756ab150c48f141aade0157d63d0db941ab731b24977695df7d0a6c11f9cad20fd6539a3e7818c6d4f33cbe669e WHIRLPOOL 9edff49beebc30fd42208c909cc6ff6e08d84eb5cb8aea681715858fb178b0b16392d638232862d1f7a101134d9403c2fd0e00e3c95bb42098ccb55c9333a64d

@ -0,0 +1,110 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/phoronix-test-suite/phoronix-test-suite-4.2.0.ebuild,v 1.1 2013/03/22 04:32:34 patrick Exp $
EAPI=4
inherit eutils bash-completion
DESCRIPTION="Phoronix's comprehensive, cross-platform testing and benchmark suite"
HOMEPAGE="http://www.phoronix-test-suite.com"
SRC_URI="http://www.phoronix-test-suite.com/download.php?file=${P} -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
# php 5.3 doesn't have pcre and reflection useflags anymore
RDEPEND="dev-lang/php[cli,curl,gd,json,posix,pcntl,truetype,zip]
dev-php/pecl-ps"
S="${WORKDIR}/${PN}"
src_prepare() {
sed -i -e "s,export PTS_DIR=\`pwd\`,export PTS_DIR=\"/usr/share/${PN}\"," \
phoronix-test-suite
}
src_configure() {
:
}
src_compile() {
:
}
src_install() {
dodir /usr/share/${PN}
insinto /usr/share/${PN}
doman documentation/man-pages/phoronix-test-suite.1
dodoc AUTHORS CHANGE-LOG
dohtml -r documentation/
doicon pts-core/static/images/phoronix-test-suite.png
doicon pts-core/static/images/openbenchmarking.png
domenu pts-core/static/phoronix-test-suite.desktop
rm -f pts-core/static/phoronix-test-suite.desktop
doins -r pts-core
exeinto /usr/bin
doexe phoronix-test-suite
fperms a+x /usr/share/${PN}/pts-core/static/scripts/root-access.sh
fperms a+x /usr/share/${PN}/pts-core/external-test-dependencies/scripts/install-gentoo-packages.sh
dobashcompletion pts-core/static/bash_completion ${PN}
# Need to fix the cli-php config for downloading to work. Very naughty!
local slots
local slot
if [[ "x${PHP_TARGETS}" == "x" ]] ; then
ewarn
ewarn "PHP_TARGETS seems empty, php.ini file can't be configure."
ewarn "Make sure that PHP_TARGETS in /etc/make.conf is set."
ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\""
ewarn "for downloading to work properly."
ewarn
else
for slot in ${PHP_TARGETS}; do
slots+=" ${slot/-/.}"
done
fi
for slot in ${slots}; do
local PHP_INI_FILE="/etc/php/cli-${slot}/php.ini"
if [[ -f ${PHP_INI_FILE} ]] ; then
dodir $(dirname ${PHP_INI_FILE})
cp ${PHP_INI_FILE} "${D}${PHP_INI_FILE}"
sed -e 's|^allow_url_fopen .*|allow_url_fopen = On|g' -i "${D}${PHP_INI_FILE}"
else
if [[ "x$(eselect php show cli)" == "x${slot}" ]] ; then
ewarn
ewarn "${slot} hasn't a php.ini file."
ewarn "phoronix-test-suite needs the 'allow_url_fopen' option set to \"On\""
ewarn "for downloading to work properly."
ewarn "Check that your PHP_INI_VERSION is set during ${slot} merge"
ewarn
else
elog
elog "${slot} hasn't a php.ini file."
elog "phoronix-test-suite may need the 'allow_url_fopen' option set to \"On\""
elog "for downloading to work properly if you switch to ${slot}"
elog "Check that your PHP_INI_VERSION is set during ${slot} merge"
elog
fi
fi
done
ewarn
ewarn "If you upgrade from phoronix-test-suite-2*, you should reinstall all"
ewarn "your tests because"
ewarn " \$HOME/.phoronix-test-suite/installed-tests/\$TEST_NAME/"
ewarn "moves to"
ewarn " \$HOME/.phoronix-test-suite/installed-tests/pts/\$TEST_NAME-\$TEST_VERSION/"
ewarn "in phoronix-test-suite-3* version. The \$TEST_VERSION can be find in"
ewarn "pts-install.xml file."
ewarn
}

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild,v 1.7 2013/03/21 01:16:09 ulm Exp $
# $Header: /var/cvsroot/gentoo-x86/app-editors/emacs-vcs/emacs-vcs-24.3.9999.ebuild,v 1.8 2013/03/21 17:59:56 ulm Exp $
EAPI=5
@ -31,7 +31,7 @@ HOMEPAGE="http://www.gnu.org/software/emacs/"
LICENSE="GPL-3+ FDL-1.3+ BSD HPND MIT W3C unicode PSF-2"
SLOT="24"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE="acl alsa aqua athena dbus games gconf gif gnutls gpm gsettings gtk +gtk3 gzip-el hesiod imagemagick inotify jpeg kerberos libxml2 livecd m17n-lib motif pax_kernel png selinux sound source svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm"
IUSE="acl alsa aqua athena dbus games gconf gif gnutls gpm gsettings gtk +gtk3 gzip-el hesiod imagemagick +inotify jpeg kerberos libxml2 livecd m17n-lib motif pax_kernel png selinux sound source svg tiff toolkit-scroll-bars wide-int X Xaw3d xft +xpm"
REQUIRED_USE="?? ( aqua X )"
RDEPEND="sys-libs/ncurses

@ -30,7 +30,6 @@
<flag name='hesiod'>Enable support for <pkg>net-dns/hesiod</pkg></flag>
<flag name='imagemagick'>Use <pkg>media-gfx/imagemagick</pkg> for image
processing</flag>
<flag name='inotify'>Enable inotify filesystem monitoring support</flag>
<flag name='libxml2'>Use <pkg>dev-libs/libxml2</pkg> to parse XML instead
of the internal Lisp implementations</flag>
<flag name='pax_kernel'>Enable building under a PaX enabled kernel

@ -1,8 +1,8 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/linuxdoc-tools/linuxdoc-tools-0.9.68.ebuild,v 1.1 2013/03/20 10:09:38 pinkbyte Exp $
# $Header: /var/cvsroot/gentoo-x86/app-text/linuxdoc-tools/linuxdoc-tools-0.9.68-r1.ebuild,v 1.2 2013/03/22 07:04:38 pinkbyte Exp $
EAPI=2
EAPI=5
inherit eutils sgml-catalog toolchain-funcs
@ -14,13 +14,11 @@ LICENSE="MIT SGMLUG"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86 ~x86-fbsd"
IUSE=""
DEPEND="app-text/openjade
app-text/opensp
app-text/sgml-common
dev-texlive/texlive-fontsrecommended
>=dev-lang/perl-5.004
dev-lang/perl
sys-apps/gawk
sys-apps/groff
virtual/latex-base"
@ -36,15 +34,25 @@ src_prepare() {
"${FILESDIR}/${PN}-0.9.21-malloc.patch" \
"${FILESDIR}/${P}-compiler.patch" \
"${FILESDIR}/${P}-lex.patch"
# Wrong path for the catalog.
sed -i -e \
's,/iso-entities-8879.1986/iso-entities.cat,/sgml-iso-entities-8879.1986/catalog,' \
perl5lib/LinuxDocTools.pm || die 'sed failed'
# Fix incorrect version string in upstream tarball
sed -i -e "s/0.9.66/${PV}/" VERSION || die 'sed on VERSION failed'
epatch_user
}
src_configure() {
tc-export CC
econf --with-installed-iso-entities || die "./configure failed"
econf --with-installed-iso-entities
}
src_compile() {
emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "Compilation failed"
emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_install() {
@ -56,18 +64,14 @@ src_install() {
export SGML_CATALOG_FILES="/usr/share/sgml/sgml-iso-entities-8879.1986/catalog"
eval `perl -V:installvendorarch`
einstall \
perl5libdir="${D}${installvendorarch}" \
LINUXDOCDOC="${D}/usr/share/doc/${PF}/guide" \
|| die "Installation failed"
# Wrong path for the catalog.
sed -i -e \
's,/iso-entities-8879.1986/iso-entities.cat,/sgml-iso-entities-8879.1986/catalog,' \
/usr/share/linuxdoc-tools/LinuxDocTools.pm || die 'sed failed'
emake \
DESTDIR="${D}" \
perl5libdir="${installvendorarch}" \
LINUXDOCDOC="/usr/share/doc/${PF}/guide" \
install
insinto /usr/share/texmf/tex/latex/misc
doins "${S}"/lib/*.sty || die
doins tex/*.sty
dodoc ChangeLog README || die
dodoc ChangeLog README
}

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-0.22.2-r1.ebuild,v 1.5 2013/03/17 16:02:47 ago Exp $
# $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-0.22.2-r1.ebuild,v 1.6 2013/03/21 16:00:22 jer Exp $
EAPI=5
@ -11,7 +11,7 @@ HOMEPAGE="http://poppler.freedesktop.org/"
SRC_URI="http://poppler.freedesktop.org/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
SLOT="0/35"
IUSE="cairo cjk curl cxx debug doc +introspection +jpeg jpeg2k +lcms png qt4 tiff +utils"

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-2.4.0.ebuild,v 1.1 2013/03/20 17:30:47 ultrabug Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/mongodb-2.4.0.ebuild,v 1.2 2013/03/21 09:02:33 ultrabug Exp $
EAPI=4
SCONS_MIN_VERSION="1.2.0"
@ -26,7 +26,8 @@ RDEPEND="
dev-libs/libpcre[cxx]
dev-util/google-perftools
net-libs/libpcap
app-arch/snappy"
app-arch/snappy
ssl? ( dev-libs/openssl )"
DEPEND="${RDEPEND}
sys-libs/readline
sys-libs/ncurses"

@ -1,3 +1,4 @@
DIST pgpool-II-3.2.0.tar.gz 1599391 SHA256 2e41ce78154fc7e9e13eb34f0b60e352d6183de08c4040bea9fbdd914e3e28e0 SHA512 9c9d56bed525c3d8508cde32cd6ac8b13df6dd28366b90157c46c2900eef93fa90254de49b1b574f83fe76525f27a2e8c23d7dcec02cad566aaeff62a6b3282d WHIRLPOOL 25e8f086ea48300affe7195ffcbeee1faa8cde344a99d6caccb0041db04e8040bd2750148c1fde94342b4c544c328f9f97d0b1cf9394443cf37a0d003ace0a90
DIST pgpool-II-3.2.1.tar.gz 1605959 SHA256 015284c4d83cf8367580fb58469e20330330204d914d00df2fe9ee5a57b3055b SHA512 4b7b947e8d8bdbeabf669323f37f05b38a48a1c397b54875547e85e66e4ea9ec13c6bdbe8d5b996b96db4f85640ca0d2cbc62e74ba0fb56d989d916104a0869f WHIRLPOOL b3bff26e44bb7910e2e74e1e2ab377c9e3e868b509cc958133be26b2bc42d1437cd7292506840d0d1f137d42ebd66f751fbab6f5b47508af94ca363df9cd5722
DIST pgpool-II-3.2.2.tar.gz 1555174 SHA256 307bab80dcefdcc5c1a2a7b2f294d5734d9c258985503e550b3cbf8d1858cfb0 SHA512 e02091ab5aa336d01e3a0d314b856868452880c4f86aa92e4f73105d4e9aa0c21914e18587f06a2f67282e30e3a50ffff0c0b3825efc5f91529de06206dbdfb8 WHIRLPOOL f0dd8ac3ff2a233a1591c34379f9740d39b6ccdb07542bef530fa21413a2ccab5292f69381172b4b5078cf547827e6c15c028bd5eb03b28faf3d93b49fbd0966
DIST pgpool-II-3.2.3.tar.gz 1563129 SHA256 cb3b62957afe506e4b420bdc0b959f829d62c708fdce1a17d99a8521c586a5e5 SHA512 55748db315bb005efea173586845c0924eb1f4e5597d55a997446b6e9e01219575698b1b0d8de376e3aebc0cf497adbac19429908002f124aafee7e7bd269e01 WHIRLPOOL 0d7620d643924bb9347208abda27a15b62181756bdadea3ba823df8539f8541c6ad136f7301e8c1fd16a3a27a81e512979103e8b8202115b234ef7e4d46f1910

@ -0,0 +1,117 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/pgpool2/pgpool2-3.2.3.ebuild,v 1.1 2013/03/22 05:32:16 patrick Exp $
EAPI=4
[[ ${PV} == 9999 ]] && MY_P=${PN/2/-II} || MY_P="${PN/2/-II}-${PV}"
ECVS_SERVER="cvs.pgfoundry.org:/cvsroot/pgpool"
ECVS_MODULE="pgpool-II"
[[ ${PV} == 9999 ]] && SCM_ECLASS="cvs"
inherit base autotools ${SCM_ECLASS}
unset SCM_ECLASS
DESCRIPTION="Connection pool server for PostgreSQL"
HOMEPAGE="http://www.pgpool.net/"
[[ ${PV} == 9999 ]] || SRC_URI="http://www.pgpool.net/download.php?f=${MY_P}.tar.gz -> ${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
[[ ${PV} == 9999 ]] || \
KEYWORDS="~amd64 ~x86"
IUSE="memcached pam ssl static-libs"
RDEPEND="
dev-db/postgresql-base
memcached? ( dev-libs/libmemcached )
pam? ( sys-auth/pambase )
ssl? ( dev-libs/openssl )
"
DEPEND="${RDEPEND}
sys-devel/bison
!!dev-db/pgpool
"
AUTOTOOLS_IN_SOURCE_BUILD="1"
S=${WORKDIR}/${MY_P}
pkg_setup() {
enewgroup postgres 70
enewuser pgpool -1 -1 -1 postgres
# We need the postgres user as well so we can set the proper
# permissions on the sockets without getting into fights with
# PostgreSQL's initialization scripts.
enewuser postgres 70 /bin/bash /var/lib/postgresql postgres
}
src_prepare() {
epatch "${FILESDIR}/pgpool_run_paths.patch"
local pg_config_manual="$(pg_config --includedir)/pg_config_manual.h"
local pgsql_socket_dir=$(grep DEFAULT_PGSOCKET_DIR "${pg_config_manual}" | \
sed 's|.*\"\(.*\)\"|\1|g')
local pgpool_socket_dir="$(dirname $pgsql_socket_dir)/pgpool"
sed "s|@PGSQL_SOCKETDIR@|${pgsql_socket_dir}|g" \
-i *.conf.sample* pool.h || die
sed "s|@PGPOOL_SOCKETDIR@|${pgpool_socket_dir}|g" \
-i *.conf.sample* pool.h || die
}
src_configure() {
local myconf
use memcached && \
myconf="--with-memcached=\"${EROOT%/}/usr/include/libmemcached\""
use pam && myconf+=' --with-pam'
econf \
--disable-rpath \
--sysconfdir="${EROOT%/}/etc/${PN}" \
$(use_with ssl openssl) \
$(use_enable static-libs static) \
${myconf}
}
src_compile() {
emake
cd sql
emake
}
src_install() {
emake DESTDIR="${D}" install
cd sql
emake DESTDIR="${D}" install
cd "${S}"
# `contrib' moved to `extension' with PostgreSQL 9.1
local pgslot=$(postgresql-config show)
if [[ ${pgslot//.} > 90 ]] ; then
cd "${ED%/}$(pg_config --sharedir)"
mv contrib extension || die
cd "${S}"
fi
newinitd "${FILESDIR}/${PN}.initd" ${PN}
newconfd "${FILESDIR}/${PN}.confd" ${PN}
# Documentation
dodoc NEWS TODO doc/where_to_send_queries.{pdf,odg}
dohtml -r doc
# Examples and extras
insinto "/usr/share/${PN}"
doins doc/{pgpool_remote_start,basebackup.sh,recovery.conf.sample}
mv "${ED%/}/usr/share/${PN/2/-II}" "${ED%/}/usr/share/${PN}" || die
# One more thing: Evil la files!
find "${ED}" -name '*.la' -exec rm -f {} +
}

@ -8,11 +8,9 @@ DIST php-5.4.11.tar.bz2 11147685 SHA256 d4d095a965f015896d25321842da586076aca5fe
DIST php-5.4.12.tar.bz2 11501953 SHA256 413e5036b2784918922c14e094cbbc6f28289a3e8e559479c688ab07027ef719 SHA512 c4e87ff0d9457114f8428479e41cb69ffc4f4cc98a92fb0359e6130edb09b0af17ff344b3409f2f7850177591f288658f9a2797eac9962c9fb4f9eb58be64c21 WHIRLPOOL 1cf1153f006e1db472d435d344286cc702ab5fab6b3564d981be3406acfb7bdcd7b43ed3536581c2c1f7ea1389b04bb3c5c00814a082cc4c616fbe7b0b13eb77
DIST php-5.4.13.tar.bz2 11545777 SHA256 f80c9452f63a6d259d4edd5228be2136da98122ffb79cb1d9d6b7f9026e84f00 SHA512 477adf82fcd0ef8c4911e811da25e7d091753289f7887ee76c7f790394497bb71d5e84172d4711888f0194960b3bafc2bcbfb252842cfc4059eb0692e382d6b1 WHIRLPOOL a3a489261f343dd71b6de37c7e3aaa92f5344ca2fc34fdff1f5b08499fa719af7321f5ae6b583aab2be38d9f6c605bc54c435ca341742f1be7ea7f36bee0b6cd
DIST php-5.4.8.tar.bz2 11056057 SHA256 d02810b7949938ee7190116e7483e1a06b3fa8373d3bbc0ea65a41265afce79f SHA512 e04ee08e7d1b6f80183846206d02576ad22ea3f41e956bab970344b195f1d2267f1ff69439988cea7084c18576d7855383e48094bdb7684d43cb0f78e4a5e7b8 WHIRLPOOL 963153d85236bd105cbf11a89dd0db11e590cc292bb499abaa9271dbb47eeb124ef011af9561cb5569840d32130934c70cd8ebb4d619147892044ab8c3be09bd
DIST php-5.5.0alpha2.tar.bz2 11572909 SHA256 d618f8f570e3d29fff8f581a1e4228e9c0e3e51ecc6a295621863181822d913c SHA512 24dc24998aa8ecd29075f0c7b8f67b732e9b1aa7a36576a0b1536ff479679e8fb8c78681644be42d5ca948b20ec0a58a14c57f30c888a432daf7a0f5ab582e78 WHIRLPOOL e962d168091c65c957fb1df75cd64349a74e9cab7fc66efa2ab514d44b49bd5a7e28152c9c4e189390dfaff0925ab75583cf0c0286aa14397b8dabc1ced75848
DIST php-5.5.0alpha4.tar.bz2 11998221 SHA256 6e6000343338bda5f759c4745e0326d2495164779d13c86e7eaa43e4e0503837 SHA512 6fe1acdd5e01fb7c1c411a3abc6b2ea2fbaf894c41e3e457aebd2b0047ee9240194fa125f85bb977ddc773fd5c518216f3d40531d5ac05fadea0d0dc2be45288 WHIRLPOOL b5c5931a4cfc10d4be1be70b5042ef860262e1f40d725ceb4ba54613d8a699507cee7768f850cb78eb8ecf055d9a2f7970b30fcf9e12c5781cc89ee5c06cd93a
DIST php-5.5.0alpha6.tar.bz2 12026187 SHA256 46d233aed0d45d683a7b7f968ba0453de3756040a2594e261301ef6d731ffbb4 SHA512 5e9d871d1b2ae1399ba7f7d62f6815a36631ec56877af697e9d4b393a96f9f8305f4b7070d206917e4b4260d976f21aba24009b6ddc56aef0b343f101e1958be WHIRLPOOL abfe091020c6309decb9df45642adbebfb26cc310ed2098f5811df9d9012cb7c74c5a38d64d9c37c6d5ca27cb5dcd908e8d54df6685da890dfa37eca341f9771
DIST php-5.5.0beta1.tar.bz2 12126978 SHA256 ae3febb4e44e4d7da68bed83f7f025af69f896e6e04a7913c2ad580241b9c7fa SHA512 b2332d55663c2b645659a8db430c24c9cec4ff82d15ce57d60bcc2009a393010f1204736dcd5f0377073cf829ac20394c1ee9f7dd5ae76e9a35cbae4b1a0eae7 WHIRLPOOL 2333821915da3afda7fb17ba4947bc8011dcc7b9e95af48c3130cb81140c4d33ef2f45af0d126da595c830feb3cf72118f012fae7f1ae80b07f702dbc199cf46
DIST php-patchset-5.3-r0.tar.bz2 7368 SHA256 1a67b34a681dea33ea38f0ffc32b70a78b4c5dc1c3603d1bba31bb130d803ef7 SHA512 765b0cf56a3e63ded4ad1d1ba67567881ad06bdc2814cc07004fa338f38fd69078819c7463d2c55e00805c8f33fa925b94228bf7bc3d223acc33c6cff540024c WHIRLPOOL 59e18b33e11d968fac2a4571173121bf8141bb2f1eab62192e15bc59e351d3ab973f04343b447681d8a2adddf0844edb8a481d027bfc14c7e1fd8222169094ec
DIST php-patchset-5.3.18-r0.tar.bz2 7360 SHA256 8e7d449a4ab50dd8da241f2992fdaee012eafe4da6c66609231cff68d84c5c9f SHA512 625f456649964a959c7aa399c6c4fbeff8dd0b45372153819d42b447069e78cce99b4b6c30d89a64b211d230e17ef28e99d5e3b9055dd59e19b8103337de8d09 WHIRLPOOL cb1ae11173fa6d0a0f26a313d036f6f2109bc704531c5db76a584cc243b5f16ccff3c5e0c943196b5f13a7603e222c2f2c0eb393d754faf66fa5d54e5f627fde
DIST php-patchset-5.4-2.tar.bz2 5824 SHA256 4a47f4d31f50a244f85349486cdb3474cf315562e097ed4c116c2b9b5730ecef SHA512 3c2523458a627373da7acb93fb2cd621f50b19fe2ba1d30beb62eeaaa39045262b917cfd0b631046fec9c8027cfa99bd0426a079ab45eb172b21d25d6e085dde WHIRLPOOL fe4f015e2f0dc66cc23ef16fb5bb33117952593ae0770d4bcd37ecc1c431cbcc7874189d265696305c60b4e395e7ce902667e38203db46867304868271affdea
DIST php-patchset-5.4-r2.tar.bz2 5824 SHA256 4a47f4d31f50a244f85349486cdb3474cf315562e097ed4c116c2b9b5730ecef SHA512 3c2523458a627373da7acb93fb2cd621f50b19fe2ba1d30beb62eeaaa39045262b917cfd0b631046fec9c8027cfa99bd0426a079ab45eb172b21d25d6e085dde WHIRLPOOL fe4f015e2f0dc66cc23ef16fb5bb33117952593ae0770d4bcd37ecc1c431cbcc7874189d265696305c60b4e395e7ce902667e38203db46867304868271affdea
DIST php-patchset-5.5-r0.tar.bz2 7407 SHA256 8e7f36c6d625b5d66bc9e61ad20abbea0b58470cfac5605704c281947f9d52fd SHA512 8bac862f53a1ba21d5acc3cbe68d11b55cb75eed841e840a49ab5769cbc1595f2f487c9fabb3c1183916b2911ecefe710625aca83382f4871593cac8cbc5301a WHIRLPOOL 9d0b0a4603d46edcd5bbc98a89eb36ed5310e56f97960e1fe4283258c4d3ac2d15b93c2287e351ae2359bf661f2d131d4176e92e7d078582b4bfa1af37a40c81
DIST php-patchset-5.5-r1.tar.bz2 916 SHA256 a7543e530c2a1ceea4377560781c14012e9d0977235b324316221779bf34dc31 SHA512 9c3ae69ff17e8822e8dd75f5eb312448c89005ca3882d8fa9f948a88a05edb5ade481001e2c462f15ae73d54c8c1c3b0bc7e0f97ba379bcab1830e0c363ee374 WHIRLPOOL 98a2aa8cef8d41e9e01296e9c7cd864583092dbeb4de9868b6a4380dc02829b7c592fbee28e3e6aa5dd516fdfd865fdb229f33fe90ecbcd8cf6126f8b32062d2

@ -15,6 +15,7 @@
<flag name='ldap-sasl'>Add SASL support for the PHP LDAP extension</flag>
<flag name='mysqlnd'>Use native driver for mysql, mysqli, PDO_Mysql</flag>
<flag name='intl'>Enables the intl extension for extended internalization support</flag>
<flag name='opcache'>Enables built-in opcode cache, replacing pecl-apc et.al</flag>
<flag name='pic'>Force shared modules to build as PIC on x86 (speed tradeoff with memory usage)</flag>
<flag name='pdo'>Enable the bundled PDO extensions</flag>
<flag name='phar'>Enables the phar extension to provide phar archive support</flag>

@ -1,875 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.5.0_alpha2.ebuild,v 1.1 2013/01/01 13:44:17 olemarkus Exp $
EAPI=4
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
SUHOSIN_VERSION=""
FPM_VERSION="builtin"
EXPECTED_TEST_FAILURES=""
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
function php_get_uri ()
{
case "${1}" in
"php-pre")
echo "http://downloads.php.net/dsp/${2}"
;;
"php")
echo "http://www.php.net/distributions/${2}"
;;
"suhosin")
echo "http://download.suhosin.org/${2}"
;;
"olemarkus")
echo "http://dev.gentoo.org/~olemarkus/php/${2}"
;;
"gentoo")
echo "mirror://gentoo/${2}"
;;
*)
die "unhandled case in php_get_uri"
;;
esac
}
PHP_MV="$(get_major_version)"
SLOT="$(get_version_component_range 1-2)"
# alias, so we can handle different types of releases (finals, rcs, alphas,
# betas, ...) w/o changing the whole ebuild
PHP_PV="${PV/_rc/RC}"
PHP_PV="${PHP_PV/_alpha/alpha}"
PHP_PV="${PHP_PV/_beta/beta}"
PHP_RELEASE="php"
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
PHP_P="${PN}-${PHP_PV}"
PHP_PATCHSET_LOC="olemarkus"
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
PHP_PATCHSET="0"
PHP_PATCHSET_URI="
$(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${SLOT}-r${PHP_PATCHSET}.tar.bz2")"
PHP_FPM_INIT_VER="4"
PHP_FPM_CONF_VER="1"
if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
# in some cases we use our own suhosin patch (very recent version,
# patch conflicts, etc.)
SUHOSIN_TYPE="olemarkus"
else
SUHOSIN_TYPE="suhosin"
fi
if [[ -n ${SUHOSIN_VERSION} ]]; then
SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
fi
SRC_URI="
${PHP_SRC_URI}
${PHP_PATCHSET_URI}"
if [[ -n ${SUHOSIN_VERSION} ]]; then
SRC_URI="${SRC_URI}
suhosin? ( ${SUHOSIN_URI} )"
fi
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
HOMEPAGE="http://php.net/"
LICENSE="PHP-3"
S="${WORKDIR}/${PHP_P}"
# We can build the following SAPIs in the given order
SAPIS="embed cli cgi fpm apache2"
# Gentoo-specific, common features
IUSE="kolab"
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
IUSE="${IUSE}
${SAPIS/cli/+cli}
threads"
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
crypt +ctype curl curlwrappers debug doc
enchant exif frontbase +fileinfo +filter firebird
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
mssql mysql mysqlnd mysqli nls
oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
readline recode selinux +session sharedmem
+simplexml snmp soap sockets spell sqlite ssl
sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
+xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
# Enable suhosin if available
[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
DEPEND="
>=app-admin/eselect-php-0.6.2
>=dev-libs/libpcre-8.12[unicode]
apache2? ( www-servers/apache[threads=] )
berkdb? ( =sys-libs/db-4* )
bzip2? ( app-arch/bzip2 )
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
cjk? ( !gd? (
virtual/jpeg
media-libs/libpng
sys-libs/zlib
) )
crypt? ( >=dev-libs/libmcrypt-2.4 )
curl? ( >=net-misc/curl-7.10.5 )
enchant? ( app-text/enchant )
exif? ( !gd? (
virtual/jpeg
media-libs/libpng
sys-libs/zlib
) )
firebird? ( dev-db/firebird )
gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
gdbm? ( >=sys-libs/gdbm-1.8.0 )
gmp? ( >=dev-libs/gmp-4.1.2 )
iconv? ( virtual/libiconv )
imap? ( virtual/imap-c-client[ssl=] )
intl? ( dev-libs/icu )
iodbc? ( dev-db/libiodbc )
kerberos? ( virtual/krb5 )
kolab? ( >=net-libs/c-client-2004g-r1 )
ldap? ( >=net-nds/openldap-1.2.11 )
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
mssql? ( dev-db/freetds[mssql] )
!mysqlnd? (
mysql? ( virtual/mysql )
mysqli? ( >=virtual/mysql-4.1 )
)
nls? ( sys-devel/gettext )
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
odbc? ( >=dev-db/unixODBC-1.8.13 )
postgres? ( dev-db/postgresql-base )
qdbm? ( dev-db/qdbm )
readline? ( sys-libs/readline )
recode? ( app-text/recode )
sharedmem? ( dev-libs/mm )
simplexml? ( >=dev-libs/libxml2-2.6.8 )
snmp? ( >=net-analyzer/net-snmp-5.2 )
soap? ( >=dev-libs/libxml2-2.6.8 )
spell? ( >=app-text/aspell-0.50 )
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
ssl? ( >=dev-libs/openssl-0.9.7 )
sybase-ct? ( dev-db/freetds )
tidy? ( app-text/htmltidy )
truetype? (
=media-libs/freetype-2*
>=media-libs/t1lib-5.0.0
!gd? (
virtual/jpeg media-libs/libpng sys-libs/zlib )
)
unicode? ( dev-libs/oniguruma )
wddx? ( >=dev-libs/libxml2-2.6.8 )
xml? ( >=dev-libs/libxml2-2.6.8 )
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
xpm? (
x11-libs/libXpm
virtual/jpeg
media-libs/libpng sys-libs/zlib
)
xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
zip? ( sys-libs/zlib )
zlib? ( sys-libs/zlib )
virtual/mta
"
php="=${CATEGORY}/${PF}"
REQUIRED_USE="
truetype? ( gd )
cjk? ( gd )
exif? ( gd )
xpm? ( gd )
gd? ( zlib )
simplexml? ( xml )
soap? ( xml )
wddx? ( xml )
xmlrpc? ( || ( xml iconv ) )
xmlreader? ( xml )
xsl? ( xml )
ldap-sasl? ( ldap )
kolab? ( imap )
mhash? ( hash )
phar? ( hash )
mysqlnd? ( || (
mysql
mysqli
pdo
) )
qdbm? ( !gdbm )
readline? ( !libedit )
recode? ( !imap !mysql !mysqli )
sharedmem? ( !threads )
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
RDEPEND="${DEPEND}"
[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
RDEPEND="${RDEPEND} fpm? ( selinux? ( sec-policy/selinux-phpfpm ) )"
DEPEND="${DEPEND}
sys-devel/flex
>=sys-devel/m4-1.4.3
>=sys-devel/libtool-1.5.18"
# They are in PDEPEND because we need PHP installed first!
PDEPEND="doc? ( app-doc/php-docs )"
# No longer depend on the extension. The suhosin USE flag only installs the
# patch
#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
# Allow users to install production version if they want to
case "${PHP_INI_VERSION}" in
production|development)
;;
*)
PHP_INI_VERSION="development"
;;
esac
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
PHP_INI_FILE="php.ini"
want_apache
pkg_setup() {
depend.apache_pkg_setup
}
php_install_ini() {
local phpsapi="${1}"
# work out where we are installing the ini file
php_set_ini_dir "${phpsapi}"
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
# default to /tmp for save_path, bug #282768
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
# Set the extension dir
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
# Set the include path to point to where we want to find PEAR packages
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
dodir "${PHP_INI_DIR#${EPREFIX}}"
insinto "${PHP_INI_DIR#${EPREFIX}}"
newins "${phpinisrc}" "${PHP_INI_FILE}"
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
elog
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
# SAPI-specific handling
if [[ "${sapi}" == "apache2" ]] ; then
insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}"
newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \
"70_mod_php${PHP_MV}.conf"
fi
if [[ "${sapi}" == "fpm" ]] ; then
[[ -z ${PHP_FPM_INIT_VER} ]] && PHP_FPM_INIT_VER=3
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
einfo "Installing FPM CGI config file php-fpm.conf"
insinto "${PHP_INI_DIR#${EPREFIX}}"
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
dodir "/etc/init.d"
insinto "/etc/init.d"
newinitd "${FILESDIR}/php-fpm-r${PHP_FPM_INIT_VER}.init" "php-fpm"
# dosym "${PHP_DESTDIR#${EPREFIX}}/bin/php-fpm" "/usr/bin/php-fpm"
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
fi
# Install PHP ini files into /usr/share/php
if [[ ${SLOT} == '5.2' ]]; then
newdoc php.ini-dist php.ini-development
newdoc php.ini-recommended php.ini-production
fi
if [[ ${SLOT} == '5.3' ]]; then
dodoc php.ini-development
dodoc php.ini-production
fi
if [[ ${SLOT} == '5.4' ]]; then
dodoc php.ini-development
dodoc php.ini-production
fi
}
php_set_ini_dir() {
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
}
src_prepare() {
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
# there is no easy way to circumvent that, all php calls during
# install use -n, so no php.ini file will be used.
# As such, this is the easiest way to get around
addpredict /session_mm_cli250.sem
addpredict /session_mm_cli0.sem
# kolab support (support for imap annotations)
use kolab && epatch "${WORKDIR}/patches/opt/imap-kolab-annotations.patch"
# Change PHP branding
# Get the alpha/beta/rc version
local ver=$(get_version_component_range 3)
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
-i configure.in || die "Unable to change PHP branding"
# Apply generic PHP patches
EPATCH_SOURCE="${WORKDIR}/patches/generic" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" \
EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch
# Patch PHP to show Gentoo as the server platform
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
-i configure.in || die "Failed to fix server platform name"
# Prevent PHP from activating the Apache config,
# as we will do that ourselves
sed -i \
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
# Patch PHP to support heimdal instead of mit-krb5
if has_version "app-crypt/heimdal" ; then
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|| die "Failed to fix heimdal libname"
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|| die "Failed to fix heimdal crypt library reference"
fi
# Suhosin support
if [[ -n $SUHOSIN_VERSION ]] ; then
if use suhosin ; then
epatch "${WORKDIR}/${SUHOSIN_PATCH}"
fi
else
ewarn "Please note that this version of PHP does not yet come with a suhosin patch"
fi
#Add user patches #357637
epatch_user
#force rebuilding aclocal.m4
rm aclocal.m4
eautoreconf
if [[ ${CHOST} == *-darwin* ]] ; then
# http://bugs.php.net/bug.php?id=48795, bug #343481
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
fi
}
src_configure() {
addpredict /usr/share/snmp/mibs/.index
addpredict /var/lib/net-snmp/mib_indexes
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
# This is a global variable and should be in caps. It isn't because the
# phpconfutils eclass relies on exactly this name...
# for --with-libdir see bug #327025
my_conf="
--prefix="${PHP_DESTDIR}"
--mandir="${PHP_DESTDIR}"/man
--infodir="${PHP_DESTDIR}"/info
--libdir="${PHP_DESTDIR}"/lib
--with-libdir=$(get_libdir)
--without-pear
$(use_enable threads maintainer-zts)"
# extension USE flag shared
my_conf+="
$(use_enable bcmath bcmath )
$(use_with bzip2 bz2 "${EPREFIX}"/usr)
$(use_enable calendar calendar )
$(use_enable ctype ctype )
$(use_with curl curl "${EPREFIX}"/usr)
$(use_with curlwrappers curlwrappers "${EPREFIX}"/usr)
$(use_enable xml dom )
$(use_with enchant enchant "${EPREFIX}"/usr)
$(use_enable exif exif )
$(use_enable fileinfo fileinfo )
$(use_enable filter filter )
$(use_enable ftp ftp )
$(use_with nls gettext "${EPREFIX}"/usr)
$(use_with gmp gmp "${EPREFIX}"/usr)
$(use_enable hash hash )
$(use_with mhash mhash "${EPREFIX}"/usr)
$(use_with iconv iconv )
$(use_enable intl intl )
$(use_enable ipv6 ipv6 )
$(use_enable json json )
$(use_with kerberos kerberos "${EPREFIX}"/usr)
$(use_enable xml libxml )
$(use_with xml libxml-dir "${EPREFIX}"/usr)
$(use_enable unicode mbstring )
$(use_with crypt mcrypt "${EPREFIX}"/usr)
$(use_with mssql mssql "${EPREFIX}"/usr)
$(use_with unicode onig "${EPREFIX}"/usr)
$(use_with ssl openssl "${EPREFIX}"/usr)
$(use_with ssl openssl-dir "${EPREFIX}"/usr)
$(use_enable pcntl pcntl )
$(use_enable phar phar )
$(use_enable pdo pdo )
$(use_with postgres pgsql "${EPREFIX}"/usr)
$(use_enable posix posix )
$(use_with spell pspell "${EPREFIX}"/usr)
$(use_with recode recode "${EPREFIX}"/usr)
$(use_enable simplexml simplexml )
$(use_enable sharedmem shmop )
$(use_with snmp snmp "${EPREFIX}"/usr)
$(use_enable soap soap )
$(use_enable sockets sockets )
$(use_with sqlite sqlite3 "${EPREFIX}"/usr)
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr)
$(use_enable sysvipc sysvmsg )
$(use_enable sysvipc sysvsem )
$(use_enable sysvipc sysvshm )
$(use_with tidy tidy "${EPREFIX}"/usr)
$(use_enable tokenizer tokenizer )
$(use_enable wddx wddx )
$(use_enable xml xml )
$(use_enable xmlreader xmlreader )
$(use_enable xmlwriter xmlwriter )
$(use_with xmlrpc xmlrpc)
$(use_with xsl xsl "${EPREFIX}"/usr)
$(use_enable zip zip )
$(use_with zlib zlib "${EPREFIX}"/usr)
$(use_enable debug debug )"
# DBA support
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|| use qdbm ; then
my_conf="${my_conf} --enable-dba${shared}"
fi
# DBA drivers support
my_conf+="
$(use_with cdb cdb)
$(use_with berkdb db4 ${EPREFIX}/usr)
$(use_enable flatfile flatfile )
$(use_with gdbm gdbm ${EPREFIX}/usr)
$(use_enable inifile inifile )
$(use_with qdbm qdbm ${EPREFIX}/usr)"
# Support for the GD graphics library
my_conf+="
$(use_with truetype freetype-dir ${EPREFIX}/usr)
$(use_with truetype t1lib ${EPREFIX}/usr)
$(use_enable cjk gd-jis-conv )
$(use_with gd jpeg-dir ${EPREFIX}/usr)
$(use_with gd png-dir ${EPREFIX}/usr)
$(use_with xpm xpm-dir ${EPREFIX}/usr)"
# enable gd last, so configure can pick up the previous settings
my_conf+="
$(use_with gd gd)"
# IMAP support
if use imap ; then
my_conf+="
$(use_with imap imap ${EPREFIX}/usr)
$(use_with ssl imap-ssl ${EPREFIX}/usr)"
fi
# Interbase/firebird support
if use firebird ; then
my_conf+="
$(use_with firebird interbase ${EPREFIX}/usr)"
fi
# LDAP support
if use ldap ; then
my_conf+="
$(use_with ldap ldap ${EPREFIX}/usr)
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)"
fi
# MySQL support
if use mysql ; then
if use mysqlnd ; then
my_conf+="
$(use_with mysql mysql mysqlnd)"
else
my_conf+="
$(use_with mysql mysql ${EPREFIX}/usr)"
fi
my_conf+="
$(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
fi
# MySQLi support
if use mysqlnd ; then
my_conf+="
$(use_with mysqli mysqli mysqlnd)"
else
my_conf+="
$(use_with mysqli mysqli ${EPREFIX}/usr/bin/mysql_config)"
fi
# ODBC support
if use odbc ; then
my_conf+="
$(use_with odbc unixODBC ${EPREFIX}/usr)"
fi
if use iodbc ; then
my_conf+="
$(use_with iodbc iodbc ${EPREFIX}/usr)"
fi
# Oracle support
if use oci8-instant-client ; then
my_conf+="
$(use_with oci8-instant-client oci8)"
fi
# PDO support
if use pdo ; then
my_conf+="
$(use_with mssql pdo-dblib )"
if use mysqlnd ; then
my_conf+="
$(use_with mysql pdo-mysql mysqlnd)"
else
my_conf+="
$(use_with mysql pdo-mysql ${EPREFIX}/usr)"
fi
my_conf+="
$(use_with postgres pdo-pgsql )
$(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
if use oci8-instant-client ; then
my_conf+="
$(use_with oci8-instant-client pdo-oci)"
fi
fi
# readline/libedit support
my_conf+="
$(use_with readline readline ${EPREFIX}/usr)
$(use_with libedit libedit ${EPREFIX}/usr)"
# Session support
if use session ; then
my_conf+="
$(use_with sharedmem mm ${EPREFIX}/usr)"
else
my_conf+="
$(use_enable session session )"
fi
if use pic ; then
my_conf="${my_conf} --with-pic"
fi
# we use the system copy of pcre
# --with-pcre-regex affects ext/pcre
# --with-pcre-dir affects ext/filter and ext/zip
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
# Catch CFLAGS problems
# Fixes bug #14067.
# Changed order to run it in reverse for bug #32022 and #12021.
replace-cpu-flags "k6*" "i586"
# Support user-passed configuration parameters
my_conf="${my_conf} ${EXTRA_ECONF:-}"
# Support the Apache2 extras, they must be set globally for all
# SAPIs to work correctly, especially for external PHP extensions
mkdir -p "${WORKDIR}/sapis-build"
for one_sapi in $SAPIS ; do
use "${one_sapi}" || continue
php_set_ini_dir "${one_sapi}"
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
cd "${WORKDIR}/sapis-build/${one_sapi}"
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
for sapi in $SAPIS ; do
case "$sapi" in
cli|cgi|embed|fpm)
if [[ "${one_sapi}" == "${sapi}" ]] ; then
sapi_conf="${sapi_conf} --enable-${sapi}"
else
sapi_conf="${sapi_conf} --disable-${sapi}"
fi
;;
apache2)
if [[ "${one_sapi}" == "${sapi}" ]] ; then
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
else
sapi_conf="${sapi_conf} --without-apxs2"
fi
;;
esac
done
econf ${sapi_conf}
done
}
src_compile() {
# snmp seems to run during src_compile, too (bug #324739)
addpredict /usr/share/snmp/mibs/.index
addpredict /var/lib/net-snmp/mib_indexes
for sapi in ${SAPIS} ; do
if use "${sapi}"; then
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
emake || die "emake failed"
fi
done
}
src_install() {
# see bug #324739 for what happens when we don't have that
addpredict /usr/share/snmp/mibs/.index
# grab the first SAPI that got built and install common files from there
local first_sapi=""
for sapi in $SAPIS ; do
if use $sapi ; then
first_sapi=$sapi
break
fi
done
# Makefile forgets to create this before trying to write to it...
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
# Install php environment (without any sapis)
cd "${WORKDIR}/sapis-build/$first_sapi"
emake INSTALL_ROOT="${D}" \
install-build install-headers install-programs \
|| die "emake install failed"
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
# Create the directory where we'll put version-specific php scripts
keepdir /usr/share/php${PHP_MV}
local sapi="", file=""
local sapi_list=""
for sapi in ${SAPIS}; do
if use "${sapi}" ; then
einfo "Installing SAPI: ${sapi}"
cd "${WORKDIR}/sapis-build/${sapi}"
if [[ "${sapi}" == "apache2" ]] ; then
# We're specifically not using emake install-sapi as libtool
# may cause unnecessary relink failures (see bug #351266)
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
keepdir "/usr/$(get_libdir)/apache2/modules"
else
# needed each time, php_install_ini would reset it
into "${PHP_DESTDIR#${EPREFIX}}"
case "$sapi" in
cli)
source="sapi/cli/php"
;;
cgi)
source="sapi/cgi/php-cgi"
;;
fpm)
source="sapi/fpm/php-fpm"
;;
embed)
source="libs/libphp${PHP_MV}$(get_libname)"
;;
*)
die "unhandled sapi in src_install"
;;
esac
if [[ "${source}" == *"$(get_libname)" ]]; then
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
else
dobin "${source}" || die "Unable to install ${sapi} sapi"
fi
fi
php_install_ini "${sapi}"
# construct correct SAPI string for php-config
# thanks to ferringb for the bash voodoo
if [[ "${sapi}" == "apache2" ]]; then
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
else
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
fi
fi
done
# Install env.d files
newenvd "${FILESDIR}/20php5-envd" \
"20php${SLOT}"
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
"${ED}/etc/env.d/20php${SLOT}"
sed -e "s|php5|php${SLOT}|g" -i \
"${ED}/etc/env.d/20php${SLOT}"
# set php-config variable correctly (bug #278439)
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
}
src_test() {
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
if [[ ! -x "${PHP_BIN}" ]] ; then
ewarn "Test phase requires USE=cli, skipping"
return
else
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
fi
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
fi
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
for name in ${EXPECTED_TEST_FAILURES}; do
mv "${name}.out" "${name}.out.orig" 2>/dev/null
done
local failed="$(find -name '*.out')"
if [[ ${failed} != "" ]] ; then
ewarn "The following test cases failed unexpectedly:"
for name in ${failed}; do
ewarn " ${name/.out/}"
done
else
einfo "No unexpected test failures, all fine"
fi
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
local passed=""
for name in ${EXPECTED_TEST_FAILURES}; do
[[ -f "${name}.diff" ]] && continue
passed="${passed} ${name}"
done
if [[ ${passed} != "" ]] ; then
einfo "The following test cases passed unexpectedly:"
for name in ${passed}; do
ewarn " ${passed}"
done
else
einfo "None of the known-to-fail tests passed, all fine"
fi
fi
}
pkg_postinst() {
# Output some general info to the user
if use apache2 ; then
APACHE2_MOD_DEFINE="PHP5"
APACHE2_MOD_CONF="70_mod_php5"
apache-module_pkg_postinst
fi
# Create the symlinks for php
for m in ${SAPIS}; do
[[ ${m} == 'embed' ]] && continue;
if use $m ; then
local ci=$(eselect php show $m)
if [[ -z $ci ]]; then
eselect php set $m php${SLOT}
einfo "Switched ${m} to use php:${SLOT}"
einfo
elif [[ $ci != "php${SLOT}" ]] ; then
elog "To switch $m to use php:${SLOT}, run"
elog " eselect php set $m php${SLOT}"
elog
fi
fi
done
elog "Make sure that PHP_TARGETS in ${EPREFIX}/etc/make.conf includes php${SLOT/./-} in order"
elog "to compile extensions for the ${SLOT} ABI"
elog
if ! use readline && use cli ; then
ewarn "Note that in order to use php interactivly, you need to enable"
ewarn "the readline USE flag or php -a will hang"
fi
elog
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
elog "'production' or 'development' in ${EPREFIX}/etc/make.conf"
elog "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}"
elog
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
elog
if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
ewarn
ewarn "The suhosin USE flag now only installs the suhosin patch!"
ewarn "If you want the suhosin extension, make sure you install"
ewarn " dev-php/suhosin"
ewarn
fi
}
pkg_prerm() {
local sapi
local slot
for sapi in ${SAPIS}; do
slot=$(eselect php show $sapi 2> /dev/null)
slot=${slot/php/}
if [[ $slot == $SLOT ]]; then
ewarn "You have removed the active version of the $sapi SAPI"
ewarn "Fix the issue using \`eselect php\`"
fi
done
}

@ -1,875 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.5.0_alpha4.ebuild,v 1.1 2013/02/07 13:58:17 olemarkus Exp $
EAPI=5
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
SUHOSIN_VERSION=""
FPM_VERSION="builtin"
EXPECTED_TEST_FAILURES=""
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
function php_get_uri ()
{
case "${1}" in
"php-pre")
echo "http://downloads.php.net/dsp/${2}"
;;
"php")
echo "http://www.php.net/distributions/${2}"
;;
"suhosin")
echo "http://download.suhosin.org/${2}"
;;
"olemarkus")
echo "http://dev.gentoo.org/~olemarkus/php/${2}"
;;
"gentoo")
echo "mirror://gentoo/${2}"
;;
*)
die "unhandled case in php_get_uri"
;;
esac
}
PHP_MV="$(get_major_version)"
SLOT="$(get_version_component_range 1-2)"
# alias, so we can handle different types of releases (finals, rcs, alphas,
# betas, ...) w/o changing the whole ebuild
PHP_PV="${PV/_rc/RC}"
PHP_PV="${PHP_PV/_alpha/alpha}"
PHP_PV="${PHP_PV/_beta/beta}"
PHP_RELEASE="php"
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
PHP_P="${PN}-${PHP_PV}"
PHP_PATCHSET_LOC="olemarkus"
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
PHP_PATCHSET="0"
PHP_PATCHSET_URI="
$(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${SLOT}-r${PHP_PATCHSET}.tar.bz2")"
PHP_FPM_INIT_VER="4"
PHP_FPM_CONF_VER="1"
if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
# in some cases we use our own suhosin patch (very recent version,
# patch conflicts, etc.)
SUHOSIN_TYPE="olemarkus"
else
SUHOSIN_TYPE="suhosin"
fi
if [[ -n ${SUHOSIN_VERSION} ]]; then
SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
fi
SRC_URI="
${PHP_SRC_URI}
${PHP_PATCHSET_URI}"
if [[ -n ${SUHOSIN_VERSION} ]]; then
SRC_URI="${SRC_URI}
suhosin? ( ${SUHOSIN_URI} )"
fi
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
HOMEPAGE="http://php.net/"
LICENSE="PHP-3"
S="${WORKDIR}/${PHP_P}"
# We can build the following SAPIs in the given order
SAPIS="embed cli cgi fpm apache2"
# Gentoo-specific, common features
IUSE="kolab"
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
IUSE="${IUSE}
${SAPIS/cli/+cli}
threads"
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
crypt +ctype curl curlwrappers debug doc
enchant exif frontbase +fileinfo +filter firebird
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
mssql mysql mysqlnd mysqli nls
oci8-instant-client odbc pcntl pdo +phar pic +posix postgres qdbm
readline recode selinux +session sharedmem
+simplexml snmp soap sockets spell sqlite ssl
sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
+xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
# Enable suhosin if available
[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
DEPEND="
>=app-admin/eselect-php-0.6.2
>=dev-libs/libpcre-8.12[unicode]
apache2? ( www-servers/apache[threads=] )
berkdb? ( =sys-libs/db-4* )
bzip2? ( app-arch/bzip2 )
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
cjk? ( !gd? (
virtual/jpeg
media-libs/libpng
sys-libs/zlib
) )
crypt? ( >=dev-libs/libmcrypt-2.4 )
curl? ( >=net-misc/curl-7.10.5 )
enchant? ( app-text/enchant )
exif? ( !gd? (
virtual/jpeg
media-libs/libpng
sys-libs/zlib
) )
firebird? ( dev-db/firebird )
gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
gdbm? ( >=sys-libs/gdbm-1.8.0 )
gmp? ( >=dev-libs/gmp-4.1.2 )
iconv? ( virtual/libiconv )
imap? ( virtual/imap-c-client[ssl=] )
intl? ( dev-libs/icu:= )
iodbc? ( dev-db/libiodbc )
kerberos? ( virtual/krb5 )
kolab? ( >=net-libs/c-client-2004g-r1 )
ldap? ( >=net-nds/openldap-1.2.11 )
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
mssql? ( dev-db/freetds[mssql] )
!mysqlnd? (
mysql? ( virtual/mysql )
mysqli? ( >=virtual/mysql-4.1 )
)
nls? ( sys-devel/gettext )
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
odbc? ( >=dev-db/unixODBC-1.8.13 )
postgres? ( dev-db/postgresql-base )
qdbm? ( dev-db/qdbm )
readline? ( sys-libs/readline )
recode? ( app-text/recode )
sharedmem? ( dev-libs/mm )
simplexml? ( >=dev-libs/libxml2-2.6.8 )
snmp? ( >=net-analyzer/net-snmp-5.2 )
soap? ( >=dev-libs/libxml2-2.6.8 )
spell? ( >=app-text/aspell-0.50 )
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
ssl? ( >=dev-libs/openssl-0.9.7 )
sybase-ct? ( dev-db/freetds )
tidy? ( app-text/htmltidy )
truetype? (
=media-libs/freetype-2*
>=media-libs/t1lib-5.0.0
!gd? (
virtual/jpeg media-libs/libpng sys-libs/zlib )
)
unicode? ( dev-libs/oniguruma )
wddx? ( >=dev-libs/libxml2-2.6.8 )
xml? ( >=dev-libs/libxml2-2.6.8 )
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
xpm? (
x11-libs/libXpm
virtual/jpeg
media-libs/libpng sys-libs/zlib
)
xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
zip? ( sys-libs/zlib )
zlib? ( sys-libs/zlib )
virtual/mta
"
php="=${CATEGORY}/${PF}"
REQUIRED_USE="
truetype? ( gd )
cjk? ( gd )
exif? ( gd )
xpm? ( gd )
gd? ( zlib )
simplexml? ( xml )
soap? ( xml )
wddx? ( xml )
xmlrpc? ( || ( xml iconv ) )
xmlreader? ( xml )
xsl? ( xml )
ldap-sasl? ( ldap )
kolab? ( imap )
mhash? ( hash )
phar? ( hash )
mysqlnd? ( || (
mysql
mysqli
pdo
) )
qdbm? ( !gdbm )
readline? ( !libedit )
recode? ( !imap !mysql !mysqli )
sharedmem? ( !threads )
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
RDEPEND="${DEPEND}"
[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
RDEPEND="${RDEPEND} fpm? ( selinux? ( sec-policy/selinux-phpfpm ) )"
DEPEND="${DEPEND}
sys-devel/flex
>=sys-devel/m4-1.4.3
>=sys-devel/libtool-1.5.18"
# They are in PDEPEND because we need PHP installed first!
PDEPEND="doc? ( app-doc/php-docs )"
# No longer depend on the extension. The suhosin USE flag only installs the
# patch
#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
# Allow users to install production version if they want to
case "${PHP_INI_VERSION}" in
production|development)
;;
*)
PHP_INI_VERSION="development"
;;
esac
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
PHP_INI_FILE="php.ini"
want_apache
pkg_setup() {
depend.apache_pkg_setup
}
php_install_ini() {
local phpsapi="${1}"
# work out where we are installing the ini file
php_set_ini_dir "${phpsapi}"
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
# default to /tmp for save_path, bug #282768
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
# Set the extension dir
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
# Set the include path to point to where we want to find PEAR packages
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
dodir "${PHP_INI_DIR#${EPREFIX}}"
insinto "${PHP_INI_DIR#${EPREFIX}}"
newins "${phpinisrc}" "${PHP_INI_FILE}"
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
elog
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
# SAPI-specific handling
if [[ "${sapi}" == "apache2" ]] ; then
insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}"
newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \
"70_mod_php${PHP_MV}.conf"
fi
if [[ "${sapi}" == "fpm" ]] ; then
[[ -z ${PHP_FPM_INIT_VER} ]] && PHP_FPM_INIT_VER=3
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
einfo "Installing FPM CGI config file php-fpm.conf"
insinto "${PHP_INI_DIR#${EPREFIX}}"
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
dodir "/etc/init.d"
insinto "/etc/init.d"
newinitd "${FILESDIR}/php-fpm-r${PHP_FPM_INIT_VER}.init" "php-fpm"
# dosym "${PHP_DESTDIR#${EPREFIX}}/bin/php-fpm" "/usr/bin/php-fpm"
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
fi
# Install PHP ini files into /usr/share/php
if [[ ${SLOT} == '5.2' ]]; then
newdoc php.ini-dist php.ini-development
newdoc php.ini-recommended php.ini-production
fi
if [[ ${SLOT} == '5.3' ]]; then
dodoc php.ini-development
dodoc php.ini-production
fi
if [[ ${SLOT} == '5.4' ]]; then
dodoc php.ini-development
dodoc php.ini-production
fi
}
php_set_ini_dir() {
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
}
src_prepare() {
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
# there is no easy way to circumvent that, all php calls during
# install use -n, so no php.ini file will be used.
# As such, this is the easiest way to get around
addpredict /session_mm_cli250.sem
addpredict /session_mm_cli0.sem
# kolab support (support for imap annotations)
use kolab && epatch "${WORKDIR}/patches/opt/imap-kolab-annotations.patch"
# Change PHP branding
# Get the alpha/beta/rc version
local ver=$(get_version_component_range 3)
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
-i configure.in || die "Unable to change PHP branding"
# Apply generic PHP patches
EPATCH_SOURCE="${WORKDIR}/patches/generic" EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" \
EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch
# Patch PHP to show Gentoo as the server platform
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
-i configure.in || die "Failed to fix server platform name"
# Prevent PHP from activating the Apache config,
# as we will do that ourselves
sed -i \
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
# Patch PHP to support heimdal instead of mit-krb5
if has_version "app-crypt/heimdal" ; then
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|| die "Failed to fix heimdal libname"
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|| die "Failed to fix heimdal crypt library reference"
fi
# Suhosin support
if [[ -n $SUHOSIN_VERSION ]] ; then
if use suhosin ; then
epatch "${WORKDIR}/${SUHOSIN_PATCH}"
fi
else
ewarn "Please note that this version of PHP does not yet come with a suhosin patch"
fi
#Add user patches #357637
epatch_user
#force rebuilding aclocal.m4
rm aclocal.m4
eautoreconf
if [[ ${CHOST} == *-darwin* ]] ; then
# http://bugs.php.net/bug.php?id=48795, bug #343481
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
fi
}
src_configure() {
addpredict /usr/share/snmp/mibs/.index
addpredict /var/lib/net-snmp/mib_indexes
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
# This is a global variable and should be in caps. It isn't because the
# phpconfutils eclass relies on exactly this name...
# for --with-libdir see bug #327025
my_conf="
--prefix="${PHP_DESTDIR}"
--mandir="${PHP_DESTDIR}"/man
--infodir="${PHP_DESTDIR}"/info
--libdir="${PHP_DESTDIR}"/lib
--with-libdir=$(get_libdir)
--without-pear
$(use_enable threads maintainer-zts)"
# extension USE flag shared
my_conf+="
$(use_enable bcmath bcmath )
$(use_with bzip2 bz2 "${EPREFIX}"/usr)
$(use_enable calendar calendar )
$(use_enable ctype ctype )
$(use_with curl curl "${EPREFIX}"/usr)
$(use_with curlwrappers curlwrappers "${EPREFIX}"/usr)
$(use_enable xml dom )
$(use_with enchant enchant "${EPREFIX}"/usr)
$(use_enable exif exif )
$(use_enable fileinfo fileinfo )
$(use_enable filter filter )
$(use_enable ftp ftp )
$(use_with nls gettext "${EPREFIX}"/usr)
$(use_with gmp gmp "${EPREFIX}"/usr)
$(use_enable hash hash )
$(use_with mhash mhash "${EPREFIX}"/usr)
$(use_with iconv iconv )
$(use_enable intl intl )
$(use_enable ipv6 ipv6 )
$(use_enable json json )
$(use_with kerberos kerberos "${EPREFIX}"/usr)
$(use_enable xml libxml )
$(use_with xml libxml-dir "${EPREFIX}"/usr)
$(use_enable unicode mbstring )
$(use_with crypt mcrypt "${EPREFIX}"/usr)
$(use_with mssql mssql "${EPREFIX}"/usr)
$(use_with unicode onig "${EPREFIX}"/usr)
$(use_with ssl openssl "${EPREFIX}"/usr)
$(use_with ssl openssl-dir "${EPREFIX}"/usr)
$(use_enable pcntl pcntl )
$(use_enable phar phar )
$(use_enable pdo pdo )
$(use_with postgres pgsql "${EPREFIX}"/usr)
$(use_enable posix posix )
$(use_with spell pspell "${EPREFIX}"/usr)
$(use_with recode recode "${EPREFIX}"/usr)
$(use_enable simplexml simplexml )
$(use_enable sharedmem shmop )
$(use_with snmp snmp "${EPREFIX}"/usr)
$(use_enable soap soap )
$(use_enable sockets sockets )
$(use_with sqlite sqlite3 "${EPREFIX}"/usr)
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr)
$(use_enable sysvipc sysvmsg )
$(use_enable sysvipc sysvsem )
$(use_enable sysvipc sysvshm )
$(use_with tidy tidy "${EPREFIX}"/usr)
$(use_enable tokenizer tokenizer )
$(use_enable wddx wddx )
$(use_enable xml xml )
$(use_enable xmlreader xmlreader )
$(use_enable xmlwriter xmlwriter )
$(use_with xmlrpc xmlrpc)
$(use_with xsl xsl "${EPREFIX}"/usr)
$(use_enable zip zip )
$(use_with zlib zlib "${EPREFIX}"/usr)
$(use_enable debug debug )"
# DBA support
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|| use qdbm ; then
my_conf="${my_conf} --enable-dba${shared}"
fi
# DBA drivers support
my_conf+="
$(use_with cdb cdb)
$(use_with berkdb db4 ${EPREFIX}/usr)
$(use_enable flatfile flatfile )
$(use_with gdbm gdbm ${EPREFIX}/usr)
$(use_enable inifile inifile )
$(use_with qdbm qdbm ${EPREFIX}/usr)"
# Support for the GD graphics library
my_conf+="
$(use_with truetype freetype-dir ${EPREFIX}/usr)
$(use_with truetype t1lib ${EPREFIX}/usr)
$(use_enable cjk gd-jis-conv )
$(use_with gd jpeg-dir ${EPREFIX}/usr)
$(use_with gd png-dir ${EPREFIX}/usr)
$(use_with xpm xpm-dir ${EPREFIX}/usr)"
# enable gd last, so configure can pick up the previous settings
my_conf+="
$(use_with gd gd)"
# IMAP support
if use imap ; then
my_conf+="
$(use_with imap imap ${EPREFIX}/usr)
$(use_with ssl imap-ssl ${EPREFIX}/usr)"
fi
# Interbase/firebird support
if use firebird ; then
my_conf+="
$(use_with firebird interbase ${EPREFIX}/usr)"
fi
# LDAP support
if use ldap ; then
my_conf+="
$(use_with ldap ldap ${EPREFIX}/usr)
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)"
fi
# MySQL support
if use mysql ; then
if use mysqlnd ; then
my_conf+="
$(use_with mysql mysql mysqlnd)"
else
my_conf+="
$(use_with mysql mysql ${EPREFIX}/usr)"
fi
my_conf+="
$(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
fi
# MySQLi support
if use mysqlnd ; then
my_conf+="
$(use_with mysqli mysqli mysqlnd)"
else
my_conf+="
$(use_with mysqli mysqli ${EPREFIX}/usr/bin/mysql_config)"
fi
# ODBC support
if use odbc ; then
my_conf+="
$(use_with odbc unixODBC ${EPREFIX}/usr)"
fi
if use iodbc ; then
my_conf+="
$(use_with iodbc iodbc ${EPREFIX}/usr)"
fi
# Oracle support
if use oci8-instant-client ; then
my_conf+="
$(use_with oci8-instant-client oci8)"
fi
# PDO support
if use pdo ; then
my_conf+="
$(use_with mssql pdo-dblib )"
if use mysqlnd ; then
my_conf+="
$(use_with mysql pdo-mysql mysqlnd)"
else
my_conf+="
$(use_with mysql pdo-mysql ${EPREFIX}/usr)"
fi
my_conf+="
$(use_with postgres pdo-pgsql )
$(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
if use oci8-instant-client ; then
my_conf+="
$(use_with oci8-instant-client pdo-oci)"
fi
fi
# readline/libedit support
my_conf+="
$(use_with readline readline ${EPREFIX}/usr)
$(use_with libedit libedit ${EPREFIX}/usr)"
# Session support
if use session ; then
my_conf+="
$(use_with sharedmem mm ${EPREFIX}/usr)"
else
my_conf+="
$(use_enable session session )"
fi
if use pic ; then
my_conf="${my_conf} --with-pic"
fi
# we use the system copy of pcre
# --with-pcre-regex affects ext/pcre
# --with-pcre-dir affects ext/filter and ext/zip
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
# Catch CFLAGS problems
# Fixes bug #14067.
# Changed order to run it in reverse for bug #32022 and #12021.
replace-cpu-flags "k6*" "i586"
# Support user-passed configuration parameters
my_conf="${my_conf} ${EXTRA_ECONF:-}"
# Support the Apache2 extras, they must be set globally for all
# SAPIs to work correctly, especially for external PHP extensions
mkdir -p "${WORKDIR}/sapis-build"
for one_sapi in $SAPIS ; do
use "${one_sapi}" || continue
php_set_ini_dir "${one_sapi}"
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
cd "${WORKDIR}/sapis-build/${one_sapi}"
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
for sapi in $SAPIS ; do
case "$sapi" in
cli|cgi|embed|fpm)
if [[ "${one_sapi}" == "${sapi}" ]] ; then
sapi_conf="${sapi_conf} --enable-${sapi}"
else
sapi_conf="${sapi_conf} --disable-${sapi}"
fi
;;
apache2)
if [[ "${one_sapi}" == "${sapi}" ]] ; then
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
else
sapi_conf="${sapi_conf} --without-apxs2"
fi
;;
esac
done
econf ${sapi_conf}
done
}
src_compile() {
# snmp seems to run during src_compile, too (bug #324739)
addpredict /usr/share/snmp/mibs/.index
addpredict /var/lib/net-snmp/mib_indexes
for sapi in ${SAPIS} ; do
if use "${sapi}"; then
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
emake || die "emake failed"
fi
done
}
src_install() {
# see bug #324739 for what happens when we don't have that
addpredict /usr/share/snmp/mibs/.index
# grab the first SAPI that got built and install common files from there
local first_sapi=""
for sapi in $SAPIS ; do
if use $sapi ; then
first_sapi=$sapi
break
fi
done
# Makefile forgets to create this before trying to write to it...
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
# Install php environment (without any sapis)
cd "${WORKDIR}/sapis-build/$first_sapi"
emake INSTALL_ROOT="${D}" \
install-build install-headers install-programs \
|| die "emake install failed"
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
# Create the directory where we'll put version-specific php scripts
keepdir /usr/share/php${PHP_MV}
local sapi="", file=""
local sapi_list=""
for sapi in ${SAPIS}; do
if use "${sapi}" ; then
einfo "Installing SAPI: ${sapi}"
cd "${WORKDIR}/sapis-build/${sapi}"
if [[ "${sapi}" == "apache2" ]] ; then
# We're specifically not using emake install-sapi as libtool
# may cause unnecessary relink failures (see bug #351266)
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
keepdir "/usr/$(get_libdir)/apache2/modules"
else
# needed each time, php_install_ini would reset it
into "${PHP_DESTDIR#${EPREFIX}}"
case "$sapi" in
cli)
source="sapi/cli/php"
;;
cgi)
source="sapi/cgi/php-cgi"
;;
fpm)
source="sapi/fpm/php-fpm"
;;
embed)
source="libs/libphp${PHP_MV}$(get_libname)"
;;
*)
die "unhandled sapi in src_install"
;;
esac
if [[ "${source}" == *"$(get_libname)" ]]; then
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
else
dobin "${source}" || die "Unable to install ${sapi} sapi"
fi
fi
php_install_ini "${sapi}"
# construct correct SAPI string for php-config
# thanks to ferringb for the bash voodoo
if [[ "${sapi}" == "apache2" ]]; then
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
else
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
fi
fi
done
# Install env.d files
newenvd "${FILESDIR}/20php5-envd" \
"20php${SLOT}"
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
"${ED}/etc/env.d/20php${SLOT}"
sed -e "s|php5|php${SLOT}|g" -i \
"${ED}/etc/env.d/20php${SLOT}"
# set php-config variable correctly (bug #278439)
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
}
src_test() {
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
if [[ ! -x "${PHP_BIN}" ]] ; then
ewarn "Test phase requires USE=cli, skipping"
return
else
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
fi
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
fi
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
for name in ${EXPECTED_TEST_FAILURES}; do
mv "${name}.out" "${name}.out.orig" 2>/dev/null
done
local failed="$(find -name '*.out')"
if [[ ${failed} != "" ]] ; then
ewarn "The following test cases failed unexpectedly:"
for name in ${failed}; do
ewarn " ${name/.out/}"
done
else
einfo "No unexpected test failures, all fine"
fi
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
local passed=""
for name in ${EXPECTED_TEST_FAILURES}; do
[[ -f "${name}.diff" ]] && continue
passed="${passed} ${name}"
done
if [[ ${passed} != "" ]] ; then
einfo "The following test cases passed unexpectedly:"
for name in ${passed}; do
ewarn " ${passed}"
done
else
einfo "None of the known-to-fail tests passed, all fine"
fi
fi
}
pkg_postinst() {
# Output some general info to the user
if use apache2 ; then
APACHE2_MOD_DEFINE="PHP5"
APACHE2_MOD_CONF="70_mod_php5"
apache-module_pkg_postinst
fi
# Create the symlinks for php
for m in ${SAPIS}; do
[[ ${m} == 'embed' ]] && continue;
if use $m ; then
local ci=$(eselect php show $m)
if [[ -z $ci ]]; then
eselect php set $m php${SLOT}
einfo "Switched ${m} to use php:${SLOT}"
einfo
elif [[ $ci != "php${SLOT}" ]] ; then
elog "To switch $m to use php:${SLOT}, run"
elog " eselect php set $m php${SLOT}"
elog
fi
fi
done
elog "Make sure that PHP_TARGETS in ${EPREFIX}/etc/make.conf includes php${SLOT/./-} in order"
elog "to compile extensions for the ${SLOT} ABI"
elog
if ! use readline && use cli ; then
ewarn "Note that in order to use php interactivly, you need to enable"
ewarn "the readline USE flag or php -a will hang"
fi
elog
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
elog "'production' or 'development' in ${EPREFIX}/etc/make.conf"
elog "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}"
elog
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
elog
if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
ewarn
ewarn "The suhosin USE flag now only installs the suhosin patch!"
ewarn "If you want the suhosin extension, make sure you install"
ewarn " dev-php/suhosin"
ewarn
fi
}
pkg_prerm() {
local sapi
local slot
for sapi in ${SAPIS}; do
slot=$(eselect php show $sapi 2> /dev/null)
slot=${slot/php/}
if [[ $slot == $SLOT ]]; then
ewarn "You have removed the active version of the $sapi SAPI"
ewarn "Fix the issue using \`eselect php\`"
fi
done
}

@ -1,13 +1,11 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.5.0_alpha6.ebuild,v 1.1 2013/03/15 08:55:15 olemarkus Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.5.0_beta1.ebuild,v 1.1 2013/03/21 13:33:45 olemarkus Exp $
EAPI=5
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
SUHOSIN_VERSION=""
FPM_VERSION="builtin"
EXPECTED_TEST_FAILURES=""
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
@ -21,9 +19,6 @@ function php_get_uri ()
"php")
echo "http://www.php.net/distributions/${2}"
;;
"suhosin")
echo "http://download.suhosin.org/${2}"
;;
"olemarkus")
echo "http://dev.gentoo.org/~olemarkus/php/${2}"
;;
@ -46,6 +41,7 @@ PHP_PV="${PHP_PV/_alpha/alpha}"
PHP_PV="${PHP_PV/_beta/beta}"
PHP_RELEASE="php"
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
[[ ${PV} == ${PV/_beta/} ]] || PHP_RELEASE="php-pre"
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
PHP_P="${PN}-${PHP_PV}"
@ -53,35 +49,17 @@ PHP_PATCHSET_LOC="olemarkus"
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
PHP_PATCHSET="0"
PHP_PATCHSET="1"
PHP_PATCHSET_URI="
$(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${SLOT}-r${PHP_PATCHSET}.tar.bz2")"
PHP_FPM_INIT_VER="4"
PHP_FPM_CONF_VER="1"
if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
# in some cases we use our own suhosin patch (very recent version,
# patch conflicts, etc.)
SUHOSIN_TYPE="olemarkus"
else
SUHOSIN_TYPE="suhosin"
fi
if [[ -n ${SUHOSIN_VERSION} ]]; then
SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
fi
SRC_URI="
${PHP_SRC_URI}
${PHP_PATCHSET_URI}"
if [[ -n ${SUHOSIN_VERSION} ]]; then
SRC_URI="${SRC_URI}
suhosin? ( ${SUHOSIN_URI} )"
fi
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
HOMEPAGE="http://php.net/"
LICENSE="PHP-3"
@ -102,15 +80,12 @@ IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
mssql mysql mysqlnd mysqli nls
oci8-instant-client odbc pcntl pdo +phar +posix postgres qdbm
oci8-instant-client odbc opcache pcntl pdo +phar +posix postgres qdbm
readline recode selinux +session sharedmem
+simplexml snmp soap sockets spell sqlite ssl
sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
+xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
# Enable suhosin if available
[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
DEPEND="
>=app-admin/eselect-php-0.6.2
>=dev-libs/libpcre-8.32[unicode]
@ -220,9 +195,6 @@ REQUIRED_USE="
RDEPEND="${DEPEND}"
[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
RDEPEND="${RDEPEND} fpm? ( selinux? ( sec-policy/selinux-phpfpm ) )"
DEPEND="${DEPEND}
@ -233,10 +205,6 @@ DEPEND="${DEPEND}
# They are in PDEPEND because we need PHP installed first!
PDEPEND="doc? ( app-doc/php-docs )"
# No longer depend on the extension. The suhosin USE flag only installs the
# patch
#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
# Allow users to install production version if they want to
case "${PHP_INI_VERSION}" in
@ -369,15 +337,6 @@ src_prepare() {
|| die "Failed to fix heimdal crypt library reference"
fi
# Suhosin support
if [[ -n $SUHOSIN_VERSION ]] ; then
if use suhosin ; then
epatch "${WORKDIR}/${SUHOSIN_PATCH}"
fi
else
ewarn "Please note that this version of PHP does not yet come with a suhosin patch"
fi
#Add user patches #357637
epatch_user
@ -443,6 +402,7 @@ src_configure() {
$(use_enable pcntl pcntl )
$(use_enable phar phar )
$(use_enable pdo pdo )
$(use_enable opcache opcache )
$(use_with postgres pgsql "${EPREFIX}"/usr)
$(use_enable posix posix )
$(use_with spell pspell "${EPREFIX}"/usr)
@ -842,14 +802,6 @@ pkg_postinst() {
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
elog
if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
ewarn
ewarn "The suhosin USE flag now only installs the suhosin patch!"
ewarn "If you want the suhosin extension, make sure you install"
ewarn " dev-php/suhosin"
ewarn
fi
}
pkg_prerm() {

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.5.4-r5.ebuild,v 1.12 2013/03/19 02:45:18 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.5.4-r5.ebuild,v 1.13 2013/03/21 16:07:07 jer Exp $
EAPI="1"
@ -17,7 +17,7 @@ SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.bz2
LICENSE="PSF-2.2"
SLOT="2.5"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="-berkdb build doc elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
# Do not add a dependency on dev-lang/python to this ebuild.

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.8-r1.ebuild,v 1.10 2013/03/19 02:45:18 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.8-r1.ebuild,v 1.11 2013/03/21 16:07:07 jer Exp $
EAPI="2"
WANT_AUTOMAKE="none"
@ -18,7 +18,7 @@ SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.bz2
LICENSE="PSF-2"
SLOT="2.6"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="-berkdb build doc elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
# Do not add a dependency on dev-lang/python to this ebuild.

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.7.3-r3.ebuild,v 1.12 2013/03/19 04:04:21 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.7.3-r3.ebuild,v 1.13 2013/03/21 16:07:07 jer Exp $
EAPI="2"
WANT_AUTOMAKE="none"
@ -18,7 +18,7 @@ SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.bz2
LICENSE="PSF-2"
SLOT="2.7"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
IUSE="-berkdb build doc elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
# Do not add a dependency on dev-lang/python to this ebuild.

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.1.5-r1.ebuild,v 1.10 2013/03/19 02:45:18 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.1.5-r1.ebuild,v 1.11 2013/03/21 16:07:07 jer Exp $
EAPI="3"
WANT_AUTOMAKE="none"
@ -18,7 +18,7 @@ SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
LICENSE="PSF-2"
SLOT="3.1"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="build doc elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
# Do not add a dependency on dev-lang/python to this ebuild.

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.2.3-r2.ebuild,v 1.13 2013/03/19 04:46:35 vapier Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.2.3-r2.ebuild,v 1.14 2013/03/21 16:07:07 jer Exp $
EAPI="3"
WANT_AUTOMAKE="none"
@ -18,7 +18,7 @@ SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
LICENSE="PSF-2"
SLOT="3.2"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
IUSE="build doc elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk +wide-unicode wininst +xml"
# Do not add a dependency on dev-lang/python to this ebuild.

@ -1,2 +1,3 @@
DIST libebml-1.2.1.tar.bz2 60662 SHA256 8f9e06630eab83f337d280d38eff53e41e030530015a4c423d509a20f6ea81b2 SHA512 c8bd4d903fcd6ea70cd6aace2096768c7e62deb8ddd41d354b71527d6f4595f06b86169996f2ed56e1da0531b9f7ebcac4c9ccdd2e208614f7cd3271b8cf0f4d WHIRLPOOL 4d1207143fc618b8c0f3d93aecd9d1f063845486c9ddcdaa7cd697d9e27ff01dcd31526c52b33e46e4fc5191689009e7960ebc384321a90a34e7c4770f1d6b17
DIST libebml-1.2.2.tar.bz2 60802 SHA256 476b08c6436a96c024a53e788e7c945ce9b41cd8654165763444aa7e5245b7a5 SHA512 aa9b446aadbfea6cd7031a08a8cd0251a764febb8ef43ee3ba44d066b945698311bda7db6bb2d983d5f0c1e24f108ae4cf1c6551b04337210b13daf7e2236135 WHIRLPOOL 5bfa5ee38b9e4bb6cbc8bc27e949e64621ecc8fe3cf76a0686c85b53579d80ee53bca520ef70b9af13bbf589fd51e5f20eae908928ee0b651d23951a532777e0
DIST libebml-1.3.0.tar.gz 70425 SHA256 cd48a6d943905afe877e86f421647092956d71c7345dc9264a5123750ca8b158 SHA512 804b8e9e29add421304ef104f48170ee434cc97d6063dc4338b7fd6ad559733ed1bffd8440146674b70b3d6906f45ded4cc482d606c94c8c04bf424fd85c366e WHIRLPOOL b5656fa835753bee8b4cfa995db220de85d69604d7332e793c6b45c13100e4041e0fee8517940bde600909b529d3eee959340d3f997b174b249f13c4183ed5cd

@ -0,0 +1,102 @@
--- libebml-release-1.3.0/make/linux/Makefile
+++ libebml-release-1.3.0/make/linux/Makefile
@@ -50,6 +50,8 @@
LIBRARY=libebml.a
LIBRARY_SO=libebml.so
LIBRARY_SO_VER=libebml.so.4
+LIBRARY_DYLIB=libebml.dylib
+LIBRARY_DYLIB_VER=libebml.4.dylib
# source-files
sources:=$(wildcard ${SRC_DIR}*$(EXTENSION))
@@ -66,7 +68,7 @@
DEPENDFLAGS = $(CXXFLAGS) $(INCLUDE)
ifeq (Darwin,$(shell uname -s))
-all: staticlib
+all: staticlib macholib
else
all: staticlib sharedlib
endif
@@ -75,8 +77,10 @@
sharedlib: $(LIBRARY_SO)
+macholib: $(LIBRARY_DYLIB)
+
lib:
- @echo "Use the 'staticlib', 'sharedlib' or 'all' targets."
+ @echo "Use the 'staticlib', 'sharedlib', 'macholib' or 'all' targets."
@false
# Build rules
@@ -91,15 +95,22 @@
$(RANLIB) $@
$(LIBRARY_SO): $(objects_so)
- $(CXX) -shared -Wl,-soname,$(LIBRARY_SO_VER) -o $(LIBRARY_SO_VER) $(objects_so)
+ $(CXX) $(LDFLAGS) -shared -Wl,-soname,$(LIBRARY_SO_VER) -o $(LIBRARY_SO_VER) $(objects_so)
rm -f $(LIBRARY_SO)
ln -s $(LIBRARY_SO_VER) $(LIBRARY_SO)
+$(LIBRARY_DYLIB): $(objects_so)
+ $(CXX) $(LDFLAGS) -dynamiclib -install_name $(libdir)/$(LIBRARY_DYLIB_VER) -o $(LIBRARY_DYLIB_VER) $(objects_so) $(LIBS)
+ rm -f $(LIBRARY_DYLIB)
+ ln -s $(LIBRARY_DYLIB_VER) $(LIBRARY_DYLIB)
+
clean:
rm -f $(objects) $(objects_so)
rm -f $(LIBRARY)
rm -f $(LIBRARY_SO)
rm -f $(LIBRARY_SO_VER)
+ rm -f $(LIBRARY_DYLIB)
+ rm -f $(LIBRARY_DYLIB_VER)
rm -f CORE
distclean dist-clean: clean
@@ -116,30 +127,34 @@
done
ifeq (Darwin,$(shell uname -s))
-install: install_staticlib install_headers
+install: install_staticlib install_macholib install_headers
else
install: install_staticlib install_sharedlib install_headers
endif
install_headers:
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(includedir)
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(includedir)
for i in $(INCLUDE_DIR)/*.h; do \
- $(INSTALL) $(INSTALL_OPTS) $$i $(includedir) ; \
+ $(INSTALL) $(INSTALL_OPTS) $$i $(DESTDIR)$(includedir) ; \
done
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(includedir)/c
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(includedir)/c
for i in $(INCLUDE_DIR)/c/*.h; do \
- $(INSTALL) $(INSTALL_OPTS) $$i $(includedir)/c ; \
+ $(INSTALL) $(INSTALL_OPTS) $$i $(DESTDIR)$(includedir)/c ; \
done
install_staticlib: $(LIBRARY)
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(libdir)
- $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY) $(libdir)
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(libdir)
+ $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY) $(DESTDIR)$(libdir)
install_sharedlib: $(LIBRARY_SO)
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(libdir)
- $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(libdir)
- ln -fs $(LIBRARY_SO_VER) $(libdir)/$(LIBRARY_SO)
-
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(libdir)
+ $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(DESTDIR)$(libdir)
+ ln -fs $(LIBRARY_SO_VER) $(DESTDIR)$(libdir)/$(LIBRARY_SO)
+
+install_macholib: $(LIBRARY_DYLIB)
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(libdir)
+ $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_DYLIB_VER) $(DESTDIR)$(libdir)
+ ln -fs $(LIBRARY_DYLIB_VER) $(DESTDIR)$(libdir)/$(LIBRARY_DYLIB)
ifneq ($(wildcard .depend),)
include .depend

@ -0,0 +1,62 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libebml/libebml-1.3.0.ebuild,v 1.1 2013/03/21 09:10:12 radhermit Exp $
EAPI=5
inherit eutils multilib toolchain-funcs
DESCRIPTION="Extensible binary format library (kinda like XML)"
HOMEPAGE="http://www.matroska.org/ https://github.com/Matroska-Org/libebml/"
SRC_URI="https://github.com/Matroska-Org/${PN}/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0/4" # subslot = soname major version
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="debug static-libs"
S=${WORKDIR}/${PN}-release-${PV}/make/linux
src_prepare() {
epatch "${FILESDIR}"/${P}-makefile.patch
sed -i "s:\(DEBUGFLAGS=\)-g :\1:" Makefile || die
}
src_compile() {
local targets
if [[ ${CHOST} != *-darwin* ]] ; then
targets="sharedlib"
else
targets="macholib"
fi
use static-libs && targets+=" staticlib"
# keep the prefix in here to make sure the binary is built with a correct
# install_name on Darwin
emake \
prefix="${EPREFIX}"/usr \
AR="$(tc-getAR)" \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
$(use debug && echo DEBUG=yes || echo DEBUG=no) \
${targets}
}
src_install() {
local targets="install_headers"
if [[ ${CHOST} != *-darwin* ]] ; then
targets+=" install_sharedlib"
else
targets+=" install_macholib"
fi
use static-libs && targets+=" install_staticlib"
emake \
DESTDIR="${D}" \
prefix="${EPREFIX}"/usr \
libdir="${EPREFIX}"/usr/$(get_libdir) \
${targets}
dodoc "${WORKDIR}"/${PN}-release-${PV}/ChangeLog
}

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/quazip/quazip-0.5.1-r1.ebuild,v 1.2 2013/03/09 19:47:19 jlec Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-libs/quazip/quazip-0.5.1-r1.ebuild,v 1.3 2013/03/21 16:23:54 jlec Exp $
EAPI=5
@ -32,7 +32,7 @@ PATCHES=(
src_prepare() {
sed \
-e "1i\PREFIX = \"${PREFIX}/usr/\"" \
-e "1i\PREFIX = \"${EPREFIX}/usr/\"" \
-e "s:/lib$:/$(get_libdir):g" \
-i ${PN}/${PN}.pro || die
use test || sed -e 's:qztest::g' -i ${PN}.pro || die

@ -1,4 +1 @@
DIST bitstring-2.2.0.zip 584654 SHA256 7c39ffcc2a2d62f6ea5a0114ea903c9bafd05056c94d5385c56d04bb9d0f4a3d SHA512 a8f0908e91bfcb0cc862ab1a7586a7863792dc9e31e7a87a7bc61df701feb8a475391e30c0dfe7999d1c2b856646576b0d25e1336f0d1509ca30e9757c01cd9f WHIRLPOOL 5cf0739b7d5492c3ebea877a588bf4080decdcdb147dc8708fb1a05088394f7879664eedf2959cdc240a3ec87c7b13b726279053cea85361f4917c5c5c306aa1
DIST bitstring-3.0.1.zip 623680 SHA256 d75d20f1c4c7543cf500e95eab9596877fa1c4d7d9952d7402dae77dc410419e SHA512 9a9728cc513d1692d4f4800b43b5de36841d49620c63cbe637fa06cfb554f23bd6276b51a096a71f649a4adb8b905127332f517e7f214f48a672502611c603da WHIRLPOOL fb8f15991340662cccf8a0e2936e8564734f54d145b6529b91985b6d27441debb2b22e1a197e39216159b93d875bd79106e7e1547462574d2256b72c62031780
DIST bitstring-3.0.2.zip 618856 SHA256 1ff42c7192b694774e09ad70a6dd40a0e655ec022ed4f090c929ea69f21b8ebc SHA512 6b0f4d926b693a2c9f28a61902000a446ce76778a0e31ea845891fccc3bdbe8b5f369a457fcc653801777c0c83a801a663a77c932fa4d6233976fad142987825 WHIRLPOOL d402b12d4f589bfe256944508fe6d8491f829907f32ac451d560222bded611bbeaf28e36c659e0d5967a2a60bcf1de5e3c8b35f7fba25a98721456beafa0608d
DIST bitstring-3.1.0.zip 620245 SHA256 a85b382481985e1382de09e9e00fc4e31ef7c2f36c2f0724c4d008a9a0691c3f SHA512 23e4b7584acce15e452900d7354284dc75cccddee3bbedfcfd53c955af3ae701ee2f089dd6f019e3960b9b86f22b80b92786b2e85ededa48ad33bb02c3ff797b WHIRLPOOL a9fa999d832c12d9f29297e1937cea482f2af9841b950dca3ebff906085e4543770292cf1b9b62f50b27b41b1ef1de8d2f8cc80051ae3483414dff861afbd73b

@ -1,27 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/bitstring/bitstring-2.2.0.ebuild,v 1.2 2012/02/21 03:38:15 patrick Exp $
EAPI=3
SUPPORT_PYTHON_ABIS=1
RESTRICT_PYTHON_ABIS="2.5"
inherit distutils
DESCRIPTION="A pure Python module for creation and analysis of binary data"
HOMEPAGE="http://python-bitstring.googlecode.com/"
SRC_URI="http://python-bitstring.googlecode.com/files/${P}.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-arch/unzip"
src_test() {
testing() {
PYTHONPATH="../build-${PYTHON_ABI}/lib" "$(PYTHON)" test_${PN}.py
}
pushd test > /dev/null
python_execute_function testing
popd > /dev/null
}

@ -1,27 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/bitstring/bitstring-3.0.1.ebuild,v 1.2 2012/02/21 03:38:15 patrick Exp $
EAPI=3
SUPPORT_PYTHON_ABIS=1
RESTRICT_PYTHON_ABIS="2.5"
inherit distutils
DESCRIPTION="A pure Python module for creation and analysis of binary data"
HOMEPAGE="http://python-bitstring.googlecode.com/"
SRC_URI="http://python-bitstring.googlecode.com/files/${P}.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-arch/unzip"
src_test() {
testing() {
PYTHONPATH="../build-${PYTHON_ABI}/lib" "$(PYTHON)" test_${PN}.py
}
pushd test > /dev/null
python_execute_function testing
popd > /dev/null
}

@ -1,27 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/bitstring/bitstring-3.0.2.ebuild,v 1.2 2012/02/21 03:38:15 patrick Exp $
EAPI=3
SUPPORT_PYTHON_ABIS=1
RESTRICT_PYTHON_ABIS="2.5"
inherit distutils
DESCRIPTION="A pure Python module for creation and analysis of binary data"
HOMEPAGE="http://python-bitstring.googlecode.com/"
SRC_URI="http://python-bitstring.googlecode.com/files/${P}.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-arch/unzip"
src_test() {
testing() {
PYTHONPATH="../build-${PYTHON_ABI}/lib" "$(PYTHON)" test_${PN}.py
}
pushd test > /dev/null
python_execute_function testing
popd > /dev/null
}

@ -0,0 +1,29 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/bitstring/bitstring-3.1.0-r1.ebuild,v 1.1 2013/03/22 12:30:55 grozin Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7,3_2} )
inherit distutils-r1
DESCRIPTION="A pure Python module for creation and analysis of binary data"
HOMEPAGE="http://python-bitstring.googlecode.com/"
SRC_URI="http://python-bitstring.googlecode.com/files/${P}.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="app-arch/unzip
dev-python/setuptools[${PYTHON_USEDEP}]"
python_test() {
pushd test > /dev/null
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_bitarray || die "test_bitarray failed"
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_bits || die "test_bits failed"
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_bitstore || die "test_bitstore failed"
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_bitstream || die "test_bitstream failed"
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_bitstring || die "test_bitstring failed"
PYTHONPATH="${BUILD_DIR}"/lib "${PYTHON}" -m unittest test_constbitstream || die "test_constbitstream failed"
popd > /dev/null
}

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/kombu/kombu-1.0.4.ebuild,v 1.1 2013/01/26 05:27:36 prometheanfire Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-python/kombu/kombu-1.0.4.ebuild,v 1.2 2013/03/21 18:40:40 prometheanfire Exp $
EAPI="4"
@ -22,7 +22,7 @@ KEYWORDS="~amd64 ~x86"
IUSE="doc examples test"
RDEPEND=">=dev-python/anyjson-0.3.3
>=dev-python/amqplib-1.0.2"
>=dev-python/amqplib-0.6"
DEPEND="${RDEPEND}
test? ( dev-python/nose-cover3
dev-python/mock

@ -1,2 +1,2 @@
DIST milk-0.4.3.tar.gz 83072 SHA256 ac34d688a493ccd7ff45e79b2638fa0b26e4260c725f179d9b3a8f17c2a18fdd SHA512 9350b0e60550bad7dd44b77b252b6a061a693fbd8ad2fa4b5cac66c8b2c59d21e507f71f0f3f7aae626e5ccec8625f050a0cdeb61948efb6bd9a9e4c116f3137 WHIRLPOOL c4de15da8c89b4e55424f3d948d80ec418be838b6063fc8bed7d1bcb0ce1ad324a0e9f9c00136659311ef28b758486b76db3c0e1ac7c7888e9cf9898da5a4edb
DIST milk-0.5.1.tar.gz 623685 SHA256 f7fedd0f50967130bc0ddd6c1ce99a644305855d1d2d3c5d6d36b103bb749d37 SHA512 3ac6811f4c15b65de87cae0089ce3fd8372d4b349ea9b7e49db581dcd29e27baf6e33ddca9c6d96e832ebe499e9032de253da532d3241fbbaa4ac124d97a8386 WHIRLPOOL 096fee2ab0f5676c1bec9b3876f43a1d12eab215c5931bb2306d77d466924b7f0d3ac3fb026265cbed0123dec2f6eb15f917be060e7ddd5bc677a2c93a7da0da
DIST milk-0.5.tar.gz 135964 SHA256 69be63eb301873f5dd39a23e669a671ff68ff118f328907637f839445a29bec5 SHA512 b9f818a23bfbd9ef2726bdaba746fcb693af1aaa8471b0211328b4c70e25e01cb95e6c0bc663b49284398d1da1e9ee8c5d073546a331ff11831274cedd1c0e5c WHIRLPOOL 0ed09fead5b4c560ab02b08cb680eb2d4864e38f8be5d902c89927497c02ffda6a325c1a2b2ec5bd9ad7753ace48c861c063b1851104119be22a7f7f07999ce1

@ -17,4 +17,7 @@
most of the performance sensitive code is in C++. This is behind
Python-based interfaces for convenience.
</longdescription>
<upstream>
<remote-id type="pypi">milk</remote-id>
</upstream>
</pkgmetadata>

@ -1,15 +1,12 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/milk/milk-0.4.3.ebuild,v 1.1 2012/11/01 19:40:37 bicatali Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-python/milk/milk-0.5.1.ebuild,v 1.1 2013/03/21 17:35:07 bicatali Exp $
EAPI=4
EAPI=5
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.5 3.* *-pypy-* *-jython"
DISTUTILS_SRC_TEST="setup.py"
PYTHON_COMPAT=( python{2_6,2_7} )
inherit distutils
inherit distutils-r1
DESCRIPTION="Machine learning toolkit in Python"
HOMEPAGE="http://luispedro.org/software/milk"
@ -22,4 +19,5 @@ IUSE="test"
RDEPEND="dev-python/numpy"
DEPEND="dev-python/setuptools
test? ( dev-python/milksets sci-libs/scipy )"
dev-cpp/eigen:3
test? ( dev-python/milksets sci-libs/scipy[${PYTHON_USEDEP}] )"

@ -2,4 +2,5 @@ DIST mozrunner-2.5.4.tar.gz 17120 SHA256 33e48ddf35b7717489106aab2f3b06f2db5e6e8
DIST mozrunner-5.10.tar.gz 6946 SHA256 3b2477a2edbab4a489d922d094669a8cf0482daa5df01f0d9d7ddfcfe96b983e SHA512 0e8a8797129e73b6fabc6719b9a5d26a3d34f2592c2328f608ea567a9e2e167f751bbccd185e4870a4c23260460bfb106cdd43e83faa54ad45dd8c79f2197146 WHIRLPOOL bdd279f3b5a180b4b1a5b066dd350d8bd68bb69ce2b01dcdc7763031300d86bc53adfd47d5b1a8c0e7f068b5acafc8d04f90a824714693d7ed2c2c0594a1823d
DIST mozrunner-5.12.tar.gz 6933 SHA256 92e46e9128ed65d149ef5ccd7a64db1bbb98b6b2de67ffcd7cacffca3b9c6acd SHA512 649dd14a7f927ada6a42f28021ada961f73f190f79ffbc13f3ab6fb68a3e478b742b31a4590d560e0ae8218964bafb6bc4ffe807d225f41b1f0c254bb74712d0 WHIRLPOOL e108c8bd5594c2a53aeffa3e56e4e23e04682dad063e071238a5d60d511b9c7eafd86818e445f56ab83616cf59162f11b393d02a3469d75338fb9c29bb1674ad
DIST mozrunner-5.14.tar.gz 6923 SHA256 74ade342bfb17d428e7dd46fd591fbd34345781a6831f627ed09f7dfe33d0fbb SHA512 dcd93476a7ab09a5dc3667c294545c43b22ebe8d5e0f88293468729410c3df0833efdb7f63918bdb66f9c447c2be2aaaaf5cfb6f81a1e3e4d814460f74e0987b WHIRLPOOL d3975ad3b69cbebef5e783855010971c76f649990a118103859546d9e65320797ac8010579c17d981c74ec72cf90f2336317f3b3832a1983c6a740c1804324f9
DIST mozrunner-5.15.tar.gz 6235 SHA256 9c3d90302b42f04fb728305f67b1812f133c6537d136b8845c4c56db68e77991 SHA512 4b5474c1bc94396e2037344608cf7171cfb38264398ac7efa03bf5c04a81b1d57af0a1d4dee29cacc3c2e4ffed1d38ab1e1d81a8cc9289e5434f5c976b87b36f WHIRLPOOL 2dad473711ec635f330dc281b460fab9d322bff69bffce3fbc9a7637df5334fcdcd8518fc5b8ecd79d3fa9257a6a14aeec54cd6d4d2689abe559aee0c72a5d34
DIST mozrunner-5.2.tar.gz 6847 SHA256 432c632e954f371a3484e7c1d1532359cd0bb4bd717985e8e565b7fe71e8b3aa SHA512 d521513ec98381c67ab25fbcdcfbf646a39339425c6bebee6bce16969f80a53895f0bb023853fc404dc4ec717568998f906a6a362f45c55e0879141b94688a43 WHIRLPOOL 092ddc5f4d5b8b59da4df4440a0f4f1650a02d4ddb8a765b58de12b1a75f81bf732a6db120b2a0e6d5fd4b321c669148e0fc70cf191623db1d585c127f9c23bc

@ -0,0 +1,31 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/mozrunner/mozrunner-5.15.ebuild,v 1.1 2013/03/21 07:36:42 patrick Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit distutils
DESCRIPTION="Reliable start/stop/configuration of Mozilla Applications (Firefox, Thunderbird, etc.)"
HOMEPAGE="http://pypi.python.org/pypi/mozrunner"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-python/simplejson
>=dev-python/mozinfo-0.3.3
>=dev-python/mozprocess-0.7
>=dev-python/mozprofile-0.4
dev-python/setuptools"
RDEPEND="${DEPEND}"
src_prepare() {
sed -e 's/\(moz.*\) ==/\1 >=/' -i setup.py
distutils_src_prepare
}

@ -0,0 +1,22 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/prettytable/prettytable-0.6-r1.ebuild,v 1.1 2013/03/21 19:02:26 prometheanfire Exp $
EAPI=5
PYTHON_COMPAT=( python2_6 python2_7 python3_2 )
inherit distutils-r1
DESCRIPTION="A Python library for easily displaying tabular data in a
visually appealing ASCII table format."
HOMEPAGE="https://code.google.com/p/prettytable/"
SRC_URI="https://prettytable.googlecode.com/files/prettytable-0.6.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-python/setuptools"
RDEPEND="${DEPEND}"

@ -1,2 +1 @@
DIST python-keystoneclient-0.2.1.tar.gz 131997 SHA256 ab0bad758450cb50a91eca71cf738b88f4443a7f9aef317ad50447c3caeba692 SHA512 207ac0531d04f5bfd3a0d3e385dff94778c20300c264961fb78fd0f391074892267a844f2a05b48e4a55b58c1748a332231550c876417d133451160b8690c467 WHIRLPOOL 698dc7cbe88cc5208b331282f22695c27925c91921581735a024c729a6232799a2481acc2bae624810f468ec885c5833e604935966c3453ab981472a2f4b4b46
DIST python-keystoneclient-0.2.2.tar.gz 171725 SHA256 8dc4ec5864c4b72c07f29cf2089f0f394880d8e0b0f420c06479bb268ac0e346 SHA512 edb058f4c390cbb8df3a7bab8ccb6ba05dbb47f936eae09c3a16013174d03151411e6e867377b765246580e6cf72fd5027376ac29df5a868c4879ad6f5d86e86 WHIRLPOOL 39c9ff5d20f8e00d56626b290ef633072f915329892892110d61f33c97cf04bbea17e2630bf9279b2d93e70bf38702e301a0192eb59b69548a13510c06f9df90

@ -1,44 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-keystoneclient/python-keystoneclient-0.2.1-r1.ebuild,v 1.1 2013/01/11 22:19:40 prometheanfire Exp $
EAPI=5
#restricted due to packages missing and bad depends in the test ==webob-1.0.8
RESTRICT="test"
PYTHON_COMPAT=( python2_5 python2_6 python2_7 )
inherit distutils-r1
DESCRIPTION="A client for the OpenStack Keystone API"
HOMEPAGE="https://github.com/openstack/python-keystoneclient"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
#IUSE="test"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="dev-python/httplib2
dev-python/prettytable
dev-python/requests
dev-python/simplejson[${PYTHON_USEDEP}]
virtual/python-argparse[${PYTHON_USEDEP}]"
# test? ( dev-python/Babel
# dev-python/coverage
# dev-python/iso8601
# dev-python/keyring
# dev-python/mock
# dev-python/mox
# dev-python/nose
# dev-python/nose-exclude #not packaged
# dev-python/nosehtmloutput #not packaged
# >=dev-python/pep8-1.3.3
# >=app-misc/sphinx-1.1.2
# dev-python/unittest2
# >=dev-python/webob-1.0.8 )"
#
#python_test() {
# "${PYTHON} setup.py nosetests || die
#}

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>qt</herd>
<herd>qt</herd>
</pkgmetadata>

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/shiboken/shiboken-1.1.2-r1.ebuild,v 1.4 2013/03/07 18:17:23 ago Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-python/shiboken/shiboken-1.1.2-r1.ebuild,v 1.5 2013/03/21 10:48:36 jlec Exp $
EAPI=5
@ -52,7 +52,7 @@ src_configure() {
configuration() {
local mycmakeargs=(
-DPYTHON_EXECUTABLE="${PYTHON}"
-DPYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)"
-DPYTHON_SITE_PACKAGES="$(python_get_sitedir)"
-DPYTHON_SUFFIX="-${EPYTHON}"
$(cmake-utils_use_build test TESTS)
)
@ -60,8 +60,8 @@ src_configure() {
if [[ ${EPYTHON} == python3* ]]; then
mycmakeargs+=(
-DUSE_PYTHON3=ON
-DPYTHON3_INCLUDE_DIR="${EPREFIX}$(python_get_includedir)"
-DPYTHON3_LIBRARY="${EPREFIX}$(python_get_library_path)"
-DPYTHON3_INCLUDE_DIR="$(python_get_includedir)"
-DPYTHON3_LIBRARY="$(python_get_library_path)"
)
fi

@ -0,0 +1,33 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/vatnumber/vatnumber-1.0-r1.ebuild,v 1.1 2013/03/21 16:16:28 idella4 Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_6,2_7} pypy{1_9,2_0} )
inherit distutils-r1
DESCRIPTION="Module to validate VAT numbers"
HOMEPAGE="http://code.google.com/p/vatnumber/"
SRC_URI="http://vatnumber.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test vies"
RDEPEND="vies? ( dev-python/suds )"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/suds )"
PARCHES=( "${FILESDIR}"/${P}-skiptest.patch )
python_test() {
esetup.py test
}
src_install() {
distutils-r1_src_install
dodoc COPYRIGHT README CHANGELOG
}

@ -0,0 +1,25 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/versiontools/versiontools-1.9.1-r1.ebuild,v 1.1 2013/03/21 14:47:10 idella4 Exp $
EAPI=5
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2} pypy{1_9,2_0} )
#DISTUTILS_SRC_TEST=setup.py
inherit distutils-r1
DESCRIPTION="Smart replacement for plain tuple used in __version__"
HOMEPAGE="http://pypi.python.org/pypi/versiontools/ https://launchpad.net/versiontools"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
IUSE=""
LICENSE="GPL-2"
SLOT="0"
RDEPEND=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
python_test() {
esetup.py test
}

@ -0,0 +1,21 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/virtualenv-clone/virtualenv-clone-0.2.4-r1.ebuild,v 1.1 2013/03/21 13:08:04 idella4 Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} python{3_1,3_2} )
inherit distutils-r1
DESCRIPTION="A script for cloning a non-relocatable virtualenv."
HOMEPAGE="http://github.com/edwardgeorge/virtualenv-clone"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"

@ -0,0 +1,51 @@
mkdtemp works against pypy's libdir
diff -ur virtualenv-1.9.1.orig/tests/test_virtualenv.py virtualenv-1.9.1/tests/test_virtualenv.py
--- virtualenv-1.9.1.orig/tests/test_virtualenv.py 2013-03-08 07:14:17.000000000 +0800
+++ virtualenv-1.9.1/tests/test_virtualenv.py 2013-03-21 21:59:59.180297883 +0800
@@ -97,27 +97,28 @@
cop.update_defaults(defaults)
assert defaults == {'system_site_packages': 0}
-def test_install_python_bin():
- """Should create the right python executables and links"""
- tmp_virtualenv = tempfile.mkdtemp()
- try:
- home_dir, lib_dir, inc_dir, bin_dir = \
+if not hasattr(sys, 'pypy_version_info'):
+ def test_install_python_bin():
+ """Should create the right python executables and links"""
+ tmp_virtualenv = tempfile.mkdtemp()
+ try:
+ home_dir, lib_dir, inc_dir, bin_dir = \
virtualenv.path_locations(tmp_virtualenv)
- virtualenv.install_python(home_dir, lib_dir, inc_dir, bin_dir, False,
+ virtualenv.install_python(home_dir, lib_dir, inc_dir, bin_dir, False,
False)
- if virtualenv.is_win:
- required_executables = [ 'python.exe', 'pythonw.exe']
- else:
- py_exe_no_version = 'python'
- py_exe_version_major = 'python%s' % sys.version_info[0]
- py_exe_version_major_minor = 'python%s.%s' % (
- sys.version_info[0], sys.version_info[1])
- required_executables = [ py_exe_no_version, py_exe_version_major,
+ if virtualenv.is_win:
+ required_executables = [ 'python.exe', 'pythonw.exe']
+ else:
+ py_exe_no_version = 'python'
+ py_exe_version_major = 'python%s' % sys.version_info[0]
+ py_exe_version_major_minor = 'python%s.%s' % (
+ sys.version_info[0], sys.version_info[1])
+ required_executables = [ py_exe_no_version, py_exe_version_major,
py_exe_version_major_minor ]
- for pth in required_executables:
- assert os.path.exists(os.path.join(bin_dir, pth)), ("%s should "
+ for pth in required_executables:
+ assert os.path.exists(os.path.join(bin_dir, pth)), ("%s should "
"exist in bin_dir" % pth)
- finally:
- shutil.rmtree(tmp_virtualenv)
+ finally:
+ shutil.rmtree(tmp_virtualenv)

@ -0,0 +1,42 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/virtualenv/virtualenv-1.9.1-r1.ebuild,v 1.1 2013/03/21 14:18:11 idella4 Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2} pypy{1_9,2_0} )
#DISTUTILS_SRC_TEST="nosetests"
inherit distutils-r1 vcs-snapshot
DESCRIPTION="Virtual Python Environment builder"
HOMEPAGE="http://www.virtualenv.org/ http://pypi.python.org/pypi/virtualenv"
SRC_URI="https://github.com/pypa/${PN}/tarball/${PV} -> ${P}.tar.gz"
LICENSE="MIT"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
SLOT="0"
IUSE="doc test"
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? ( dev-python/mock[${PYTHON_USEDEP}] )"
DOCS="docs/index.txt docs/news.txt"
PYTHON_MODNAME="virtualenv.py virtualenv_support"
# let the python eclass handle script versioning
PATCHES=( "${FILESDIR}"/${PN}-1.8.2-no-versioned-script.patch
"${FILESDIR}"/${P}-pypy.patch )
python_compile_all() {
use doc && emake -C docs html
}
python_install_all() {
use doc && dohtml -r docs/_build/html/
}
python_test() {
nosetests "${S}"/tests || die
}

@ -0,0 +1,18 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/w3lib/w3lib-1.2-r1.ebuild,v 1.1 2013/03/21 12:49:57 idella4 Exp $
EAPI=5
PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} )
inherit distutils-r1
DESCRIPTION="Python library of web-related functions"
HOMEPAGE="http://github.com/scrapy/w3lib"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

@ -0,0 +1,33 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/webpy/webpy-0.37-r1.ebuild,v 1.1 2013/03/21 10:59:53 idella4 Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
inherit distutils-r1
MY_PN="web.py"
DESCRIPTION="A small and simple web framework for Python"
HOMEPAGE="http://www.webpy.org http://pypi.python.org/pypi/web.py"
SRC_URI="http://www.webpy.org/static/${MY_PN}-${PV}.tar.gz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~x86 ~amd64-linux ~x86-linux"
IUSE=""
DEPEND=""
RDEPEND=""
S="${WORKDIR}/web.py-${PV}"
python_test() {
local return_status="0" test tests="db http net template utils"
for test in ${tests}; do
echo "Running doctests in ${test}.py..."
"${PYTHON}" web/${test}.py || return_status="$?"
done
return "${return_status}"
}

@ -5,3 +5,4 @@ DIST WebTest-1.3.tar.gz 76603 SHA256 aba8f6dcf87584c1d05848814cdd6c58fcb4cde1640
DIST WebTest-1.4.0.tar.gz 82799 SHA256 d4764ae3a63de7775ff3e840a07a8c1d010222b36c7b3d9298046677c8f96297 SHA512 86971167f878d9caa9b8b942add949c2a5a45d89a17d180161ff30df4e0aad72dadf567209f70f301f7055844cb4aa7d744f65994383617498c4ef00e59213dc WHIRLPOOL 634c90bbce71e9fd090c0e5bf6b7a115545c154644b449885bb1ebdd420e314b5361570f2b154d6ddf60fa2f2c2a2466ee1e5556582cacd876da5e2177157541
DIST WebTest-1.4.3.zip 80008 SHA256 0439d951afdf6c58d19e0a83e30855d0bb7e35ab177d9261add71fc5a724b6ab SHA512 87436f182edc3178481f4ec3d073399784e353d6480790470891a18d3605c2bb5a1f4effe0ffa0ce241f1256e99f1a4e3e5fcd2896acb8931aeb60a88fa2bfa2 WHIRLPOOL e509a71a213b9085473536afb51142c4cd9fe99b52870139498fe5b68e8326e8b23df9af3502f0d3ebffbe0076165564d38ef143d9b229bb94b23bb857ca6fe9
DIST WebTest-2.0.1.zip 78547 SHA256 cae12f69bb02efe15b2f8eafa380b5d7d32727fc528599d5b6505bc3fa6f77b6 SHA512 8179e4bba69ddb61099da5f4eabad8059e5ef39e4a019314da59f18276bcbb09a1a5f2850a14797d4bce51543988be10a799fda1c31ce4dc33bcd0cc09514053 WHIRLPOOL a3a817168c4b107b8ef919137e9302b7653eab9141ce2f5b272753c2f333f59d4dc735b32f405909a2b0f3e6366f24270e9ef75448edd4b95b720b276be68b1a
DIST WebTest-2.0.2.zip 78871 SHA256 b42cee18e77662463e7527c63206947a614a383756d257dac3e8f7713038d0fc SHA512 55c82f19114c7c269dc6e4296ada35415e228977bd5c78acbe26397d6c676d224bb76cefe56d8541ec611fa1a2a44bdd4fb18fca9435c4369e070d4d2897df5d WHIRLPOOL 1c81ef24bb6ce4b83b61d29dc5c0d5fd420fd087f33217c0a07aa7bce4d61c8eab56b7d7b755d50a8edd0d6d5b6d3d05545264cb6f14d902fefa296fba18e6cf

@ -0,0 +1,63 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/webtest/webtest-2.0.2.ebuild,v 1.1 2013/03/21 07:02:59 patrick Exp $
EAPI=5
# sigh.
RESTRICT="test"
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
PYTHON_TESTS_RESTRICTED_ABIS="3.*"
inherit distutils-r1
MY_PN="WebTest"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Helper to test WSGI applications"
HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
RDEPEND=">=dev-python/webob-0.9.2[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
app-arch/unzip
dev-python/setuptools[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? ( dev-python/nose[${PYTHON_USEDEP}]
dev-python/pyquery[${PYTHON_USEDEP}]
dev-python/waitress[${PYTHON_USEDEP}]
dev-python/wsgiproxy2[${PYTHON_USEDEP}]
dev-python/paste
dev-python/pastedeploy )"
S="${WORKDIR}/${MY_P}"
python_compile_all() {
if use doc; then
sphinx-build docs html || die
fi
}
python_test() {
nosetests || die "Tests fail with ${EPYTHON}"
}
python_install() {
distutils-r1_python_install
# Why is it so?
if [[ ${EPYTHON} == python3* ]]; then
rm -f "${D}$(python_get_sitedir)"/webtest/lint3.py
fi
}
python_install_all() {
use doc && local HTML_DOCS=( html/. )
distutils-r1_python_install_all
}

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtcore/qtcore-4.8.4-r4.ebuild,v 1.2 2013/03/03 03:31:54 pesa Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-qt/qtcore/qtcore-4.8.4-r4.ebuild,v 1.3 2013/03/22 03:04:56 vincent Exp $
EAPI=5
@ -11,7 +11,7 @@ SLOT="4"
if [[ ${QT4_BUILD_TYPE} == live ]]; then
KEYWORDS=""
else
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
fi
IUSE="+glib iconv icu qt3support ssl"

@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tex/luatex/luatex-0.70.1-r2.ebuild,v 1.6 2013/03/17 16:03:10 ago Exp $
# $Header: /var/cvsroot/gentoo-x86/dev-tex/luatex/luatex-0.70.1-r2.ebuild,v 1.7 2013/03/21 16:00:09 jer Exp $
EAPI=5
@ -13,7 +13,7 @@ SRC_URI="http://foundry.supelec.fr/gf/download/frsrelease/392/1730/${PN}-beta-${
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="doc"
RDEPEND="dev-libs/zziplib

@ -0,0 +1 @@
DIST molecule-core-1.0.1.tar.bz2 31571 SHA256 293fc2fb91b13b385bc4c48c8fa1c1dfd1223cac137801ed43e656d9b0a2cf9c SHA512 b13aa69149f84972752bf688fe29943a9f8161ba1b1ae09aecba72fa9044731ce29025cfa81d737ad5d046803056a2c70f20c29227fb20e86bd943bef4ed932b WHIRLPOOL e5ff0964678a5c520d4db2523c757c5f07bacce821a7ba614a36095f913a08d8170fafc8e152d5542d0e2fc7b9621704a6b9bd9f709112809384ef1faa111c9d

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>lxnay@gentoo.org</email>
<name>Fabio Erculiani</name>
</maintainer>
<longdescription lang="en">
Molecule is a build tool that can build, rebuild or extend Sabayon Linux or
Gentoo Linux OS releases OpenVZ templates and stage4 tarballs.
It doesn't contain any specific package manager bit and can work with
your favourite one. The philosophy of Molecule is simple: ease of use and
modularity.
Just like Catalyst, Molecule uses its own .spec file format and learning
how to write one is just about reading examples provided at
http://git.sabayon.org/molecules.git/.
You can tweak your ISO image or create one off your chroot (stage4) in no
time. Molecule uses a plugin-based system to implement support for new
execution patterns (like ISO to ISO, ISO to Tar, Chroot to ISO, etc).
Molecule is born inside Sabayon and is used in its release cycle for both
daily(live) and versioned ISO images.
Molecule developers are looking for help for writing user docs and HOWTOs.
</longdescription>
</pkgmetadata>

@ -0,0 +1,36 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/molecule-core/molecule-core-1.0.1.ebuild,v 1.2 2013/03/21 13:31:56 lxnay Exp $
EAPI="5"
PYTHON_DEPEND="*"
inherit python
DESCRIPTION="Sabayon distro-agnostic images build tool"
HOMEPAGE="http://www.sabayon.org"
SRC_URI="mirror://sabayon/${CATEGORY}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-util/intltool
sys-devel/gettext"
RDEPEND="!<dev-util/molecule-1.0
sys-process/lsof"
src_install() {
emake DESTDIR="${D}" LIBDIR="/usr/lib" \
PREFIX="/usr" SYSCONFDIR="/etc" install \
|| die "emake install failed"
}
pkg_postinst() {
python_mod_optimize "/usr/lib/molecule"
}
pkg_postrm() {
python_mod_cleanup "/usr/lib/molecule"
}

@ -0,0 +1 @@
DIST molecule-plugins-1.0.1.tar.bz2 35623224 SHA256 a39e8639aa25e8c086a4de1a3dbd1d4f9abe86ab8684916aca4d88c2941ebe91 SHA512 2a54b43aa496ba39e555564428d7ee6d542e95240a5be60204de871e4f3e4a39354cd0c8e9b9e31f54bba1a14046041ef432e4d2793961cefc815b52df5bc9c2 WHIRLPOOL 65049e5a0fe5177b253c5006f6843c2a98d732f4a2b588d844d0c846f54fbdd3c9a97be0f362ff820e17821dc9acf08faf83c160084a99c6fe23f510ce0a941e

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>lxnay@gentoo.org</email>
<name>Fabio Erculiani</name>
</maintainer>
</pkgmetadata>

@ -0,0 +1,39 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/molecule-plugins/molecule-plugins-1.0.1.ebuild,v 1.1 2013/03/21 13:06:37 lxnay Exp $
EAPI="5"
PYTHON_DEPEND="*"
inherit python
DESCRIPTION="A set fo base plugins for Molecule"
HOMEPAGE="http://www.sabayon.org"
SRC_URI="mirror://sabayon/${CATEGORY}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
COMMON_DEPEND="~dev-util/molecule-core-${PV} !<dev-util/molecule-1.0"
DEPEND="${COMMON_DEPEND}"
RDEPEND="${COMMON_DEPEND}
net-misc/rsync
sys-fs/squashfs-tools
sys-process/lsof
virtual/cdrtools"
src_install() {
emake DESTDIR="${D}" LIBDIR="/usr/lib" \
PREFIX="/usr" SYSCONFDIR="/etc" install \
|| die "emake install failed"
}
pkg_postinst() {
python_mod_optimize "/usr/lib/molecule"
}
pkg_postrm() {
python_mod_cleanup "/usr/lib/molecule"
}

@ -5,20 +5,7 @@
<email>lxnay@gentoo.org</email>
<name>Fabio Erculiani</name>
</maintainer>
<longdescription lang="en">
Metro is a build tool that can build, rebuild or extend Sabayon Linux or
Gentoo Linux OS releases OpenVZ templates and stage4 tarballs.
It doesn't contain any specific package manager bit and can work with
your favourite one. The philosophy of Molecule is simple: ease of use and
modularity.
Just like Catalyst, Molecule uses its own .spec file format and learning
how to write one is just about reading examples provided inside
/usr/share/molecule/examples.
You can tweak your ISO image or create one off your chroot (stage4) in no
time. Molecule uses a plugin-based system to implement support for new
execution patterns (like ISO to ISO, ISO to Tar, Chroot to ISO, etc).
Molecule is born inside Sabayon and is used in its release cycle for both
daily(live) and versioned ISO images.
Molecule developers are looking for help for writing user docs and HOWTOs.
</longdescription>
<use>
<flag name='plugins'>Add plugins provided by dev-util/molecule-plugins</flag>
</use>
</pkgmetadata>

@ -0,0 +1,18 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/molecule/molecule-1.ebuild,v 1.1 2013/03/21 13:14:38 lxnay Exp $
EAPI="5"
DESCRIPTION="Meta package for dev-util/molecule-core and dev-util/molecule-plugins"
HOMEPAGE="http://www.sabayon.org"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+plugins"
DEPEND=""
RDEPEND=">=dev-util/molecule-core-1.0.1
plugins? ( >=dev-util/molecule-plugins-1.0.1 )"

@ -2,3 +2,4 @@ DIST plan9port-20130119.tgz 54176486 SHA256 d63733c4396e2569a04131517e86f253e270
DIST plan9port-20130131.tgz 54178455 SHA256 ece69e2e4b0f46e8bafef1ea77dbbb616e3b5af0ae0f617e1aa5470fe4351110 SHA512 a8169ffd6f0f469e6c31e62b0b7ead6a31d05a4d3f73cff108c6dd5728ad84f05de88c82b9cd135d8c16b541e38f472413da69e4f9d7aebc6ad91a5be89c390d WHIRLPOOL 0598d959a69a474967458b0e471c32742c676d714b734200ae63624c6f114991616c8fa78fe5c02c45f74b8f3edc50759df547118cc9ef136dd093307aa35a56
DIST plan9port-20130209.tgz 54179646 SHA256 39d1cd0b09444b19351bd52b1f0574be14a6faffae57e9673bed48d168952da7 SHA512 21f3cf29b517a43cba5871e8c007a81b88f87aeed8b89ff5a395af0d84bce77f873186e54c09a3acdd9e15649ea432bebb2032ec120074c450d3b7b44f79c531 WHIRLPOOL 49769f370b18fc809b61959655c2e2e28f865fa2f02fec09f21b29d0f4d60535ef5f0c554e38059936594c0e95223a5cdf9475ae609fdcea2836d4e995ff03de
DIST plan9port-20130308.tgz 54181899 SHA256 a3757adcdf922c7660342f5690b9d7ec2cd0fed259a9e58a2169e0be0de995ee SHA512 1df8fcf1a6f2a8c8a5a7a1073b4bfd1ce855b8edba9ca933cb2c28891e5db70934958dad530807ec0167f2badf51be897d367b05844c75200a04a465989260aa WHIRLPOOL 55e1ceeaed3f19ca8b666aa2741f9e59e633968089e47cd90b194909772f4fbde2f3e179d25d145b282e79101b4c9805d9e4f09528f00734b5007603817bd23a
DIST plan9port-20130320.tgz 54184719 SHA256 d08fd032edc9c27bc549ee9076963812f210476d0d1f21f5300e9d867699ff55 SHA512 fae40eae76a0f3121f47a3895809f2433beed91fc9e879c8cde25e493ec91dfdfc89fe59e3fe3a8aab7c33a2537a02b30857edb3af7f202df4a98e02cee8ecb7 WHIRLPOOL 5b707c8d18c8f1fa8e3d36e8f14a20213cad9ab3344f088f18942034dce3356ba88675c5817a7d50b66275d71d95e6d5fd3fdefbd18bcca9089790e258dbb60f

@ -0,0 +1,76 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/plan9port/plan9port-20130320.ebuild,v 1.1 2013/03/22 12:06:39 blueness Exp $
EAPI="4"
inherit eutils
DESCRIPTION="Port of many Plan 9 programs and libraries"
HOMEPAGE="http://swtch.com/plan9port/"
SRC_URI="http://${PN}.googlecode.com/files/${P}.tgz"
LICENSE="9base BSD-4 MIT LGPL-2.1 BigelowHolmes"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="x11-apps/xauth"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
PLAN9=/usr/lib/plan9
src_prepare()
{
epatch "${FILESDIR}/${PN}-"{9660srv-errno,noexecstack,cflags}".patch"
# Fix paths, done in place of ./INSTALL -c
einfo "Fixing hard-coded /usr/local/plan9 paths"
grep --null -l -r '/usr/local/plan9' |
xargs --null sed -i "s!/usr/local/plan9!${PLAN9}!g"
}
src_compile() {
# Convert -j5 to NPROC=5 for mk
export NPROC="$(echo "$MAKEOPTS" | sed -r -n 's/.*(^| )-j([0-9]*).*/\2/p')"
# The INSTALL script builds mk then [re]builds everything using that
einfo "Compiling Plan 9 from User Space can take a very long time"
einfo "depending on the speed of your computer. Please be patient!"
./INSTALL -b
}
src_install() {
dodir "${PLAN9}"
# P9P's man does not handle compression
docompress -x $PLAN9/man
# do* plays with the executable bit, and we should not modify them
cp -a * "${D}/${PLAN9}"
# build the environment variables and install them in env.d
cat > "${T}/30plan9" <<-EOF
PLAN9="${PLAN9}"
PATH="${PLAN9}/bin"
ROOTPATH="${PLAN9}/bin"
MANPATH="${PLAN9}/man"
EOF
doenvd "${T}/30plan9"
}
pkg_postinst() {
elog "Plan 9 from User Space has been successfully installed into"
elog "${PLAN9}. Your PLAN9 and PATH environment variables have"
elog "also been appropriately set, please use env-update and"
elog "source /etc/profile to bring that into immediate effect."
elog
elog "Please note that ${PLAN9}/bin has been appended to the"
elog "*end* or your PATH to prevent conflicts. To use the Plan9"
elog "versions of common UNIX tools, use the absolute path:"
elog "${PLAN9}/bin or the 9 command (eg: 9 troff)"
elog
elog "Please report any bugs to bugs.gentoo.org, NOT Plan9Port."
}

@ -0,0 +1 @@
DIST beathazard-installer_03-08-13 183569201 SHA256 ba5d67d820b3367b7080cd73f433d13964285904a55d5be6578bbe9966963faa SHA512 273f550034473d43ac4ceb41018b540f6518393606249de490642a4e6f0dfb5f0b860d3a633db0f90f3b9fce1dc156cf4bd80d383f7e6eae91a5e7bd9e9427d4 WHIRLPOOL 91032365fce84eff65361397935f9e36eae8740f5ae947c976e2e30e76396e55423d8d959ce4476688d8c77d92b57c951c581023e675b1c59f8c286172ff5ec3

@ -0,0 +1,88 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/beathazardultra/beathazardultra-20130308.ebuild,v 1.1 2013/03/21 21:53:04 hasufell Exp $
# TODO: unbundle allegro on amd64 when multilib support
EAPI=5
inherit eutils games
DESCRIPTION="Intense music-driven arcade shooter powered by your music"
HOMEPAGE="http://www.coldbeamgames.com/"
SRC_URI="beathazard-installer_03-08-13"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="bundled-libs"
RESTRICT="bindist fetch"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/BeatHazard_Linux2
${MYGAMEDIR#/}/hge_lib/*"
DEPEND="app-arch/unzip"
RDEPEND="
virtual/opengl
amd64? (
app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-gtklibs
app-emulation/emul-linux-x86-xlibs
)
x86? (
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXinerama
x11-libs/libXrandr
!bundled-libs? (
media-libs/allegro:5
media-libs/libpng:1.2
virtual/jpeg
x11-libs/gtk+:2
)
)"
S=${WORKDIR}/data
pkg_pretend() {
if has splitdebug ${FEATURES}; then
eerror "FEATURES=splitdebug is broken for this package, disable it locally"
die "FEATURES=splitdebug is broken for this package, disable it locally"
fi
}
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to ${DISTDIR}"
einfo
}
src_unpack() {
# self unpacking zip archive; unzip warns about the exe stuff
unzip -q "${DISTDIR}"/${A}
[[ $? -gt 1 ]] && die "unpacking failed"
}
src_prepare() {
if ! use bundled-libs ; then
einfo "Removing bundled libs..."
use x86 && { rm -v all/hge_lib/liballegro* || die ; }
rm -v all/hge_lib/libjpeg.so* all/hge_lib/libpng12.so*
fi
}
src_install() {
insinto "${MYGAMEDIR}"
doins -r all/*
dodoc Linux.README
newicon SmileLogo.png ${PN}.png
make_desktop_entry ${PN}
games_make_wrapper ${PN} "./BeatHazard_Linux2" "${MYGAMEDIR}" "${MYGAMEDIR}/hge_lib"
fperms +x "${MYGAMEDIR}"/BeatHazard_Linux2
prepgamesdirs
}

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>games</herd>
<maintainer>
<email>hasufell@gentoo.org</email>
<name>Julian Ospald</name>
</maintainer>
<use>
<flag name='bundled-libs'>
Use the upstream provided bundled libraries.
</flag>
</use>
</pkgmetadata>

@ -0,0 +1,2 @@
DIST solar2-linux-1.10.tar.gz 106202569 SHA256 33211605946741db730082478c4a408547a89facfc2e3535b124c6706809d8b2 SHA512 68475cfe9220a1f19608cd2dfb575979e231dcf1bc61e12230db5a39856a03afceeb8c3f2b0ea6d958b36a53945bdb2768261f2b0bcc50a88f2b3eeddc48df9d WHIRLPOOL 86d0ed2c7a28e498323949e871f7ba8f1714f39f98ab625f6dddb0249af7c1e653264ebc4b76cc9be5579f99395e2c578363effcd2c97bb27690b05ec4e73a4e
DIST solar2.png 6478 SHA256 ab62168651de322dc68a9094baf1ba92524d2d9e76b1650eef60527cd7e3f611 SHA512 b1110d19d62274ac90391f9611fc8efaa1c2ca70cf62f146969768ed2dd76e013054b1a9dfdb123b56536f5ba7788971747219485811eeb6652f22e0867348d9 WHIRLPOOL 358a3fb56c13710abf4ac3115c968579c787ed67f4c8672e0236ce379a56d6540f8c5ad6f8ca16370c0b080ae2763ec2256cbcd1ff2bb0765a7dc5164fc39972

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>games</herd>
<maintainer>
<email>hasufell@gentoo.org</email>
<name>Julian Ospald</name>
</maintainer>
<use>
<flag name='bundled-libs'>
Use the upstream provided bundled libraries.
</flag>
</use>
</pkgmetadata>

@ -0,0 +1,106 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/solar2/solar2-1.10.ebuild,v 1.1 2013/03/21 21:55:36 hasufell Exp $
# TODO: - unbundle libmono for 64bit
# - unbundling libSDL_mixer breaks the game
# - provide icon
# - test useflags for libsdl on x86
EAPI=5
inherit eutils gnome2-utils games
DESCRIPTION="An open-world, sandbox game set in an infinite abstract universe"
HOMEPAGE="http://murudai.com/solar/"
GAMEBALL="${PN}-linux-${PV}.tar.gz"
ICONFILE="http://dev.gentoo.org/~hasufell/distfiles/${PN}.png"
SRC_URI="${GAMEBALL} ${ICONFILE}"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="bundled-libs"
RESTRICT="bindist fetch"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/lib/*
${MYGAMEDIR#/}/Solar2.bin.x86"
RDEPEND="
virtual/opengl
amd64? (
app-emulation/emul-linux-x86-medialibs
app-emulation/emul-linux-x86-sdl
app-emulation/emul-linux-x86-soundlibs
)
x86? (
media-libs/flac
media-libs/libsdl[X,audio,video,joystick]
media-libs/libvorbis
!bundled-libs? (
dev-lang/mono
media-libs/libmad
media-libs/libmikmod
media-libs/openal
media-libs/sdl-mixer[flac,mikmod,mad,mp3,vorbis]
)
)"
S=${WORKDIR}/Solar2
pkg_pretend() {
if has splitdebug ${FEATURES}; then
eerror "FEATURES=splitdebug is broken for this package, disable it locally"
die "FEATURES=splitdebug is broken for this package, disable it locally"
fi
}
pkg_nofetch() {
einfo "Please buy & download ${GAMEBALL} from:"
einfo " ${HOMEPAGE}"
einfo "Also download ${ICONFILE}"
einfo "and move both to ${DISTDIR}"
einfo
}
src_prepare() {
# remove unused files
rm solar2.sh || die
if ! use bundled-libs ; then
einfo "Removing bundled libs..."
if use amd64 ; then
# no mono 32bit libs on amd64 yet
rm -v lib/libmad.so* lib/libmikmod.so* lib/libopenal.so* || die
else
rm -v lib/libmad.so* lib/libmikmod.so* lib/libopenal.so* lib/libmono.so* || die
fi
fi
}
src_install() {
insinto "${MYGAMEDIR}"
doins -r *
games_make_wrapper ${PN} "./Solar2.bin.x86" "${MYGAMEDIR}"
make_desktop_entry ${PN}
doicon -s 64 "${DISTDIR}"/${PN}.png
fperms +x "${MYGAMEDIR}"/Solar2.bin.x86
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}

@ -0,0 +1 @@
DIST super-hexagon-linux-15-bin 27381384 SHA256 3dbcf28ca1e67f2d61c1e1038947ef176f4f17b90688a24605794a08f06379b3 SHA512 f6734db0126e1937b694326885eb6dab639cd96217ac8734f2be59966a0a9ac52274affdb3472871e0067d2ecba8f184720ab6fdf15f2048f86395b539570a60 WHIRLPOOL 07c2007c5ab2cb0c550ce54d84ec519ecd6431fd9bdcf4c6475083f1c41562a47c8d95d33c9dbd82793abdcb10c6613520a1944499f57babde0bd4e722e37c9a

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>games</herd>
<maintainer>
<email>hasufell@gentoo.org</email>
<name>Julian Ospald</name>
</maintainer>
<use>
<flag name='bundled-libs'>
Use the upstream provided bundled libraries.
</flag>
<flag name='bundled-glew'>
Use the upstream provided bundled glew.
</flag>
</use>
</pkgmetadata>

@ -0,0 +1,93 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/super-hexagon/super-hexagon-15.ebuild,v 1.1 2013/03/21 21:58:14 hasufell Exp $
EAPI=5
inherit eutils games
DESCRIPTION="A minimal action game by Terry Cavanagh, with music by Chipzel"
HOMEPAGE="http://www.superhexagon.com/"
SRC_URI="${PN}-linux-${PV}-bin"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="bundled-libs +bundled-glew"
RESTRICT="bindist fetch"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/x86/*
${MYGAMEDIR#/}/x86_64/*"
DEPEND="app-arch/unzip"
RDEPEND="
virtual/glu
virtual/opengl
x11-libs/libX11
x11-libs/libXau
x11-libs/libxcb
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXi
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libXxf86vm
!bundled-libs? (
media-libs/freeglut
media-libs/libogg
media-libs/libvorbis
media-libs/openal
)
!bundled-glew? ( ~media-libs/glew-1.6.0 )"
S=${WORKDIR}/data
pkg_pretend() {
if has splitdebug ${FEATURES}; then
eerror "FEATURES=splitdebug is broken for this package, disable it locally"
die "FEATURES=splitdebug is broken for this package, disable it locally"
fi
}
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to ${DISTDIR}"
einfo
}
src_unpack() {
# self unpacking zip archive; unzip warns about the exe stuff
unzip -q "${DISTDIR}"/${A}
[[ $? -gt 1 ]] && die "unpacking failed"
}
src_prepare() {
einfo "removing ${ARCH} unrelated files"
rm -r $(usex amd64 "x86" "x86_64") || die
if ! use bundled-libs ; then
einfo "removing bundled-libs..."
cd $(usex amd64 "x86_64" "x86") || die
rm libglut.so* libogg.so* libopenal.so* libstdc++.so*\
libvorbis.so* libvorbisfile.so* \
$(usex bundled-glew "" "libGLEW.so.1.6") || die
fi
}
src_install() {
local myarch=$(usex amd64 "x86_64" "x86")
insinto "${MYGAMEDIR}"
doins -r data ${myarch}
dodoc Linux.README
newicon SuperHexagon.png ${PN}.png
make_desktop_entry ${PN}
games_make_wrapper ${PN} "./${myarch}/superhexagon.${myarch}" "${MYGAMEDIR}" "${MYGAMEDIR}/${myarch}"
fperms +x "${MYGAMEDIR}/${myarch}/superhexagon.${myarch}"
prepgamesdirs
}

@ -0,0 +1 @@
DIST swordandsworcery_1.02.tar.gz 325277619 SHA256 e7be30816059d5fa0bda2378d06f51984de13a17abd835cdc015e591354f59de SHA512 1178492628e8b8196bbb57b3d4d7526d5545bd31d0da34bcbed92150753fbb768c8682f071e2a473b95f1b6ee7c3efb30ccb9fce2e3e319d76673b79617e47c0 WHIRLPOOL 9ec0365372a62b7fadfa6b68e945918a1a2ade3c5e7bae561e16251ed0bf4e76b176bfed31e30b259e9a569858d1ae0b07a83067375ca26fe2da049602a570fd

@ -0,0 +1,23 @@
#!/bin/sh
# Get game directory
GAMEDIR="@GAMEDIR@"
LIB=$GAMEDIR/lib
BIN=$GAMEDIR/bin
# Ensure the log directory exists
LOGDIR=~/.capy/SwordAndSworcery
[ -e ~/.capy ] || mkdir ~/.capy
[ -e ~/.capy/SwordAndSworcery ] || mkdir ~/.capy/SwordAndSworcery
# For multi-monitor displays, choose a screen to display on to avoid having
# the game be displayed in the middle across both screens in fullscreen mode
#export SDL_VIDEO_FULLSCREEN_DISPLAY=0
# Modify library paths here
export LD_LIBRARY_PATH="$LIB:$LD_LIBRARY_PATH"
# Run the game and try to log any errors if any
cd "$BIN"
exec ./swordandsworcery $@ 2>&1 | tee -a $LOGDIR/log.txt
exit

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>games</herd>
<maintainer>
<email>hasufell@gentoo.org</email>
<name>Julian Ospald</name>
</maintainer>
<use>
<flag name='bundled-libs'>
Use the upstream provided bundled libraries.
</flag>
</use>
</pkgmetadata>

@ -0,0 +1,98 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/swordandsworcery/swordandsworcery-1.02.ebuild,v 1.1 2013/03/21 21:49:24 hasufell Exp $
# TODO: unbundle liblua-5.1 when available for multilib
EAPI=5
inherit eutils games
DESCRIPTION="An exploratory action adventure game with an emphasis on audiovisual style"
HOMEPAGE="http://www.swordandsworcery.com/"
SRC_URI="${PN}_${PV}.tar.gz"
LICENSE="CAPYBARA-EULA LGPL-3"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="bundled-libs"
RESTRICT="bindist fetch"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/bin/*
${MYGAMEDIR#/}/lib/*"
# linked to pulseaudio
RDEPEND="
virtual/opengl
amd64? (
app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-opengl
app-emulation/emul-linux-x86-sdl
app-emulation/emul-linux-x86-soundlibs[alsa]
app-emulation/emul-linux-x86-xlibs
)
x86? (
dev-libs/openssl
media-libs/alsa-lib
media-libs/flac
media-libs/libogg
media-libs/libsndfile
media-libs/libvorbis
media-sound/pulseaudio
sys-libs/zlib
virtual/glu
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXau
x11-libs/libxcb
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXi
x11-libs/libXtst
!bundled-libs? (
net-misc/curl
media-libs/libsdl[X,audio,video,opengl,joystick]
)
)"
S=${WORKDIR}
pkg_pretend() {
if has splitdebug ${FEATURES}; then
eerror "FEATURES=splitdebug is broken for this package, disable it locally"
die "FEATURES=splitdebug is broken for this package, disable it locally"
fi
}
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to ${DISTDIR}"
}
src_prepare() {
if ! use bundled-libs ; then
einfo "removing bundled libs..."
rm -v lib/libcurl.so* lib/libSDL-1.2.so* \
lib/libstdc++.so* || die
fi
sed \
-e "s#@GAMEDIR@#${MYGAMEDIR}#" \
"${FILESDIR}"/${PN}-wrapper > "${T}"/${PN} || die
}
src_install() {
insinto "${MYGAMEDIR}"
doins -r bin lib res
dogamesbin "${T}"/${PN}
make_desktop_entry ${PN}
dohtml README.html
fperms +x "${MYGAMEDIR}"/bin/${PN}
prepgamesdirs
}

@ -0,0 +1 @@
DIST dynamitejack-1.0.23.tgz 54195417 SHA256 aa5fbc27d6931753373e7af99a9521e335a4a5b38a7be0fc8e82c2191b3302e2 SHA512 57897194244ded8d41ef0e7704fd973a58fe52dbc01b7dceed2a47694f7cc3e75d732547532bc7be4dd7d510572dedb85188da413b5857f52182799427243c4d WHIRLPOOL 78d09068461ff8d11cb1a73ec94d160e085636f3d6f1933f0210b12505319c74a0d23daf66814fc23ad0c1c6e1a1dc6cb45adf783376d5573a949d5c3f9a1f4d

@ -0,0 +1,84 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/dynamitejack/dynamitejack-1.0.23.ebuild,v 1.1 2013/03/21 22:00:46 hasufell Exp $
# TODO: icon
EAPI=5
inherit eutils games
DESCRIPTION="A stealth game with bombs in glorious 2D"
HOMEPAGE="http://www.galcon.com/dynamitejack/"
SRC_URI="${P}.tgz"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
RESTRICT="bindist fetch"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/bin/*"
# linked to pulseaudio
RDEPEND="
virtual/opengl
amd64? (
app-emulation/emul-linux-x86-opengl
app-emulation/emul-linux-x86-sdl
app-emulation/emul-linux-x86-soundlibs[alsa]
app-emulation/emul-linux-x86-xlibs
)
x86? (
media-libs/alsa-lib
media-libs/flac
media-libs/libogg
media-libs/libsdl[X,audio,joystick,opengl,video]
media-libs/libsndfile
media-libs/libvorbis
media-sound/pulseaudio
virtual/glu
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXau
x11-libs/libxcb
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXi
x11-libs/libXtst
)"
S=${WORKDIR}/${PN}
pkg_pretend() {
if has splitdebug ${FEATURES}; then
eerror "FEATURES=splitdebug is broken for this package, disable it locally"
die "FEATURES=splitdebug is broken for this package, disable it locally"
fi
}
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to ${DISTDIR}"
}
src_prepare() {
rm run_me || die
mv LINUX.txt "${T}"/ || die
}
src_install() {
dodoc "${T}"/LINUX.txt
insinto "${MYGAMEDIR}"
doins -r *
games_make_wrapper ${PN} "./main" "${MYGAMEDIR}/bin"
make_desktop_entry ${PN}
fperms +x "${MYGAMEDIR}"/bin/main
prepgamesdirs
}

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>games</herd>
<maintainer>
<email>hasufell@gentoo.org</email>
<name>Julian Ospald</name>
</maintainer>
</pkgmetadata>

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-engines/love/love-0.7.2-r1.ebuild,v 1.2 2012/09/25 11:21:58 ago Exp $
# $Header: /var/cvsroot/gentoo-x86/games-engines/love/love-0.7.2-r1.ebuild,v 1.3 2013/03/21 13:43:22 chithanh Exp $
EAPI=3
@ -16,7 +16,7 @@ KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-games/physfs
dev-lang/lua
dev-lang/lua[deprecated]
media-libs/devil[mng,png,tiff]
media-libs/freetype
media-libs/libmodplug

@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-engines/love/love-0.8.0.ebuild,v 1.7 2012/11/21 13:37:08 ago Exp $
# $Header: /var/cvsroot/gentoo-x86/games-engines/love/love-0.8.0.ebuild,v 1.8 2013/03/21 13:43:21 chithanh Exp $
EAPI=3
@ -24,7 +24,7 @@ SLOT="0"
IUSE=""
RDEPEND="dev-games/physfs
dev-lang/lua
dev-lang/lua[deprecated]
media-libs/devil[mng,png,tiff]
media-libs/freetype
media-libs/libmodplug

@ -1,8 +1,8 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-engines/love/love-9999.ebuild,v 1.6 2012/09/25 11:21:58 ago Exp $
# $Header: /var/cvsroot/gentoo-x86/games-engines/love/love-9999.ebuild,v 1.7 2013/03/21 14:02:27 chithanh Exp $
EAPI=3
EAPI=5
inherit base games
@ -24,7 +24,7 @@ SLOT="0"
IUSE=""
RDEPEND="dev-games/physfs
dev-lang/lua
dev-lang/lua[deprecated]
media-libs/devil[mng,png,tiff]
media-libs/freetype
media-libs/libmodplug
@ -42,6 +42,8 @@ DOCS=( "readme.md" "changes.txt" )
src_prepare() {
if [[ ${PV} == 9999* ]]; then
sh platform/unix/gen-makefile || die
cp platform/unix/Makefile.am . || die
cp platform/unix/configure.ac . || die
mkdir platform/unix/m4 || die
eautoreconf
fi

@ -0,0 +1 @@
DIST crayon_physics_deluxe-linux-release55.tar.gz 33236439 SHA256 1a8f29fc298abea8fdde2b926d33e00e88500f2a8eef5d78c97355b5483d4a8b SHA512 1840cabba5b922f155b90c4442c460e7dc5c63aa2e1348a5f175211d5264c645c08af9a3bd43861aa8497e111678a7314b94d2ba0035b2e07e811200f1af07eb WHIRLPOOL 4413692ea91a09f0e87c56e2eb030e2e5874a3994579bd744bc0c3d10a2919db1780ff16d0073ae9fc56f1fc8bed264b947f02396c306d7f70b497b19da1ac9e

@ -0,0 +1,94 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-kids/crayon-physics/crayon-physics-55.ebuild,v 1.1 2013/03/21 22:03:58 hasufell Exp $
EAPI=5
inherit eutils gnome2-utils games
DESCRIPTION="2D physics puzzle/sandbox game with drawing"
HOMEPAGE="http://www.crayonphysics.com/"
SRC_URI="crayon_physics_deluxe-linux-release${PV}.tar.gz"
LICENSE="CRAYON-PHYSICS"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="bundled-libs"
RESTRICT="bindist fetch"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/crayon
${MYGAMEDIR#/}/lib32/*"
# fuck this pulseaudio linkage
RDEPEND="
virtual/opengl
amd64? (
app-emulation/emul-linux-x86-opengl
app-emulation/emul-linux-x86-qtlibs
app-emulation/emul-linux-x86-sdl
app-emulation/emul-linux-x86-soundlibs
app-emulation/emul-linux-x86-xlibs
)
x86? (
media-sound/pulseaudio
dev-qt/qtcore:4
dev-qt/qtgui:4
virtual/glu
x11-libs/libX11
!bundled-libs? (
media-libs/libmikmod
media-libs/libsdl[X,audio,video,opengl,joystick]
media-libs/libvorbis
media-libs/sdl-image[png,jpeg,tiff]
media-libs/sdl-mixer[vorbis,wav]
media-libs/smpeg[X,opengl]
media-libs/tiff:0
virtual/jpeg
)
)"
S=${WORKDIR}/CrayonPhysicsDeluxe
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to ${DISTDIR}"
einfo
}
src_prepare() {
if use bundled-libs ; then
mv lib32/_libSDL-1.2.so.0 lib32/libSDL-1.2.so.0 || die
fi
}
src_install() {
insinto "${MYGAMEDIR}"
use bundled-libs && doins -r lib32
doins -r cache data crayon autoexec.txt version.xml
newicon -s 256 icon.png ${PN}.png
make_desktop_entry ${PN}
games_make_wrapper ${PN} "./crayon" "${MYGAMEDIR}" "${MYGAMEDIR}/lib32"
dodoc changelog.txt linux_hotfix_notes.txt
dohtml readme.html
fperms +x "${MYGAMEDIR}"/crayon
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>games</herd>
<maintainer>
<email>hasufell@gentoo.org</email>
<name>Julian Ospald</name>
</maintainer>
<use>
<flag name='bundled-libs'>
Use the upstream provided bundled libraries.
</flag>
</use>
</pkgmetadata>

@ -0,0 +1 @@
DIST nightskyhd-linux-1324519044.tar.gz 123971537 SHA256 def2b3b42239f9e786472a88d85ae739790f6675b8eadffe9941350d2100e9d0 SHA512 a1d4ec588fa67c3dfbefe563d37df7bd93ce6a7580e7fcedda6567f6f05f362fc478fbd6ac921854fa5fe26270a037c49f9bce2df5527a6490ff0984b9bb671e WHIRLPOOL b7aeef90eadaa47498da4d3cefd10c3f0c5ec8262ea9cf0125280aed6848ae5c8f05e591ccdedfa9a11f161f4abbb5ee03844ddee1a1c252cb61d53c5103cd0c

@ -0,0 +1,23 @@
#!/bin/sh
HOMEDIR="${HOME}/.nightsky"
GAMEDIR="@GAMES_PREFIX_OPT@/nightsky"
# create root config dir
[ -e "${HOMEDIR}" ] || mkdir "${HOMEDIR}"
# symlink game data
for i in `cd "${GAMEDIR}" || exit 1 ; ls -d *` ; do
[ -e "${HOMEDIR}/${i}" ] || ln -sf "${GAMEDIR}/${i}" "${HOMEDIR}/${i}"
done
# create empty Settings dir
[ -e "${HOMEDIR}/Settings" ] || mkdir "${HOMEDIR}/Settings"
cd "${HOMEDIR}"
# start architecture dependent binary
if [ -e "${HOMEDIR}/NightSkyHD_64" ] ; then
exec ./NightSkyHD_64 "$@"
else
exec ./NightSky "$@"
fi

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>games</herd>
<maintainer>
<email>hasufell@gentoo.org</email>
<name>Julian Ospald</name>
</maintainer>
<use>
<flag name='bundled-libs'>
Use the upstream provided bundled libraries.
</flag>
</use>
</pkgmetadata>

@ -0,0 +1,95 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/nightsky/nightsky-20111222.ebuild,v 1.1 2013/03/21 22:08:02 hasufell Exp $
EAPI=5
inherit eutils gnome2-utils games
DESCRIPTION="Puzzle game that puts you inside and ambient and mysterious universe"
HOMEPAGE="http://www.nicalis.com/nightsky/"
SRC_URI="nightskyhd-linux-1324519044.tar.gz"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="bundled-libs"
RESTRICT="bindist fetch"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/NightSky*
${MYGAMEDIR#/}/lib/*
${MYGAMEDIR#/}/lib64/*"
RDEPEND="
virtual/glu
virtual/opengl
x11-libs/libX11
x11-libs/libXext
x11-libs/libXi
x11-libs/libXxf86vm
!bundled-libs? (
media-libs/freealut
media-libs/freeglut
media-libs/libogg
media-libs/libvorbis
media-libs/openal
sys-libs/zlib
)"
S=${WORKDIR}/NightSky
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to ${DISTDIR}"
}
src_prepare() {
einfo "removing ${ARCH} unrelated files..."
rm -v NightSkyHD$(usex amd64 "" "_64") || die
rm -rv lib$(usex amd64 "" "64") || die
if ! use bundled-libs ; then
einfo "removing bundled libs..."
rm -rv lib* || die
fi
# empty dir, we create symlink here later
rm -r Settings || die
sed \
-e "s#@GAMES_PREFIX_OPT@#${GAMES_PREFIX_OPT}#" \
"${FILESDIR}"/${PN}-wrapper > "${T}"/${PN} || die
}
src_install() {
dogamesbin "${T}"/${PN}
insinto "${MYGAMEDIR}"
doins -r *
newicon -s 128 "World/The Void/Physical"/Circle72.png ${PN}.png
make_desktop_entry ${PN}
fperms +x "${MYGAMEDIR}"/NightSkyHD$(usex amd64 "_64" "")
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
echo
elog "Saves and Settings are in ~/.nightsky/Settings"
echo
}
pkg_postrm() {
gnome2_icon_cache_update
}

@ -0,0 +1 @@
DIST splice-linux-1353389454.tar.gz 305838859 SHA256 5016610688f06fcc478b8669a0537614478e68077e044f21530066649830d331 SHA512 67a83a30bdb8ff0eecf9097bb4615053fcdb073daada4a24b61ae239ed56b7d2192247e80989c67554dcfcc1069c2105a6083f9fafffa4bbd66bbf29edad6a44 WHIRLPOOL 9139a3077c78331989128bfe6771c8bfe8c7f8af57712139df8ffd60d295a7bed8dd9dca0a09a35f96cb70407505f7d7b8137caa619f99d226735e37477fc1d6

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>games</herd>
<maintainer>
<email>hasufell@gentoo.org</email>
<name>Julian Ospald</name>
</maintainer>
</pkgmetadata>

@ -0,0 +1,61 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/splice/splice-20121120.ebuild,v 1.1 2013/03/21 22:05:56 hasufell Exp $
# TODO: unbundle mono? (seems hardcoded)
# icon
EAPI=5
inherit eutils games
DESCRIPTION="An experimental and artistic puzzler set in a microbial world"
HOMEPAGE="http://www.cipherprime.com/games/splice/"
SRC_URI="splice-linux-1353389454.tar.gz"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
RESTRICT="bindist fetch"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/Splice*
${MYGAMEDIR#/}/Splice_Data/Mono/*"
RDEPEND="
virtual/glu
virtual/opengl
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXext"
S=${WORKDIR}/Linux
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to ${DISTDIR}"
}
src_prepare() {
einfo "removing ${ARCH} unrelated files..."
rm -v Splice.x86$(usex amd64 "" "_64") || die
rm -rv Splice_Data/Mono/x86$(usex amd64 "" "_64") || die
rm README~ || die
mv README "${T}"/ || die
}
src_install() {
dodoc "${T}"/README
insinto "${MYGAMEDIR}"
doins -r *
make_desktop_entry ${PN}
games_make_wrapper ${PN} "./Splice.x86$(usex amd64 "_64" "")" "${MYGAMEDIR}"
fperms +x "${MYGAMEDIR}"/Splice.x86$(usex amd64 "_64" "")
prepgamesdirs
}

@ -0,0 +1 @@
DIST Bastion-HIB-2012-06-20.sh 1055161705 SHA256 f1e67f8e8dd0ba823cab0f16f2269dc8d9230ebca7a304927ff540320169c431 SHA512 e81b5dfa6f61ec2b35b30693c156a612cd3242c2169f4414b6d66839b7d8cc2e6ea8776f55baae67fa8131ee96bc221e1a15004410612eecaa9f7204dcc673ad WHIRLPOOL 2ec712724f263d9cbd181a128a0adc22f38465447db03f1d382aa231bad98e637b27ec2e73b2acf66a5775f53b0406c82cf0cd36befdc13f6afc5434887ac040

@ -0,0 +1,120 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/bastion/bastion-20120620.ebuild,v 1.1 2013/03/21 22:17:15 hasufell Exp $
# TODO: - unbundle mono when multilib
# - unbundle fmodex when multilib
EAPI=5
inherit eutils gnome2-utils check-reqs unpacker games
TIMESTAMP=${PV:0:4}-${PV:4:2}-${PV:6:2}
DESCRIPTION="An original action role-playing game set in a lush imaginative world"
HOMEPAGE="http://supergiantgames.com/?page_id=242"
SRC_URI="Bastion-HIB-${TIMESTAMP}.sh"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="bundled-libs"
RESTRICT="bindist fetch"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/Bastion.bin.x86
${MYGAMEDIR#/}/lib/*"
# mono shit: vague dependencies
RDEPEND="
virtual/opengl
amd64? (
app-emulation/emul-linux-x86-sdl
app-emulation/emul-linux-x86-soundlibs
app-emulation/emul-linux-x86-xlibs
)
x86? (
media-libs/freealut
media-libs/openal
media-libs/sdl-gfx
media-libs/sdl-image
media-libs/sdl-mixer
media-libs/sdl-net
media-libs/sdl-ttf
media-libs/smpeg
x11-libs/libX11
x11-libs/libXft
!bundled-libs? (
dev-lang/mono
media-libs/fmod:1
media-libs/libsdl[X,audio,video,opengl,joystick]
)
)"
CHECKREQS_DISK_BUILD="2400M"
pkg_pretend() {
if has splitdebug ${FEATURES}; then
eerror "FEATURES=splitdebug is broken for this package, disable it locally"
die "FEATURES=splitdebug is broken for this package, disable it locally"
fi
check-reqs_pkg_pretend
}
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to ${DISTDIR}"
}
src_unpack() {
local myarch=$(usex amd64 "x86" "x86_64")
unpack_makeself
mv instarchive_all{,.tar.lzma} || die
mv instarchive_linux_${myarch}{,.tar.lzma} || die
mkdir ${P} || die
cd ${P} || die
unpack ./../instarchive_{all,linux_${myarch}}.tar.lzma
}
src_prepare() {
if ! use bundled-libs ; then
einfo "Removing bundles libs..."
rm -v lib/libSDL-1.2.so* || die
use x86 && { rm -v lib/libmono-2.0.so* lib/libfmodex.so* || die ;}
fi
}
src_install() {
insinto "${MYGAMEDIR}"
doins -r *
newicon -s 256 Bastion.png ${PN}.png
make_desktop_entry ${PN}
games_make_wrapper ${PN} "./Bastion.bin.x86" "${MYGAMEDIR}" "${MYGAMEDIR}/lib"
fperms +x "${MYGAMEDIR}"/Bastion.bin.x86
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
elog "If you are using opensource drivers you should consider installing:"
elog " media-libs/libtxc_dxtn"
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save