parent
704908af28
commit
11d96de579
@ -1,3 +1,3 @@
|
||||
DIST at-spi2-atk-2.4.0.tar.xz 303684 SHA256 28e9c21ec8a76cae4914bdbc011c4f6bf1beeaa27751a88534d87364e6a888bf SHA512 78a4b3e731e3e2722b82402bab88c2ef05fb66f29d7fa66b2ee0b167fa177797b647ed485af7d27687a636d0265d6e2e835a85c6349556b24f5ed76255444b0e WHIRLPOOL df025133af0df70fbb7c7cef782c482bf6eca9f86cdd4c2e3aeb029c311c57d0515cfc91692216f53cb8511dade8ca59f05653d9f272b9058b1884a803f4d429
|
||||
DIST at-spi2-atk-2.6.0.tar.xz 274760 SHA256 2cfcb5e29aa6db5e8982add072dffecadd81d6ef04845afa2336be1b515bdc1f SHA512 616372516f5e8a427f9b80b0a80a5d6b42dbd064ed7d50c90f56034e7dfd4158be229584d40575cf1e99e7352a52bb41649ddbfe7cb57652b8649206b863b3bf WHIRLPOOL 16b74e9937f44616e1d45a344610dfaa836a4253ce736e148d84252f81f9cda5115f7b3ad36cbb74f97ae2eb55300a97ba254c43a57c39b36e0d9b0461e88355
|
||||
DIST at-spi2-atk-2.6.1.tar.xz 274796 SHA256 0a796c3635b23d094d488ac3aeee1bd785debfde433640687d4b17dfeaeb3398 SHA512 dc7bbacac72867a0263e2d2546fca841a2740195c9aad496ffc602ce29a572a58ad2b7e9314f0a0833d147a416d34163f1236e63ae4e9fb56d8b946ce779724f WHIRLPOOL 2a66a8c47e5731347b00ec830202ccf5492d5c93af8ca55f3c15d05ccc8b350b48ceedff7cb23a2f0efee5a725cba96c1e17e5e2e6263e0c0c6b93b8c98dfae9
|
||||
DIST at-spi2-atk-2.6.2.tar.xz 274748 SHA256 496c8432e8ab82735145f9af5d45209e9b708bf3c94e527ee091d08641a9bcfa SHA512 1ccfb0be6ebcd2a128b4ede45061cd4742ed861bd3167f60cbc52ce5daf043e30d10811726bb4918dfb8acd48fedcffdb78d416dee0af98955e8759a8d3cee90 WHIRLPOOL d9e9e20dcbfd3b56cff3db203c02ce047c3ff3989b4e24bb860ccf36d7d362c93ec1db14209dfb45e1824ceacb7d767fb8b8f0084e2e00f801a1db41a92928e0
|
||||
|
@ -1,4 +1,4 @@
|
||||
DIST at-spi2-core-2.2.3.tar.xz 429444 SHA256 fb97f0a02fa378795e50857e22e640e099be1768081e28ca2dbdb3835f5b6af1 SHA512 4ff634339c7aecd90d1ec8b16478aae4da0db319ae1ee1ac5bcecc93098f797dc58359b718b9800bffa6da81afc41fed21eff71456a165aa6428f7a64179d631 WHIRLPOOL a698a217f99af089a9041b7162ebcff66d5d8a38050dd74750c77792380e368f57d91d2b1494a080674fb57560e566cd924cf930a5e7785f9ccdeb12a34504ab
|
||||
DIST at-spi2-core-2.4.2.tar.xz 441204 SHA256 61d926ffc49c7f9236580468c5c9dabda16cec37ef3aee78ca6f2751595518fd SHA512 38968eb9a135b3f7badae2a87e7ba6b3323bfd43f8494ac81fb6696f7056d0e0ab04679173f9f8f595284611327da83fcf5ada3a406080c3faf5ada98a5d6599 WHIRLPOOL aa0902f6992dc38610599d2ccabb7796699ee4ebe0ded3b5123a4c85e290565d0a8812dec82851be69bad4afcf29f2eda120265f1707792c06f36f96cba95e95
|
||||
DIST at-spi2-core-2.6.0.tar.xz 443552 SHA256 8d7e685c7cda6e2831b31c66ec796dc344c5eb29d8311f69b0a47529194ec559 SHA512 ef2b7e1565b09339c20577ee2237bda5af5eef05e64eaa6035435e7cde490c13efe468c0fc0e108ac64a30c962e39c456b089e8313f03106e7c435019b11a721 WHIRLPOOL e0ffc7e1313eae15362c3867a892bdc9ba83993f036c91af6942de3b55d05fb4d913df70ed68d8ed77673115864ca20b71fd7b3812ca1d8229c1a7ba54e4fff2
|
||||
DIST at-spi2-core-2.6.1.tar.xz 443684 SHA256 cb087f0a9191422bc3f44c562a0dbfdf1c2266e45c267070aeb63b874e00f867 SHA512 2954c4c5f2b0328cdd1a0e76f7d9c9aab8ee8e7ed736ed1e15c8f9e6dfa4dd1d0f841d10665190c14e45ef4c492dea164ae728bb2ab9b89ff37a9b325288c677 WHIRLPOOL b9e347e8176d6861ee8c0be6f8561098ee13407daffc51db3490178de2ba0fbd6f494941d9092690d97608de5a9a7bb1d7427b9d38a0d7cf87ee8d6a63b7bb39
|
||||
DIST at-spi2-core-2.6.2.tar.xz 443900 SHA256 0d5321ce9fdd7d036b072ef28cba14088394606e1687183ec5d0ae6adea8c87e SHA512 946e46bcba025d298051d99e229dfc5a3ff0b477b9c4e1a97c1ea3cee8a86832e2ee7fe34a986a9fb8e1138389e8f9ad3e27c2638769f1251e12ce4df6ccda9d WHIRLPOOL b01abdaa0f749f113e10a19ce1eab9d7bd120975a738acdf96fa25776258c51749af77f44375800724067b5b9ced253e49cd0c87225e7baee4e522b628657a1c
|
||||
|
@ -1,3 +1,4 @@
|
||||
DIST caribou-0.4.1.tar.xz 361172 SHA256 d4d2328e0eadbf037f7e0ec146e835097fe56cb2b940985655e649c5556e4ed1 SHA512 d2f07bb00ed10cdeeb807d6adfd3eca5a4d83ca13fec78b86af2616c50d806ba1b1c6dcd4d7a89ea0ee69ce1183d0d5d30df3313895b9636291a054b0a6c5100 WHIRLPOOL e8c1e79f3e2d8e5fddae6e271e0f177e09819b1cf395cc57f62a994a45d7ee0dadf1024b09c3bac4b60f572cec64d1f0d9bbbb4049b92cd05f1f6b8b46a9da7d
|
||||
DIST caribou-0.4.2.tar.xz 373604 SHA256 bcc64498b20c368747c3630d501a66ccf904db15d855f33fd4f963b5b19723ad SHA512 a069153c651ee9c899b1fd2771932cd656a91fcff1a04c350fde9ffd2a634bcb4346bae1b5035cc266d95953631182c481037ac0a936bceac8fc3863a32df1e6 WHIRLPOOL 6f868b38990ef7bf52f783cdedc3213fa5bfe0e1a34125a6bd0417b208cc26ff3358869aba01503a659e0a7c1e94ca1493b6e89a2cf091bedc6ab8353a3884cb
|
||||
DIST caribou-0.4.4.tar.xz 374512 SHA256 823c53afec88d43f06ddce63e0d1aac79d783f498502a0617d8be0cffc6a7de2 SHA512 bdaa073c049811920625f5195fead129fbc747d602a8c4b90de6c7aeee31299d9a3b52de1150bae059dd3e56bf358c09be406216abb601e34110717b64f75a26 WHIRLPOOL 931b78abd3e3d042952a278af67c67eb5b218682812202be7eb542b7607392c71640a7abfb3314d1cb7b88b75457f207f541d727a9fba4b2eeff8cdac0502e0b
|
||||
DIST caribou-0.4.5.tar.xz 366576 SHA256 607b5169fe358b5555fd3a9d89008d03d8ce862b2e13ba55aa4deffdb02be02b SHA512 1de5646f1b255dbc54199fa319f62752f79b3b63e3540fa9880446ca2619c886fa7e28ebfcaa7ccc879d1d9b4f5865728b661ffb424f54e629bc66e538a0c8d7 WHIRLPOOL 0c10c765dcdc5c40e20d8acceb111a75722847eaf03b77d31801c00d7084f863c63aae75741e0154aa5f612bfdc17c08587e5bcbc6b16addcac42e4f67de55ac
|
||||
|
@ -0,0 +1,82 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-accessibility/caribou/caribou-0.4.5.ebuild,v 1.1 2012/11/22 22:18:58 eva Exp $
|
||||
|
||||
EAPI="4"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
PYTHON_DEPEND="2:2.5"
|
||||
PYTHON_USE_WITH="xml"
|
||||
|
||||
inherit gnome2 python
|
||||
|
||||
DESCRIPTION="Input assistive technology intended for switch and pointer users"
|
||||
HOMEPAGE="https://live.gnome.org/Caribou"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND=">=dev-python/pygobject-2.90.3:3
|
||||
>=x11-libs/gtk+-3:3[introspection]
|
||||
x11-libs/gtk+:2
|
||||
>=dev-libs/gobject-introspection-0.10.7
|
||||
dev-libs/libgee:0.8
|
||||
dev-libs/libxml2
|
||||
>=media-libs/clutter-1.5.11:1.0[introspection]
|
||||
x11-libs/libX11
|
||||
x11-libs/libxklavier
|
||||
x11-libs/libXtst"
|
||||
# gsettings-desktop-schemas is needed for the 'toolkit-accessibility' key
|
||||
# pyatspi-2.1.90 needed to run caribou if pygobject:3 is installed
|
||||
# librsvg needed to load svg images in css styles
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/pyatspi-2.1.90
|
||||
>=gnome-base/gsettings-desktop-schemas-3
|
||||
gnome-base/librsvg:2
|
||||
sys-apps/dbus
|
||||
virtual/python-argparse
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-libs/libxslt
|
||||
>=dev-util/intltool-0.35.5
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS="AUTHORS ChangeLog NEWS README"
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
G2CONF="${G2CONF}
|
||||
--disable-static
|
||||
--disable-schemas-compile
|
||||
--enable-gtk3-module
|
||||
--enable-gtk2-module
|
||||
PYTHON=${EPREFIX}/usr/bin/python2
|
||||
VALAC=$(type -P valac-0.18)" # harmless even if valac-0.14 not found
|
||||
# PYTHON is substituted into several installed shell scripts
|
||||
# vala is not needed for tarball builds, but configure checks for it...
|
||||
|
||||
# delete custom PYTHONPATH, useless on Gentoo and potential bug source
|
||||
sed -e '/export PYTHONPATH=.*python/ d' \
|
||||
-i bin/{antler-keyboard,caribou,caribou-preferences}.in ||
|
||||
die "sed failed"
|
||||
|
||||
python_clean_py-compile_files
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_pkg_postinst
|
||||
python_mod_optimize caribou
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_pkg_postrm
|
||||
python_mod_cleanup caribou
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST lcab-1.0b12.tar.gz 74907 SHA256 065f2c1793b65f28471c0f71b7cf120a7064f28d1c44b07cabf49ec0e97f1fc8 SHA512 7aeb1b2aa0b9171963b771cfbec13d1a6d4b2519f0f6f2705b505d0ec7a7425764996de00ed1d2919d08c525617d029035a586e8c7e2fad2f44945fddd2afbcf WHIRLPOOL 4550fac41b3b990b0e9ae31f98b85e1e931c4a0508e64b14f0f0b26431d3afef74e479df5dec7051e539b796747637726652a13a49ea1767d3b8ead09f09ff68
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/lcab/lcab-1.0_beta12.ebuild,v 1.1 2012/11/22 21:50:28 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit autotools
|
||||
|
||||
MY_PV=${PV/_beta/b}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
|
||||
DESCRIPTION="CAB file creation tool"
|
||||
HOMEPAGE="http://ohnopublishing.net/lcab/"
|
||||
SRC_URI="ftp://ohnopublishing.net/mirror/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
sed -i "s:1.0b11:${MY_PV}:" mytypes.h || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
doman ${PN}.1
|
||||
}
|
@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>media-optical</herd>
|
||||
<maintainer>
|
||||
<email>vapier@gentoo.org</email>
|
||||
<description>do whatever</description>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST necflash_linux.tgz 284389 RMD160 389138e6427e69e516445119872e26f8857e1f59 SHA1 78a6c0359c64e62338a8a69c0f7402a3fca94b31 SHA256 ed095c359c507688e3e7f557a709ea9014d9bc7f4922fc2b34e7ac6d733869c4
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-cdr/binflash/binflash-1.56.ebuild,v 1.1 2011/06/26 10:57:11 jlec Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
MY_PN=${PN/bin/nec}
|
||||
|
||||
DESCRIPTION="Tool to flash DVD burner with a binary firmware file"
|
||||
HOMEPAGE="http://binflash.cdfreaks.com"
|
||||
SRC_URI="http://binflash.cdfreaks.com/download/1/2/${MY_PN}_linux.tgz"
|
||||
|
||||
LICENSE="as-is"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="fetch strip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
pkg_nofetch() {
|
||||
elog "We cannot download this file for your due to license restrictions."
|
||||
elog "Please visit ${HOMEPAGE} and download ${A} into ${DISTDIR}."
|
||||
}
|
||||
|
||||
src_install() {
|
||||
into /opt
|
||||
dobin ${MY_PN}
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST osslsigncode-1.4.tar.gz 96512 SHA256 721eddade1571fcde54e7f5c21f961dacb990c19f9bdb05c4a7aaeb269979069 SHA512 89f82b5cbab5952b7bb0b1a3ea230db0c38d171924e5150e9cd157158e52d312cc10093ac719265d03a097f995bd3a438fe874c50263659859c625482ef0239f WHIRLPOOL a3fadd7e9e4e8bb295d33b6e7696fe5e7ba32f252656fef3faa59bcd86ddf6ceec2e5532cc136e078af6eaf74c169edfaa18635151e993061f071b7cdb0807c6
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>vapier@gentoo.org</email>
|
||||
<description>do whatever</description>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/osslsigncode/osslsigncode-1.4.ebuild,v 1.1 2012/11/22 21:58:13 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
DESCRIPTION="Platform-independent tool for Authenticode signing of EXE/CAB files"
|
||||
HOMEPAGE="https://sourceforge.net/projects/osslsigncode"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="curl"
|
||||
|
||||
RDEPEND="dev-libs/openssl
|
||||
curl? ( net-misc/curl )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with curl)
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST ess-12.04-4.tgz 3280247 SHA256 c8ae9ba3db3ee98ca857a9ea6c82c88d92d4bc9115bc3f7e08c466920b5950ca SHA512 a3632fee17216059f83ec49ff2362b97488ffb2af6cff1e208f4ae309fd828a36f27d9476002790a3402838edea23b15934bf896c0384b61e54b83d208a91d99 WHIRLPOOL de584e164b28e331a4f0f1d2b7d4973fbb4c3dcb15d3fd0b4c76073bb6e52440876a786c0f33ca2480a670f9cb720f5b2ca2da334f976500e89b2d9c597fe484
|
||||
DIST ess-12.09.tgz 3332863 SHA256 3167a84c9958605e9c1de7dc2dce564e22e89b79c9d1ba7ff7f66013af56f2b8 SHA512 652bac7965dfc594071a8cb332692522696930bce1617938a88835962a246faa6bcd1eb7ab0a340fbce71c2d93a8953ecf49dec684080635c0135c1db097d35c WHIRLPOOL 14c63d4397e635da5b7c5244ddc814c23ba494f4cdaa79081b35eef9c04c71c6c875c009518e9bd4e37f945c4a2b4f62ed27c93eebcfa65e090e03c77d995391
|
||||
DIST ess-5.14.tgz 7272065 SHA256 982b625f5c3f0e11d2cd8903e15026b5ecac6775415e8eb3cd120d0b9950dcc6 SHA512 b4a726f4565e70ac5d960a96fc1cb4780b966bc2845233e0369e1a3462c3728c27cece27c2f89b8b74936dcbe63770e50c58c07e30ac8ed890c59e6301e6eada WHIRLPOOL 101bf76fba513c0f370c396878426c97cb518a0a37da63686c2825a7c6cb6aa2270a78711fa1b56b3951b0da42e268ebd5f8741d2fde832ce0198c4f2d6017e5
|
||||
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emacs/ess/ess-12.04.4.ebuild,v 1.6 2012/09/29 09:39:33 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit elisp
|
||||
|
||||
MY_P=${PN}-${PV%.*}-${PV##*.}
|
||||
DESCRIPTION="Emacs Speaks Statistics"
|
||||
HOMEPAGE="http://ess.r-project.org/"
|
||||
SRC_URI="http://ess.r-project.org/downloads/ess/${MY_P}.tgz"
|
||||
|
||||
LICENSE="GPL-2+ GPL-3+ Texinfo-manual"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-text/texi2html
|
||||
virtual/latex-base"
|
||||
RDEPEND=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake PREFIX="${ED}/usr" \
|
||||
INFODIR="${ED}/usr/share/info" \
|
||||
LISPDIR="${ED}${SITELISP}/ess" \
|
||||
DOCDIR="${ED}/usr/share/doc/${PF}" \
|
||||
install
|
||||
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
|
||||
|
||||
# Most documentation is installed by the package's build system.
|
||||
rm -f "${ED}${SITELISP}/${PN}/ChangeLog"
|
||||
dodoc ChangeLog *NEWS doc/{TODO,ess-intro.pdf}
|
||||
newdoc lisp/ChangeLog ChangeLog-lisp
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elisp-site-regen
|
||||
elog "Please see /usr/share/doc/${PF} for the complete documentation."
|
||||
elog "Usage hints are in ${SITELISP}/${PN}/ess-site.el ."
|
||||
}
|
@ -1,4 +1,2 @@
|
||||
DIST org-6.36c.tar.gz 2706358 SHA256 26db6b9c319a2dd54f3a8da78f761594b7c8e7edeb9106f14a1c3a6ff94786a0 SHA512 81dfd13f4a3540bf8e6c3cd9a49f02882bb1aa20ac4ecc97beaa159bd8ab7ca4bf10bf5ca23c40619788f8999cee8ae6b0439d1d51b561197c24e6efd34f5d56 WHIRLPOOL 9c89b8508338553a05458bd9c532aaf951dd8803a755f432bd3136629e17e2244c06377b5516cee5cb04a69edd9301cdeafac70da1f3e83715d41643bf65dd2b
|
||||
DIST org-7.7.tar.gz 3248717 SHA256 6df7633ec40231f466b436c5e63b03a62c585d3fe0e53838a2cd7c18c68e7f26 SHA512 775f12c771c27bc54ef2975b470a9b92310f66bd8e59f1219a6b7d9f8b14f308647ce7fd81cd4170d61dcf5257ce3a1b283b0690d25a90fe8bc3a3bde0b82042 WHIRLPOOL 4dee591a29a5e024e8bb25a0e33c00cef4910c3e6f13a7e799200a6fe64b013a5a9f0b9fa0f28d662719f0749048d9eb1b1da4c07fcc156e5a268d6b90e7f2ae
|
||||
DIST org-7.8.11.tar.gz 3303681 SHA256 2f6a69aaff5cd66162a9a1a6df900c6050434bced1bbc7eea715b5579a0487c1 SHA512 2032b5820b28c85b9780ec09d33348ab951709ce69a56c47dab85c3a42175c4588ca73f26552eb0b6f52051c546992f8a273f8319ca61a9a20313f071b5d6c38 WHIRLPOOL 6ab2466e9f341e32827ea588bee4be609ecce11e0ad38eca0870f6bec8dfef09422897ec960a6292dcb109ac0e4d980d53d5defce6e7f0192c75d5cae46ae74b
|
||||
DIST org-7.9.2.tar.gz 4141885 SHA256 14c91bf456c271ac17f2f083f86227d4e5f09483fdb69adbf314de4392e25469 SHA512 9b0f90ec47660dcc9faf7ad742b62c816a031119a2a89864f6fd183e343bd08027f5cf8439314b1593b9f5d76ff08f57b0b30aa188e1a94a426b3573c33c434c WHIRLPOOL 3ac9a49157375cd3628c4fb1248af071d8ed725307effbcce81961bd1d35117ae7f5a371baffa6159e0c57fd4f896cdf4a7b0d3ac67942ea177d8717a19ce47f
|
||||
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emacs/org-mode/org-mode-7.7.ebuild,v 1.7 2012/09/26 18:19:45 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
NEED_EMACS=22
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="An Emacs mode for notes and project planning"
|
||||
HOMEPAGE="http://www.orgmode.org/"
|
||||
SRC_URI="http://orgmode.org/org-${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+ FDL-1.3+ contrib? ( GPL-2+ MIT OASIS-Open )"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc x86 ~x86-fbsd ~x86-macos"
|
||||
IUSE="contrib"
|
||||
|
||||
S="${WORKDIR}/org-${PV}"
|
||||
# Remove autoload file to make sure that it is regenerated with
|
||||
# the right Emacs version.
|
||||
ELISP_REMOVE="lisp/org-install.el"
|
||||
SITEFILE="50${PN}-gentoo.el"
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
prefix="${ED}/usr" \
|
||||
lispdir="${ED}${SITELISP}/${PN}" \
|
||||
infodir="${ED}/usr/share/info" \
|
||||
install
|
||||
|
||||
cp "${FILESDIR}/${SITEFILE}" "${T}/${SITEFILE}"
|
||||
|
||||
if use contrib; then
|
||||
elisp-install ${PN}/contrib contrib/lisp/*org*.el || die
|
||||
insinto /usr/share/doc/${PF}/contrib
|
||||
doins -r contrib/README contrib/babel contrib/odt contrib/scripts
|
||||
find "${ED}/usr/share/doc/${PF}/contrib" -type f -name '.*' \
|
||||
-exec rm -f '{}' '+'
|
||||
sed -ie 's:\(.*@SITELISP@\)\(.*\):&\n\1/contrib\2:' \
|
||||
"${T}/${SITEFILE}" || die
|
||||
fi
|
||||
|
||||
elisp-site-file-install "${T}/${SITEFILE}" || die
|
||||
doinfo doc/org
|
||||
dodoc README doc/org.pdf doc/orgcard.pdf doc/orgguide.pdf
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emacs/org-mode/org-mode-7.8.11.ebuild,v 1.4 2012/09/26 18:19:45 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
NEED_EMACS=22
|
||||
|
||||
inherit elisp
|
||||
|
||||
DESCRIPTION="An Emacs mode for notes and project planning"
|
||||
HOMEPAGE="http://www.orgmode.org/"
|
||||
SRC_URI="http://orgmode.org/org-${PV}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+ FDL-1.3+ contrib? ( GPL-2+ MIT OASIS-Open )"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86 ~x86-fbsd ~x86-macos"
|
||||
IUSE="contrib"
|
||||
|
||||
S="${WORKDIR}/org-${PV}"
|
||||
ELISP_PATCHES="${PN}-7.8.03-Makefile.patch"
|
||||
# Remove autoload file to make sure that it is regenerated with
|
||||
# the right Emacs version.
|
||||
ELISP_REMOVE="lisp/org-install.el"
|
||||
SITEFILE="50${PN}-gentoo-7.8.03.el"
|
||||
|
||||
src_compile() {
|
||||
emake datadir="${SITEETC}/${PN}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
prefix="${ED}/usr" \
|
||||
lispdir="${ED}${SITELISP}/${PN}" \
|
||||
datadir="${ED}${SITEETC}/${PN}" \
|
||||
infodir="${ED}/usr/share/info" \
|
||||
install
|
||||
|
||||
cp "${FILESDIR}/${SITEFILE}" "${T}/${SITEFILE}"
|
||||
|
||||
if use contrib; then
|
||||
elisp-install ${PN}/contrib contrib/lisp/*org*.el || die
|
||||
insinto /usr/share/doc/${PF}/contrib
|
||||
doins -r contrib/README contrib/babel contrib/odt contrib/scripts
|
||||
find "${ED}/usr/share/doc/${PF}/contrib" -type f -name '.*' \
|
||||
-exec rm -f '{}' '+'
|
||||
# add the contrib subdirectory to load-path
|
||||
sed -ie 's:\(.*@SITELISP@\)\(.*\):&\n\1/contrib\2:' \
|
||||
"${T}/${SITEFILE}" || die
|
||||
fi
|
||||
|
||||
elisp-site-file-install "${T}/${SITEFILE}" || die
|
||||
doinfo doc/org
|
||||
dodoc README doc/org.pdf doc/orgcard.pdf doc/orgguide.pdf
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-forensics/pasco/pasco-20040505_p1-r1.ebuild,v 1.1 2012/11/23 13:26:58 ago Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P=${PN}_${PV/_p/_}
|
||||
|
||||
DESCRIPTION="IE Activity Parser"
|
||||
HOMEPAGE="http://sourceforge.net/projects/odessa/"
|
||||
SRC_URI="mirror://sourceforge/odessa/${MY_P}.tar.gz"
|
||||
LICENSE="as-is"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}/${MY_P}/src"
|
||||
|
||||
src_compile() {
|
||||
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN} ${PN}.c -lm -lc || die "failed to compile"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST calibre-0.9.6.tar.xz 27346664 SHA256 d2cb83a8fc32b3258f3a491f33f4271bfd4020ac4fdbbf01131deb81bba9624f SHA512 6bbacc8ed9af318bdfc09807937ec5e3e2d99a9b1d408cbf4dd4976926b415736928a16ee8d712ae1b93e98ab612841123bb370440c78db9c350ebd6503f8e58 WHIRLPOOL 306662c0b7dae93ec0d5c63903e02fc6a9cdf6427290bd366464dca7c618f602380fec9767a23baafaf1257135f333553c345356bf06560785c0664f9d74cf36
|
||||
DIST calibre-0.9.7.tar.xz 27408848 SHA256 11c861aaed751e53f3a97164a4e879d6afc5aed7e395aca9a62ae1feff2d29a7 SHA512 51367dea7171861095dd01eeee985be3018b811ad25a294d523b59414b2e3eabd198e40d8528b417295cdad39260059bade71967fd305699c559cf341494b3fa WHIRLPOOL 3ed4741a5e52bdba9c51d2c2c9003de72aa8a299f034ba8a1c1455ce1f817b01c97ab6f960eee03f942b04d9ecb44ebb74616b209fee64249f104cd28e4d0205
|
||||
|
@ -0,0 +1,184 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.9.7.ebuild,v 1.1 2012/11/23 18:37:29 zmedico Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND=2:2.7
|
||||
PYTHON_USE_WITH="ssl sqlite"
|
||||
|
||||
inherit python eutils fdo-mime bash-completion-r1 multilib
|
||||
|
||||
DESCRIPTION="Ebook management application."
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
IUSE="+udisks"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-text/podofo-0.8.2
|
||||
>=app-text/poppler-0.12.3-r3[qt4,xpdf-headers(+)]
|
||||
>=dev-libs/chmlib-0.40
|
||||
>=dev-libs/icu-4.4
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2
|
||||
dev-python/netifaces
|
||||
dev-python/python-dateutil
|
||||
>=dev-python/dnspython-1.6.0
|
||||
>=dev-python/cssselect-0.7.1
|
||||
>=dev-python/cssutils-0.9.9
|
||||
>=dev-python/dbus-python-0.82.2
|
||||
>=dev-python/imaging-1.1.6
|
||||
>=dev-python/lxml-2.2.1
|
||||
>=dev-python/mechanize-0.1.11
|
||||
>=dev-python/python-dateutil-1.4.1
|
||||
>=dev-python/PyQt4-4.9.1[X,svg,webkit]
|
||||
media-fonts/liberation-fonts
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
>=media-libs/freetype-2
|
||||
>=media-libs/libwmf-0.2.8
|
||||
>=media-libs/libmtp-1.1.4
|
||||
virtual/libusb:1
|
||||
x11-libs/qt-dbus:4
|
||||
x11-libs/qt-svg:4
|
||||
>=x11-misc/xdg-utils-1.0.2-r2"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-0.6_rc5"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2.7
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|PreserveMIMEDefaults():||" \
|
||||
-e "s|xdg-icon-resource install|\\0 --mode user|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|xdg-mime install|\\0 --mode user|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/extensions.py || die "sed failed to patch extensions.py"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database}
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database}
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}"
|
||||
|
||||
# Bug #334243 - respect LDFLAGS when building calibre-mount-helper
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
dodir "$(python_get_sitedir)" # for init_calibre.py
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
python setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || die
|
||||
|
||||
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
|
||||
die "failed to fix harcoded \$D in paths"
|
||||
|
||||
# Remove dummy calibre-mount-helper which is unused since calibre-0.8.25
|
||||
# due to bug #389515 (instead, calibre now calls udisks via dbus).
|
||||
rm "${ED}usr/bin/calibre-mount-helper" || die
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
dobashcomp "${ED}"usr/etc/bash_completion.d/calibre
|
||||
rm -r "${ED}"usr/etc/bash_completion.d
|
||||
find "${ED}"usr/etc -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
python_convert_shebangs -r $(python_get_version) "${ED}"
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
python_mod_optimize /usr/$(get_libdir)/${PN}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup /usr/$(get_libdir)/${PN}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/libxsd-frontend/libxsd-frontend-1.18.0.ebuild,v 1.7 2012/11/23 18:25:50 ago Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="A compiler frontend for the W3C XML Schema definition language."
|
||||
HOMEPAGE="http://www.codesynthesis.com/projects/libxsd-frontend/"
|
||||
SRC_URI="http://www.codesynthesis.com/download/${PN}/$(get_version_component_range 1-2)/${P}.tar.bz2"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-libs/xerces-c-3
|
||||
~dev-libs/boost-1.49.0
|
||||
>=dev-cpp/libcult-1.4.6-r1
|
||||
>=dev-cpp/libfrontend-elements-1.1.4"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/build:0.3"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/1.17.0-boost-filesystem-v2-deprecation.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
BOOST_PKG="$(best_version ">=dev-libs/boost-1.35.0-r5")"
|
||||
BOOST_VER="$(get_version_component_range 1-2 "${BOOST_PKG/*boost-/}")"
|
||||
BOOST_VER="$(replace_all_version_separators _ "${BOOST_VER}")"
|
||||
BOOST_INC="/usr/include/boost-${BOOST_VER}"
|
||||
|
||||
mkdir -p \
|
||||
build/{ld,cxx/gnu} \
|
||||
build/import/lib{boost,cult,frontend-elements,xerces-c}
|
||||
|
||||
cat >> build/cxx/configuration-dynamic.make <<- EOF
|
||||
cxx_id := gnu
|
||||
cxx_optimize := n
|
||||
cxx_debug := n
|
||||
cxx_rpath := n
|
||||
cxx_pp_extra_options :=
|
||||
cxx_extra_options := ${CXXFLAGS} -I${BOOST_INC}
|
||||
cxx_ld_extra_options := ${LDFLAGS}
|
||||
cxx_extra_libs :=
|
||||
cxx_extra_lib_paths :=
|
||||
EOF
|
||||
|
||||
cat >> build/cxx/gnu/configuration-dynamic.make <<- EOF
|
||||
cxx_gnu := $(tc-getCXX)
|
||||
cxx_gnu_libraries :=
|
||||
cxx_gnu_optimization_options :=
|
||||
EOF
|
||||
|
||||
cat >> build/import/libboost/configuration-dynamic.make <<- EOF
|
||||
libboost_installed := y
|
||||
libboost_suffix := -mt-${BOOST_VER}
|
||||
EOF
|
||||
cat >> build/import/libcult/configuration-dynamic.make <<- EOF
|
||||
libcult_installed := y
|
||||
EOF
|
||||
|
||||
cat >> build/ld/configuration-lib-dynamic.make <<- EOF
|
||||
ld_lib_type := shared
|
||||
EOF
|
||||
|
||||
cat >> build/import/libfrontend-elements/configuration-dynamic.make <<- EOF
|
||||
libfrontend_elements_installed := y
|
||||
EOF
|
||||
|
||||
cat >> build/import/libxerces-c/configuration-dynamic.make <<- EOF
|
||||
libxerces_c_installed := y
|
||||
EOF
|
||||
|
||||
MAKEOPTS+=" verbose=1"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dolib.so xsd-frontend/libxsd-frontend.so
|
||||
|
||||
find xsd-frontend -iname "*.cxx" \
|
||||
-o -iname "makefile" \
|
||||
-o -iname "*.o" -o -iname "*.d" \
|
||||
-o -iname "*.m4" -o -iname "*.l" \
|
||||
-o -iname "*.cpp-options" -o -iname "*.so" | xargs rm -f
|
||||
rm -rf xsd-frontend/arch
|
||||
|
||||
insinto /usr/include
|
||||
doins -r xsd-frontend
|
||||
|
||||
dodoc NEWS README
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export LD_LIBRARY_PATH="${S}/xsd-frontend:${LD_LIBRARY_PATH}"
|
||||
default
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/nqp/nqp-2012.11.ebuild,v 1.1 2012/11/23 06:34:53 patrick Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
PARROT_VERSION="4.4.0"
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="http://rakudo.org/"
|
||||
SRC_URI="http://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND=">=dev-lang/parrot-${PARROT_VERSION}[unicode]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl"
|
||||
|
||||
src_prepare() {
|
||||
cd "${WORKDIR}"
|
||||
ln -s * "${S}" || die
|
||||
cd "${S}"
|
||||
echo "${PV}" > VERSION
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
perl Configure.pl || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1 || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" install || die
|
||||
|
||||
dodoc CREDITS README || die
|
||||
|
||||
if use doc; then
|
||||
dodoc docs/* || die
|
||||
fi
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/parrot/parrot-4.10.0.ebuild,v 1.1 2012/11/23 06:34:11 patrick Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="Virtual machine designed to efficiently compile and execute bytecode for dynamic languages"
|
||||
HOMEPAGE="http://www.parrot.org/"
|
||||
SRC_URI="ftp://ftp.parrot.org/pub/parrot/releases/devel/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="opengl nls doc examples gdbm gmp ssl +unicode pcre"
|
||||
|
||||
RDEPEND="sys-libs/readline
|
||||
opengl? ( media-libs/freeglut )
|
||||
nls? ( sys-devel/gettext )
|
||||
unicode? ( >=dev-libs/icu-2.6 )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.3-r1 )
|
||||
gmp? ( >=dev-libs/gmp-4.1.4 )
|
||||
ssl? ( dev-libs/openssl )
|
||||
pcre? ( dev-libs/libpcre )"
|
||||
|
||||
DEPEND="dev-lang/perl[doc?]
|
||||
${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# Fix for #404195 - pcre detection is wonky
|
||||
sed -i 's:libpcre.so.0:libpcre.so.1:' runtime/parrot/library/pcre.pir || die "Couldn't fix pcre location"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
myconf="--disable-rpath"
|
||||
use unicode || myconf+=" --without-icu"
|
||||
use ssl || myconf+=" --without-crypto"
|
||||
use gdbm || myconf+=" --without-gdbm"
|
||||
use nls || myconf+=" --without-gettext"
|
||||
use gmp || myconf+=" --without-gmp"
|
||||
use opengl || myconf+=" --without-opengl"
|
||||
use pcre || myconf+=" --without-pcre"
|
||||
|
||||
perl Configure.pl \
|
||||
--ccflags="${CFLAGS}" \
|
||||
--linkflags="${LDFLAGS}" \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--sysconfdir="${EPREFIX}"/etc \
|
||||
--sharedstatedir="${EPREFIX}"/var/lib/parrot \
|
||||
$myconf || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"${S}"/blib/lib
|
||||
# occasionally dies in parallel make
|
||||
emake -j1 || die
|
||||
if use doc ; then
|
||||
emake -j1 html || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 install-dev DESTDIR="${D}" DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" || die
|
||||
dodoc CREDITS DONORS.pod PBC_COMPAT PLATFORMS RESPONSIBLE_PARTIES TODO || die
|
||||
if use examples; then
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
doins -r examples/* || die
|
||||
fi
|
||||
if use doc; then
|
||||
insinto "/usr/share/doc/${PF}/editor"
|
||||
doins -r editor || die
|
||||
cd docs/html
|
||||
dohtml -r developer.html DONORS.pod.html index.html ops.html parrotbug.html pdds.html \
|
||||
pmc.html tools.html docs src tools || die
|
||||
fi
|
||||
}
|
@ -1,11 +1,15 @@
|
||||
DIST php-5.3.15.tar.bz2 11307865 SHA256 f9b725659e64228a60883bd134afe1f638900b6b8fa93ba98053095b0892f1ef SHA512 40334a3c7957637506d265fc9c534a8e35dabd83683d30094f1b48b69e4b20a40715d0b4ad98fb8467e91f74f878fb148b910e7d0a5df22ee3e601b4228c8180 WHIRLPOOL 7b8fee9c90a9af88d95b5ee7877081b0030cee0ccc2d431ddb97c3bd857624c1124aa2109b709334387e4b073ce3bbf3297bd13c1d805791fb41cb226faac0df
|
||||
DIST php-5.3.18.tar.bz2 11335289 SHA256 f065deecb78abb8ef101e1098866024af4ca10cb30139608c9a18e40236f1a2f SHA512 39b9532b65b86737ad825c76c42551840707c7eee311af7307bfbb1a41f7533ff6afec07fc9c3d42c8684aa08d814118ae3ff020b25fab1faaf1229e0ab9568d WHIRLPOOL 480916325f4e05ed4f7d4b40a62c6c8966111abdab687a74772749f9291991797106b39d74b9a00984eeb70b28096059032c77439d38a2e1467f2362e46ebd79
|
||||
DIST php-5.3.19.tar.bz2 11359557 SHA256 814ce55b950158c4ddadbcd0b2d7d8cb4b570de4a29b9db021020594e2469fd6 SHA512 917dc765c917b8e33bc60afe528ec5477995970cb1fc45325c0abf5ebf88b35741a97c3b51b53491695cb7e50acc15ac1731eb040517e6a67703ddd603881a39 WHIRLPOOL ca90bb1f3e45839f2d6797e0825613ddec869f2d8007570f2c9056d16e22d3c50b0a0560244ede75ae014b4b98df5efa774e397e82fb18e8f16a45cb08eb4723
|
||||
DIST php-5.4.5.tar.bz2 11011780 SHA256 7af9a1b6b1653f15d679c8e505b24c4dc2dc2a8d55521a142a7f523d06ae6ad9 SHA512 568144b57ecf8ceadbeb33a2071bae68a58e60624084fec4e6b11f96c94ad2bc136a0db9a8d8a1b1663a7baf8a0a97dacf35578cfde0642ee0cc8b047c177866 WHIRLPOOL ecb8c8c35cf896db94c5f5c9a673fbabd40ba71511fd651ac52f2b6dd25070dc5236854149f51e550f58aa26214693d0875cad4bd6bbbb820062143eac27d71d
|
||||
DIST php-5.4.6.tar.bz2 11026249 SHA256 031181ef9167b31ce1dad9146b7a1a6151da44b3bafc0756fb7c5794b24ac0f5 SHA512 bf6c377999538c815ddc149ed7f8ba5feb08e3ae4e2f1abe559a6ad2a9ce6a7205ec62345640c1f8498d3ddea62bc997f31f8f77caca6a483b123551f1695cf1 WHIRLPOOL e7d0924b0a9c0d85e257be0cf0c314cda19d6da02f02111562a47873ab72b0ea20419e4c25b29c46cfc3df0aa1a30f767d88f5131456c36af60f71b47bcf76fe
|
||||
DIST php-5.4.8.tar.bz2 11056057 SHA256 d02810b7949938ee7190116e7483e1a06b3fa8373d3bbc0ea65a41265afce79f SHA512 e04ee08e7d1b6f80183846206d02576ad22ea3f41e956bab970344b195f1d2267f1ff69439988cea7084c18576d7855383e48094bdb7684d43cb0f78e4a5e7b8 WHIRLPOOL 963153d85236bd105cbf11a89dd0db11e590cc292bb499abaa9271dbb47eeb124ef011af9561cb5569840d32130934c70cd8ebb4d619147892044ab8c3be09bd
|
||||
DIST php-5.4.9.tar.bz2 11144400 SHA256 c0649971cfa9723701d085e227376374569689689b8421e4dcfac56c2f6fcac5 SHA512 70b42e6f160aadc6a0d0541617acf0decd85bfe18db88bb524dd479dd4a1c1b63a519eb116eb594a542b90b627494a1a3388a616350ea6c4203abce325a1edb5 WHIRLPOOL 9d27c3e6ebbb8b8f95e9c21a62363a3e6a43ff12eae279372204c281513fb7f1625a0da779d84024ef4410f6fd403c9fc9812f0f2d148f0d137fe71f0b7007f7
|
||||
DIST php-5.5.0alpha1.tar.bz2 11572429 SHA256 8dd5b13fd5372b613722d1814ad2fbd733ea3b59866f078610ca9a73b3f10994 SHA512 dcf99740ae3cff53758e78f41f10bc32e64c3ac4bffe784a9ae3ac957f216402d744920ce253124914411b0ae936684a86fd965a0531bc038553b31718840c8d WHIRLPOOL 397d4ca4233041b66e3073640a6daf5b5c07d0daf72f58493b1befd0fdb176f4f8a2d408676708dd4bcc7ae4270fd5abf1a0e71f8c060cef5543bed1effdf51c
|
||||
DIST php-patchset-5.3-r0.tar.bz2 7368 SHA256 1a67b34a681dea33ea38f0ffc32b70a78b4c5dc1c3603d1bba31bb130d803ef7 SHA512 765b0cf56a3e63ded4ad1d1ba67567881ad06bdc2814cc07004fa338f38fd69078819c7463d2c55e00805c8f33fa925b94228bf7bc3d223acc33c6cff540024c WHIRLPOOL 59e18b33e11d968fac2a4571173121bf8141bb2f1eab62192e15bc59e351d3ab973f04343b447681d8a2adddf0844edb8a481d027bfc14c7e1fd8222169094ec
|
||||
DIST php-patchset-5.3.15-r0.tar.bz2 7357 SHA256 df239b883d40386cf98e44bd107a36ebcb34554058c0857748c5715ba2dcb1e8 SHA512 c1bd1933a2119037c38fbb46fc0799dd0a9c5acaf11fc4d8d885f644a429350ddcf170bb74e91bfa11139e35b52c73c5db60a2783ab0b5113c675373699c11d1 WHIRLPOOL 87a2993c0c9573241f73e1fa3f0e6bcaee39df6f4ce5501299ea84731ef15eeca05e3d04948c92cf278df6c45edc3f580c28a99667f22d377b1566662c67ff9f
|
||||
DIST php-patchset-5.3.18-r0.tar.bz2 7360 SHA256 8e7d449a4ab50dd8da241f2992fdaee012eafe4da6c66609231cff68d84c5c9f SHA512 625f456649964a959c7aa399c6c4fbeff8dd0b45372153819d42b447069e78cce99b4b6c30d89a64b211d230e17ef28e99d5e3b9055dd59e19b8103337de8d09 WHIRLPOOL cb1ae11173fa6d0a0f26a313d036f6f2109bc704531c5db76a584cc243b5f16ccff3c5e0c943196b5f13a7603e222c2f2c0eb393d754faf66fa5d54e5f627fde
|
||||
DIST php-patchset-5.4-2.tar.bz2 5824 SHA256 4a47f4d31f50a244f85349486cdb3474cf315562e097ed4c116c2b9b5730ecef SHA512 3c2523458a627373da7acb93fb2cd621f50b19fe2ba1d30beb62eeaaa39045262b917cfd0b631046fec9c8027cfa99bd0426a079ab45eb172b21d25d6e085dde WHIRLPOOL fe4f015e2f0dc66cc23ef16fb5bb33117952593ae0770d4bcd37ecc1c431cbcc7874189d265696305c60b4e395e7ce902667e38203db46867304868271affdea
|
||||
DIST php-patchset-5.5-0.tar.bz2 5824 SHA256 4a47f4d31f50a244f85349486cdb3474cf315562e097ed4c116c2b9b5730ecef SHA512 3c2523458a627373da7acb93fb2cd621f50b19fe2ba1d30beb62eeaaa39045262b917cfd0b631046fec9c8027cfa99bd0426a079ab45eb172b21d25d6e085dde WHIRLPOOL fe4f015e2f0dc66cc23ef16fb5bb33117952593ae0770d4bcd37ecc1c431cbcc7874189d265696305c60b4e395e7ce902667e38203db46867304868271affdea
|
||||
DIST php-patchset-5.4-r2.tar.bz2 5824 SHA256 4a47f4d31f50a244f85349486cdb3474cf315562e097ed4c116c2b9b5730ecef SHA512 3c2523458a627373da7acb93fb2cd621f50b19fe2ba1d30beb62eeaaa39045262b917cfd0b631046fec9c8027cfa99bd0426a079ab45eb172b21d25d6e085dde WHIRLPOOL fe4f015e2f0dc66cc23ef16fb5bb33117952593ae0770d4bcd37ecc1c431cbcc7874189d265696305c60b4e395e7ce902667e38203db46867304868271affdea
|
||||
DIST php-patchset-5.5-r0.tar.bz2 5824 SHA256 4a47f4d31f50a244f85349486cdb3474cf315562e097ed4c116c2b9b5730ecef SHA512 3c2523458a627373da7acb93fb2cd621f50b19fe2ba1d30beb62eeaaa39045262b917cfd0b631046fec9c8027cfa99bd0426a079ab45eb172b21d25d6e085dde WHIRLPOOL fe4f015e2f0dc66cc23ef16fb5bb33117952593ae0770d4bcd37ecc1c431cbcc7874189d265696305c60b4e395e7ce902667e38203db46867304868271affdea
|
||||
DIST suhosin-patch-5.3.9-0.9.10.patch.gz 40967 SHA256 4438caeab0a10c6c94aee9f7eaa703f5799f97d4e0579f43a947bb7314e38317 SHA512 98c56d41fac123626cbd1bcf4ca8afba5a9a960fd58a60e08c91a68cab7589162c4f9e1b0c39abaf173775cb63091a04c4224ee278410ec0afdbe9f3cf05f322 WHIRLPOOL f551823324919cc14cc5f0b4dc2ed75e292fcb2dbe3a34b2c954d4f3cd8ff27937b7a8a0e5665ddc4e737908d2530abf3c61397b040dd6aadcc31163d762b42e
|
||||
|
@ -0,0 +1,912 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.19.ebuild,v 1.1 2012/11/23 14:45:43 olemarkus Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
|
||||
|
||||
SUHOSIN_VERSION=""
|
||||
FPM_VERSION="builtin"
|
||||
EXPECTED_TEST_FAILURES=""
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
|
||||
|
||||
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 mysql 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() {
|
||||
vecho ">>> 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,864 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.9.ebuild,v 1.1 2012/11/23 14:45:43 olemarkus Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
|
||||
|
||||
SUHOSIN_VERSION=""
|
||||
FPM_VERSION="builtin"
|
||||
EXPECTED_TEST_FAILURES=""
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/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 mysql pdo-mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql pdo-mysql ${EPREFIX}/usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client pdo-oci)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
my_conf+="
|
||||
$(use_with readline readline ${EPREFIX}/usr)
|
||||
$(use_with libedit libedit ${EPREFIX}/usr)"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm ${EPREFIX}/usr)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_enable session session )"
|
||||
fi
|
||||
|
||||
if use pic ; then
|
||||
my_conf="${my_conf} --with-pic"
|
||||
fi
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
my_conf="${my_conf} ${EXTRA_ECONF:-}"
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build"
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
|
||||
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
|
||||
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --enable-${sapi}"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --disable-${sapi}"
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --without-apxs2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
econf ${sapi_conf}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi"
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs \
|
||||
|| die "emake install failed"
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir /usr/share/php${PHP_MV}
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}"
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
into "${PHP_DESTDIR#${EPREFIX}}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
|
||||
else
|
||||
dobin "${source}" || die "Unable to install ${sapi} sapi"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" \
|
||||
"20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
sed -e "s|php5|php${SLOT}|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
vecho ">>> 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,49 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/rakudo/rakudo-2012.11.ebuild,v 1.1 2012/11/23 06:35:43 patrick Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
PARROT_VERSION="4.4.0"
|
||||
NQP_VERSION="${PV}"
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="A Perl 6 implementation built on the Parrot virtual machine"
|
||||
HOMEPAGE="http://rakudo.org/"
|
||||
SRC_URI="mirror://github/${PN}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND=">=dev-lang/parrot-${PARROT_VERSION}[unicode]
|
||||
>=dev-lang/nqp-${NQP_VERSION}"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl"
|
||||
|
||||
src_prepare() {
|
||||
sed -i "s,\$(DOCDIR)/rakudo$,&-${PVR}," tools/build/Makefile.in || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
perl Configure.pl || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" install || die
|
||||
|
||||
dodoc CREDITS README docs/ChangeLog docs/ROADMAP || die
|
||||
|
||||
if use doc; then
|
||||
dohtml -A svg docs/architecture.html docs/architecture.svg || die
|
||||
dodoc docs/*.pod || die
|
||||
docinto announce
|
||||
dodoc docs/announce/* || die
|
||||
fi
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST eet-1.7.0.tar.bz2 554123 SHA256 eb31b78407ad9765b547dc90957abb960444d9edc23ffff687dfb463b3bedb3d SHA512 e28c6017f64e51e1c0c13691e04d25da7dd8e9acd1c93e5c79c97474be23edc20304ba4161c362c9ada44512ef079af0460b6b03aa19757ec3519d0249a923e8 WHIRLPOOL 842c2a7afe7993a082d68678af554aaa9ddb10d8d370676b63857d6f262f18564001aed682d81b5c061c70d065ebdcc5b862fc92b26509450a136c7cec679b00
|
||||
DIST eet-1.7.1.tar.bz2 549842 SHA256 3e5679c06792f0a1c4b5b158468afbcec3b510c60345055d5964fdbe2abba3eb SHA512 4f8673b3b4f72940277ae2955b757760c92e1d3a17badfa79f6fb56cf6d7c4231788a20b5898b12eb765b4725edc267bfb9366da59a31ba0d9eb2dc41c6d5404 WHIRLPOOL 3f26ae3b971b19ea47dc0d59a2c08ca6ac0b83dbc147f96e1d161d3a8de111615c3a5a46ca9d387f2336be8032202b821090e25b7c0117a3e708c924263c9691
|
||||
DIST eet-1.7.2.tar.bz2 577810 SHA256 e8ec6e02c3dbb050d23fa2e6985019c8e1005c7dde31a047ed193974d04bd86f SHA512 074b99d07f0e5326643390a8deded500ebd872ba73936247154b601b057c4ce577a543ebcb6dd2ec9fadfc13f76e62b106599b51efaef2a46687b8bc828d8f14 WHIRLPOOL f5d69cbaa065c07a163f9a739cbdab5b71f69cfddee8d6eab5c288b5ad4fc043df08251b2108fa59280c8d33f812fd3349b449fa495a889ad4b79c508478b241
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/eet/eet-1.7.0.ebuild,v 1.2 2012/09/10 23:28:03 vapier Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/eet/eet-1.7.2.ebuild,v 1.1 2012/11/23 14:49:03 tommy Exp $
|
||||
|
||||
EAPI=2
|
||||
|
@ -1,5 +1,7 @@
|
||||
DIST libnl-1.1.tar.gz 288932 SHA256 35cea4cfb6cd8af0cafa0f34fff81def5a1f193b8b8384299b4b21883e22edc3 SHA512 add02849845bd0029968a9fb9a642133051196da17cf7b45eef192de1c09ad0b0ad7cc8424fa325f1c63262779d0abfd74e4ecb634abe66a4d2f394b3ad3e3de WHIRLPOOL 1fa96e4206acf5e9091a2aeed9a0694b6f4cce3aaae9a2074cd8713e4f1f526b5af138b69d03e7f233cc52d1acd3b67237455261ee42c56bf69c4b17caef0b84
|
||||
DIST libnl-3.2.13.tar.gz 1177080 SHA256 4deba0ecec0e5aede900b5676ed56d727b688e3d49f3e732c7e294a6a920bcf9 SHA512 30f8063caf288a596e18f3162fdfef1e67d1584322f5064bef3978d2e874177c0dcc9486ab92f7f737896a102e772f15a54451c886436f01abebb3e38e36a2ee WHIRLPOOL dbb2a8b3c69ee53f3cc0019596ba37984b359079ccb88444fb44db3bf387a9215bf2442ce4d48e697244278ef92d245c92895147cb9779382e652651d58cc75e
|
||||
DIST libnl-3.2.14.tar.gz 687883 SHA256 6bb043eea08765bada37a053d932f073db9d51e7a8cd419e237c785ba6369e2c SHA512 14e9b733beb985d83bb4672087c91734954a6e90fe71a825dc089ab797ddf6a9e9ee39a046c5b996a3a0184588160a47830a368540831443615793a1eef647f5 WHIRLPOOL 34f6e4cb8b07b67a5b5abfaa59a0a45f114921b894959ede2e7b44640d6aa012a4bc1e08752b31b11035b745001a43716c3e093b4ccfecfa99a0f6a0b65a7539
|
||||
DIST libnl-3.2.15.tar.gz 712039 SHA256 756f8b31f74e087f180340aa28a181f698062965ca69936ab089f7f6741e6ea9 SHA512 3b9ee8bdb6daba06aa8ecf21466d4d9252988a772a7cd3c306ecb248e7e58a1605c7dcfd62591dae51b47e284fee3c55da28cba09da587eddabc49a1283673f9 WHIRLPOOL 03ff7dbf875d1fa6e9bc01835551d2c2ee1e41c6510d0725c4278a0ca4d281b79e2749ac182846f6e993b6553762248a8bdeb05ac3675d65d11e79cc7194c010
|
||||
DIST libnl-3.2.7.tar.gz 1124758 SHA256 1141f3229ebf65f6cee43a898d4832b8c17cb942e23adeccb365e75708a2b08e SHA512 be060ca030a83869575e22761b106e206c9545be92c18e61f09dce99476237ea71ebfb777ebb7ee17da6a2e3886fdfd30ae1fc6b37b775ba6a74cdd79568d1f3 WHIRLPOOL e7ed8f3f1d662d784527ce2a7bfaf5c34c39fbe3a7c1bf799e7cd3aa31703fe662bb3eb0ad59f55ca5b2d9e62946646117bce7ecae99f8b32f201120d11a1dde
|
||||
DIST libnl-doc-3.2.14.tar.gz 8766064 SHA256 1db05aaa61c14ee578fa432cc1973a73379abe175859ef9e92ea033eae005e43 SHA512 2692f6d4c3e3a9d4fe9cc210fdb03751356daaebe19f8d9041804252a6c220dfc7ad4e72da428b56ade30afa2ef3ec3b6c86416f07b12013403dad8f735b0c0b WHIRLPOOL f55436bc28750f4d4d1bf716fc73e36a01b27d8799c0b2d8fee785db3da935fae4c4ab05a03dd4c65b9ef0cc32d2c112182b4e343e97b116a28da90e3035d96c
|
||||
DIST libnl-doc-3.2.15.tar.gz 11792430 SHA256 71c9aef7bf1495b5c2a488abf247ab5a4744783e8b4c6641b0bbb8e28d92605f SHA512 9224f308e3f01fd7a2d98f0cca0bf6f6d6535cfdc905c61bbb242c788a7c6121dee80c135552fd87a6e0dce31be4dea89e981066982f9d4f96b29f35ce92458c WHIRLPOOL 58902aff10580f1374dca9885060a20d32aedf1264c628c0105a860c8870d1ff9f4491a5b16389fb677815ae19aa98b9218ca3ce46385510d4bc88d0f5e574f9
|
||||
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libnl/libnl-3.2.15.ebuild,v 1.2 2012/11/23 17:17:40 jer Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils libtool multilib
|
||||
|
||||
DESCRIPTION="A library for applications dealing with netlink socket"
|
||||
HOMEPAGE="http://www.infradead.org/~tgr/libnl/"
|
||||
SRC_URI="
|
||||
http://www.infradead.org/~tgr/libnl/files/${P}.tar.gz
|
||||
http://www.infradead.org/~tgr/libnl/files/${PN}-doc-${PV}.tar.gz
|
||||
"
|
||||
LICENSE="LGPL-2.1 doc? ( GPL-2 ) utils? ( GPL-2 )"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
|
||||
IUSE="doc static-libs utils"
|
||||
|
||||
DEPEND="
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
epatch "${FILESDIR}"/${PN}-1.1-vlan-header.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-silent-rules \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable utils cli)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if use doc; then
|
||||
dohtml -r \
|
||||
-a css,html,js,map,png \
|
||||
"${WORKDIR}"/${PN}-doc-${PV}/*
|
||||
fi
|
||||
|
||||
use static-libs || rm -f "${ED}"/usr/$(get_libdir)/lib*.la
|
||||
|
||||
dodoc ChangeLog
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST librelp-0.1.1.tar.gz 375399 SHA256 57095df8936b7b85a7657c2d468081c6231270269f2501cc089cb2df92abd608 SHA512 571402626c3b42dde25998a26415b7d44a4ace1c027aa8b77c702c40d544ec0fbd432441487498a4780bb3780bee9ce63efcf1d0d4663279505c8f45d0aa87e5 WHIRLPOOL fb1b986e619ba5faa6eb38f03d549c7d89545535ff4b833f2c9342e29748770d9f841f9898b9273e77b241745bb2328023b1784f72c66ea2e6098da904f83a16
|
||||
DIST librelp-0.1.3.tar.gz 382922 SHA256 d669dc623e54e241d2983ed00a8e75694d2a4098f8be08610f740f1b93fd5498 SHA512 f4b0451d4f77f18d0bedc4953f9a8d3230a003c75dc7b563d8901cded338723dfd218a64fb569fa378c3d08478467221017712cdf096ff5833156776010a71f2 WHIRLPOOL b9ddf9ac830847babc6fa48bc4f973c4e9bf498e6f5594228627c587cce8694996ce0244ec4f9f688eda9f6fb7b1e57f1efc80b668d0ce4e10a4a5cbe78c67ad
|
||||
DIST librelp-1.0.0.tar.gz 384203 SHA256 a4b28e72a003f4a2a7fcb7c6093d60af6d252f1798dacc928c276eed4d20bc85 SHA512 0e77d7112d1d46eb0b8ec3781a6b61cf0bdb60974835774bb217c8a898230dfbc3b95b806f953cc9bff128197376961470a0aa9c533127db3c8472b4d9155010 WHIRLPOOL a081e3c23dc6a636a8a3bdc6752a3c49eaa53c4a7f17b8f79d178f26cd9c0e5ad7fef7ee007cb95ddc03f62759734f568c2654274fe74a65ee63b3ef10a10ee0
|
||||
DIST librelp-1.0.1.tar.gz 355401 SHA256 76b010aa9149976802daa2e5fda7ac02a8a227b0c8c0d1069eec2d2a6629739a SHA512 8a8e5e7b4d6f9b0741f378188080a633c03082990ee2b73131ad41275200ceb8c72a8338cec1e65e7ecc6c196df351206174aa29654a162f9515075a384262d1 WHIRLPOOL 938aadf2285dae7f11b494133711a118092df7409364bbcdabf04087580de843a6a61b83b24db36281990f4261833d4c9570617dbcf3fdddf7f7d7263a208fb7
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/librelp/librelp-1.0.1.ebuild,v 1.1 2012/11/23 10:31:48 ultrabug Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
DESCRIPTION="An easy to use library for the RELP protocol."
|
||||
HOMEPAGE="http://www.librelp.com/"
|
||||
SRC_URI="http://download.rsyslog.com/${PN}/${P}.tar.gz"
|
||||
LICENSE="GPL-3 doc? ( FDL-1.3 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~sparc ~x86"
|
||||
IUSE="debug doc"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable debug)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc AUTHORS ChangeLog
|
||||
use doc && dohtml doc/relp.html
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST milk-0.4.2.tar.xz 108792 SHA256 943a4667f20540fe7799c7ce16f54266d408aa89045047bb7c32b18e02b80281 SHA512 f6e7d5da7fe776308c01e7bf2e3abaa0cee7490f8eee0cc91f2ab04685f7a480ac5b18a9a45cdef99d281837e31c839585448c793ad0a0938d2a871d9e7762ec WHIRLPOOL f52312b4631d3f63a6b094f1cc402e2e397be9543342dc1937dc1d0b24c85693deaed768b098696cef5e2b20297f1063301905f4fd4d79d0c52eb4474cd3b845
|
||||
DIST milk-0.4.3.tar.gz 83072 SHA256 ac34d688a493ccd7ff45e79b2638fa0b26e4260c725f179d9b3a8f17c2a18fdd SHA512 9350b0e60550bad7dd44b77b252b6a061a693fbd8ad2fa4b5cac66c8b2c59d21e507f71f0f3f7aae626e5ccec8625f050a0cdeb61948efb6bd9a9e4c116f3137 WHIRLPOOL c4de15da8c89b4e55424f3d948d80ec418be838b6063fc8bed7d1bcb0ce1ad324a0e9f9c00136659311ef28b758486b76db3c0e1ac7c7888e9cf9898da5a4edb
|
||||
DIST milk-0.5.tar.gz 135964 SHA256 69be63eb301873f5dd39a23e669a671ff68ff118f328907637f839445a29bec5 SHA512 b9f818a23bfbd9ef2726bdaba746fcb693af1aaa8471b0211328b4c70e25e01cb95e6c0bc663b49284398d1da1e9ee8c5d073546a331ff11831274cedd1c0e5c WHIRLPOOL 0ed09fead5b4c560ab02b08cb680eb2d4864e38f8be5d902c89927497c02ffda6a325c1a2b2ec5bd9ad7753ace48c861c063b1851104119be22a7f7f07999ce1
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST pandas-0.8.1.tar.gz 1727272 SHA256 696698ff132f60d136f4c6f02751d3c7907bcaba6ca7f341a0efe4ac0d98d52f SHA512 7ca871e3a90a16ee6ad97ffa0c1326ae41aaa59b797915bd1e6508d5efb8d963ec16f46fb90ab843d1fcb66d01b891141a1e7947ffa17997a93faf55ce8578b2 WHIRLPOOL 2b7a4fb65678137c3e535c54736fdd51c732888cbc43931eff2dd1715542c47fa045597e3f5f0051caef865cfadbaf5e7585868098b5b0ab4da4feb34dae7019
|
||||
DIST pandas-0.9.0.tar.gz 2308120 SHA256 d5924c09d737bb91ed3dc9a120814f20c0c0ca21fc81a9e0df96c701effb87d3 SHA512 05146d077b0983ad2721c03da5bb904f86d9ae70337110e9683becbbe61eaa352a7db2c4a87272d7cc5be5a918576fcf8ae641ede269f6e3dfdeeabdc97d7af9 WHIRLPOOL 6f7170b0b338b086356d821abee2cd21387d5ba270d3b82c7a2501297b51dbe44663f7a5c1ac0888b7a6f57a7db6547825bd73dd8d173f4e0a8e4c29829e5d3a
|
||||
DIST pandas-0.9.1.tar.gz 2284689 SHA256 7088d9ef239504626e6235084ae7fa88949c83c8bb4249d169e642521bfa64e9 SHA512 76feea7f130b738b8c0b1cf385b295215ac44db9844154e8fa0f37ed4c65b4ecf78b95cdfef7dd85deafa869d97700b6d0732225ed2eaba2bde7a4ee85fc6b88 WHIRLPOOL 2c3306270ca65d9d7cfb58afbaa8014ae72fc04bc493bf54bbdfa245f612904773f33e14ab572c0dc1da2779e4b8e81c06baeeb6c5990cbce95ec5c0c6b17b10
|
||||
|
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pandas/pandas-0.9.1.ebuild,v 1.1 2012/11/23 05:14:47 bicatali Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
# python cruft
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
DISTUTILS_SRC_TEST="nosetests"
|
||||
RESTRICT_PYTHON_ABIS="2.4 2.7-pypy-* *-jython 3.3"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="Powerful data structures for data analysis and statistics"
|
||||
HOMEPAGE="http://pandas.sourceforge.net/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
SLOT="0"
|
||||
IUSE="doc examples excel R"
|
||||
|
||||
CDEPEND="dev-python/numpy
|
||||
>=dev-python/python-dateutil-2.1"
|
||||
DEPEND="${CDEPEND}
|
||||
doc? (
|
||||
dev-python/ipython
|
||||
dev-python/rpy
|
||||
dev-python/sphinx
|
||||
sci-libs/scikits_statsmodels
|
||||
)"
|
||||
RDEPEND="${CDEPEND}
|
||||
dev-python/matplotlib
|
||||
dev-python/pytables
|
||||
dev-python/pytz
|
||||
sci-libs/scipy
|
||||
excel? (
|
||||
dev-python/openpyxl
|
||||
dev-python/xlrd
|
||||
dev-python/xlwt
|
||||
)
|
||||
R? ( dev-python/rpy )"
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
if use doc; then
|
||||
cd doc
|
||||
"$(PYTHON -f)" make.py html || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
cd "${S}/build-${PYTHON_ABI}"/lib*
|
||||
PYTHONPATH=. MPLCONFIGDIR=. HOME=. nosetests-"${PYTHON_ABI}" pandas
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
use doc && dohtml -r doc/build/html
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
@ -1,47 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pytest/pytest-2.3.2.ebuild,v 1.1 2012/10/30 08:05:44 patrick Exp $
|
||||
|
||||
EAPI="3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="py.test: simple powerful testing with Python"
|
||||
HOMEPAGE="http://pytest.org/ http://pypi.python.org/pypi/pytest"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-python/py-1.4.7"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
dev-python/setuptools"
|
||||
|
||||
DOCS="CHANGELOG README.txt"
|
||||
PYTHON_MODNAME="pytest.py _pytest"
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
|
||||
# Disable versioning of py.test script to avoid collision with versioning performed by distutils_src_install().
|
||||
sed -e "s/return points/return {'py.test': target}/" -i setup.py || die "sed failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
testing() {
|
||||
PYTHONPATH="${S}/build-${PYTHON_ABI}/lib" "$(PYTHON)" "build-${PYTHON_ABI}/lib/pytest.py"
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/py.test"
|
||||
|
||||
# Bug 380275: Test suite pre-compiles modules
|
||||
python_clean_installation_image -q
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/net-ssh/net-ssh-2.6.1.ebuild,v 1.1 2012/11/23 07:21:53 graaff Exp $
|
||||
|
||||
EAPI=4
|
||||
# no longer compatible with ruby 1.8.
|
||||
USE_RUBY="ruby19"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.rdoc THANKS.rdoc"
|
||||
RUBY_FAKEGEM_EXTRAINSTALL="support"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Non-interactive SSH processing in pure Ruby"
|
||||
HOMEPAGE="http://net-ssh.rubyforge.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/tarball/v${PV} -> net-ssh-git-${PV}.tgz"
|
||||
RUBY_S="${PN}-${PN}-*"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="2.6"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
ruby_add_rdepend "virtual/ruby-ssl"
|
||||
ruby_add_bdepend "test? ( dev-ruby/test-unit:2 dev-ruby/mocha )"
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -Ilib:test test/test_all.rb || die "Tests failed."
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/injectso/injectso-0.2.ebuild,v 1.10 2007/03/05 03:48:04 genone Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Inject shared libraries into running processes under Solaris and Linux"
|
||||
HOMEPAGE="http://www.securereality.com.au/"
|
||||
SRC_URI="http://www.securereality.com.au/archives/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}/${P}-gcc4.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin injectso
|
||||
|
||||
dodir /usr/lib/injectso
|
||||
insinto /usr/lib/injectso
|
||||
doins libtest.so libtest.c
|
||||
|
||||
dodoc ChangeLog README.txt
|
||||
dohtml README.html
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
elog "Read the documentation for instructions on how to use this tool."
|
||||
elog "The sample library \"libtest.so\" and its source file \"libtest.c\""
|
||||
elog "be found in /usr/lib/injectso."
|
||||
echo
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST knights-2.4.2.tar.bz2 3416105 SHA256 1ad0c4092b62ced2ba14b33dbca72fbaba171603f31d0e49556391ec3a0a3ec7
|
||||
DIST knights-2.4.2.tar.bz2 3416105 SHA256 1ad0c4092b62ced2ba14b33dbca72fbaba171603f31d0e49556391ec3a0a3ec7 SHA512 8bbfeef933fb6fd40b342c74252bf1bc0ff555b72bc58e5cab39dae43270332a1590165c4f492ca087e31342d24066e08c81239946aeaf464f0049d09fccf4c9 WHIRLPOOL bc1e52f2279bed8b72861a00e0ad25f7a01d4d199e1b459fd144f597f59037fafd3414a5c3f0e64d00ae521bfa2b4296045890b7fbe64724ef275caad3baa452
|
||||
DIST knights-2.5.0.tar.bz2 3426822 SHA256 6567c4203c55ebe0ae6b5a25c852d7beef8b88d4154592437bc357797da5bd28 SHA512 3024fb9747c0b412e606db9262e9a547f51bfe0a5bd7e3de2952ba09da0186a45d5a21182e394b16d5905d036b94a17ed8b80c7d2c808f7ab907f4f4c6d9fa95 WHIRLPOOL 5cf2b98128898fb9be607c31e4c0df510dfa8c18e6bf00db2fa53c19005f64658894ed84c14d92ff70b1cb6cdb5d04a94cb2876791f10e90bb3fb9b35e054e6c
|
||||
|
@ -0,0 +1,133 @@
|
||||
From: Julian Ospald <hasufell@gentoo.org>
|
||||
Date: Fri Oct 5 13:55:07 UTC 2012
|
||||
Subject: build system
|
||||
|
||||
respect flags and compiler
|
||||
|
||||
--- source/Makefile
|
||||
+++ source/Makefile
|
||||
@@ -112,7 +112,7 @@
|
||||
|
||||
else
|
||||
|
||||
-CFOPTIMIZE := -O2
|
||||
+CFOPTIMIZE := $(CXXFLAGS)
|
||||
|
||||
endif # USE_ICC
|
||||
|
||||
@@ -120,21 +120,19 @@
|
||||
CFOPTIMIZE += -flto=jobserver -fwhole-program
|
||||
endif
|
||||
|
||||
-CFOTHERS := -pipe $(EXTERNAL_FLAGS)
|
||||
+CFOTHERS := $(EXTERNAL_FLAGS)
|
||||
CFWARN := -Wall -Wformat-security
|
||||
CFWARN_L := -Wundef
|
||||
|
||||
DEFINES := $(EXTERNAL_DEFINES)
|
||||
|
||||
-LDFLAGS := $(EXTERNAL_LDFLAGS)
|
||||
-
|
||||
#
|
||||
# The GCC and GXX variables are set later.
|
||||
#
|
||||
-AR = ar
|
||||
-RANLIB = ranlib
|
||||
-CC = $(GCC)
|
||||
-CXX = $(GXX)
|
||||
+AR ?= ar
|
||||
+RANLIB ?= ranlib
|
||||
+CC ?= $(GCC)
|
||||
+CXX ?= $(GXX)
|
||||
RM = rm -f
|
||||
COPY = cp
|
||||
COPY_R = cp -r
|
||||
@@ -145,7 +143,7 @@
|
||||
PNGCRUSH = $(COPY)
|
||||
PNGCRUSH_LABEL = COPY
|
||||
ADVPNG = advpng -z -4
|
||||
-PKGCONFIG = pkg-config
|
||||
+PKGCONFIG ?= pkg-config
|
||||
DOXYGEN = doxygen
|
||||
DOXYGEN_SIMPLE_CONF = crawl_simple.doxy
|
||||
DOXYGEN_ALL_CONF = crawl_all.doxy
|
||||
@@ -1228,7 +1226,6 @@
|
||||
endif
|
||||
[ -d $(prefix_fp)/$(bin_prefix) ] || mkdir -p $(prefix_fp)/$(bin_prefix)
|
||||
$(COPY) $(GAME) $(prefix_fp)/$(bin_prefix)/
|
||||
- $(STRIP) $(prefix_fp)/$(bin_prefix)/$(GAME)
|
||||
mkdir -p $(datadir_fp)/dat/des
|
||||
mkdir -p $(datadir_fp)/dat/dlua
|
||||
mkdir -p $(datadir_fp)/dat/clua
|
||||
@@ -1570,7 +1567,7 @@
|
||||
|
||||
.PHONY: build-rltiles
|
||||
build-rltiles: .contrib-libs $(RLTILES)/dc-unrand.txt
|
||||
- +$(MAKE) -C $(RLTILES) all ARCH=$(ARCH) TILES=$(TILES)$(WEBTILES)
|
||||
+ +$(MAKE) -C $(RLTILES) all ARCH=$(ARCH) DEBUG=$(DEBUG) TILES=$(TILES)$(WEBTILES)
|
||||
|
||||
$(TILEDEFSRCS) $(TILEDEFHDRS) $(ORIGTILEFILES): build-rltiles
|
||||
|
||||
--- source/rltiles/Makefile
|
||||
+++ source/rltiles/Makefile
|
||||
@@ -1,7 +1,7 @@
|
||||
uname_S := $(shell uname -s)
|
||||
|
||||
ifneq (,$(findstring MINGW,$(uname_S)))
|
||||
-LDFLAGS += -lmingw32
|
||||
+LIBS += -lmingw32
|
||||
endif
|
||||
|
||||
# Note: since generation of tiles is done on the host, we don't care about
|
||||
@@ -10,7 +10,7 @@
|
||||
# Also, cross-compilation with no system libraries for host rather than target
|
||||
# is not supported. If host=target, contribs are enough.
|
||||
|
||||
-CFLAGS := -O2 -g -Wall -Wextra -Wno-parentheses -Wno-unused-parameter
|
||||
+CXXFLAGS += -Wall -Wextra -Wno-parentheses -Wno-unused-parameter
|
||||
|
||||
ifdef TILES
|
||||
ifndef CONTRIB_SDL
|
||||
@@ -29,24 +29,24 @@
|
||||
PNG_LIB := ../contrib/install/$(ARCH)/lib/libpng.a ../contrib/install/$(ARCH)/lib/libz.a
|
||||
endif
|
||||
|
||||
- CFLAGS += $(SDL_CFLAGS) $(PNG_INCLUDE)
|
||||
- LDFLAGS += $(SDL_LDFLAGS) $(PNG_LIB)
|
||||
+ CXXFLAGS += $(SDL_CFLAGS) $(PNG_INCLUDE)
|
||||
+ LIBS += $(SDL_LDFLAGS) $(PNG_LIB)
|
||||
|
||||
- CFLAGS += -DUSE_TILE
|
||||
+ CXXFLAGS += -DUSE_TILE
|
||||
endif
|
||||
|
||||
ifdef DEBUG
|
||||
-CFLAGS += -O0 -DDEBUG -ggdb
|
||||
+CXXFLAGS += -DDEBUG
|
||||
endif
|
||||
|
||||
ifneq (,$(findstring MINGW,$(uname_S)))
|
||||
-LDFLAGS += -lgdi32 -lwinmm
|
||||
+LIBS += -lgdi32 -lwinmm
|
||||
endif
|
||||
ifeq ($(uname_S),Darwin)
|
||||
LDFLAGS += -framework AppKit -framework AudioUnit -framework Carbon -framework IOKit -framework OpenGL
|
||||
endif
|
||||
ifeq ($(uname_S),Linux)
|
||||
-LDFLAGS += -ldl -lpthread
|
||||
+LIBS += -ldl -lpthread
|
||||
endif
|
||||
|
||||
# Attempt to use a full compiler name, to make
|
||||
@@ -127,9 +127,9 @@
|
||||
distclean: clean
|
||||
|
||||
%.o: %.cc .cflags
|
||||
- $(QUIET_HOSTCXX)$(HOSTCXX) $(CFLAGS) -Wp,-MMD,$*.d,-MT,$@ -c $< -o $@
|
||||
+ $(CXX) $(CXXFLAGS) -Wp,-MD,$*.d,-MT,$@ -c $< -o $@
|
||||
|
||||
$(TILEGEN): $(OBJECTS)
|
||||
- $(QUIET_HOSTLINK)$(HOSTCXX) $(OBJECTS) -o $@ $(LDFLAGS)
|
||||
+ $(CXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(LDFLAGS) $(LIBS)
|
||||
|
||||
.PHONY: all clean distclean
|
@ -0,0 +1,124 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/stone-soup/stone-soup-0.11.1.ebuild,v 1.1 2012/11/22 17:25:29 hasufell Exp $
|
||||
|
||||
## TODO
|
||||
# add sound support (no build switch, no sound files)
|
||||
|
||||
EAPI=4
|
||||
VIRTUALX_REQUIRED="manual"
|
||||
inherit eutils gnome2-utils virtualx games
|
||||
|
||||
MY_P="stone_soup-${PV}"
|
||||
DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting in dungeons"
|
||||
HOMEPAGE="http://crawl.develz.org/wordpress/"
|
||||
SRC_URI="mirror://sourceforge/crawl-ref/Stone%20Soup/${PV}/${MY_P}-nodeps.tar.xz
|
||||
http://dev.gentoo.org/~hasufell/distfiles/${PN}.png
|
||||
http://dev.gentoo.org/~hasufell/distfiles/${PN}.svg"
|
||||
|
||||
# 3-clause BSD: mt19937ar.cc, MSVC/stdint.h
|
||||
# 2-clause BSD: all contributions by Steve Noonan and Jesse Luehrs
|
||||
# Public Domain|CC0: most of tiles
|
||||
# MIT: json.cc/json.h, some .js files in webserver/static/scripts/contrib/
|
||||
LICENSE="GPL-2 BSD BSD-2 public-domain CC0-1.0-Universal MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug +lua +tiles"
|
||||
# test is broken
|
||||
# see https://crawl.develz.org/mantis/view.php?id=6121
|
||||
#RESTRICT="!debug? ( test )"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-db/sqlite:3
|
||||
sys-libs/zlib
|
||||
tiles? (
|
||||
media-libs/freetype:2
|
||||
media-libs/libpng:0
|
||||
media-libs/libsdl[X,opengl,video]
|
||||
media-libs/sdl-image[png]
|
||||
)
|
||||
!tiles? ( sys-libs/ncurses )
|
||||
lua? ( >=dev-lang/lua-5.1.0 )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
sys-devel/flex
|
||||
virtual/yacc
|
||||
tiles? (
|
||||
sys-libs/ncurses
|
||||
virtual/pkgconfig
|
||||
test? ( ${VIRTUALX_DEPEND} )
|
||||
)"
|
||||
|
||||
S=${WORKDIR}/${MY_P}/source
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-build.patch
|
||||
|
||||
# if use test ; then
|
||||
# cp -av "${WORKDIR}/${MY_P}" "${WORKDIR}/${MY_P}_test" \
|
||||
# || die "setting up test-dir failed"
|
||||
# fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
S_TEST=${WORKDIR}/${MY_P}_test/source
|
||||
|
||||
# leave DATADIR at the top
|
||||
myemakeargs=(
|
||||
DATADIR="${GAMES_DATADIR}/${PN}"
|
||||
V=1
|
||||
prefix="${GAMES_PREFIX}"
|
||||
SAVEDIR="~/.crawl"
|
||||
$(usex debug "FULLDEBUG=y DEBUG=y" "")
|
||||
$(usex lua "" "NO_LUA_BINDINGS=y")
|
||||
$(usex tiles "TILES=y" "")
|
||||
)
|
||||
|
||||
emake ${myemakeargs[@]}
|
||||
|
||||
# for test to work we need to compile with unset DATADIR
|
||||
# if use test ; then
|
||||
# emake ${myemakeargs[@]:1} -C "${S_TEST}"
|
||||
# fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake ${myemakeargs[@]} DESTDIR="${D}" install
|
||||
|
||||
# don't relocate docs, needed at runtime
|
||||
rm -rf "${D}${GAMES_DATADIR}"/${PN}/docs/license
|
||||
dodoc "${WORKDIR}"/${MY_P}/README.{txt,pdf}
|
||||
|
||||
# icons and menu for graphical build
|
||||
if use tiles ; then
|
||||
doicon -s 48 "${DISTDIR}"/${PN}.png
|
||||
doicon -s scalable "${DISTDIR}"/${PN}.svg
|
||||
make_desktop_entry crawl
|
||||
fi
|
||||
|
||||
prepgamesdirs
|
||||
}
|
||||
|
||||
src_test() {
|
||||
$(usex tiles "X" "")emake ${myemakeargs[@]:1} -C "${S_TEST}" test
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
games_pkg_preinst
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
games_pkg_postinst
|
||||
gnome2_icon_cache_update
|
||||
|
||||
echo
|
||||
elog "Your old config folder under '~/.crawl' is not compatible"
|
||||
elog "with the new version. Remove it."
|
||||
echo
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST megaglest-data-3.6.0.3.tar.xz 192795104 SHA256 2a9f0293565a5ec56714b2f73f63e02b807478dce78251cedeeb25b57afb962e SHA512 58f16956f52b507518924d521d8bd19a24979be22078005a511d86af3ff8f31efb0ed500154ece656a0be1907e99d1c58867ddaaf38bb44f8af3ed91f7069648 WHIRLPOOL 5e31d09505a2ebe20fdf28b2c09f40c6dd140f4704a8ab8002aa9d382b5851fd8468878095badecf21d729a731637c60ed88b1b0d08f0ec0c661f3ec32053198
|
||||
DIST megaglest-data-3.7.0.tar.xz 191777708 SHA256 cf42d3ae6d2561846e4c3ed869fa46c899eb91c1f14bccbb1c3ae5ffb9db1729 SHA512 7fc404134a1afb7c230de2ac652611321a6674ea06b6cd575e7c0f41d29e3cd958fd19150bcfdb46b816e6b1322695798ea432204bbbeae524e0b6c83a36169d WHIRLPOOL 397a3c11239ff791fc96401e2d6b537cd4ccf40128e5bf3c11eabcd1961f926de8b1a52391ad807c61f1105c6e80e5f7171e6133263cc660102f33cd5ab719c0
|
||||
DIST megaglest-data-3.7.1.tar.xz 191777052 SHA256 e31a84d32e35bd1b96ebba55188d05099411497dae4bad2ece9cb0cea5723b0d SHA512 c72a8f078dc8458a7bf929a5505d5507a443eaf47688b703e6207f6efc07c603294a74f29463a09357e82d01fb59cf60eb192a7c181fddc0a2c78fe8e80fe7ce WHIRLPOOL 44bd29be0738c24bf0a3139204e13256fc23efb40a1f817a75fbfc8300e337db8d057cb7096ed622641aee84a5b28c921d36cb1093c6be7079f0a107cdb6ff2a
|
||||
DIST megaglest-source-embedded-3.7.0.tar.xz 8316152 SHA256 aa23421ecbdeb8205707887d1a797d980e271d2a4b179373140c4f4650af575d SHA512 16a82e0cc88097c523bec4b68dd9f5292fb7995d73c864867d69006f48b813afafbc613d2b7d853011d7247fc0736dcd62dcdce03738c226dfa4580ccbf6d8c6 WHIRLPOOL 6ff856636898f34cbd1b5141f6b4729243de12c56b8f56521320f5c5411250de8896f3950cf5ac297ab1a2e9b816295e0df4b02fca19f1b1d27dc9431bc7f9c6
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-strategy/megaglest-data/megaglest-data-3.7.1.ebuild,v 1.1 2012/11/23 17:13:01 hasufell Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit cmake-utils games
|
||||
|
||||
MY_PN="megaglest"
|
||||
DESCRIPTION="Data files for the cross-platform 3D realtime strategy game MegaGlest"
|
||||
HOMEPAGE="http://www.megaglest.org/"
|
||||
SRC_URI="mirror://sourceforge/${MY_PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="CCPL-Attribution-ShareAlike-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="~games-strategy/megaglest-${PV}"
|
||||
|
||||
DOCS=( docs/AUTHORS.data.txt docs/CHANGELOG.txt docs/README.txt )
|
||||
|
||||
S=${WORKDIR}/${MY_PN}-${PV}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DMEGAGLEST_BIN_INSTALL_PATH="${GAMES_BINDIR}"
|
||||
-DMEGAGLEST_DATA_INSTALL_PATH="${GAMES_DATADIR}/${MY_PN}"
|
||||
-DMEGAGLEST_ICON_INSTALL_PATH="/usr/share/pixmaps"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use doc && HTML_DOCS="docs/glest_factions/"
|
||||
|
||||
cmake-utils_src_install
|
||||
|
||||
prepgamesdirs
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue