www-apps/mediawiki: add php 5.3

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2422 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2010-09-23 22:03:21 +00:00
parent 16a2c57792
commit cf78247ca1
3 changed files with 153 additions and 1 deletions

View File

@ -2,6 +2,9 @@
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.136 2010/04/15 20:25:15 maekke Exp $
23 Sep 2010; Mario Fetka <mario.fetka@gmail.com> +mediawiki-1.15.5.ebuild:
add php 5.3
01 Jun 2010; Mario Fetka <mario.fetka@gmail.com> ChangeLog:
add restriciton patch and bump

View File

@ -2,6 +2,8 @@ AUX mediawiki-1.15.1-restrict-0.8.4.patch 85120 RMD160 08867fba1a7d10c4bcf9879f4
AUX postinstall-1.13-en.txt 2751 RMD160 4f6c918bc1b897ed017ab8129a6d5387e982e07a SHA1 a4afb248ab7cb7abe25aa9d69533a7fd52401d73 SHA256 cebfe53c219cd6acacffcf0ed24493c0aa3180c89fa954e4a7e458dd0feb62c9
AUX postupgrade-1.13-en.txt 1651 RMD160 aaae13a05a0984dfb327b9b5e2c6faa0d3c0c037 SHA1 a97fb9f33d964a795ec159df0628e1897b12e257 SHA256 be7ed53ebce19077a55ce3fbd7eafca7843fffc0c5e821549a4e2e1db9c560bf
DIST mediawiki-1.15.4.tar.gz 11531488 RMD160 f4879c0f9cb1b8a6f5682f9fad14010703d49c27 SHA1 c00267663a0a05ace4bd28b53b0b3b0f08dad551 SHA256 c9ef415f13efc6b450276d0e7d0d488f4a113bf9c999f411ebb12b0b693a8eae
DIST mediawiki-1.15.5.tar.gz 11595008 RMD160 5113beb1df46c56275a90d5a1cb85c2b01ca541f SHA1 b157fe37bb89c78e5ffa0f27b14beb886db3a5f4 SHA256 f838c94af81e018dcf11f77674d2a363e97b8832d0d66416294fd301db720ab5
EBUILD mediawiki-1.15.4.ebuild 4205 RMD160 e8ef76e76e694176f89e2f73a2ef536604a6511d SHA1 2243d9fa10d29bbc92e321cc4a50887c0917ed92 SHA256 123f4b3cf13159559c9382723d1d5c02afeab3c54171a3f7d70a2a71113a7e17
MISC ChangeLog 23444 RMD160 f08e1f3935430d9a4fdfa080ef540598989cd141 SHA1 3d16aec00df9a17f0fe4f76d5865c0b38fa7e9e2 SHA256 02e5a247ff2c04715dddfcd55120c0b44527017beed33fd4ed253b2fe67c85c5
EBUILD mediawiki-1.15.5.ebuild 4258 RMD160 a8b374e520d34ef5fded2eb81acb0383d09c2e8e SHA1 74ffa0724df1186070adfa5aea4de1096d6dbceb SHA256 3eeeddc65d3a34091b4c19f7ff7af84e1873b8150e30a55527700d25bb603d80
MISC ChangeLog 23536 RMD160 ba060638429ade33b7c7400495e632f782dc0170 SHA1 a3d1278461b08992f44cd409b0e187e6f7789097 SHA256 1498e8c77c117d24865e6f75084ea04ca059e39d9722f09525385997a1bd5851
MISC metadata.xml 418 RMD160 337019d783d66bbadf67162c84d6d3b8b3a8f0f4 SHA1 b49b71fd11a91a2e5f8953cf9a1643abee3c67b3 SHA256 68dd9b135528db0c39e306e60b4e910b402ee121fa1b0dc17107d1ba7c66d0eb

View File

@ -0,0 +1,147 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.15.2.ebuild,v 1.5 2010/04/15 20:25:15 maekke Exp $
EAPI="2"
inherit webapp depend.php versionator eutils
MY_BRANCH=$(get_version_component_range 1-2)
DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
HOMEPAGE="http://www.mediawiki.org"
SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~alpha amd64 ppc sparc x86"
IUSE="imagemagick math mysql postgres +ocamlopt"
DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )
|| ( <dev-lang/php-5.3[pcre] >=dev-lang/php-5.3 )"
RDEPEND="${DEPEND}
math? (
app-text/dvipng
virtual/tex-base
app-text/ghostscript-gpl
media-gfx/imagemagick
)
imagemagick? ( media-gfx/imagemagick )"
RESTRICT="test"
need_httpd_cgi
need_php_httpd
src_prepare() {
epatch "${FILESDIR}"/mediawiki-1.15.1-restrict-0.8.4.patch
}
pkg_setup() {
webapp_pkg_setup
local flags="pcre session spl xml"
use mysql && flags="${flags} mysql"
use postgres && flags="${flags} postgres"
if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \
! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then
die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external"
fi
# see Bug 204812
if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
eerror "In order to build ${PN} with native code support from ocaml"
eerror "You first need to have a native code ocaml compiler."
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
die "Please install ocaml with ocamlopt useflag"
fi
}
src_compile() {
if use math; then
einfo "Compiling math support"
cd math || die
if ! use ocamlopt; then
sed -e "s/ocamlopt/ocamlc/" \
-e "s/cmxa/cma/" \
-e "s/cmx/cmo/g" -i Makefile || die
fi
emake || die
else
einfo "No math support enabled. Skipping."
fi
# TODO: 1. think about includes/zhtable/ support
# 2. generate docs (?): echo '0' | php mwdocgen.php
}
src_install() {
webapp_src_preinst
# First we install math, docs and then copy everything left into htdocs dir
# to avoid bugs like #236411.
# If we've enabled math USE-flag, install math support.
# We ensure the directories are prepared for writing. The post-
# install instructions guide the user to enable the feature.
if use math; then
einfo "Installing math support"
exeinto "${MY_HTDOCSDIR}"/math
doexe math/texvc || die "Failed to create math support executable."
docinto math
dodoc math/{README,TODO}
docinto ""
# Working directories. Server writeable.
dodir "${MY_HTDOCSDIR}"/images/math
webapp_serverowned "${MY_HTDOCSDIR}"/images/math
dodir "${MY_HTDOCSDIR}"/images/tmp
webapp_serverowned "${MY_HTDOCSDIR}"/images/tmp
fi
local DOCS="FAQ HISTORY INSTALL README* RELEASE-NOTES UPGRADE CREDITS"
dodoc ${DOCS} docs/*.txt
docinto php-memcached
dodoc docs/php-memcached/*
# Clean everything not used at the site...
rm -rf ${DOCS} COPYING tests math t docs
find . -name Makefile -delete
# and install
insinto "${MY_HTDOCSDIR}"
doins -r .
# If imagemagick is enabled then setup for image upload.
# We ensure the directory is prepared for writing.
if use imagemagick; then
webapp_serverowned "${MY_HTDOCSDIR}"/images
fi
webapp_postinst_txt en "${FILESDIR}/postinstall-1.13-en.txt"
webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.13-en.txt"
webapp_src_install
}
pkg_preinst() {
prev_instal="false"
if has_version ${CATEGORY}/${PN}; then
prev_instal="true"
fi
}
pkg_postinst() {
webapp_pkg_postinst
if ${prev_instal}; then
einfo
elog "=== Consult the release notes ==="
elog "Before doing anything, stop and consult the release notes"
elog "/usr/share/doc/${PF}/RELEASE-NOTES.bz2"
elog
elog "These detail bug fixes, new features and functionality, and any"
elog "particular points that may need to be noted during the upgrade procedure."
einfo
ewarn "Back up existing files and the database before upgrade."
ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki"
ewarn "provides an overview of the backup process."
einfo
fi
}