parent
4d22644fa0
commit
a332c96207
@ -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/app-admin/eselect-renpy/eselect-renpy-0.2.ebuild,v 1.1 2013/03/04 16:00:53 hasufell Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit games
|
||||
|
||||
DESCRIPTION="Manages renpy symlink"
|
||||
HOMEPAGE="http://www.gentoo.org/proj/en/eselect/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="app-admin/eselect-lib-bin-symlink"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
pkg_setup() { :; }
|
||||
|
||||
src_prepare() {
|
||||
sed \
|
||||
-e "s#@GAMES_BINDIR@#${GAMES_BINDIR}#" \
|
||||
"${FILESDIR}"/renpy.eselect-${PV} > "${WORKDIR}"/renpy.eselect || die
|
||||
}
|
||||
|
||||
src_configure() { :; }
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/eselect/modules
|
||||
doins renpy.eselect
|
||||
}
|
||||
|
||||
pkg_preinst() { :; }
|
||||
|
||||
pkg_postinst() { :; }
|
@ -0,0 +1,15 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id: renpy.eselect-0.2,v 1.1 2013/03/04 16:00:53 hasufell Exp $
|
||||
|
||||
DESCRIPTION="Manage default renpy version"
|
||||
MAINTAINER="hasufell@gentoo.org"
|
||||
VERSION="0.2"
|
||||
|
||||
SYMLINK_PATH="@GAMES_BINDIR@/renpy"
|
||||
SYMLINK_TARGETS=( renpy-6.14 renpy-6.15 )
|
||||
SYMLINK_DESCRIPTION='default renpy'
|
||||
SYMLINK_CRUCIAL=1
|
||||
|
||||
inherit bin-symlink
|
||||
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/advancecomp/advancecomp-1.16.ebuild,v 1.1 2013/03/04 15:49:35 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
DESCRIPTION="Recompress ZIP, PNG and MNG using deflate 7-Zip, considerably improving compression"
|
||||
HOMEPAGE="http://advancemame.sourceforge.net/comp-readme.html"
|
||||
SRC_URI="mirror://sourceforge/advancemame/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||
IUSE="png mng"
|
||||
|
||||
DEPEND="
|
||||
app-arch/bzip2
|
||||
sys-libs/zlib
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RESTRICT="test" #282441
|
||||
|
||||
src_configure() {
|
||||
econf --enable-bzip2
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin advdef advzip
|
||||
|
||||
if use png; then
|
||||
dobin advpng
|
||||
doman doc/advpng.1
|
||||
fi
|
||||
|
||||
if use mng; then
|
||||
dobin advmng
|
||||
doman doc/advmng.1
|
||||
fi
|
||||
|
||||
dodoc HISTORY AUTHORS README
|
||||
doman doc/advdef.1 doc/advzip.1
|
||||
}
|
@ -1,4 +1,20 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST 99752-kde_cdemu-0.4.tar.bz2 12469 SHA256 d869e1f8214cc50b0ac475eb204729d8d3a68baf6b1b74cf650bf98e1f08ffc5 SHA512 3b5466b1abac4ce8cc3741bc8c183cc8d39d79ff7d823519523c41818c6ebf9e2a2735de775476e9f3737bbfad5632ba0d44439ef3cff3d78c07416588df91e9 WHIRLPOOL 9f54e450d61ca9def7c40514dcb99fac99a5b8766abde51304f9505a9148d84c78ac7bd1c9077dd8e050e8e09be311c368bac87bc15809877eb7c99740be07c4
|
||||
DIST kcdemu-0.5.0.tar.gz 12251 SHA256 d93744048cf7ae6b86861d26e2c38c27fafd4a7d6e5703e03ed09d776273303a SHA512 25d81e466647456a28f0a100b16fc5c19a62119e08b3149a15dc653f3693993a3caaaadbb5a37f4a29c38cff0fb06efc1cc6faaf3a0817c85bd6ae2f99009926 WHIRLPOOL 5998b8a62011377d8961712f7fd523c9a1e505ec832262f22e0aa8ca74e0a943f150cd2dda01c788fdb1ecd97fad505f4a8d6b7ba53c6ab08a8d22e166c4ae87
|
||||
EBUILD kcdemu-0.4.ebuild 636 SHA256 5f23abbf2e6c99a808b69631b5aba29c3b87813342c583b721b0c1c4059dc2ac SHA512 4cfc45a48211899d0cf712a04ea477c69b1b3c1ad406ec0d23ada4d476cf12fc2f2123936c443eccc310bdc8e29b5851f9a30bbc2f405e282205b3a4d5c3061d WHIRLPOOL 9b68892aa130def153e6254656fd16e123dd6d7ff5f662716b05fc884cfd1c3d61688f398f95b3386009367af1edaa000df7dda022bc46202626d27524f2cdfd
|
||||
MISC ChangeLog 1531 SHA256 ef483c282e12e72d8044fcebbbd6a588bd06ec86d5e5c4f80ea80d2e1ae0561e SHA512 9879ef4c0631ae24e4cc4d4fea1904b5a7df06f3a5275643f2754afff63469735d5c896a5ddf5d70e9d9665b9785f943a44300ee34fc2512752fb072227b9fcd WHIRLPOOL 1eb5d1c44408fd1fe68966f28087034cf8dc7098f6d789d87b432816d5d3b16b3978a62911a8839fce1bb5a33cd61b751d278be2941ba4c19abe315fbdf1ec6a
|
||||
EBUILD kcdemu-0.5.0.ebuild 681 SHA256 345711ab2a6bf00cd19e2442e3512cb0f1535d8082938a1f7fd6431330f02f57 SHA512 7ae541945040b78973006bd29a8e70807c7fdc1580ad138260bfb65341084a4f105e7d6caf7679dd4e28d8037a909103e702fc195be76ef8b3446a6d83d47c9e WHIRLPOOL 10ef50c7453c22085195f23f56dfb66bce1d33d6b0aba3de6aa00dfb34c8f3e3238a92b72e29ecbd7b2b8b0d12535bc3df4d9f4e17efece5115266b39f2ea693
|
||||
MISC ChangeLog 1677 SHA256 c670c6ec73adbfa93ed1258246985b7fd8ce73e38f5f351974a1189f50fd4cb9 SHA512 d979a06fab9351529e0f6d8653c352cfd24f4365295da66201d97b7381e49f71a9567fb7fe8c39578bbd4b1315a592cbb496c34b6ea0747a1d747801aa099355 WHIRLPOOL 792b8afc49e76990acf06d9ca10fbddbfd6ff0402373bd2de76380a2c1df65e0ca64b796b9f4438f6c458d05c09e94b266a7c01e4c0c73da50ed46bfaa396db8
|
||||
MISC metadata.xml 187 SHA256 ae372c79824a2096579aaef2cd5d557ebca1c9dd4a86e399bafde36ce073b179 SHA512 76cb33791913e9f75fdecaf42b947af95ae970220f10d0799c1b6e590411da5ffadc3040f6682cdbcac9f303e931140a98bc9e396a6aa90a0d43b9ab0e1b5bcc WHIRLPOOL 4ffa174c98499ad2a112595bcff5bd735068d728cfa227c707e96f876acc62e6d112eac3b1496326d8e2bc6aab04b5d85d53821b5fde7b6aee15cd8008cb2556
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQEcBAEBCAAGBQJRNLYpAAoJEMbwO6tnXQ0sE0EH/0DtR7Fppx61VDGXfvyt82DN
|
||||
yMR/Ri4AyvDz5JgTI6Bgm0gjnwNTyYEYVeUFFY0JioTX8icgAIdi5v4KKSq4Qk2l
|
||||
scf6LUXThSk6PH/ayTvgPqeW0FoDsp6vJAWI3qvJjfBVFQgFl5Dvv8ef4DJHgKQg
|
||||
Ntmm6k0WZYVjgPlWtT5oI2exMLksMRSfn5xjtCFmrs8Liq0JvqPZiKWmm3cPauee
|
||||
CzFA6kMpTjWelsdCufa2hbP7N3sb03LFtbw3VOYpRzdX/aFWhtj8YPf0FfW2grRL
|
||||
ZzXQCEfZiK8C+Ozxp2nlZrr5XTK8OF7nk6GQFHZjwS67932YIcKrKZm//1xkHsU=
|
||||
=Dvyl
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-cdr/kcdemu/kcdemu-0.5.0.ebuild,v 1.1 2013/03/04 14:56:44 kensington Exp $
|
||||
|
||||
EAPI=5
|
||||
KDE_LINGUAS="de es pl ro sv"
|
||||
MY_PN="kde_cdemu"
|
||||
|
||||
inherit kde4-base
|
||||
|
||||
DESCRIPTION="A frontend to cdemu daemon for KDE4"
|
||||
HOMEPAGE="http://www.kde-apps.org/content/show.php/KDE+CDEmu+Manager?content=99752"
|
||||
SRC_URI="http://www.kde-apps.org/CONTENT/content-files/99752-${MY_PN}-${PV}.tar.bz2 -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="4"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND=">=app-cdr/cdemu-2.0.0[cdemu-daemon]"
|
||||
|
||||
S=${WORKDIR}/${MY_PN}
|
||||
|
||||
DOCS=( ChangeLog )
|
@ -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/app-i18n/scim-tables/scim-tables-0.5.12.ebuild,v 1.1 2013/03/04 10:48:09 naota Exp $
|
||||
|
||||
inherit autotools base eutils
|
||||
|
||||
DESCRIPTION="Smart Common Input Method (SCIM) Generic Table Input Method Server"
|
||||
HOMEPAGE="http://www.scim-im.org/"
|
||||
SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="nls"
|
||||
LANGS="am ar bn gu hi ja kn ko ml ne pa ru ta te th uk vi zh"
|
||||
for i in ${LANGS} ; do
|
||||
IUSE="${IUSE} linguas_${i}"
|
||||
done
|
||||
|
||||
RDEPEND=">=app-i18n/scim-1.4.7-r2
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.5.8+gcc-4.3.patch" )
|
||||
|
||||
pkg_setup() {
|
||||
elog "Not all languages are going to be compiled."
|
||||
elog "Please set LINGUAS to your preferred language(s)."
|
||||
elog "Supported LINGUAS values are:"
|
||||
elog "${LANGS}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
base_src_unpack
|
||||
|
||||
strip-linguas ${LANGS}
|
||||
local use_languages="additional ${LINGUAS}"
|
||||
elog "Languages being compiled are: ${use_languages}"
|
||||
|
||||
cd "${S}"
|
||||
sed -i -e "/^SUBDIRS/s/.*/SUBDIRS = ${use_languages}/g" \
|
||||
tables/Makefile.{am,in} || die "sed ${m} failed"
|
||||
|
||||
AT_NO_RECURSIVE=yes AT_M4DIR=${S}/m4 eautoreconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
econf \
|
||||
--disable-skim-support \
|
||||
$(use_enable nls) \
|
||||
--disable-static \
|
||||
--disable-dependency-tracking \
|
||||
--without-arts || die "econf failed"
|
||||
emake || die "make failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "install failed"
|
||||
dodoc README ChangeLog AUTHORS
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
diff --git a/src/configure.in b/src/configure.in
|
||||
index 7d118de..29833a7 100644
|
||||
--- a/src/configure.in
|
||||
+++ b/src/configure.in
|
||||
@@ -24,7 +24,16 @@ AC_ARG_ENABLE(purify,
|
||||
dnl Checks for libraries.
|
||||
AC_DEFINE(UNIX)
|
||||
AC_DEFINE(TERMCAP)
|
||||
-AC_CHECK_LIB(terminfo, tgetstr,, [AC_CHECK_LIB(termcap, tgetstr,, [AC_CHECK_LIB(ncurses, tgetstr,, [AC_CHECK_LIB(curses, tgetstr)])])])
|
||||
+PKG_CHECK_MODULES(
|
||||
+ CURSES,
|
||||
+ ncurses,
|
||||
+ [
|
||||
+ CPPFLAGS="$CURSES_CFLAGS $CPPFLAGS"
|
||||
+ LIBS="$CURSES_LIBS $LIBS"
|
||||
+ ],
|
||||
+ [
|
||||
+ AC_CHECK_LIB(terminfo, tgetstr,, [AC_CHECK_LIB(termcap, tgetstr,, [AC_CHECK_LIB(ncurses, tgetstr,, [AC_CHECK_LIB(curses, tgetstr)])])])
|
||||
+ ])
|
||||
|
||||
dnl Checks for header files.
|
||||
AC_HEADER_STDC
|
@ -0,0 +1,26 @@
|
||||
--- Makefile.old 2009-07-02 20:16:52.561919791 +0200
|
||||
+++ Makefile 2009-07-02 20:17:21.947666469 +0200
|
||||
@@ -4,19 +4,19 @@ DESTDIR=/
|
||||
CONFIG_FILE=$(DESTDIR)/etc/multitail.conf
|
||||
|
||||
DEBUG=-g # -D_DEBUG # -pg # -D_DEBUG #-pg -W -pedantic # -pg #-fprofile-arcs
|
||||
-LDFLAGS+=-lpanel -lncurses -lutil -lm $(DEBUG) -rdynamic
|
||||
+LIBS+=`$(PKG_CONFIG) --libs ncurses panel` -lutil -lm
|
||||
# LDFLAGS+=-lc_p -lpanel_g -lncurses_g -lutil -lm -pg -g -rdynamic
|
||||
-CFLAGS+=-funsigned-char -D`uname` -O2 -Wall -DVERSION=\"$(VERSION)\" $(DEBUG) -DCONFIG_FILE=\"$(CONFIG_FILE)\"
|
||||
+CFLAGS+=-funsigned-char -D`uname` -Wall -DVERSION=\"$(VERSION)\" -DCONFIG_FILE=\"$(CONFIG_FILE)\" -rdynamic
|
||||
|
||||
OBJS=utils.o mt.o error.o my_pty.o term.o scrollback.o help.o mem.o cv.o selbox.o stripstring.o color.o misc.o ui.o exec.o diff.o config.o cmdline.o globals.o history.o
|
||||
|
||||
all: multitail
|
||||
|
||||
multitail: $(OBJS)
|
||||
- $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o multitail
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||
|
||||
multitail_ccmalloc: $(OBJS)
|
||||
- ccmalloc --no-wrapper $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o ccmultitail
|
||||
+ ccmalloc --no-wrapper $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o ccmultitail $(LIBS)
|
||||
|
||||
install: multitail
|
||||
cp multitail $(DESTDIR)/usr/bin
|
@ -0,0 +1,912 @@
|
||||
# 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.3.22.ebuild,v 1.1 2013/03/04 11:45:07 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"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/johannes/${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/_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 sqlite2 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="!dev-lang/php:5
|
||||
>=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 )
|
||||
sqlite2? ( =dev-db/sqlite-2* )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.7.1 )
|
||||
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
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
|
||||
}
|
||||
|
||||
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
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-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
|
||||
|
||||
# rebuild the whole autotools stuff as we are heavily patching it
|
||||
# (suhosin, fastbuild, ...)
|
||||
|
||||
# eaclocal doesn't accept --force, so we try to force re-generation
|
||||
# this way
|
||||
rm aclocal.m4
|
||||
|
||||
# work around divert() issues with newer autoconf, bug #281697
|
||||
if has_version '>=sys-devel/autoconf-2.64' ; then
|
||||
sed -i -r \
|
||||
-e 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \
|
||||
$(grep -l divert $(find . -name '*.m4') configure.in) || die
|
||||
fi
|
||||
eautoreconf --force -W no-cross
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="/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 )
|
||||
$(use_enable calendar calendar )
|
||||
$(use_enable ctype ctype )
|
||||
$(use_with curl curl )
|
||||
$(use_with curlwrappers curlwrappers )
|
||||
$(use_enable xml dom )
|
||||
$(use_with enchant enchant /usr)
|
||||
$(use_enable exif exif )
|
||||
$(use_enable fileinfo fileinfo )
|
||||
$(use_enable filter filter )
|
||||
$(use_enable ftp ftp )
|
||||
$(use_with nls gettext )
|
||||
$(use_with gmp gmp )
|
||||
$(use_enable hash hash )
|
||||
$(use_with mhash mhash )
|
||||
$(use_with iconv iconv )
|
||||
$(use_enable intl intl )
|
||||
$(use_enable ipv6 ipv6 )
|
||||
$(use_enable json json )
|
||||
$(use_with kerberos kerberos /usr)
|
||||
$(use_enable xml libxml )
|
||||
$(use_enable unicode mbstring )
|
||||
$(use_with crypt mcrypt )
|
||||
$(use_with mssql mssql )
|
||||
$(use_with unicode onig /usr)
|
||||
$(use_with ssl openssl )
|
||||
$(use_with ssl openssl-dir /usr)
|
||||
$(use_enable pcntl pcntl )
|
||||
$(use_enable phar phar )
|
||||
$(use_enable pdo pdo )
|
||||
$(use_with postgres pgsql )
|
||||
$(use_enable posix posix )
|
||||
$(use_with spell pspell )
|
||||
$(use_with recode recode )
|
||||
$(use_enable simplexml simplexml )
|
||||
$(use_enable sharedmem shmop )
|
||||
$(use_with snmp snmp )
|
||||
$(use_enable soap soap )
|
||||
$(use_enable sockets sockets )"
|
||||
if version_is_at_least 5.3.16-r2; then
|
||||
my_conf+=" $(use_with sqlite2 sqlite /usr) "
|
||||
use sqlite2 && my_conf+=" $(use_enable unicode sqlite-utf8)"
|
||||
else
|
||||
my_conf+=" $(use_with sqlite sqlite /usr) "
|
||||
use sqlite && my_conf+=" $(use_enable unicode sqlite-utf8)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with sqlite sqlite3 /usr)
|
||||
$(use_with sybase-ct sybase-ct /usr)
|
||||
$(use_enable sysvipc sysvmsg )
|
||||
$(use_enable sysvipc sysvsem )
|
||||
$(use_enable sysvipc sysvshm )
|
||||
$(use_with tidy tidy )
|
||||
$(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 )
|
||||
$(use_enable zip zip )
|
||||
$(use_with zlib zlib )
|
||||
$(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 )
|
||||
$(use_enable flatfile flatfile )
|
||||
$(use_with gdbm gdbm )
|
||||
$(use_enable inifile inifile )
|
||||
$(use_with qdbm qdbm )"
|
||||
|
||||
# Support for the GD graphics library
|
||||
my_conf+="
|
||||
$(use_with truetype freetype-dir /usr)
|
||||
$(use_with truetype t1lib /usr)
|
||||
$(use_enable cjk gd-jis-conv )
|
||||
$(use_with gd jpeg-dir /usr)
|
||||
$(use_with gd png-dir /usr)
|
||||
$(use_with xpm xpm-dir /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 )
|
||||
$(use_with ssl imap-ssl )"
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
|
||||
if use firebird ; then
|
||||
my_conf+="
|
||||
$(use_with firebird interbase /usr)"
|
||||
fi
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
my_conf+="
|
||||
$(use_with ldap ldap )
|
||||
$(use_with ldap-sasl ldap-sasl )"
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
if use mysql ; then
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysqlnd mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql mysql /usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with mysql mysql-sock /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 /usr/bin/mysql_config)"
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
if use odbc ; then
|
||||
my_conf+="
|
||||
$(use_with odbc unixODBC /usr)"
|
||||
fi
|
||||
|
||||
if use iodbc ; then
|
||||
my_conf+="
|
||||
$(use_with iodbc iodbc /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 /usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite /usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,/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 )
|
||||
$(use_with libedit libedit )"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm )"
|
||||
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=/usr --with-pcre-dir=/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=/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/mibs/.index
|
||||
|
||||
SAPI_DIR="${WORKDIR}/sapis"
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
use "${sapi}" || continue
|
||||
|
||||
php_sapi_build "${sapi}"
|
||||
php_sapi_copy "${sapi}"
|
||||
done
|
||||
}
|
||||
|
||||
php_sapi_build() {
|
||||
mkdir -p "${SAPI_DIR}/$1"
|
||||
|
||||
cd "${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
php_sapi_copy() {
|
||||
local sapi="$1"
|
||||
local source=""
|
||||
|
||||
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}.so"
|
||||
;;
|
||||
|
||||
apache2)
|
||||
# apache2 is a special case; the necessary files
|
||||
# (yes, multiple) are copied by make install, not
|
||||
# by the ebuild; that's the reason, why apache2 has
|
||||
# to be the last sapi
|
||||
emake INSTALL_ROOT="${SAPI_DIR}/${sapi}/" install-sapi
|
||||
;;
|
||||
|
||||
*)
|
||||
die "unhandled sapi in php_sapi_copy"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" ]] ; then
|
||||
cp "$source" "${SAPI_DIR}/$sapi" || die "Unable to copy ${sapi} SAPI"
|
||||
fi
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
#Do not use eblit for this because it will not get sourced when installing from
|
||||
#binary package (bug #380845)
|
||||
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 /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 /etc/make.conf"
|
||||
ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}"
|
||||
|
||||
# check for not yet migrated old style config dirs
|
||||
ls "${ROOT}"/etc/php/*-php5 &>/dev/null
|
||||
if [[ $? -eq 0 ]]; then
|
||||
ewarn "Make sure to migrate your config files, starting with php-5.3.4 and php-5.2.16 config"
|
||||
ewarn "files are now kept at ${ROOT}etc/php/{apache2,cli,cgi,fpm}-php5.x"
|
||||
fi
|
||||
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 "The suhosin USE flag now only installs the suhosin patch!"
|
||||
ewarn "If you want the suhosin extension, make sure you install"
|
||||
ewarn " dev-php5/suhosin"
|
||||
ewarn
|
||||
fi
|
||||
}
|
@ -0,0 +1,863 @@
|
||||
# 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.4.12.ebuild,v 1.1 2013/03/04 11:45:07 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/stas/${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/_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="2"
|
||||
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
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
|
||||
}
|
||||
|
||||
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 4)
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-${ver}-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 mysqlnd 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
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/UTF8Strings/UTF8Strings-1.13.0.ebuild,v 1.1 2013/03/04 13:36:37 tomwij Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="C++ library that provides ability to work natively with UTF8 strings in a very simple way."
|
||||
HOMEPAGE="http://grigory.info/${PN}.About.html"
|
||||
SRC_URI="http://grigory.info/distfiles/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/angelscript/angelscript-2.26.1.ebuild,v 1.1 2013/03/04 16:09:53 hasufell Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="A flexible, cross-platform scripting library"
|
||||
HOMEPAGE="http://www.angelcode.com/angelscript/"
|
||||
SRC_URI="http://www.angelcode.com/angelscript/sdk/files/angelscript_${PV}.zip"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc static-libs"
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
|
||||
S=${WORKDIR}/sdk/${PN}/projects/gnuc
|
||||
S2=${WORKDIR}/${P}_static
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-QA.patch
|
||||
|
||||
if use static-libs ; then
|
||||
cp -a "${WORKDIR}"/sdk "${S2}"/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CXX AR RANLIB
|
||||
|
||||
emake SHARED=1 VERSION=${PV}
|
||||
|
||||
if use static-libs ; then
|
||||
cd "${S2}"/${PN}/projects/gnuc || die
|
||||
emake
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doheader "${WORKDIR}"/sdk/${PN}/include/angelscript.h
|
||||
dolib.so "${WORKDIR}"/sdk/${PN}/lib/libangelscript-${PV}.so
|
||||
dosym libangelscript-${PV}.so /usr/$(get_libdir)/libangelscript.so
|
||||
|
||||
if use static-libs ; then
|
||||
dolib.a "${S2}"/${PN}/lib/libangelscript.a
|
||||
fi
|
||||
|
||||
use doc && dohtml -r "${WORKDIR}"/sdk/docs/*
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
--- sdk/angelscript/projects/gnuc/makefile
|
||||
+++ sdk/angelscript/projects/gnuc/makefile
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
# For 'make install' to work, set LOCAL according to your system configuration
|
||||
LOCAL = /usr/local
|
||||
+INSTALL_LIBDIR = lib
|
||||
|
||||
# If you want to build a shared library, then run make with SHARED=1 and VERSION=version
|
||||
ifdef SHARED
|
||||
@@ -44,10 +45,10 @@
|
||||
else
|
||||
OBJDIR = obj
|
||||
LIBDIR = ../../lib
|
||||
- CXX ?= gcc
|
||||
+ CXX ?= g++
|
||||
# On i686 architecture you may need to add -march=i686 if you get
|
||||
# an undefined symbol for __sync_sub_and_fetch_4 in as_atomic.cpp.
|
||||
- CXXFLAGS += -g -Wall -fPIC -fno-strict-aliasing
|
||||
+ CXXFLAGS += -Wall -fPIC -fno-strict-aliasing
|
||||
endif
|
||||
|
||||
AR ?= ar
|
||||
@@ -106,7 +107,7 @@
|
||||
|
||||
$(BIN): $(OBJDIR) $(LIBDIR) $(OBJ)
|
||||
ifdef SHARED
|
||||
- $(CXX) -shared -Wl,-soname,$(LIB) -o $(BIN) $(OBJ)
|
||||
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(LIB) -o $(BIN) $(OBJ)
|
||||
( cd $(LIBDIR); ln -s $(LIB) $(DEVLIB) )
|
||||
else
|
||||
$(AR) r $(BIN) $(OBJ)
|
||||
@@ -135,18 +136,18 @@
|
||||
$(DELETER) $(OBJ) $(BIN) $(LIBDIR)/$(DEVLIB)
|
||||
|
||||
install: $(BIN)
|
||||
- @echo Installing to: $(LOCAL)/lib and $(LOCAL)/include...
|
||||
+ @echo Installing to: $(LOCAL)/$(INSTALL_LIBDIR) and $(LOCAL)/include...
|
||||
@echo -------------------------------------------------------------------
|
||||
ifdef SHARED
|
||||
- $(COPIER) $(LIBDIR)/$(DEVLIB) $(LOCAL)/lib
|
||||
+ $(COPIER) $(LIBDIR)/$(DEVLIB) $(LOCAL)/$(INSTALL_LIBDIR)
|
||||
endif
|
||||
- $(COPIER) $(BIN) $(LOCAL)/lib
|
||||
+ $(COPIER) $(BIN) $(LOCAL)/$(INSTALL_LIBDIR)
|
||||
$(COPIER) $(INCDIR)/$(INC) $(LOCAL)/include
|
||||
@echo -------------------------------------------------------------------
|
||||
@echo Angelscript library installed. Enjoy!
|
||||
|
||||
uninstall:
|
||||
- $(DELETER) $(LOCAL)/include/$(INC) $(LOCAL)/lib/$(LIB) $(LOCAL)/lib/$(DEVLIB)
|
||||
+ $(DELETER) $(LOCAL)/include/$(INC) $(LOCAL)/$(INSTALL_LIBDIR)/$(LIB) $(LOCAL)/$(INSTALL_LIBDIR)/$(DEVLIB)
|
||||
@echo -------------------------------------------------------------------
|
||||
@echo Angelscript library uninstalled.
|
||||
|
@ -1,19 +1,21 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA1
|
||||
Hash: SHA256
|
||||
|
||||
AUX libindicate-0.6.1-no-mono.patch 1880 SHA256 9f9dcdd610a012cceded3d6076b745e8c406b9fdd179543b2680567f005615b5 SHA512 da2e8aa7423fd2b74289a9d60e81f6cfc9a10027cf196d9f91507bf3334e993f500e5673549af5608920c571f25ce60a73b85965a7ac631fa8917a51fc23e238 WHIRLPOOL 997c70634206d3bc75725c1310c77ef2b42c602e69bc6e267be040a0fc22a462e24efc6848bf2b216e863d8f0ffbff0614e69719675036a744d76bacd1187222
|
||||
DIST libindicate-12.10.0.tar.gz 512998 SHA256 48b64056a3fdffe9f9b3740f349b5e69757bb5d8199995a2e2c714707d500c17 SHA512 261df26eb90e138537ac16489aada741a2f618933e433b00d1ef8f5cb860d6b8831e19d9cc25837f8cf3d0a3688937d75e16296ba466e32cbc8ef9533bd6c1dc WHIRLPOOL 07202e0fc9778f29e109d07e8abb5cffbbc703c7625ac9163f776c8e558a86de3f130f81501e36d7c715aea4dc3a1bfd570db16902c243a826000245e46e71ba
|
||||
DIST libindicate-12.10.1.tar.gz 550378 SHA256 41e0c059e96172975c716aa70dc60f669e21d359c65935c61ac374a9aa075581 SHA512 4dcb5f292153210bc15a05f117101429da77a60b8b05b569baddf0e9043d852c2dccb0d5a6adbdf4d4a1b6f06b33c61e242bb4bcb376e3d96563bda591685c06 WHIRLPOOL f175329bac76581ebc596771794e8e81c4e03b6042cc3508a7743034b7ed1f50b61b9accf78595c3beeed7236801096dfb58d42bd94959b433dfcf92b3114fae
|
||||
EBUILD libindicate-12.10.0.ebuild 1801 SHA256 2a71afc1cda6864a8421df9de0c1a02ef4bf3e75e60444a138847dc8885fcc20 SHA512 1c73db019fba821c4ae85969c5d1c9d4cc5d87b8348c0a90d9d7781ce048ba9e3bcd5a276a5045320f16e171f21ac0bdd3afd137b7f7ae200c0baea8af99711a WHIRLPOOL 49f091166fa82305bd187ddded1bb1f4055a1e2e964546a4767e07ba7a5745e829678475c227577c8ea9ffb69ab0e4a173ea7667bed694bdbe2e4a2e94630dc6
|
||||
MISC ChangeLog 7659 SHA256 015608160fb3234c70cdb2d18d6dd9d0e8f824b32678fdf330d3b4998fae5f4c SHA512 f58d6c0f19b0757f1ace6cfa6d1f18c3b7739f749b5ee3a0b647b3382941b195108df509cd5315ec18a358dc67e54d8c2381cb2919caffa7426c915935fa51cb WHIRLPOOL e1630fd0d15d577b0aa40b956fe6e0605a444425c4b1409e2417344871d7ba186790ce739866d1b61a1420c65636c3831c02554ffe99a5b10d5fb0e007031cb8
|
||||
EBUILD libindicate-12.10.1.ebuild 1802 SHA256 e967a3a8f5874d4eb35486df199d425733181d8c90959b1c28ef3661189050f8 SHA512 b37eeb7a38e393653dfedc88b9a0e000f9c7407ee26dcf0d19f5072b7f0f86654cff7e6543a870de4ca1f435ae85370a66f18053888ee8decd8c10bec7166cdb WHIRLPOOL f278163dd3209b5c1d44d7b50b078270c85ca51ddd671fbb6456c15bccccf841f1b6772281fb4d3a7bff61a6c2c3e4f83d85b49b9d85213952a79ee47ff50630
|
||||
MISC ChangeLog 7815 SHA256 67729a0c43af060b6e6bf98b399b3f3a98efb5fb4995104544f3bbbcbdad9cdf SHA512 8c54d32a77f375dbf7c1550f8ebf00cc293f2a58930c08c1e9f1501e04eef5354f525e8c0364b76cb34623713b05b80d263bfaa92068d45cc9741d35fe3a29a3 WHIRLPOOL a3fadba66368f0570ec9a6c584c34712a89c9f1971ba806fb72919a6ffb996d8fca2050159111bf713c517ce89f8f469e0de48b0291643488eb965e7a211749e
|
||||
MISC metadata.xml 374 SHA256 962b7c529448cbb491147f265e8b06fc88a32b3ae377c43d8dc1dd159d73443c SHA512 e0c76674aabc3059159cf48cb3df7ef2fb313d262ae779d41f6d47644b23ee70d63dd01653d3a9ff954186c3c05907ecf48228587bf2e52451a9ffbf19bf62a3 WHIRLPOOL 415f73d20eb8587c9b50b130d047619f191c2a7330f2bbaa7907ad0add24710ec1356bc5582c0a3e3f39b12093783a141d8bef56312c7947e03aed7150a7cfd2
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQEcBAEBAgAGBQJQEXHxAAoJEEdUh39IaPFNs4oH+wfzff9+uS+bxXHzhi97ndN2
|
||||
2kWDVzLnhW9WGjKCi6WAGA4khiB6sTJxAvdp1kiXW5jacgE9zemShAhLJ0mf392b
|
||||
beECwlafUzrP2ycLmQT1gXl2RHHXZSh7WI0587lXHbvya+qlipPLhvWtoCir+b7F
|
||||
3MqHkR+nOnQow1gQzX0+5ZLXMjCj4lsXsij4uLX7xi9C9ogi5wMIruUzHU5Ebmdf
|
||||
5FOYwOHlkP+jatc3/Zre8CMPRFX6K/A8QFRZGG60LYDY35rxTvfh6/TwPsXlnlti
|
||||
Fi62LNatKLe256fUbgU4G3wLONaaYSK8tqe5zQ5i9oNpqQQ3srbGvhbkgjrwBs8=
|
||||
=nuFk
|
||||
iQEcBAEBCAAGBQJRNIjQAAoJEMbwO6tnXQ0sd9IH/j3lbdQA67kMtSI8pqYB3Om5
|
||||
GNcukQVirei+Vlz7aWhHWhkNgC8exYkBb7LYmx8s+17TSuu4nnxzPri9bJqHEJCk
|
||||
awEUiJ99ZPdIhknIHsHd/cbHmVJ5Rd/JyspnE7MsPAG/1DvR5e1AvfSrl37Cjfjd
|
||||
XFhk9zR/nPUXj/bhAb8oNLaiCrazJE/suY50SFR+bVPmX52H5HzVL5ayR1AbOg52
|
||||
d5ej+H34qAtpr9RrSZQtb5avQwdRaJw6lG50t8JJKKuePL3br1UvwexPElcDi1do
|
||||
gPRY5fgPoYMQ5frZlEl1mnFNoQUrNB+aczXATZbreyrTaKyBT4rJZhEGyFX3xls=
|
||||
=qJkL
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libindicate/libindicate-12.10.1.ebuild,v 1.1 2013/03/04 11:43:27 kensington Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
AYATANA_VALA_VERSION=0.16
|
||||
|
||||
inherit autotools eutils flag-o-matic
|
||||
|
||||
DESCRIPTION="A library to raise flags on DBus for other components of the desktop to pick up and visualize"
|
||||
HOMEPAGE="http://launchpad.net/libindicate"
|
||||
SRC_URI="http://launchpad.net/${PN}/${PV%.*}/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1 LGPL-3"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gtk +introspection"
|
||||
|
||||
RESTRICT="test" # consequence of the -no-mono.patch
|
||||
|
||||
RDEPEND=">=dev-libs/dbus-glib-0.100
|
||||
>=dev-libs/glib-2.30
|
||||
>=dev-libs/libdbusmenu-0.6.2:3[gtk?,introspection?]
|
||||
dev-libs/libxml2
|
||||
gtk? ( >=x11-libs/gtk+-3.2:3 )
|
||||
introspection? ( >=dev-libs/gobject-introspection-1 )
|
||||
!<${CATEGORY}/${PN}-0.6.1-r201"
|
||||
EAUTORECONF_DEPEND="dev-util/gtk-doc-am
|
||||
gnome-base/gnome-common"
|
||||
DEPEND="${RDEPEND}
|
||||
${EAUTORECONF_DEPEND}
|
||||
app-text/gnome-doc-utils
|
||||
dev-lang/vala:${AYATANA_VALA_VERSION}[vapigen]
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.6.1-no-mono.patch
|
||||
sed -i -e "s:vapigen:vapigen-${AYATANA_VALA_VERSION}:" configure.ac || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -Wno-error
|
||||
|
||||
# python bindings are only for GTK+-2.x
|
||||
econf \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--disable-silent-rules \
|
||||
--disable-static \
|
||||
$(use_enable gtk) \
|
||||
$(use_enable introspection) \
|
||||
--disable-python \
|
||||
--disable-scrollkeeper \
|
||||
--with-gtk=3 \
|
||||
--with-html-dir=/usr/share/doc/${PF}/html
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc AUTHORS ChangeLog NEWS
|
||||
|
||||
nonfatal dosym /usr/share/doc/${PF}/html/${PN} /usr/share/gtk-doc/html/${PN}
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -1,7 +1,25 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX ffmpeg-php-0.6.0-avutil50.patch 1347 SHA256 a08ad6582c7e57a43eddc7419fe37b89b1194d85d752a7a2a8837c1192784eec SHA512 0f24244085e8fb43686a40bb37eb5957dd2d0e2338dfb5c25e92b1233d0c2360b5726134449ce203e952328bb723d1004d68876458e7a7ef44fc2a11ff4b3380 WHIRLPOOL abb23030e7fbdaf41cfbe8a4b521ee385c022bb3abcb9906b20974add7809abaf9ef40b2ed85fc63f4b739d12df97d7ad7f08f0ab30a5b50dea1c497fbf63033
|
||||
AUX ffmpeg-php-0.6.0-ffmpeg.patch 11682 SHA256 ad404b3e8d498549bc705516e23de0dc8182b02bb90bd53efa74d380ba2480ce SHA512 dd2ca60961da6e0a4e301f5618dc1f719239f94e507345ad242a7fb2f64c8c70c3f03eaeac7e1fe78b583480e02f32edde6592fafc8f64eaf490f43680d66e0a WHIRLPOOL 0d43e1d0760b9f0141641ec26034bf658783b6edd187342eb252896e1e885c42cb85e3c24af5332156db4e9118a04fb57a268a64b33cbeda03b231563bbe73d6
|
||||
AUX ffmpeg-php-0.6.0-log.patch 459 SHA256 0cea92de0a3e7bb4f07805259884c9b0f4f9a4e449ad8b655c7eb9bdcc85a789 SHA512 2f47b5c6d199514737c3b660e41325ac64711b476f9b2d7d21cf2ace73d633458f3970c802526a5fc760f4209196d248d39721a438a8dd8ef8f821383475d713 WHIRLPOOL cb4ad536836794a61c764094b7554eaae1123215c8548094f68d9bc0b31f63a3edb2c3978c846b0eb03551fd372bc2a120df41854c7449b1a9061dd818988542
|
||||
AUX ffmpeg-php-0.6.0-php5-4.patch 1187 SHA256 4b23c32a219d72e5d3425b40833447f3e9ecdd9f0152dbc526414a12e47cb827 SHA512 47f08aabe9999dd9fe1013701f5a749534b9576d7f2acc6fa07f6af3dc3faa53aa60cbd7cd127bda6165ad8d8df717a3ad35d7ed3c7859ac33365b5ba98e6e7a WHIRLPOOL bf35a68aee41e3ce44958dd751ba2300cf209376c14c69c319d125ed1ea0a298821afb77e83bd8afa69905703e57ed61a63517833b7ad0fa25f1aeb0edfb92f1
|
||||
DIST ffmpeg-php-0.6.0.tbz2 275557 SHA256 ec8a9847e0f4d5101a5afedb7dac318e9a13f099865215ae99d08d56add9b141 SHA512 837c854870886486683cf9d3ac2de376f0b4067487d68d4f5c685dd0bd4d306e406334821140bd1fab2d48105e7ee17956db70f2f70fb9bec4dcea14a2104127 WHIRLPOOL b390017ae6d7db3a7e40847468abfb9c151571e878545d02550c854d1f319add693cf87afe3391b03f3f2399a78ac225c0dcc28cdfbac2b58baa8ba8ef871605
|
||||
EBUILD ffmpeg-php-0.6.0-r1.ebuild 1051 SHA256 5914e0e1b0511befbdfbb2a7c20cad8dbd26f805e2fcbba71616dffd2fe9f896 SHA512 77b8afeeb0f1231b6bae9364c39d3ba203d048353b8559ba9880f6da2e4ab57c077b551d6b29fa555e7e69b67195d40c869818383378dcd2f760ea6cfce68304 WHIRLPOOL 3d752049917502c0fb5bf4df9fa9119eaad1b4c37be65a6d10d3763c5ba557560d618b370dfeb726ab6bc040c3d3c239ac542384b715155eb2bae3e4aa559886
|
||||
MISC ChangeLog 2486 SHA256 2d15b2ef040d68b8da2cf62624be460f4f91a185dcecf18ecd8c705359697a5d SHA512 d5c7681a3a62354d32cf1ed8e21797dc67ff4d8c337cdffd7804495b29a2f55576b192bc99459b27a31be77e4bd5ac529b88b5d999be513ef103de75038b6e5d WHIRLPOOL c77e20335a5a4f67a76d97c1f1f299f133e018dc3419e9d9e0345533d690e5df31998c96583db3b67f2c6c9772d4f570753d444300b0afbd994c9167df018783
|
||||
EBUILD ffmpeg-php-0.6.0-r2.ebuild 1087 SHA256 542b6da41422ccba335da06893d72e95b7489145d604fd8d05db294231e05d2a SHA512 160d25cd4f3151a81e92231222af958f030b9e1de61352291b6fa09d3720918ee2d7b11959bac1caf47680e1fec8b7c524b117bcbce9b279be70d28b82d4d3a0 WHIRLPOOL 89a22e1922ad26b25f45a0b9b31fb6717c92284bfc17ea780ec382c8467d5c837415e394c1189ceae73270ef0464c301c043ab6b57d3589c5e1c31867f050fdc
|
||||
MISC ChangeLog 2723 SHA256 d0f1e1cfbffe7c06d52beac969fec07993f3accfc7c8ed2c4d78d4f5fce830d7 SHA512 9c49ae53fda3314b0dc3817f6dc2e95d892f4b03657aa099128230a7dc7c696e5c8058161f2ca245b8ed5b53806ebac4528200073b057ab12b99e035226d2ded WHIRLPOOL fcd06667062c9653079056690301c25f9c1ec3f017712bc8cb261beb7670b189a4040f1a87181acfe05b06924e22e9c30d2772a55c268c67efd641c2a9020810
|
||||
MISC metadata.xml 157 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1 SHA512 94adacaefd7d989cc904cc3ee920b15d58fee61df13008ebcbefa66f9b5c58cab2a5fad0499d4b57cd41e5f1ae79c6cf44525d90e649d23ebacd7721466b8947 WHIRLPOOL 66f688809b11b84b1b9d782a3c03cfcefed87989862aaca20c17cb076349ec402da9eaf87f7be02f7b4de178ea42da31029baee1bcd8e563aeabe949d4ed41f9
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQF8BAEBCABmBQJRNGaVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyOEZEMjNGNzBENkE5N0Q2Q0ZFMkFDNDA2
|
||||
QkFCNEFFNUM0QTkyQkY1AAoJEGurSuXEqSv1404IALXxyJbKmVSyU6NaWUCWyqF2
|
||||
rkryMrGYaDd8eplpm9mklEwjOWt4j07KHHVd/TrdCOob79vsZPkJjUMiJzp07xT5
|
||||
RmKaUa4WurlStNyps3Fa5v0ig+2m4LuEyDdcfeSkShretzfR9Rylo9qfvAP7yNpL
|
||||
2PXHguRAJam7ehc3l3G4n5XdjJOxr+3LLEcO3PjKNFT0i4SQRH0vQQcMztI1FHF0
|
||||
lG41bM4k5aqW/vVE9/fWb+xUErPJr3VdU6vDK1tbXNucpPECP/rp87OXO2OYQV5u
|
||||
Y+Yiujcpfhz/+LcLrMGFa5nHb7Va8vN0DDqhNED3rzXdtdg2fIU1PDecH1l2q4I=
|
||||
=Bb5L
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/ffmpeg-php/ffmpeg-php-0.6.0-r2.ebuild,v 1.1 2013/03/04 09:17:05 olemarkus Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
PHP_EXT_NAME="ffmpeg"
|
||||
PHP_EXT_INI="yes"
|
||||
PHP_EXT_ZENDEXT="no"
|
||||
|
||||
USE_PHP="php5-3 php5-4"
|
||||
|
||||
inherit php-ext-source-r2 eutils
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DESCRIPTION="PHP extension that provides access to movie info."
|
||||
HOMEPAGE="http://sourceforge.net/projects/ffmpeg-php/"
|
||||
SRC_URI="mirror://sourceforge/ffmpeg-php/${P}.tbz2"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="virtual/ffmpeg
|
||||
dev-lang/php[gd]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
# The test breaks with the test movie, but it the same code works fine with
|
||||
# other movies
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
DOCS="CREDITS ChangeLog EXPERIMENTAL TODO"
|
||||
|
||||
src_prepare() {
|
||||
for slot in $(php_get_slots) ; do
|
||||
cd "${WORKDIR}/${slot}"
|
||||
epatch "${FILESDIR}/${P}-avutil50.patch"
|
||||
epatch "${FILESDIR}/${P}-ffmpeg.patch"
|
||||
epatch "${FILESDIR}/${P}-log.patch"
|
||||
epatch "${FILESDIR}/${P}-php5-4.patch"
|
||||
done
|
||||
php-ext-source-r2_src_prepare
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
--- ffmpeg-php-0.6.0.orig/ffmpeg_movie.c.bak 2013-02-24 16:44:31.162791000 +0200
|
||||
+++ ffmpeg-php-0.6.0/ffmpeg_movie.c 2013-02-24 16:45:20.632791000 +0200
|
||||
@@ -308,7 +308,7 @@
|
||||
}
|
||||
|
||||
if (persistent) {
|
||||
- list_entry *le;
|
||||
+ zend_rsrc_list_entry *le;
|
||||
/* resolve the fully-qualified path name to use as the hash key */
|
||||
fullpath = expand_filepath(filename, NULL TSRMLS_CC);
|
||||
|
||||
@@ -343,7 +343,7 @@
|
||||
}
|
||||
|
||||
} else { /* no existing persistant movie, create one */
|
||||
- list_entry new_le;
|
||||
+ zend_rsrc_list_entry new_le;
|
||||
ffmovie_ctx = _php_alloc_ffmovie_ctx(1);
|
||||
|
||||
if (_php_open_movie_file(ffmovie_ctx, filename)) {
|
||||
@@ -357,7 +357,7 @@
|
||||
new_le.ptr = ffmovie_ctx;
|
||||
|
||||
if (FAILURE == zend_hash_update(&EG(persistent_list), hashkey,
|
||||
- hashkey_length+1, (void *)&new_le, sizeof(list_entry),
|
||||
+ hashkey_length+1, (void *)&new_le, sizeof(zend_rsrc_list_entry),
|
||||
NULL)) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING,
|
||||
"Failed to register persistent resource");
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-memcache/pecl-memcache-3.0.7.ebuild,v 1.1 2013/03/04 09:22:21 olemarkus Exp $
|
||||
|
||||
EAPI="5"
|
||||
PHP_EXT_NAME="memcache"
|
||||
PHP_EXT_INI="yes"
|
||||
PHP_EXT_ZENDEXT="no"
|
||||
DOCS="README"
|
||||
|
||||
USE_PHP="php5-3 php5-4"
|
||||
|
||||
inherit php-ext-pecl-r2
|
||||
|
||||
KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
|
||||
|
||||
DESCRIPTION="PHP extension for using memcached."
|
||||
LICENSE="PHP-3"
|
||||
SLOT="0"
|
||||
IUSE="+session"
|
||||
|
||||
DEPEND="sys-libs/zlib
|
||||
dev-lang/php[session?]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
# upstream does not ship any testsuite, so the PHPize test-runner fails.
|
||||
RESTRICT='test'
|
||||
|
||||
src_configure() {
|
||||
my_conf="--enable-memcache --with-zlib-dir=/usr $(use_enable session memcache-session)"
|
||||
php-ext-source-r2_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
php-ext-pecl-r2_src_install
|
||||
|
||||
php-ext-source-r2_addtoinifiles "memcache.allow_failover" "true"
|
||||
php-ext-source-r2_addtoinifiles "memcache.max_failover_attempts" "20"
|
||||
php-ext-source-r2_addtoinifiles "memcache.chunk_size" "32768"
|
||||
php-ext-source-r2_addtoinifiles "memcache.default_port" "11211"
|
||||
php-ext-source-r2_addtoinifiles "memcache.hash_strategy" "consistent"
|
||||
php-ext-source-r2_addtoinifiles "memcache.hash_function" "crc32"
|
||||
php-ext-source-r2_addtoinifiles "memcache.redundancy" "1"
|
||||
php-ext-source-r2_addtoinifiles "memcache.session_redundancy" "2"
|
||||
php-ext-source-r2_addtoinifiles "memcache.protocol" "ascii"
|
||||
}
|
@ -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-php/pecl-ssh2/pecl-ssh2-0.12.ebuild,v 1.1 2013/03/04 09:32:57 olemarkus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PHP_EXT_NAME="ssh2"
|
||||
PHP_EXT_INI="yes"
|
||||
PHP_EXT_ZENDEXT="no"
|
||||
DOCS="README ChangeLog"
|
||||
|
||||
USE_PHP="php5-3 php5-4"
|
||||
|
||||
inherit php-ext-pecl-r2
|
||||
|
||||
DESCRIPTION="Provides bindings to the functions of libssh2 which implements the SSH2 protocol."
|
||||
LICENSE="PHP-3"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
DEPEND=">=net-libs/libssh2-1.2"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,9 @@
|
||||
# ChangeLog for dev-php/pecl-zendoptimizerplus
|
||||
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-zendoptimizerplus/ChangeLog,v 1.1 2013/03/04 14:39:30 olemarkus Exp $
|
||||
|
||||
*pecl-zendoptimizerplus-7.0.0 (04 Mar 2013)
|
||||
|
||||
04 Mar 2013; Ole Markus With <olemarkus@gentoo.org> +metadata.xml,
|
||||
+pecl-zendoptimizerplus-7.0.0.ebuild:
|
||||
New package: Zend Optimizer Plus
|
@ -0,0 +1,20 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST zendoptimizerplus-7.0.0.tgz 82376 SHA256 c32aa8c75434f8f64d116694612adf6d2b40864feabbd8466b9561869ba97cfa SHA512 25e7381b94aa5d740e66c79f83bcf39a42912c2eacc622833555646a18e83987a0eea0817396c3c6eda360bec72ac1914ff207172106923dc73b36da299d6deb WHIRLPOOL a20628839e5df28ce40d2d83e26f9b6ecd2fde5ad9dbb9efc8f56ab4e100c83aa4b021f46ffe290516b7738eb2a4c7e61d15440899cd0a45d2e856116bc6b2be
|
||||
EBUILD pecl-zendoptimizerplus-7.0.0.ebuild 584 SHA256 7e1d30756e8806c9eba59389dd19179c13c4d78a800c693ea966c21f4393b198 SHA512 3ff8c40e646dd7818e9ff227f20bf15019113c78b8c667a0737336107d7cd7b399aad66f42f28fdd1c2e99c62a96b865c5f65cc56588c914fec4998d0ea78ffa WHIRLPOOL ab34d2e59291d75300fee3827a979220363c6aa3fa5f8e26bd0ef088f033f6a815ade4340c696021d04ffe70eeb33cbfa2a146608ce8e2deaabf9c067c6f5122
|
||||
MISC ChangeLog 425 SHA256 15dd47174d5326cbe7c25f38f698beee4fd03b2bb8d52dde7dd9faeb4cf21593 SHA512 cb664e4ed379f7f537a96f56c1597dea459918d7a752f5c0e0129023e9483cddaed28ca60297be72977cc1e2c6de0839da5b14b296a433ddbeb1b68445b4e0f1 WHIRLPOOL c7e9eaf320c0675b7607cd5e4b7e4e898e0a8c069ab0bca33eb778b666abbd6ad8db19b551e5d878b1b3aad65b76991a92b4056e9ff4365a2864f23c2d334be7
|
||||
MISC metadata.xml 287 SHA256 204f73ecd2e57636074d9ca9f06de2cd02aa80e3e8181446eb4aec9a805a8c51 SHA512 836c223c101351aa037ebde242d9cd4201ac16186fef10c3443a5a41b6125058ae7c8a4dca8a422d682a8fdefce895c8a94ebe28028501f58b328f0693647779 WHIRLPOOL df0f653b416e505fd2874a193c4a40c8c88477b958e3293cd365b707d7a6c052b02800f050a2da0dd2a0bf4ce114cc46c0a4d49e77f221c5a577af59f496dfe6
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQF8BAEBCABmBQJRNLJFXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
|
||||
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyOEZEMjNGNzBENkE5N0Q2Q0ZFMkFDNDA2
|
||||
QkFCNEFFNUM0QTkyQkY1AAoJEGurSuXEqSv15WcH/2aGEij3r1Ol00yGVMlaJnvW
|
||||
QgGEEdNXGuJIeLi23Y/9uWZv/IA6M0tI7eV6BjzCWRDz+E40kImlsdseojhFNmil
|
||||
nTg3iWRpzfmBpYCnEa64Ec0AIMfwEKE4e8KZc9DWc76kpY6ECksi01knamVpM5c5
|
||||
hqkZ810MO7jE44JdWCSN4n7zegaAe1u0vOYhf9fkfwy6qXbRks4e2ZTzCwRGpYBE
|
||||
6sIPxpWaTIPpI9UKsvM0C3RFOobD0E5BpVeFjnhi7k/3jOZlJl0s4fssXIjqUKMD
|
||||
iv1fytMFYLy3UV/uL8WrEzxnZmj0teZOeWKlmoFR9A1RN/pCxH7QPpCvqo/R4n0=
|
||||
=btm7
|
||||
-----END PGP SIGNATURE-----
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>olemarkus@gentoo.org</email>
|
||||
<name>Ole Markus With</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-zendoptimizerplus/pecl-zendoptimizerplus-7.0.0.ebuild,v 1.1 2013/03/04 14:39:30 olemarkus Exp $
|
||||
|
||||
EAPI="5"
|
||||
PHP_EXT_NAME="ZendOptimizerPlus"
|
||||
PHP_EXT_INI="yes"
|
||||
PHP_EXT_ZENDEXT="yes"
|
||||
|
||||
USE_PHP="php5-3 php5-4"
|
||||
|
||||
inherit php-ext-pecl-r2
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
MY_PV="${PV/_/}"
|
||||
MY_PV="${MY_PV/rc/RC}"
|
||||
|
||||
DESCRIPTION="The Zend Optimizer+ provides faster PHP execution through opcode caching and optimization."
|
||||
LICENSE="PHP-3"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
@ -1,16 +1,26 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
Hash: SHA512
|
||||
|
||||
DIST ruby-openid-2.2.0.gem 271872 SHA256 c89588ac978fddfceace902367e142137c5612b411bc76a717321520601cd1f4 SHA512 05a15abf9fa2acfac4fbe09a8f6c37bcc4a7e270ec37bc704924b1603ba1c29a02b417cd19b352ac860079cbee5b4a7f7bf4937cf2217c22e8e698891199e5a6 WHIRLPOOL e7a3526b5ccc78e20a22eeec5e8f0e7903b071fcf2a951dd73d74a28640460ed055ac8c39ff3001f0e9267433fffd4276a550f7ae9fa41f10adf58b14dfeb6e7
|
||||
DIST ruby-openid-2.2.2.gem 272384 SHA256 a55298e4e95477c7a91cdb70209cb353a925a7586f013ae8fd81e8996dca2857 SHA512 cb4609c32c357f6c065f6f62ed051e045a3df52d4a08e1a4abf94e83f5f2af3ffcdaa6178ad0da349c55d0b8947c2a87bd79170dcb9e6be72a121b8100f8d46f WHIRLPOOL aaf80883b1d2368fe4c7a85280dacbf58f164ccac8eaba1ca006e86a80154528c372464c8b1161b7d2d45d9dc65245fc0e34161c0142edcd95dc3aec16bad343
|
||||
EBUILD ruby-openid-2.2.0.ebuild 1121 SHA256 0a300e17e668ad88ecc3d29837c87da6317fe561f473141baaeef4ed12a6a6b9 SHA512 a382de14a8f22e41591874c837309239b58962140b58de165674af0d55bcd1b231f92c037b28788587c5464e5b430bb63cca7e34e97d3b67f0ba7832def60677 WHIRLPOOL bd9fda1430b35589042c805981603730124bba03939c75e8efcc863845a3e0766c7c9dc5dce0ec9488453b4c2ee382cafb704cccdd3595bc7e8cbdc5a5e63ba3
|
||||
EBUILD ruby-openid-2.2.2.ebuild 1206 SHA256 6d79e65ea431d1d0bbe65e1b290c13f046396e066b257ef93ff85e9f8edc6e7f SHA512 e0f38fab6ed639b192e35281db42a431ee69ba879b912c5f5dc21c7fff5dbe3f13874f1d7a703ef2261544917237ab24c5702a4dc8d152461ac70ca76a5192af WHIRLPOOL 1b843e99ea7518fa9d3bb779eb30daf79f768c317e1432d4d2faf0f19b02fc03b4325c1ee6e4cf1c96b947a264a32f47e5f974eb0867137ea8ac105859ec5742
|
||||
MISC ChangeLog 4214 SHA256 1bea739c6e695a247cad357997beeb9a73ec0050b17fb89f7e09f202dfda99ed SHA512 8e981561fda6fbdc55cf36f3f26ec72519fc87fbc81849cb16e2474944d445a763ec32d0264c9db3e08eaec298250057bf5891d06caa0b3c5a0cf2edf210a644 WHIRLPOOL 0d5c172ecfafbc7072b0e8beab0963b883ed1a4309d94b2cde7b7b27a41aeafb3687bf896191f08dfc8e7b870a0a85ef797fdfc65b9d12d2d5cb86e72b3f9248
|
||||
EBUILD ruby-openid-2.2.2.ebuild 1201 SHA256 472306e5a29fcb6cd876b50fbcad2321b59a259990c97e1b894caddc79a340b4 SHA512 49b082691a4242c39f036299905bd4f88b31eb25f435a6bc65c74f2776000a2aaf81d3bd1517ea8bb73347749a455f9fdf9e674216f8579035d6e110583d0597 WHIRLPOOL 20ea43cdd88882f33b4f9ca1085addde833b76bff2e76c9753e1ef1220df469f03f988e4ab7dfaf9f3167e936fa0ae544d0fc1c6c4161e28f98760b7b4c52c57
|
||||
MISC ChangeLog 4433 SHA256 aaba3d482c68d0dde9c2ab86f39d7d882e7e8604801d221472c86edca0cd8d80 SHA512 2284783f16d3b4045c7e11c4a42aac8ef7a6f74b2762057f4f6ee2db00cb1923d41fd768a3fcd547ba352d51f5f7fd37d203efd21a18e07c72ab2fbeae64243e WHIRLPOOL a157bbf259ff5a6117c7385c2986a3559160c5184615f4fe43003bd79636d78411b866991c92e9cd2e545ffd102faa231f46ec0da7643c5fe0d18290d641b034
|
||||
MISC metadata.xml 157 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c SHA512 0cec73b966de88015ea4c7212723d848d367608aa93658bb945f298a8000c4ba8aba73c9eb8481859fb5bbed45e80dae32c628caf81e027a4ad8eafa7e632851 WHIRLPOOL 4da25c81e21173ad8b7b5f35b056264869d9a16741062aa4422c5ea1aa9e73da8eb700b0d54de84c169d702fbb3f41ed157c9dc7c9daac110849ae84715c051b
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iF4EAREIAAYFAlEFLy8ACgkQiIP6VqMIqNc7sgD/SCTJCZLxBbq0u8ozR+z4ALx0
|
||||
4k5N/60n3enAcfp7W+EA/iY7k+LhojE33xCbzethqf2YCcqvyPVurFa11gvvhVNL
|
||||
=FYNC
|
||||
iQIcBAEBCgAGBQJRNGeNAAoJELp701BxlEWf8HcP/0dJszL+sUq0L2fbS6CeDOFO
|
||||
IISSN7+weT9pCerCLaM/owXYFd7LW0qp8Xzwhj3Owem7hluGMTZCSncjT2hFkbQy
|
||||
B9wGh1wyIIBM8DOd/eWtf0C/VZQwwxjhAAQ3ldmBpB2s/P7Uoje/YzjagHyq3aaI
|
||||
7euIVPRMLbjBCljDmsV1X3+Uc0XR2tXLdBPf6We9U9dcAzD3uT7A8+pRjE1C8LTo
|
||||
k5hHSivK79uN9LQWI4qddrPRg6C4CZhoEeY8JEaqp05PMU7QNhD0/WLJJxWXnay3
|
||||
NOM3o7dK/hVeRVHAv4G9eDu/PnoM0K+9ILsYGhWRLRMA1512PnGKf5pWezLZmKaO
|
||||
nc6X4Q6zQjEbOSzaH7pxEQ+7GpyJWJJN3BKuQ0/NjjhWe17AXYmUa5qYBov/gVIH
|
||||
hVpautF9ZCngfzVkw6LJL9jyh7h6YOiwrhbHKR4JUVhvCqfHfMIDswPvFPdLjv+U
|
||||
D1VGk5PCCCfWbNcMLhQ0atJ+cYvvIpJyDWegekluvXJL0bepLGKWZ6Yn9DXVFIqA
|
||||
t1mqvaM5ZB+Fz72hXq989E0TbotpjeW+b9WXpQzpR8yg6X4et2ulNBAU1bEa56Ny
|
||||
7qmdKYLhtaeoOU8xZSzGTC7EWiwp7oSjdnyagO79gueYSxMEbiUreDjgFNDEeIN1
|
||||
2PAa8di5uKNhWD71jp/r
|
||||
=Y7T7
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,219 @@
|
||||
From: Julian Ospald <hasufell@gentoo.org>
|
||||
Date: Mon Feb 25 21:35:31 UTC 2013
|
||||
Subject: fix multiple abi support
|
||||
|
||||
--- /dev/null
|
||||
+++ renpy-6.15.0-source/renpy/common.py
|
||||
@@ -0,0 +1,79 @@
|
||||
+# (the "Software"), to deal in the Software without restriction,
|
||||
+# including without limitation the rights to use, copy, modify, merge,
|
||||
+# publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
+# and to permit persons to whom the Software is furnished to do so,
|
||||
+# subject to the following conditions:
|
||||
+#
|
||||
+# The above copyright notice and this permission notice shall be
|
||||
+# included in all copies or substantial portions of the Software.
|
||||
+#
|
||||
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
+
|
||||
+import os
|
||||
+import sys
|
||||
+import warnings
|
||||
+from distutils.sysconfig import get_python_lib
|
||||
+
|
||||
+# Functions to be customized by distributors. ################################
|
||||
+
|
||||
+# Given the Ren'Py base directory (usually the directory containing
|
||||
+# this file), this is expected to return the path to the common directory.
|
||||
+def path_to_common(renpy_base):
|
||||
+ return renpy_base + "/renpy/common"
|
||||
+
|
||||
+# Given a directory holding a Ren'Py game, this is expected to return
|
||||
+# the path to a directory that will hold save files.
|
||||
+def path_to_saves(gamedir):
|
||||
+ import renpy #@UnresolvedImport
|
||||
+
|
||||
+ if not renpy.config.save_directory:
|
||||
+ return gamedir + "/saves"
|
||||
+
|
||||
+ # Search the path above Ren'Py for a directory named "Ren'Py Data".
|
||||
+ # If it exists, then use that for our save directory.
|
||||
+ path = renpy.config.renpy_base
|
||||
+
|
||||
+ while True:
|
||||
+ if os.path.isdir(path + "/Ren'Py Data"):
|
||||
+ return path + "/Ren'Py Data/" + renpy.config.save_directory
|
||||
+
|
||||
+ newpath = os.path.dirname(path)
|
||||
+ if path == newpath:
|
||||
+ break
|
||||
+ path = newpath
|
||||
+
|
||||
+ # Otherwise, put the saves in a platform-specific location.
|
||||
+ if renpy.android:
|
||||
+ return gamedir + "/saves"
|
||||
+
|
||||
+ elif renpy.macintosh:
|
||||
+ rv = "~/Library/RenPy/" + renpy.config.save_directory
|
||||
+ return os.path.expanduser(rv)
|
||||
+
|
||||
+ elif renpy.windows:
|
||||
+ if 'APPDATA' in os.environ:
|
||||
+ return os.environ['APPDATA'] + "/RenPy/" + renpy.config.save_directory
|
||||
+ else:
|
||||
+ rv = "~/RenPy/" + renpy.config.save_directory
|
||||
+ return os.path.expanduser(rv)
|
||||
+
|
||||
+ else:
|
||||
+ rv = "~/.renpy/" + renpy.config.save_directory
|
||||
+ return os.path.expanduser(rv)
|
||||
+
|
||||
+
|
||||
+# Returns the path to the Ren'Py base directory (containing common and
|
||||
+# the launcher, usually.)
|
||||
+def path_to_renpy_base():
|
||||
+ renpy_base = os.path.dirname(os.path.realpath(sys.argv[0]))
|
||||
+ renpy_base = get_python_lib() + "/renpy@SLOT@"
|
||||
+ renpy_base = os.environ.get('RENPY_BASE', renpy_base)
|
||||
+ renpy_base = os.path.abspath(renpy_base)
|
||||
+
|
||||
+ return renpy_base
|
||||
--- renpy-6.15.0-source/renpy.py
|
||||
+++ renpy-6.15.0-source/renpy.py
|
||||
@@ -25,64 +25,9 @@
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
-# Functions to be customized by distributors. ################################
|
||||
-
|
||||
-# Given the Ren'Py base directory (usually the directory containing
|
||||
-# this file), this is expected to return the path to the common directory.
|
||||
-def path_to_common(renpy_base):
|
||||
- return renpy_base + "/renpy/common"
|
||||
-
|
||||
-# Given a directory holding a Ren'Py game, this is expected to return
|
||||
-# the path to a directory that will hold save files.
|
||||
-def path_to_saves(gamedir):
|
||||
- import renpy #@UnresolvedImport
|
||||
-
|
||||
- if not renpy.config.save_directory:
|
||||
- return gamedir + "/saves"
|
||||
-
|
||||
- # Search the path above Ren'Py for a directory named "Ren'Py Data".
|
||||
- # If it exists, then use that for our save directory.
|
||||
- path = renpy.config.renpy_base
|
||||
-
|
||||
- while True:
|
||||
- if os.path.isdir(path + "/Ren'Py Data"):
|
||||
- return path + "/Ren'Py Data/" + renpy.config.save_directory
|
||||
-
|
||||
- newpath = os.path.dirname(path)
|
||||
- if path == newpath:
|
||||
- break
|
||||
- path = newpath
|
||||
-
|
||||
- # Otherwise, put the saves in a platform-specific location.
|
||||
- if renpy.android:
|
||||
- return gamedir + "/saves"
|
||||
-
|
||||
- elif renpy.macintosh:
|
||||
- rv = "~/Library/RenPy/" + renpy.config.save_directory
|
||||
- return os.path.expanduser(rv)
|
||||
-
|
||||
- elif renpy.windows:
|
||||
- if 'APPDATA' in os.environ:
|
||||
- return os.environ['APPDATA'] + "/RenPy/" + renpy.config.save_directory
|
||||
- else:
|
||||
- rv = "~/RenPy/" + renpy.config.save_directory
|
||||
- return os.path.expanduser(rv)
|
||||
-
|
||||
- else:
|
||||
- rv = "~/.renpy/" + renpy.config.save_directory
|
||||
- return os.path.expanduser(rv)
|
||||
-
|
||||
-
|
||||
-# Returns the path to the Ren'Py base directory (containing common and
|
||||
-# the launcher, usually.)
|
||||
-def path_to_renpy_base():
|
||||
- renpy_base = os.path.dirname(os.path.realpath(sys.argv[0]))
|
||||
- renpy_base = os.environ.get('RENPY_BASE', renpy_base)
|
||||
- renpy_base = os.path.abspath(renpy_base)
|
||||
-
|
||||
- return renpy_base
|
||||
-
|
||||
-##############################################################################
|
||||
+from distutils.sysconfig import get_python_lib
|
||||
+sys.path.append(get_python_lib() + "/renpy@SLOT@")
|
||||
+import renpy.common as common
|
||||
|
||||
# The version of the Mac Launcher and py4renpy that we require.
|
||||
macos_version = (6, 14, 0)
|
||||
@@ -97,21 +42,10 @@
|
||||
print "Ren'Py requires at least python 2.6."
|
||||
sys.exit(0)
|
||||
|
||||
-android = ("ANDROID_PRIVATE" in os.environ)
|
||||
|
||||
-# Android requires us to add code to the main module, and to command some
|
||||
-# renderers.
|
||||
-if android:
|
||||
- __main__ = sys.modules["__main__"]
|
||||
- __main__.path_to_renpy_base = path_to_renpy_base
|
||||
- __main__.path_to_common = path_to_common
|
||||
- __main__.path_to_saves = path_to_saves
|
||||
- os.environ["RENPY_RENDERER"] = "gl"
|
||||
- os.environ["RENPY_GL_ENVIRON"] = "limited"
|
||||
-
|
||||
def main():
|
||||
|
||||
- renpy_base = path_to_renpy_base()
|
||||
+ renpy_base = common.path_to_renpy_base()
|
||||
|
||||
# Add paths.
|
||||
if os.path.exists(renpy_base + "/module"):
|
||||
@@ -134,10 +68,6 @@
|
||||
print >>sys.stderr, "correctly, preserving the directory structure."
|
||||
raise
|
||||
|
||||
- if android:
|
||||
- renpy.linux = False
|
||||
- renpy.android = True
|
||||
-
|
||||
renpy.bootstrap.bootstrap(renpy_base)
|
||||
|
||||
if __name__ == "__main__":
|
||||
--- renpy-6.15.0-source/renpy/main.py
|
||||
+++ renpy-6.15.0-source/renpy/main.py
|
||||
@@ -27,7 +27,7 @@
|
||||
import zipfile
|
||||
import subprocess
|
||||
from cPickle import loads, dumps
|
||||
-import __main__
|
||||
+import renpy.common as common
|
||||
|
||||
|
||||
def save_persistent():
|
||||
@@ -147,7 +147,7 @@
|
||||
renpy.config.searchpath = [ renpy.config.gamedir ]
|
||||
|
||||
# Find the common directory.
|
||||
- commondir = __main__.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable
|
||||
+ commondir = common.path_to_common(renpy.config.renpy_base) # E1101 @UndefinedVariable
|
||||
|
||||
if os.path.isdir(commondir):
|
||||
renpy.config.searchpath.append(commondir)
|
||||
@@ -206,7 +206,7 @@
|
||||
|
||||
# Find the save directory.
|
||||
if renpy.config.savedir is None:
|
||||
- renpy.config.savedir = __main__.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable
|
||||
+ renpy.config.savedir = common.path_to_saves(renpy.config.gamedir) # E1101 @UndefinedVariable
|
||||
|
||||
if renpy.game.args.savedir: #@UndefinedVariable
|
||||
renpy.config.savedir = renpy.game.args.savedir #@UndefinedVariable
|
@ -0,0 +1,108 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-engines/renpy/renpy-6.15.0.ebuild,v 1.1 2013/03/04 16:02:13 hasufell Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_6 python2_7 )
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
inherit eutils python-r1 versionator gnome2-utils games distutils-r1
|
||||
|
||||
DESCRIPTION="Visual novel engine written in python"
|
||||
HOMEPAGE="http://www.renpy.org"
|
||||
SRC_URI="http://www.renpy.org/dl/${PV}/${P}-source.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
MYSLOT=$(delete_all_version_separators ${SLOT})
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="development doc examples"
|
||||
REQUIRED_USE="examples? ( development )"
|
||||
|
||||
RDEPEND="
|
||||
>=app-admin/eselect-renpy-0.2
|
||||
dev-libs/fribidi
|
||||
dev-python/pygame[X,${PYTHON_USEDEP}]
|
||||
>=dev-python/python-exec-0.3[${PYTHON_USEDEP}]
|
||||
media-libs/glew
|
||||
media-libs/libpng:0
|
||||
media-libs/libsdl[X,video]
|
||||
media-libs/freetype:2
|
||||
sys-libs/zlib
|
||||
virtual/ffmpeg
|
||||
virtual/python-argparse[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/${P}-source
|
||||
|
||||
pkg_setup() {
|
||||
games_pkg_setup
|
||||
export CFLAGS="${CFLAGS} $(pkg-config --cflags fribidi)"
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# wooosh! this should fix multiple abi
|
||||
epatch "${FILESDIR}"/${P}-multiple-abi.patch
|
||||
|
||||
einfo "Deleting precompiled python files"
|
||||
find . -name '*.py[co]' -print -delete || die
|
||||
|
||||
sed -i \
|
||||
-e "s/@SLOT@/${MYSLOT}/" \
|
||||
renpy.py renpy/common.py || die "setting slot failed!"
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
cd "${S}"/module || die
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_install() {
|
||||
cd "${S}"/module || die
|
||||
distutils-r1_python_install --install-lib="$(python_get_sitedir)/renpy${MYSLOT}"
|
||||
|
||||
cd "${S}" || die
|
||||
python_scriptinto "${GAMES_BINDIR}"
|
||||
python_newscript renpy.py ${PN}-${SLOT}
|
||||
|
||||
python_moduleinto renpy${MYSLOT}
|
||||
python_domodule renpy
|
||||
if use development ; then
|
||||
python_domodule launcher template
|
||||
fi
|
||||
if use examples ; then
|
||||
python_domodule the_question tutorial
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use development; then
|
||||
newicon -s 32 launcher/game/logo32.png ${P}.png
|
||||
make_desktop_entry ${PN}-${SLOT} "Ren'Py ${PV}" ${P}
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc
|
||||
fi
|
||||
|
||||
prepgamesdirs
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
games_pkg_preinst
|
||||
use development && gnome2_icon_savelist
|
||||
|
||||
einfo "running: eselect renpy update --if-unset"
|
||||
eselect renpy update --if-unset
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
games_pkg_postinst
|
||||
use development && gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use development && gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-strategy/dunelegacy/dunelegacy-0.96.3.ebuild,v 1.1 2013/03/04 16:32:18 hasufell Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils gnome2-utils games
|
||||
|
||||
DESCRIPTION="Updated clone of Westood Studios' Dune2"
|
||||
HOMEPAGE="http://dunelegacy.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+alsa pulseaudio"
|
||||
|
||||
RDEPEND="media-libs/libsdl[X,alsa?,audio,pulseaudio?,video]
|
||||
media-libs/sdl-mixer[midi,mp3,vorbis]"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
# exits on start without libsdl[alsa] or libsdl[pulseaudio]
|
||||
REQUIRED_USE="|| ( alsa pulseaudio )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-build.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
doicon -s scalable ${PN}.svg
|
||||
doicon -s 48 ${PN}.png
|
||||
make_desktop_entry ${PN} "Dune Legacy"
|
||||
|
||||
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,60 @@
|
||||
Author: hasufell <hasufell@gentoo.org>
|
||||
Date: Thu Aug 9 18:57:40 2012 +0200
|
||||
|
||||
respect flags
|
||||
use pkg-config
|
||||
use LDADD instead of LDFLAGS for libs
|
||||
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -16,14 +16,6 @@
|
||||
|
||||
AC_SUBST(dunelegacydatadir)
|
||||
|
||||
-dnl Some flags for gcc
|
||||
-CXXFLAGS="-O3 -pipe -pedantic -Wall -Wextra -Wno-unused-parameter -DNDEBUG"
|
||||
-dnl Additional flags: -Wconversion -Wno-sign-conversion
|
||||
-
|
||||
-dnl Some flags for clang
|
||||
-dnl CXXFLAGS="-O3 -pipe -pedantic -Weverything -Wno-sign-conversion -Wno-conversion -Wno-shadow -Wno-missing-noreturn -Wno-padded -Wno-packed -Wno-weak-vtables -Wno-c++11-narrowing -Wno-cast-align -Wno-unreachable-code -Wno-missing-prototypes -Wno-float-equal -Wno-global-constructors -Wno-exit-time-destructors -Wno-format-nonliteral -Wno-unused-macros -Wextra -Wno-unused-parameter"
|
||||
-
|
||||
-
|
||||
dnl test for -ffp-contract=off (gcc >= 4.6) and use -mno-fused-madd instead
|
||||
oldCFLAGS="$CFLAGS"
|
||||
CFLAGS="-ffp-contract=off"
|
||||
@@ -33,34 +25,14 @@
|
||||
)
|
||||
CFLAGS="$oldCFLAGS"
|
||||
|
||||
-case "$target_cpu" in
|
||||
-i*86) CXXFLAGS="$CXXFLAGS -mfpmath=sse -msse";;
|
||||
-esac
|
||||
-
|
||||
-AC_ARG_ENABLE([debug],
|
||||
- [AS_HELP_STRING([--enable-debug],
|
||||
- [compile with debug information @<:@default=disabled@:>@])],
|
||||
- [],
|
||||
- [])
|
||||
-
|
||||
-if test "$enable_debug" = "yes" ; then
|
||||
- CXXFLAGS="$CXXFLAGS -g"
|
||||
-fi
|
||||
|
||||
dnl Check for SDL library
|
||||
SDL_VERSION=1.2.0
|
||||
-AM_PATH_SDL($SDL_VERSION, : , AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
|
||||
+PKG_CHECK_MODULES([SDL], [sdl >= $SDL_VERSION SDL_mixer])
|
||||
CFLAGS="$CFLAGS $SDL_CFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
|
||||
LIBS="$LIBS $SDL_LIBS"
|
||||
|
||||
-dnl Check for SDL_mixer library.
|
||||
-AC_CHECK_LIB(SDL_mixer,
|
||||
- Mix_OpenAudio,
|
||||
- LIBS="$LIBS -lSDL_mixer",
|
||||
- AC_MSG_ERROR([*** SDL_mixer library not found!])
|
||||
-)
|
||||
-
|
||||
dnl enet defines
|
||||
AC_CHECK_FUNC(gethostbyaddr_r, [AC_DEFINE(HAS_GETHOSTBYADDR_R)])
|
||||
AC_CHECK_FUNC(gethostbyname_r, [AC_DEFINE(HAS_GETHOSTBYNAME_R)])
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/kde-misc/openofficeorg-thumbnail/openofficeorg-thumbnail-1.0.0-r1.ebuild,v 1.4 2013/03/04 18:13:38 kensington Exp $
|
||||
|
||||
EAPI=5
|
||||
MY_PN="OpenOfficeorgThumbnail"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
inherit kde4-base
|
||||
|
||||
DESCRIPTION="KDE thumbnail-plugin that generates thumbnails for ODF files"
|
||||
HOMEPAGE="http://www.kde-apps.org/content/show.php?content=110864"
|
||||
SRC_URI="http://arielch.fedorapeople.org/devel/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="4"
|
||||
IUSE="debug"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
@ -0,0 +1,97 @@
|
||||
Educational Community License, Version 2.0 (ECL-2.0)
|
||||
(plain text)
|
||||
Educational Community License
|
||||
|
||||
Version 2.0, April 2007
|
||||
|
||||
http://www.osedu.org/licenses/
|
||||
|
||||
The Educational Community License version 2.0 ("ECL") consists of the Apache 2.0 license, modified to change the scope of the patent grant in section 3 to be specific to the needs of the education communities using this license. The original Apache 2.0 license can be found at: http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License.
|
||||
|
||||
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License.
|
||||
|
||||
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. Any patent license granted hereby with respect to contributions by an individual employed by an institution or organization is limited to patent claims where the individual that is the author of the Work is also the inventor of the patent claims licensed, and where the organization or institution has the right to grant such license under applicable grant and research funding agreements. No other express or implied licenses are granted.
|
||||
|
||||
4. Redistribution.
|
||||
|
||||
You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
||||
|
||||
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
||||
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
||||
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
||||
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
||||
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions.
|
||||
|
||||
Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks.
|
||||
|
||||
This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty.
|
||||
|
||||
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability.
|
||||
|
||||
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability.
|
||||
|
||||
While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Educational Community License to your work
|
||||
|
||||
To apply the Educational Community License to your work, attach
|
||||
the following boilerplate notice, with the fields enclosed by
|
||||
brackets "[]" replaced with your own identifying information.
|
||||
(Don't include the brackets!) The text should be enclosed in the
|
||||
appropriate comment syntax for the file format. We also recommend
|
||||
that a file or class name and description of purpose be included on
|
||||
the same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner] Licensed under the
|
||||
Educational Community License, Version 2.0 (the "License"); you may
|
||||
not use this file except in compliance with the License. You may
|
||||
obtain a copy of the License at
|
||||
|
||||
http://www.osedu.org/licenses/ECL-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an "AS IS"
|
||||
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
||||
or implied. See the License for the specific language governing
|
||||
permissions and limitations under the License.
|
@ -1,14 +1,18 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA1
|
||||
Hash: SHA256
|
||||
|
||||
DIST arss-0.2.3-src.tar.gz 17597 RMD160 56dfdf73d5b49f761485e91b4992bbac33c0886f SHA1 c78715dd9eeb9a5df594b09195256ac02a813313 SHA256 e2faca8b8a3902226353c4053cd9ab71595eec6ead657b5b44c14b4bef52b2b2
|
||||
EBUILD arss-0.2.3.ebuild 584 RMD160 1474250c539e5343906682fd17591647dbe76b9e SHA1 2d0da1b69933b514f3ab8977d713bd372e9ecc84 SHA256 1936ba067020ecdf82a8c4953d8fa34285cf50d2619ddb73ada81036411935f4
|
||||
MISC ChangeLog 629 RMD160 ec44c381cd82be870fe1b51d59a8ae0211f143d1 SHA1 c11cfec3acea3966e5208aa6c7e583e001ef91ce SHA256 bfe6bf8ef0ee557cd7e9c4d60b5138a2691c9e79ebd976a5fbfd6b40814d6291
|
||||
MISC metadata.xml 211 RMD160 9f1b5bab616f2232afef3a069e955baa81e5c939 SHA1 0567777890dddffff7068a605bdeb934e4628b50 SHA256 a1bb8d76bdbe2da71b9cc04ecaa254f575552aaf5b7e94e9e04b131a32392c3f
|
||||
DIST arss-0.2.3-src.tar.gz 17597 SHA256 e2faca8b8a3902226353c4053cd9ab71595eec6ead657b5b44c14b4bef52b2b2 SHA512 7ef7115b310c9f4ecb7bdc8f34fb1afadabadb56d50ddef27a7688fd28af511ebaa1468f2c11a91077b8197027f9e31333c22d6b5f39d2a35d7b7dfc5b90658d WHIRLPOOL 40c9ee69cde4eb55b85f5ace0f9b277ef45b517a61b7da7744b547099d1f87a954d10e9024d9df94aa33f54cd6a8e4a5d526680e593955c1f4fb88ff52aa9603
|
||||
EBUILD arss-0.2.3.ebuild 594 SHA256 bd2772e3c678c70d80c0c49fc87481bd9dc0536f2ebb778b47d7a70ff399be1a SHA512 ae1bb9ca680645afde7dc2337356a9c632cc9eb65da414c97fabae18ae5c7ffc73ad72e79478eb570d24c697706ad0f98251e4a9637ebce297c269da500ef82e WHIRLPOOL 9128eb4141ea3348ccf5468e433f1038f71382eb740b86f77c46ff3393a7b58d0618e60cfbec9d24d6d607662347d7c1165f57f353f38602a858d70eafc2063a
|
||||
MISC ChangeLog 728 SHA256 4e3752054a0248c370471c7a11a5807d577569daf4393f53058c45ff3f8d9d72 SHA512 66eb37bb3eb651cf947b16267647d452c2c5804d67d9b2a33381ce781a60fd2e0ed3899a595f6d048023c158e173781b2df902b673ac426f7b217a2cf6c37690 WHIRLPOOL aacf15ed5c0556fa52d6a0098c39c51915ee636c98d99b325cd5d7ef7e9afa7a5d110b5aca9a0aca8fd280aa520652fe9affae833c919d93694328d860c4a4bf
|
||||
MISC metadata.xml 211 SHA256 a1bb8d76bdbe2da71b9cc04ecaa254f575552aaf5b7e94e9e04b131a32392c3f SHA512 0f6138e9843c5ebe51905db7d461da54073a88a74d938fb1d59d7f077f90002d0d785a883d70b640fa81c1c5b20dc5b9ffd969966f1cd13db71d697372e6f573 WHIRLPOOL 596d2e7e8e9245273188e0b865b481131f71853cf3313d58258266e461fde4ea22af8e992ee301e8f179a612e2a839f09f8ed504c7d086fde70f906d63c726f9
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.17 (GNU/Linux)
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iEYEARECAAYFAk27BCMACgkQCRZPokWLroQRsgCgjIM7dQg8MoiJb5YMZa0deNnt
|
||||
vNMAnibTemc9EH+tFJ8A/ApJKYhz87TN
|
||||
=bS45
|
||||
iQEcBAEBCAAGBQJRNOygAAoJEMbwO6tnXQ0sGuQIAIJpn5paolNr+CexKPqyifJO
|
||||
sf1UGAxiYtFbEz7h2ovsoG0FVnFt1Ne6ikoSIRrqXBmcPRR87gMO4myFCgXBRnO6
|
||||
GyJnFnLnuBNdLzTqtj0l9RZX0SyG0XUf6kQqlQ9H/dDg2TJ9o4THTflEWk/dq2Hd
|
||||
NxanxqA7TAMbp0kXdnOag2KxPRRIQE9gHZZ0XpQTLrfh87CGswgGav+lOZh8SEi2
|
||||
qJp3mD+RnAED1r6OvV9/OQkLKpu751AO1xPXqod7R7tlhWC31mEa37wn/PsstNlI
|
||||
USroapfE43HqVowFX8LfonTVgNPZUFi3NDnjk/8/DdMabS4KuhjQtPtp3nskUW4=
|
||||
=JZdG
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue