parent
cfcbec2be3
commit
71a95fc9c4
@ -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
|
||||
}
|
@ -1,6 +1,26 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST 20120219-patch-aalto.zip 4991 SHA256 e9904a74aa2309be1ea1d4039fa257d6e7f32bb176dbc0cdf2daa6d3d2390b1b SHA512 ae20448944e25aa04879bdab8d61bd910b1aa6f85c3d8287e712c6d37b1154af480edc6569467e31b3b404d7f90f771ec3e4c20c58132d9125303b40a6f102f2 WHIRLPOOL b3e8e6c5b686acd2c502f7d09f88acce9a5785878a767a4b24a35a0ded49ecd3ed0922075c8fc9bdaea1108a8b9ecd6d330e4671f6b1e8f0ddf1fff530f0e6d0
|
||||
DIST xtail-2.1.tar.gz 26769 SHA256 75184926dffd89e9405769b24f01c8ed3b25d3c4a8eac60271fc5bb11f6c2d53 SHA512 a8519969ef960af97c4dcb75c679daa5687f553c909817ede1134dfa5d70ed71c5264f0e61c8c579cc253ccb7739a68c5213811169489a98e676ef8941d9446f WHIRLPOOL 39ab0e4c5379a2acd43bcb29bcd2fce42c7581aea6173fc01bf3ab0075d76ccdbcdaa2c6b8614ee9720c1ac456d9ce3ce0dd4a0078ced413c28d0f599f0fdcf5
|
||||
EBUILD xtail-2.1-r1.ebuild 865 SHA256 9c45a8278d5b5f0526037a1ca29e46a135ffcb2bdb315e88ff8a52b90e5ac45f SHA512 3abf3c8f3b36702054a606fef6a2ab49c960214cd0b68a22cf883a0bba0506e572f8ab2a88525f82a4b4dfa3db1dc21ae0eec4b976f8c9dc4dbcbbef51ef5711 WHIRLPOOL a61291f8498c9c5ca4597e77b1e8c4ae44bacac4da77a6fc4608379f59557e304ec0be39e9061af6e232b362f096fb399151506e06571c325afc382884b0d5f7
|
||||
EBUILD xtail-2.1.ebuild 611 SHA256 e32c033804dbd89c4f39e2d8e75ceb5cf55baea6dfae7e9ef2f2380309c187af SHA512 64298435c98d8fad40fa37bde3a49fa94817b83bcb7ffaa922e649f1b32f9c9f563f669f413d36620943324370c5899834257c4778042ca1e4bd225f63c8c08f WHIRLPOOL 8b13feb2be902e7e24a2a9d6878fe22ddd2d08908d470b7aaa5c8643ae95d98ad8fc23572503deee8510145b62214bee094e0b15b7ad4a2552a3aafd618f3f70
|
||||
MISC ChangeLog 2302 SHA256 95a06d4702b26a3d0704b814579a7055e507061305e3c1b68af3ceae3b678b13 SHA512 4fa3bfbf653bd592de0eed8b12e287a1c930d447c528094a8807d542c54eedca05dae386cf8ec44c6cd483e49b6894d8831f24ac1f9e0087e88a204378f5ce15 WHIRLPOOL 803f829babd5b2764e11d95810f0a76d824bade6868ce7254e952e383bf8a9d2abf10a68fbdb5f96f07570f7d377e051b6571fedc4e6533fc3d6cce639513bf5
|
||||
EBUILD xtail-2.1-r1.ebuild 865 SHA256 ee9f0d50451646a8e8260581ed129d220812bfade002d52c0a995d8ce8bf1bcd SHA512 6875ba277bc3b0dcb1d788c1c4f32033251153314b410083facced434098cec254505b1283d57a1ef5ce51773410123dca1bd333e21246e05319f89b5de2886b WHIRLPOOL c17d85612a8ba0585809f005e4e8f27323e9aab2af83dadd12c17ff0eb98acf0acd70cc97ec530c2388ccdc85a22799766b45a944367c9a0761dd7e301d124c0
|
||||
EBUILD xtail-2.1.ebuild 608 SHA256 d27ba6bb6b8b58d5058eb4b0f53345063658d183f6ffb53156ca91b4007f869c SHA512 537a8b9593a24eb982dd97a1beb310099f4161e79c7043b8f4587b92486f4294d896fcf412665e47cd31a3178a8814f38dc82c62699ce0810caa971ad460702e WHIRLPOOL 2fba2cdbfe5a25fbde6dc6f29f8300dd0ebdcf6f076fda2f4b05f36a2b11e5812c7cdf048e5b82cff5d4a2dac2579949fd5bc70fbdbf747239aa5f2d29817849
|
||||
MISC ChangeLog 2479 SHA256 b587773d31c00df9ad01c9b9d7a8c2cc2d207c7addba7e740ef7a92960fb6849 SHA512 a328cd0b7c7fb33512e9ae69c0910c0cce4cbe7b7441fba8c42c6afe6c81514f55acff8a62fbb20e8f769bcabd40c1603b9e59874b4a9ac0757f449d2096f767 WHIRLPOOL cd0961f2eee2607eb27fa25f87e6b429ed13b687d7c7b64baeb30c8a8c02b9a77f84657da0b3c463a2c7b46861d039a0e76b6217b3e4c263c392387e0f62380d
|
||||
MISC metadata.xml 265 SHA256 c68c9a798ab9943a46f4796ab173b31fcac6649f6730a29b54b2afd5a5926e61 SHA512 b464bd0e94dbd82b5682b30e911c4ea40418b5dcec688e2d2c23d5abe14259625b024b46ac48bdfc14732aef8a3a6cdd974ac3e88ecf812aa66f09af6b4cd67f WHIRLPOOL 8d646ab769cf76dfb0fa648b786075a75d2c8812e0f68afbd507f38d0f2d49cd98f0a2ee8adcb51db70110c15a212a228c4230a33ca79bc49d2acae7d268d15b
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCAAGBQJQrpb3AAoJEPqDWhW0r/LCdf8QALjUS0qxmEc2vtA3VjpYWgxj
|
||||
Vx7faKHjWkyJDxnRZbspAQ6UlmcjIXvruk+RPvm5CFJ+15WuKL9IeR4xfuK3eHcW
|
||||
1ZIOAy845HnVo8PGHc/rg/AiCB9YzWpRUjD9mXXRXt9lsqjo1QWWYyWgs65j7yVz
|
||||
cX0U5zKlM5kyATdihl7ELVVqpgEfHmuClDnWaCikJ1x55djXnw2AFFcFxBGVlvV9
|
||||
up0t7ma5nitWGvPt39kef4KLM/sKy1X7PBSNxuntmRPqBIjyEDUayWc4yjxTPcWz
|
||||
RcWTdLwvfpyGzUzDQXXDimrfPhFCKTXmYjoXbv4VbvmFV5JlJfnOQrW4a6URsHZz
|
||||
SHlUwAet7VwxWy/ayuUcNP9vPoeom3lmmYBSPMP/wVetPyJoamqfx/ydMZ8A3sKx
|
||||
BCK13sYmNmu1MMCr8kN8JIytja1bSTdcFvXIWNBtUBDTb0MQNrbvEYderaVd7bZP
|
||||
Tga4tVIOlodq6z5ppuG6l9rKnnweGokHyTyKmm2HKaROLeqz8FPHobk6Vig4L0JK
|
||||
ReJlgY0RzBAKfogHzNaRvs5e1hzrkepIKkAARtyyVVJzUWmiTe5C4fE835EgGkCn
|
||||
4dCu/tIC01sD32hjFI5OX2/jpfMP/ku03PKMlhF01B0hHqifZ+AUwE7kDd8smFWD
|
||||
gJw7fe9okQ2wYvKIw6d8
|
||||
=jWNZ
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -1,4 +1,24 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST freeze-2.5.0.tar.gz 36010 SHA256 f543eb18bd7de8893a3c0bac0e4fa5fea46a4e10f5d8182cebc40c97b8593863 SHA512 2e0965e1bb772a829763b99c623b3dfa062a624ed2bd5f658c9df0e4040a9c914aec5a85602340fe994634b82d2fac3250030b35ad3d5f5054b0a6f4059469e7 WHIRLPOOL 8415350c9ad833ceebff515922df947a54c1400cbba9606ef283068d6453cded3a6b674c4940fe0260a085834dd7b5b0a5cf3cb0116bbfde9cdd59d26323f0f2
|
||||
EBUILD freeze-2.5.0.ebuild 1165 SHA256 b45d6980dee8e9d2862b4a64165ca5666e3463249bdfc3ac4974fe5775a1623a SHA512 fe16fe6ad61b32cdac6a143d12658956743db40e930e38baea9514058cb06411058954dd29f5eb294ac3f4e56a163eb87404d3909e16bb61b66816a42173481a WHIRLPOOL a3c59ec3e8e297ff1df617ea76fc58ec2f81adb7a236ab428aae654b6c90114ddb95a73675aa4bcde752a5d97389a4ec88e8357426ed8ef6b3471470713f3d07
|
||||
MISC ChangeLog 1981 SHA256 ff833d6bbe158f6aa7362fc0de6f6d1a837311e6f14005b1e1105b09eac2a4b5 SHA512 ea9781cd249f779a0b53f3141396da1fd1506e22214e49d99a69105e6f3ff853b796ad37025420c0f88f195450fa382961f65c7f66a5187b7f64e47db2ef92af WHIRLPOOL 79b982d1080288374b0d1bb067963bee18ff4670726dd898f8d0d6773cf39f0d988420bc0156082a7a5bb3770ff4cd23fed3e94f4e70901d0f66ed7fa642cad1
|
||||
EBUILD freeze-2.5.0.ebuild 1163 SHA256 55ce9381ceada2f62e6089611f36cec6fe55975a23135bde650f3b39547244d4 SHA512 248968c092f3788ba5a38764b31188b9802ef83e5042387b46c148d12d0eb33e1c35034e60e0c0cab7fec87e1c96f37b00a545a672aa1b3fd4385fdb51623599 WHIRLPOOL ca5b0cfddbda9b40bbfb4a5558322f3902951fb05dbda1684473394021283c8851f031086cef1056321a63bc2b2ff817c1810cf1e8f4ee8030c55efff87f4e66
|
||||
MISC ChangeLog 2074 SHA256 0ce6ce3ab1d661bbfd32463d7bc4168daf6eacd5695e82592edacdd754b67eff SHA512 22565ff77c2ecbb8e3eb543f4cd769ae70ebc2d3b408f98523aed6b1c6149f9949a6889b176848267a681576ba737382dad5391bfb648e33977cc4cf8d9bb243 WHIRLPOOL 0b5bd2d1194d0682aeb086c405b88a42f6aaa359b8531834eed4c38eb12ea7e3a8d74cba5512ed1462af85afc06137e1e95d677fbfc0a5ddda925e0f8860451b
|
||||
MISC metadata.xml 268 SHA256 2089ca59285b2836a6ec1d5aef27f83d580e922212301f0b1eadb04400eb45eb SHA512 8e365ead118785104bc7576a48a106346ef24f5b709349f8ca3d5fb9107a248d0f172e6898fb4ba4b2b7f84e6c8c7960578a2919e1a3692664cb808b16e6b2b2 WHIRLPOOL 255e754b42ff038b07a48321ced9fe6f8acdc99bb85873807b3e902517a1764dabc7152e5ca9ad4d83ab5dc9d3a611f79e6c066121be77aed3cad1b0f3587b73
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCAAGBQJQrmuUAAoJEDxpGckxwJCBc2AQAKZqEx4yTHZqtODBpaKC1eaF
|
||||
Ie1D0y1YG37sZ5L7O2hbhzhZjc3OFIlY/hNq7+6jguiCTHcMYPM1t5eOXW42fs0k
|
||||
S6Q+7eYcL9WrnKbm4q/oqfg+NSuU/jXx6qxXPOpYvqCE4TbYPGLkT6QGRn7jlJVh
|
||||
/XaVY85JvsH1tBF5Yh42rUNq2VQym8o2rXldhst/v0g7axmEx1g+lmIuaeBTc6qY
|
||||
IuRt9tGXmoJ4aMndCywfwf04gyKKJj47fm5X4OV7tJl1/jpIBeHSFyPdmyQWURLs
|
||||
2Tgo2zwmMaXZnJtojnJ8tJzXt5WibROpvXMe/HWKXssiHjkblYt82yEEVkNgCguE
|
||||
IhKjK4Yau6ZvQYcolBQ40NBDXY+YqUJsxEwGRZhkDIbHSAbjiMPryUBwo4wnQY01
|
||||
Wk9b2CzulfkXforeCTgXrvNdU/c0RLoYkK08E5GCWAJXLCyzQ4Gt+SMf0/OmuO++
|
||||
n94kTTXYP5nqMlhnFA2Kkxx7ZSBGoP3o0O+7bdEB8hVcMMb4p3owga05hS7AHBh0
|
||||
fqc9QomF1MtzRKqFdzNFQKAqW8yGGXPktwmFeBs8QsxwWNygtvWgZcjQkx4kMfUv
|
||||
oWtbA8yPcFudVRhG0X0QBfr1UCkn9dBkuG9hP5AxZVrr7R7uRq+YPSotpCbDR3c8
|
||||
vn+z31d6rW+Zr2kGnRb3
|
||||
=Olbo
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,9 @@
|
||||
# ChangeLog for app-arch/lcab
|
||||
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/lcab/ChangeLog,v 1.1 2012/11/22 21:50:28 vapier Exp $
|
||||
|
||||
*lcab-1.0_beta12 (22 Nov 2012)
|
||||
|
||||
22 Nov 2012; Mike Frysinger <vapier@gentoo.org> +lcab-1.0_beta12.ebuild,
|
||||
+metadata.xml:
|
||||
Initial ebuild based on one in sunrise overlay #236342 by Lucian Muresan.
|
@ -0,0 +1,24 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST lcab-1.0b12.tar.gz 74907 SHA256 065f2c1793b65f28471c0f71b7cf120a7064f28d1c44b07cabf49ec0e97f1fc8 SHA512 7aeb1b2aa0b9171963b771cfbec13d1a6d4b2519f0f6f2705b505d0ec7a7425764996de00ed1d2919d08c525617d029035a586e8c7e2fad2f44945fddd2afbcf WHIRLPOOL 4550fac41b3b990b0e9ae31f98b85e1e931c4a0508e64b14f0f0b26431d3afef74e479df5dec7051e539b796747637726652a13a49ea1767d3b8ead09f09ff68
|
||||
EBUILD lcab-1.0_beta12.ebuild 628 SHA256 520fb3d92b7b74c1aa3453d9c5b63cc680e8a09a5876702be31a29b082719f80 SHA512 facec333f358ea872f7154953061b276b94b8c38ec0af1ae77fba52af0f0d8dcf35b5c8993007eda82ff188b8d94d9fc68b70109d5dc6a00c56eecf5d4593b36 WHIRLPOOL 3df5d46fd651d66513d7d336efd58ca5b80a08a288b37225fa3ed1abc3efbf48fa98d1143d0243c45c83e879c8da71e5393c990d1708e035a9f2d77f485aaed5
|
||||
MISC ChangeLog 399 SHA256 395848596eb77085289f3205930ab5f6d1fae8009ba7700a63ea06136f0346e7 SHA512 43746ce29fdebe86a8b5ab45d9a39ab2a5511ea7eda94c7153d384b9a602948bc56d944702cba7097df69e51e479ec4f2bc0a478258c910fe6004c030e5143dc WHIRLPOOL 78800548e07b73777c1c4b5830898de0a4de5437c02d2f20a16eb5617f4c4a543eea77fae81f7f695af4e5e218ff1d0b0954b94e269c774eafb8931bc30d1690
|
||||
MISC metadata.xml 240 SHA256 060d4d570194ff567e10d66246f85d4b9fee1efb17d111aeb9f03345f6e20efd SHA512 41a5c4b9e67d814937a0524714617a059c1351a00ac12d9344373f43b41d074e24fab5598e44c8a22f1848bfa12b8fc76cd5674ca62cd1f917b3235c77721971 WHIRLPOOL da0b560d9528cfe4fcff409de2d9749cf9ae8b7a04468b42463e8097b89e152a67a0da0ea7e6db1186f852687979c2e843e487a5eb76e663717148a796aa093d
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCAAGBQJQrp46AAoJELEHsLL7fEFWJE8QAKV5ICmJp9ebnoOneboy+5kq
|
||||
bCJaAbWV3nXOWhCHEbNVS6M8J5OvHrz9uM5ZceOhkAowbqA/iidrKF+H+YDjrWnG
|
||||
kBqYeHPyZXpk0tQOS5heuBaYAUYF4JNGDks4zm5PVZy/nhh79jgHudP2sKCS41rU
|
||||
mlSGcGZmJAPgJoA2eUXYY3rcNYpwfizqfBDNm8Ga722k8NIDn3ux8tC7nqLyvOhM
|
||||
een5yg50gyreyV1b4uP/Fn0yGKLGsKmLOb+IAUtK6okz8AHP67PZhx8RSVoC5t21
|
||||
zikYdV//EP30rPmNjLl9RRgx6NDUWnUVWpY8+EL8HehIk23s/VIFPyjV12zRlgyD
|
||||
EJ1/s72GHORVfRRryZHF6ZUzTA88Uc4XDZBRXo8wPacczdgZfZof9m1YBVGLDBpS
|
||||
4cuZ9H+OXoQfofxvxprxT5WMEeJJwnIbaGGxOdkWr6MrWsxJo0tgdKoiEbeccD8z
|
||||
VGUQ6mAJ0jJXX0mYDsLCJu0xLekyMggaET3P17fx0utkI7484PsQcp/enPL/cIau
|
||||
xpGNBCEvYQHkOodKygPx+yl+cd4BCpD3rrkXtjJYNz6IMTvclwkTBEpQfLywjdqz
|
||||
jdK8AyRmW4v557nPcq4bsljwCNLTuNswowtfEUpHFQ53U9jBCcXnuRaW1NZXMKkV
|
||||
CaRoBDUvltjqkLK23fzO
|
||||
=oFkp
|
||||
-----END PGP SIGNATURE-----
|
@ -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,37 +0,0 @@
|
||||
# ChangeLog for app-cdr/binflash
|
||||
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-cdr/binflash/ChangeLog,v 1.6 2011/06/26 10:57:11 jlec Exp $
|
||||
|
||||
*binflash-1.56 (26 Jun 2011)
|
||||
|
||||
26 Jun 2011; Justin Lecher <jlec@gentoo.org> -binflash-1.50b.ebuild,
|
||||
+binflash-1.56.ebuild, metadata.xml:
|
||||
Version BUmp, #343591
|
||||
|
||||
*binflash-1.50b (03 Jun 2010)
|
||||
|
||||
03 Jun 2010; Steve Dibb <beandog@gentoo.org> -binflash-1.49b.ebuild,
|
||||
+binflash-1.50b.ebuild:
|
||||
Version bump, remove old, bug 306461
|
||||
|
||||
*binflash-1.49b (16 Feb 2010)
|
||||
|
||||
16 Feb 2010; Steve Dibb <beandog@gentoo.org> -binflash-1.46a.ebuild,
|
||||
+binflash-1.49b.ebuild:
|
||||
Version bump, bug 294091
|
||||
|
||||
07 Jul 2009; Diego E. Pettenò <flameeyes@gentoo.org>
|
||||
binflash-1.46a.ebuild:
|
||||
Use elog for fetch error.
|
||||
|
||||
*binflash-1.46a (10 Mar 2009)
|
||||
|
||||
10 Mar 2009; Steve Dibb <beandog@gentoo.org> -binflash-1.44.ebuild,
|
||||
+binflash-1.46a.ebuild:
|
||||
Version bump, bug 256286
|
||||
|
||||
*binflash-1.44 (06 Jun 2008)
|
||||
|
||||
06 Jun 2008; Samuli Suominen <drac@gentoo.org> +binflash-1.44.ebuild:
|
||||
Initial commit for bug 162260. Ebuild partly by Mark Silinio.
|
||||
|
@ -1,4 +0,0 @@
|
||||
DIST necflash_linux.tgz 284389 RMD160 389138e6427e69e516445119872e26f8857e1f59 SHA1 78a6c0359c64e62338a8a69c0f7402a3fca94b31 SHA256 ed095c359c507688e3e7f557a709ea9014d9bc7f4922fc2b34e7ac6d733869c4
|
||||
EBUILD binflash-1.56.ebuild 730 SHA256 944cb053c2d37ff142a050038f65db077a47888c2382c47cda1eadfb1425f11b SHA512 985cb3c2caba35f38b0d5d8e78cc48aefd3da844c825f834f2ec78d9618182b83a8a565282a14757b8bcd66577d38755de498b69722b123a6d916e8bacb0bcc7 WHIRLPOOL b2a10041ce164b04948ca74fdba379e68b983c6c627721447dcf1032237e6fea2cae81546593aed4ec8567e652851793c90780a1a0d7040f4b0e05ad4b0cf850
|
||||
MISC ChangeLog 1124 SHA256 78a14bd9cb5c4d826c3c8e15117c41965e79c318d157dcbfe5e960904446650d SHA512 f446e58c565726de2dd1df7ebae88d09dfc05016ae6a14fb4d4af796276ab4655d674bc59caf9d783c0c37610c43c5b361ce6dc86faba0b7a3e1e616838af3f9 WHIRLPOOL def3265d46dcec4d04a92e2c60dc82be999a91781907f4f7bc7dc553fef1cedf9a56854765b5bc8ae1b9c4c149e404971f729b15d9b12e617787fed9cec345ad
|
||||
MISC metadata.xml 167 SHA256 e63e128685e2c6da2eacfda6e91e700c1eb6f62cc2172ab64eada2ae71431ef2 SHA512 23b89532b34ac7118832402c25d8afc189132e0da2182fcc5ce5e69ba2f0c170226599ae981be2bbc3fd8474baf707af58f6292b89221339aa8b4a2265ade0cd WHIRLPOOL d8505f9121d7531f43f9730eff208d89eec443f6612cfa288f2f6137e75ac40faf0e11a0e89f23111e3f16dda6178c406025cce3edd399f03d9bfd5a46c76e3b
|
@ -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,10 @@
|
||||
# ChangeLog for app-crypt/osslsigncode
|
||||
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/osslsigncode/ChangeLog,v 1.1 2012/11/22 21:58:13 vapier Exp $
|
||||
|
||||
*osslsigncode-1.4 (22 Nov 2012)
|
||||
|
||||
22 Nov 2012; Mike Frysinger <vapier@gentoo.org> +metadata.xml,
|
||||
+osslsigncode-1.4.ebuild:
|
||||
Initial import based on ebuild by Michael Palimaka #374541 by Bertrand
|
||||
Jacquin.
|
@ -0,0 +1,24 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST osslsigncode-1.4.tar.gz 96512 SHA256 721eddade1571fcde54e7f5c21f961dacb990c19f9bdb05c4a7aaeb269979069 SHA512 89f82b5cbab5952b7bb0b1a3ea230db0c38d171924e5150e9cd157158e52d312cc10093ac719265d03a097f995bd3a438fe874c50263659859c625482ef0239f WHIRLPOOL a3fadd7e9e4e8bb295d33b6e7696fe5e7ba32f252656fef3faa59bcd86ddf6ceec2e5532cc136e078af6eaf74c169edfaa18635151e993061f071b7cdb0807c6
|
||||
EBUILD osslsigncode-1.4.ebuild 625 SHA256 d40a2c5a7cb5056fa8c815fc17b1a55c9d11fe1ae37695610961f0d8e38cdf9d SHA512 0d444fac7c34a251f735320b08512c265895e131efa8d82d247ae2e30b45b964fd41a6ee06c66641b5a29e6bc58556bb6b388cbd3d5b13016c22e77bfd182505 WHIRLPOOL 7af329a287a351ce50c9936c15777cc2ec08cc538d10f7f01418764a7e2eddcf05172869c88bcf1068fcdbf4c88f053811691c1dbada814e0cf1a9986ee0ea86
|
||||
MISC ChangeLog 427 SHA256 83a21ac33feacebbf464dd86258b52aebf628e21985087bad682ae4b9f9c2581 SHA512 b0c45a99b890b202072fda5e507aa7384cbfe8c8f648f05ad105c29ffb6f07b3e31e8a960317c6052a0ba54d9f7262a46844471076577cff6b09d69ac5080602 WHIRLPOOL d80811dbf1c4dc294fef34addd802bf57d0e7f5de67bfd6426ffa58e7e6dddefb5eb6b773decdb6c730b29b34afb0dcacee655ab3d2e43b67cc4f3a5efec4bdb
|
||||
MISC metadata.xml 240 SHA256 060d4d570194ff567e10d66246f85d4b9fee1efb17d111aeb9f03345f6e20efd SHA512 41a5c4b9e67d814937a0524714617a059c1351a00ac12d9344373f43b41d074e24fab5598e44c8a22f1848bfa12b8fc76cd5674ca62cd1f917b3235c77721971 WHIRLPOOL da0b560d9528cfe4fcff409de2d9749cf9ae8b7a04468b42463e8097b89e152a67a0da0ea7e6db1186f852687979c2e843e487a5eb76e663717148a796aa093d
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iQIcBAEBCAAGBQJQrqALAAoJELEHsLL7fEFWs2EQALiu8itZhRpP01zGzd+z7Lfw
|
||||
QMIxWHkGd736MHMr6zGkVItNFulOP1Jj3ltY2pXFZqiWhIv2CJHcha4V38NbKnaT
|
||||
iKeLFF2jJKUeg2hcaHxEad0oUVGysgGhd0hyKGW9Y3Dse/PpBEFzOX9cl50dP5lJ
|
||||
5/IheBXnV55vH183QuqYOAT1n8wBqIbrkcoHf5ipOHOOgdNOBWSz3M9sG2scbXWV
|
||||
sUNedjI6B5rT9X4+H8Yfdenmh3WZ7Y8uMN56hXfy6HW+moa/F4lioDpxbOUkoC66
|
||||
a/tunNpW+ydghYQXkj9j5XZLkNTFDuNyJSs4L8R7hPkeTn+9iIPHw5k6r5efkfc0
|
||||
poKJhycmHMV3sPgslAP+I1XDIPXu8UcfBZX1WJiUBLrMLLVAtzqzfoo8GHOMZue9
|
||||
gImkoOcrohyXtK+0qrPbg3xOxPax6QZq4ErYdz+3XnCKOVWHSQpOHDQWnKX+tQns
|
||||
yNAzuABEG55E6nWsLKmzkiIQpfrlT9AXlQhprblxpXzBbHZi1CqoXPCMCq4qqNqY
|
||||
I8cDyutzI/KcmOy4oprDFULqNPF5HltOx33B5HlsL6W9FjYXI2N0t1AzMP8LYjXz
|
||||
1d0rGrv24ldh0uBVdiaV8uPiGrkgWZTxdL2yw/4leTSNmIxFBA/AWH1sEqwEB3lQ
|
||||
fD5k6uYFYrF+AnGX+X+4
|
||||
=bSHR
|
||||
-----END PGP SIGNATURE-----
|
@ -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,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,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,6 +1,6 @@
|
||||
DIST yasat-456.tar.gz 116257 SHA256 bc6c598693b9bbebd30d3d4dcf54d94b5e519af524296bffa7c6965f1f843c68 SHA512 51510fb1fc2766cde72d6826c5eb14f5ae9a7eeb45a3898262be52b96996b2e01f94342d611a718e4e1983362a17552cf94ab8993109ed2a83acf7ed03420220 WHIRLPOOL c3341b2016cae2eba444a9763721db7350a739ac9768516607e5dc8369d9fbcae770786cb89aa831e74aeab0551935a4559a142018928ab4041127680ea85aa0
|
||||
DIST yasat-526.tar.gz 123976 SHA256 a4ff957d59923c7c87fbcde27c894d731a3685b8534be17867d9cdc41974e600 SHA512 8abcc43f49791e7fd4c7755a2d2b20b6b89d5437bf9dfd392867374ecaaddba96d311636b38d4a6ba60f52c342334675bb1f3894b7aeae446ab479b9a319f898 WHIRLPOOL fc84bf86ed5a655129e917be30e24928c7a6afdc53b6bc7481e22e2050bf9612459ffaf681bc19a39bb623c8a7907378fcc358a91b86bbbcf1c269e8a2745796
|
||||
EBUILD yasat-456.ebuild 561 SHA256 b13deb4b9e8c699cb7354347ef32153b0e9c074bc55632f8e175b9061f53bf57 SHA512 80c048d5c0df9411b7e516598982fe3fe3f13e063f0d524a00bbcd7f3efc4ea53712fc2638b69daa12f23198a0d19d2373f39f6e1680ca46f1082d9e3b38af32 WHIRLPOOL 0682fded804c365d68635dfd471b82b37c4979efc70e951ead3f421011253ce28dafbadcb3db440530eb9b1bc0fee854df4ded7fc070f555f549be2ccd0dea36
|
||||
EBUILD yasat-526.ebuild 587 SHA256 8e48800bfdd283e1ede7a040abb7cf6ee037f5b7f7210fb6ffa9dda0f39babfe SHA512 5ab7474a02c727c7f0b0e2578527c58494eb6c9d265f8fa76b1d4199556438dd70ff69107bd778452617fcf0492dcd1861e3af6b76a9bd694f37a309d0cb8e4a WHIRLPOOL a4dff5aada7f46b84c3c5076f5789dd2a11b54606427c7b299207e35c8fd85c4b469b9782ac18640bfa7ccc84f94e21eac386a6bc0349bdde1bc11147d6f5421
|
||||
MISC ChangeLog 1682 SHA256 3d18ecd1d1775e603574e0b7a0ed3e13e51a12e5252085a55332d85bcd3038b4 SHA512 bb1d4c47a40090490a463d237c3f1ca33fd517b27e125e9b833da505190ba305b8134b2bd89902a4657f949f023507d6a37226c84150118de062bfe533850a8c WHIRLPOOL 3100071982b1301b933a765d73b9e2a25991bb72f22f08984f88fe59eb099bf20d6dd08f51a28fa2e4ab9c0c6e72bb7ee50b1b28ab4267bc7131a131132e6b24
|
||||
EBUILD yasat-526.ebuild 591 SHA256 30563ff093f0b27eb0e6250c77239e5a6d0149bd6430799496c4bd8ca5040c4c SHA512 024de0d727050611271f6dfe73afc2e16c25630be22f9a42d0f6c1ba74505217fa7b9022f925002a6483f817f9bd24c518bd8a6f3106945c700fd04271c6c19f WHIRLPOOL e02a6e9e321261d2c8e6cf89269930bbaebe4fa0a8425bf5a70f638dbd3238062f1c8005cc4af8258d4ff8154c0a1f2bf00b9e5a67aa2aebe781c279b67cf5cd
|
||||
MISC ChangeLog 1736 SHA256 3d87692f9dd6ffdad36e64cfc80e5c2ae4fdcc0d626ce5dce8ce5343bbe83d51 SHA512 a565cb2c0ed06c00b61f78a6d9fd80025e62a2faf973f621ab1a86b3b1e085357137854ef5cd26ca2849e7a376ba1e3d59a4d4393b621654eb07e6ce2928ee3f WHIRLPOOL c78499c9936545b1736f4b17a23f0b2a9d705c4ab4f934ecf0465b9bd05f0b9cebc1d83e01f1347cc52b2a90268df43a126342e51f6e5bc3108fb8ed70f68977
|
||||
MISC metadata.xml 506 SHA256 493a2d62a9e6bcdbb025215977edf3774be7791f52be8c5e88176569a987085d SHA512 819f63a51f4587ffcd27050b5d3703c2bc19835fe058b8f6c991a40092d70903cd142ecd9e009d66c8234ef77200948c92f08bdbcf130e24d99dcaf5f69bc262 WHIRLPOOL bdf894fe2baa3dfe5edc41720078211162f7a263d55e04392e65c37b7dab085b480f143573c18f6813b55166e30096a909ec4f48b80ad409cd24ae55c397b5c9
|
||||
|
@ -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
|
||||
}
|
@ -1,14 +1,16 @@
|
||||
DIST parrot-4.10.0.tar.gz 4567705 SHA256 82f38e6e596ab101c52313ad3e3560d2c8a72985362b54d9898619ab17a6f17d SHA512 e1f20c27107270f452ba3ba5aa8cdda77754c53e8e31d15c1024781c54b5ed6b68029288a1d9967c42e4cb2c9895e70eef3a94fb7ee112a12e2dc74765d13fd8 WHIRLPOOL 59eab631bdf3d8d12f460b94f9a3114bea7c0f9c2a78f4304ca8cdc9266217687200fe01db1eac4a1fa454d56b0bf00dc6c137fe651a6fef5530d6e403ee3c70
|
||||
DIST parrot-4.4.0.tar.bz2 4324058 SHA256 348ce13fc136afc74a7b50b094f64d8cb00f83f0cd3d59acc6fa4e63c824fa4d SHA512 da7659ac62a86df9004dd789255570547afa19ae045515bf8bb4eafb00fe2615b353b3f597108d18b68c7f513cfcf4359c2fe656c917b97f12977e01342b100c WHIRLPOOL 9e2a1dee83539d4a2e9509d5ce0d93ec36f81954436cd29be26bf3a4e9671f1b5994cd1ab7d993e1250a5112806b20c8bf939fa2f0ee3cbb8cd5b4e0f2650ab9
|
||||
DIST parrot-4.5.0.tar.bz2 4331710 SHA256 74996076eb9dbe0f2442e0ae9c0cb5c3e9d5f49a266368eee01f4ab30c6d2808 SHA512 ea468823db32f54cb4314b34fff87da1d4e62aa278c73fdb265ce8af0b0f048fd22426108dad355c086b2ef26509b9df36960d9f13a2553392ef69618322a449 WHIRLPOOL 111ddc48e47803d94b8d9d9415c3e965bb8534279ea3461fd6d5d874b485ea887136d1120de69eb73ccda2892a1363453db9acb445082203f937e78b273d8dfc
|
||||
DIST parrot-4.6.0.tar.bz2 4331714 SHA256 31d48e348eab418d5d9d9f9bb24d628763ff90c608d21b1944c227b6938a69d1 SHA512 dd715e4f66aaa739353b5a43a79047d234247f0d1d727d3f73e80358000dc933e32d706f40a27d57127c7728683c5aa8bc851aa2ceb80f9e25008360d20efba0 WHIRLPOOL bc12b26c7cb5158adc066ec5f6e00ea0ef49d16bab24f0fec6e28c104ac3b30016bd3892485fbdb2b52e1bb8866db3aefad7d4d2bec70025c76abc0c5d6fce30
|
||||
DIST parrot-4.7.0.tar.bz2 4333224 SHA256 4360ac3dffafffaa00bce561c1329df8ad134019f76930cf24e7a875a4422a90 SHA512 d67d9fb097b3a47c1220aa1548c37a2dd63c925f4fd9e18efa258a23917df8d6c37f6fc0ff6439f5164700d8eae9c699cb21dc9d0e2a41213be8be7232abe244 WHIRLPOOL ce22ac06fa1d015d9208805785613d5f73f8f03121bf3afbe4d7e3fa606a34f361d68513a9d7b6ebaaff8b7c0e1d664486c4dcbb9c705098ba8095221781ac1f
|
||||
DIST parrot-4.8.0.tar.bz2 4355830 SHA256 b6f9a72b8e4b8af4f85b00f565b8c3225ad631a28d5a7b25f2b0e6fd3bcc8aa7 SHA512 9c3492beecfbb50fedb30954635eddf88a4d260836aacdea1068f57b696f7b2f389532931fa47e24fde8adae1002bcbb212e3492b919b834b1a149345c77237b WHIRLPOOL 5f28f9d8cf15bcc78a02a6b46ba8089d8af1e8423aa26f6223330577f0b11da5fd6809b9d32e0103f009b23aafbf7612a31aea8a19aefeda6ca6494a73657277
|
||||
DIST parrot-4.9.0.tar.bz2 4363047 SHA256 638cba16b47bd5c6dfb4c9106f17961b0496d65c321279a16032ef6667d3ae4d SHA512 ca21668505aaa1a32468f775fb92b403ae6e44efcd58beca82dabae425f43260e7e5d9c3fbb1295260b8bf30e9834f19f15ba2202e0989c88e4f783333f1f923 WHIRLPOOL 78ee73d551eabbad11913c5539db8731f413dfb9ee622ebbede31a6eb85efd9feea61b112e21ed087b1379c8ca50c7cee1af27afa921ed8a7608e51102764698
|
||||
EBUILD parrot-4.10.0.ebuild 2507 SHA256 770365c9979ab29a8629a853e4923bd9a510d59e1aefc92a0e045edd5547aef5 SHA512 14f27f521b449ba0da4ab4ab61896febe6f47c28400a635320d1817a2f5d94cef1032208cc8a709b4bcc62836b24cb03a6e44c20a156337cca94bceb0456eec5 WHIRLPOOL 12ec5c9f6736711cedb2da024035c962c55311727448df3975e3ab03d571d8a38dcec51029be7e429744de6542261e25b06ff69058ef7f40340eb6102dfab95e
|
||||
EBUILD parrot-4.4.0.ebuild 2578 SHA256 12cb9138f227400638d843ff01c0ef157085a1bd600002cb39e20ce69bce20e5 SHA512 d6d7d9953bc0794ff2f05d57a9bdf733530e855a223944b556cc09f7f75fce3aec3ba2483677effc0215e7f6ce448dbe0bcdb1bc125967c505d448c4bbe87b30 WHIRLPOOL 41a147931e03554d4674affa0bbc0ad6b01c513b913eba4a53866880b1009b1b7366c601438f8692095353f89510df4db0ef9d8bc978aaf6769e1e251029bf1d
|
||||
EBUILD parrot-4.5.0.ebuild 2507 SHA256 d2b728ec55520d2b13a6edf8a513356cd9ea614661f238daa685e6ab588a23a5 SHA512 3c1abbd52e62748829acc4b040c754d927a137a32c46cf31a41c82ffd1e68f682318de3e9c6415c3f6d5604e173953434552f81d52e0cfa55b1f07c762ea5616 WHIRLPOOL 124b3095a938f50e75de6e39fae56b9ed5a4285e3244e76fd7ca2b582047da5c7a1a03877232fd981f7b39db919fb3f0e22cb155207e84d8c77f53ddb794e670
|
||||
EBUILD parrot-4.6.0.ebuild 2508 SHA256 127a7cb48fa3513e01e8673371617fccfbf7c40d85056f81c7844a771b7ed4ce SHA512 a890840ad063eaaf4e71acbb8e1339dab8642d8f907b180df8007af2f4bbbf1377fd53dfe7af70a690323b67a180750fb69c3bd03f928a79d8684fcc577b37d8 WHIRLPOOL 79f68dfc9c944d384857a6ac88c36eef91505e161df5fff349b39844063a3b0831e221f16ff9e3c10d5d5fd861025cc4847c92acda5edd2d76afad8362d0c61f
|
||||
EBUILD parrot-4.7.0.ebuild 2507 SHA256 ca078c8eeb630a508afa59aa9c57c04236c3a76b82bbe5fa3101bfea3ad2b394 SHA512 c5495570b99c651c46ac7b81d860d91af57a3503aa6ee3f8c2fbec72520d3f2d77044b83a3d3e05a9ef471e7e3ed6604ec7e95717223bf85a4e8b6843279577b WHIRLPOOL 93d4dea4de9f1e13bab0abc49d2f93c041ec4552909626cb32eba36a3fb2017ffde27e74c936946ab821abfd1d829df30bcf0158fc31e0115d5757737f1bbc75
|
||||
EBUILD parrot-4.8.0.ebuild 2507 SHA256 e92bc531c597b58f8711333fdd8a730a34b5e15373a5133a62680296796dc400 SHA512 e0a8586c04cb491633c08962d25b3fd51da28dc069ca76b3e98fa77b973ad77bf078a8af3758ec26daf7643e1fd518985a0ee4477b7030517b2dd13c21a73b65 WHIRLPOOL e1f52ae80b02f07c4c92126ec36dd232001e8bcbc7e59cd9d62f7af81f9e2cd5fbad7d278c0bc95913ee27073fec8762324553cf73779a8e0a5d76739bb96118
|
||||
EBUILD parrot-4.9.0.ebuild 2511 SHA256 6305c38d607e6aa72c6801c1ded1a4fb9a3cabb76baeb13c895642ea488fd7d1 SHA512 e601fbc86e2c76609035d0aa037ef1abf549228e08c69b56e68e9d5bd4769c80e8cb3b352cc2a4a067bce05018c8d85577b1920198353909313a286ec471c9f3 WHIRLPOOL bd129c2ebd68b84794ecbf3eec069454d1617c29e1eccb1d6d93d076171689fdda2e9d326bc736848d2ff62bca3f36c150584eecefd453cb3c57678b404b9113
|
||||
MISC ChangeLog 8648 SHA256 8a360e9bcea2b8a0e8b6744700fd7a71760777044f8448dee418402baea59a3f SHA512 00b13b45b003fd5cb9591c6b8ad316c89a803e9a9c07899d0d9b9bb67cce4a33e6b0130b16c5f25c260a65fe1e41c4e52f968907fbd3e096cef6a0c29cdd313b WHIRLPOOL 901d71f50b0c23c5e306e68d57ab763005bde33e64566699a1b767a34ee73b3918c58177d25aeb19716b902c272006a798eb27fa4da049cb390b2f0d75348805
|
||||
MISC ChangeLog 8759 SHA256 65562edd5fbf936ecbeb55d181f979528dd9e90b54d95287f2dafd6516a57f80 SHA512 b7325d66ee7c0964500fc7d3e188b1a62d625bb0a1ecec38feec51be01bb9e59b825ba6864464e5a44d1bcc77b2c2edb19f51e262fe0e51aeeecb139932e5a99 WHIRLPOOL 10bced026344192c55472c6c4bbce0c9c28257dd96108c2be22792f6a078ed2f75fe0a4ea07028f6628b325775146e107c395ec6a84ba33dc12b54694b513f39
|
||||
MISC metadata.xml 157 SHA256 6a11fd41a2a210a9760849de398ef8c62cf46cc742d09b2e1781def7848fa1ec SHA512 95158d74d42674de03bc271c8dffa2264759c77681436de71fa9b3ad67f50b09394b0401e6df6dde526bc8dcd6ea666ed6767662bd63c3e92cb33b7b23e4ede8 WHIRLPOOL d3fdf14c384070120719ad4076cd04630790564f5bceda2a273e6481ea27a6fc6291e55d78cbf8bf99b73c7b42e8a1f286927c990702dceee97a63815cb33846
|
||||
|
@ -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
|
||||
}
|
@ -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
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue