annotate dev-lang/php/php-5.2.17.ebuild @ 348:3f5268b98b82

add ebuild for the shrewsoft VPN client
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 16 Sep 2013 16:19:24 +0200
parents eb14375a9741
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
331
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
1 # Copyright 1999-2011 Gentoo Foundation
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/php/Attic/php-5.2.17.ebuild,v 1.18 2012/01/21 09:49:56 olemarkus dead $
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
4
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
5 EAPI=2
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
6
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
7 PHPCONFUTILS_MISSING_DEPS="adabas birdstep db2 dbmaker empress empress-bcs esoob
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
8 interbase msql oci8 sapdb solid"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
9
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
10 inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use phpconfutils php-common-r1 libtool
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
11
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
12 #SUHOSIN_VERSION="$PV-0.9.7"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
13 SUHOSIN_VERSION="5.2.16-0.9.7"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
14 EXPECTED_TEST_FAILURES=""
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
15
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
16 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
17
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
18 function php_get_uri ()
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
19 {
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
20 case "${1}" in
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
21 "php-pre")
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
22 echo "http://downloads.php.net/johannes/${2}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
23 ;;
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
24 "php")
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
25 echo "http://www.php.net/distributions/${2}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
26 ;;
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
27 "suhosin")
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
28 echo "http://download.suhosin.org/${2}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
29 ;;
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
30 "gentoo")
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
31 echo "mirror://gentoo/${2}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
32 ;;
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
33 *)
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
34 die "unhandled case in php_get_uri"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
35 ;;
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
36 esac
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
37 }
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
38
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
39 PHP_MV="$(get_major_version)"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
40
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
41 # alias, so we can handle different types of releases (finals, rcs, alphas,
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
42 # betas, ...) w/o changing the whole ebuild
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
43 PHP_PV="${PV/_rc/RC}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
44 PHP_RELEASE="php"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
45 PHP_P="${PN}-${PHP_PV}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
46 PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
47
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
48 PHP_PATCHSET="0"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
49 PHP_PATCHSET_URI="
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
50 $(php_get_uri gentoo "php-patchset-${PV}-r${PHP_PATCHSET}.tar.bz2")"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
51
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
52 if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
53 # in some cases we use our own suhosin patch (very recent version,
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
54 # patch conflicts, etc.)
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
55 SUHOSIN_TYPE="gentoo"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
56 else
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
57 SUHOSIN_TYPE="suhosin"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
58 fi
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
59
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
60 if [[ -n ${SUHOSIN_VERSION} ]]; then
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
61 SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
62 SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
63 fi
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
64
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
65 SRC_URI="
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
66 ${PHP_SRC_URI}
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
67 ${PHP_PATCHSET_URI}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
68
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
69 if [[ -n ${SUHOSIN_VERSION} ]]; then
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
70 SRC_URI="${SRC_URI}
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
71 suhosin? ( ${SUHOSIN_URI} )"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
72 fi
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
73
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
74 DESCRIPTION="The PHP language runtime engine: CLI, CGI, Apache2 and embed SAPIs."
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
75 HOMEPAGE="http://php.net/"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
76 LICENSE="PHP-3"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
77
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
78 # We can build the following SAPIs in the given order
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
79 SAPIS="cli cgi embed apache2"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
80
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
81 # Gentoo-specific, common features
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
82 IUSE="kolab"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
83
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
84 # SAPIs and SAPI-specific USE flags (cli SAPI is default on):
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
85 IUSE="${IUSE}
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
86 ${SAPIS/cli/+cli}
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
87 threads force-cgi-redirect discard-path"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
88
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
89 IUSE="${IUSE} adabas bcmath berkdb birdstep bzip2 calendar cdb cjk
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
90 crypt +ctype curl curlwrappers db2 dbase dbmaker debug doc empress
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
91 empress-bcs esoob exif fdftk frontbase +filter firebird
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
92 flatfile ftp gd gd-external gdbm gmp +hash +iconv imap inifile
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
93 interbase iodbc ipv6 +json kerberos ldap ldap-sasl libedit
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
94 mhash msql mssql mysql mysqli ncurses nls oci8
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
95 oci8-instant-client odbc pcntl +pcre pdo pic +posix postgres qdbm
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
96 readline recode reflection sapdb +session sharedext sharedmem
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
97 +simplexml snmp soap sockets solid spell spl sqlite ssl suhosin
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
98 sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
99 xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
100
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
101 # Enable suhosin if available
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
102 [[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
103
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
104 DEPEND=">=app-admin/eselect-php-0.6.2
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
105 pcre? ( >=dev-libs/libpcre-7.9[unicode] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
106 adabas? ( >=dev-db/unixODBC-1.8.13 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
107 apache2? ( www-servers/apache[threads=] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
108 berkdb? ( =sys-libs/db-4* )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
109 birdstep? ( >=dev-db/unixODBC-1.8.13 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
110 bzip2? ( app-arch/bzip2 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
111 cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
112 cjk? ( !gd? ( !gd-external? (
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
113 virtual/jpeg
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
114 media-libs/libpng
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
115 sys-libs/zlib
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
116 ) ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
117 crypt? ( >=dev-libs/libmcrypt-2.4 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
118 curl? ( >=net-misc/curl-7.10.5 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
119 db2? ( >=dev-db/unixODBC-1.8.13 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
120 dbmaker? ( >=dev-db/unixODBC-1.8.13 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
121 empress? ( >=dev-db/unixODBC-1.8.13 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
122 empress-bcs? ( >=dev-db/unixODBC-1.8.13 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
123 esoob? ( >=dev-db/unixODBC-1.8.13 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
124 exif? ( !gd? ( !gd-external? (
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
125 virtual/jpeg
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
126 media-libs/libpng
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
127 sys-libs/zlib
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
128 ) ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
129 fdftk? ( app-text/fdftk )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
130 firebird? ( dev-db/firebird )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
131 gd? ( virtual/jpeg media-libs/libpng sys-libs/zlib )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
132 gd-external? ( media-libs/gd )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
133 gdbm? ( >=sys-libs/gdbm-1.8.0 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
134 gmp? ( >=dev-libs/gmp-4.1.2 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
135 iconv? ( virtual/libiconv )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
136 imap? ( virtual/imap-c-client[ssl=] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
137 iodbc? ( dev-db/libiodbc )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
138 kerberos? ( virtual/krb5 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
139 kolab? ( >=net-libs/c-client-2004g-r1 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
140 ldap? ( !oci8? ( >=net-nds/openldap-1.2.11 ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
141 ldap-sasl? ( !oci8? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
142 libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
143 mhash? ( app-crypt/mhash )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
144 mssql? ( dev-db/freetds[mssql] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
145 mysql? ( virtual/mysql )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
146 mysqli? ( >=virtual/mysql-4.1 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
147 ncurses? ( sys-libs/ncurses )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
148 nls? ( sys-devel/gettext )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
149 oci8-instant-client? ( dev-db/oracle-instantclient-basic )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
150 odbc? ( >=dev-db/unixODBC-1.8.13 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
151 postgres? ( dev-db/postgresql-base )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
152 qdbm? ( dev-db/qdbm )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
153 readline? ( sys-libs/readline )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
154 recode? ( app-text/recode )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
155 sapdb? ( >=dev-db/unixODBC-1.8.13 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
156 sharedmem? ( dev-libs/mm )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
157 simplexml? ( >=dev-libs/libxml2-2.6.8 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
158 snmp? ( >=net-analyzer/net-snmp-5.2 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
159 soap? ( >=dev-libs/libxml2-2.6.8 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
160 solid? ( >=dev-db/unixODBC-1.8.13 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
161 spell? ( >=app-text/aspell-0.50 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
162 sqlite? ( =dev-db/sqlite-2* pdo? ( =dev-db/sqlite-3* ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
163 ssl? ( >=dev-libs/openssl-0.9.7 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
164 sybase-ct? ( dev-db/freetds )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
165 tidy? ( app-text/htmltidy )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
166 truetype? (
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
167 =media-libs/freetype-2*
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
168 >=media-libs/t1lib-5.0.0
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
169 !gd? ( !gd-external? (
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
170 virtual/jpeg media-libs/libpng sys-libs/zlib ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
171 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
172 wddx? ( >=dev-libs/libxml2-2.6.8 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
173 xml? ( >=dev-libs/libxml2-2.6.8 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
174 xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
175 xmlreader? ( >=dev-libs/libxml2-2.6.8 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
176 xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
177 xpm? (
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
178 x11-libs/libXpm
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
179 virtual/jpeg
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
180 media-libs/libpng sys-libs/zlib
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
181 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
182 xsl? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
183 zip? ( sys-libs/zlib )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
184 zlib? ( sys-libs/zlib )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
185 virtual/mta
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
186 "
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
187
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
188 php="=${CATEGORY}/${PF}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
189 RDEPEND="${DEPEND}
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
190 truetype? ( || ( $php[gd] $php[gd-external] ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
191 cjk? ( || ( $php[gd] $php[gd-external] ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
192 exif? ( || ( $php[gd] $php[gd-external] ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
193
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
194 xpm? ( $php[gd] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
195 gd? ( $php[zlib,-gd-external] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
196 gd-external? ( $php[-gd] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
197 simplexml? ( $php[xml] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
198 soap? ( $php[xml] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
199 wddx? ( $php[xml] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
200 xmlrpc? ( || ( $php[xml] $php[iconv] ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
201 xmlreader? ( $php[xml] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
202 xsl? ( $php[xml] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
203 ldap-sasl? ( $php[ldap,-oci8] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
204 suhosin? ( $php[unicode] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
205 adabas? ( $php[odbc] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
206 birdstep? ( $php[odbc] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
207 dbmaker? ( $php[odbc] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
208 empress-bcs? ( $php[empress] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
209 empress? ( $php[odbc] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
210 esoob? ( $php[odbc] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
211 db2? ( $php[odbc] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
212 sapdb? ( $php[odbc] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
213 solid? ( $php[odbc] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
214 kolab? ( $php[imap] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
215
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
216 oci8? ( $php[-oci8-instant-client,-ldap-sasl] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
217 oci8-instant-client? ( $php[-oci8] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
218
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
219 qdbm? ( $php[-gdbm] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
220 readline? ( $php[-libedit] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
221 recode? ( $php[-imap,-mysql,-mysqli] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
222 firebird? ( $php[-interbase] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
223 sharedmem? ( $php[-threads] )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
224
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
225 !cli? ( !cgi? ( !apache2? ( !embed? ( $php[cli] ) ) ) )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
226
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
227 filter? ( !dev-php${PHP_MV}/pecl-filter )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
228 json? ( !dev-php${PHP_MV}/pecl-json )
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
229 zip? ( !dev-php${PHP_MV}/pecl-zip )"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
230
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
231 [[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( $php[unicode] )"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
232
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
233 DEPEND="${DEPEND}
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
234 sys-devel/flex
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
235 >=sys-devel/m4-1.4.3
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
236 >=sys-devel/libtool-1.5.18"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
237
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
238 # They are in PDEPEND because we need PHP installed first!
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
239 PDEPEND="doc? ( app-doc/php-docs )"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
240
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
241 SLOT="$(get_version_component_range 1-2)"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
242 S="${WORKDIR}/${PHP_P}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
243
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
244 # Allow users to install production version if they want to
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
245 # PHP 5.2 has other filenames for prod and dev versions
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
246
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
247 case "${PHP_INI_VERSION}" in
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
248 production)
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
249 PHP_INI_UPSTREAM="php.ini-recommended"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
250 ;;
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
251 development)
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
252 PHP_INI_UPSTREAM="php.ini-dist"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
253 ;;
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
254 *)
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
255 PHP_INI_VERSION="development"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
256 PHP_INI_UPSTREAM="php.ini-dist"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
257 ;;
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
258 esac
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
259
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
260 PHP_INI_FILE="php.ini"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
261
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
262 want_apache
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
263
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
264 # eblit-core
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
265 # Usage: <function> [version] [eval]
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
266 # Main eblit engine
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
267 eblit-core() {
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
268 [[ -z $FILESDIR ]] && FILESDIR="$(dirname $EBUILD)/files"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
269 local e v func=$1 ver=$2 eval_=$3
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
270 for v in ${ver:+-}${ver} -${PVR} -${PV} "" ; do
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
271 e="${FILESDIR}/eblits/${func}${v}.eblit"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
272 if [[ -e ${e} ]] ; then
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
273 . "${e}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
274 [[ ${eval_} == 1 ]] && eval "${func}() { eblit-run ${func} ${ver} ; }"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
275 return 0
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
276 fi
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
277 done
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
278 return 1
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
279 }
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
280
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
281 # eblit-include
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
282 # Usage: [--skip] <function> [version]
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
283 # Includes an "eblit" -- a chunk of common code among ebuilds in a given
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
284 # package so that its functions can be sourced and utilized within the
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
285 # ebuild.
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
286 eblit-include() {
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
287 local skipable=false r=0
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
288 [[ $1 == "--skip" ]] && skipable=true && shift
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
289 [[ $1 == pkg_* ]] && skipable=true
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
290
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
291 [[ -z $1 ]] && die "Usage: eblit-include <function> [version]"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
292 eblit-core $1 $2
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
293 r="$?"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
294 ${skipable} && return 0
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
295 [[ "$r" -gt "0" ]] && die "Could not locate requested eblit '$1' in ${FILESDIR}/eblits/"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
296 }
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
297
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
298 # eblit-run-maybe
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
299 # Usage: <function>
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
300 # Runs a function if it is defined in an eblit
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
301 eblit-run-maybe() {
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
302 [[ $(type -t "$@") == "function" ]] && "$@"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
303 }
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
304
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
305 # eblit-run
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
306 # Usage: <function> [version]
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
307 # Runs a function defined in an eblit
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
308 eblit-run() {
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
309 eblit-include --skip common "v2"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
310 eblit-include "$@"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
311 eblit-run-maybe eblit-$1-pre
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
312 eblit-${PN}-$1
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
313 eblit-run-maybe eblit-$1-post
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
314 }
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
315
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
316 # eblit-pkg
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
317 # Usage: <phase> [version]
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
318 # Includes the given functions AND evals them so they're included in the binpkgs
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
319 eblit-pkg() {
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
320 [[ -z $1 ]] && die "Usage: eblit-pkg <phase> [version]"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
321 eblit-core $1 $2 1
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
322 }
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
323
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
324 eblit-pkg pkg_setup v2
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
325
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
326 src_prepare() { eblit-run src_prepare v2 ; }
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
327 src_configure() { eblit-run src_configure v521 ; }
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
328 src_compile() { eblit-run src_compile v1 ; }
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
329 src_install() { eblit-run src_install v2 ; }
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
330 src_test() { eblit-run src_test v1 ; }
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
331
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
332 #Do not use eblit for this because it will not get sourced when installing from
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
333 #binary package (bug #380845)
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
334 pkg_postinst() {
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
335 # Output some general info to the user
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
336 if use apache2 ; then
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
337 APACHE2_MOD_DEFINE="PHP5"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
338 APACHE2_MOD_CONF="70_mod_php5"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
339 apache-module_pkg_postinst
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
340 fi
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
341
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
342 # Create the symlinks for php
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
343 for m in ${SAPIS}; do
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
344 [[ ${m} == 'embed' ]] && continue;
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
345 if use $m ; then
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
346 local ci=$(eselect php show $m)
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
347 if [[ -z $ci ]]; then
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
348 eselect php set $m php${SLOT}
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
349 einfo "Switched ${m} to use php:${SLOT}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
350 einfo
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
351 elif [[ $ci != "php${SLOT}" ]] ; then
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
352 elog "To switch $m to use php:${SLOT}, run"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
353 elog " eselect php set $m php${SLOT}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
354 elog
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
355 fi
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
356 fi
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
357 done
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
358
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
359 elog "Make sure that PHP_TARGETS in /etc/make.conf includes php${SLOT/./-} in order"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
360 elog "to compile extensions for the ${SLOT} ABI"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
361 elog
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
362 if ! use readline && use cli ; then
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
363 ewarn "Note that in order to use php interactivly, you need to enable"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
364 ewarn "the readline USE flag or php -a will hang"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
365 fi
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
366 elog
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
367 elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
368 elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
369 elog "'production' or 'development' in /etc/make.conf"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
370 ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
371
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
372 # check for not yet migrated old style config dirs
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
373 ls "${ROOT}"/etc/php/*-php5 &>/dev/null
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
374 if [[ $? -eq 0 ]]; then
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
375 ewarn "Make sure to migrate your config files, starting with php-5.3.4 and php-5.2.16 config"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
376 ewarn "files are now kept at ${ROOT}etc/php/{apache2,cli,cgi,fpm}-php5.x"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
377 fi
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
378 elog
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
379 elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
380 elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
381 elog
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
382
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
383 if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
384 ewarn "The suhosin USE flag now only installs the suhosin patch!"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
385 ewarn "If you want the suhosin extension, make sure you install"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
386 ewarn " dev-php/suhosin"
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
387 ewarn
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
388 fi
eb14375a9741 revive the PHP ebuild for 5.2.17 from Gentoo's portage attic.
Dirk Olmes <dirk.olmes@iobjects.de>
parents:
diff changeset
389 }