summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Trottier <tchiwam@gentoo.org>2006-12-07 09:12:40 +0000
committerPhilippe Trottier <tchiwam@gentoo.org>2006-12-07 09:12:40 +0000
commit631151b1b8e74ae013c79c60533f4a5c0a69264d (patch)
tree1f9d1e7dac9ee442e723687c81c1c8892ca43491 /www-apps
parentMask the libedit useflag on 6.1 profile, as we're migrating (diff)
downloadgentoo-2-631151b1b8e74ae013c79c60533f4a5c0a69264d.tar.gz
gentoo-2-631151b1b8e74ae013c79c60533f4a5c0a69264d.tar.bz2
gentoo-2-631151b1b8e74ae013c79c60533f4a5c0a69264d.zip
Latest version of mediawiki with postgres support
(Portage version: 2.1.1-r2)
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/mediawiki/ChangeLog7
-rw-r--r--www-apps/mediawiki/files/digest-mediawiki-1.8.23
-rw-r--r--www-apps/mediawiki/mediawiki-1.7.1.ebuild4
-rw-r--r--www-apps/mediawiki/mediawiki-1.8.2.ebuild157
4 files changed, 168 insertions, 3 deletions
diff --git a/www-apps/mediawiki/ChangeLog b/www-apps/mediawiki/ChangeLog
index 34e91f3639f3..988952c06dc5 100644
--- a/www-apps/mediawiki/ChangeLog
+++ b/www-apps/mediawiki/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for www-apps/mediawiki
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.66 2006/11/23 17:17:48 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.67 2006/12/07 09:12:39 tchiwam Exp $
+
+
+*mediawiki-1.8.2 (05 Dec 2006)
+ 05 Dec 2006; Philippe Trottier <tchiwam@gentoo.org> mediawiki-1.8.2.ebuild:
+ version update, support for postgres, bug#156334, bug#152089, bug#147668
23 Nov 2006; Francesco Riosa <vivo@gentoo.org> mediawiki-1.4.15.ebuild,
mediawiki-1.5.8.ebuild, mediawiki-1.6.8.ebuild, mediawiki-1.7.1.ebuild:
diff --git a/www-apps/mediawiki/files/digest-mediawiki-1.8.2 b/www-apps/mediawiki/files/digest-mediawiki-1.8.2
new file mode 100644
index 000000000000..49287c5870b5
--- /dev/null
+++ b/www-apps/mediawiki/files/digest-mediawiki-1.8.2
@@ -0,0 +1,3 @@
+MD5 79113e7ea8d7e7c5437e633259af4a11 mediawiki-1.8.2.tar.gz 3491471
+RMD160 85399c70d20d2a68a8e37944a84079655cc1b434 mediawiki-1.8.2.tar.gz 3491471
+SHA256 1ff1ae27049e77db1af149d6bca193d13dd39a7586f3c14617e14abc46db129d mediawiki-1.8.2.tar.gz 3491471
diff --git a/www-apps/mediawiki/mediawiki-1.7.1.ebuild b/www-apps/mediawiki/mediawiki-1.7.1.ebuild
index 0935135b42e5..1f3343b35e52 100644
--- a/www-apps/mediawiki/mediawiki-1.7.1.ebuild
+++ b/www-apps/mediawiki/mediawiki-1.7.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.7.1.ebuild,v 1.4 2006/11/23 17:17:48 vivo Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.7.1.ebuild,v 1.5 2006/12/07 09:12:39 tchiwam Exp $
inherit webapp depend.php
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/wikipedia/${P/.0_/}.tar.gz"
RESTRICT="nomirror"
LICENSE="GPL-2"
#KEYWORDS="~amd64 ~ppc ~sparc ~x86"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+KEYWORDS="amd64 ppc sparc x86"
IUSE="imagemagick math"
S="${WORKDIR}/${P/.0_/}"
diff --git a/www-apps/mediawiki/mediawiki-1.8.2.ebuild b/www-apps/mediawiki/mediawiki-1.8.2.ebuild
new file mode 100644
index 000000000000..80fd123cf093
--- /dev/null
+++ b/www-apps/mediawiki/mediawiki-1.8.2.ebuild
@@ -0,0 +1,157 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.8.2.ebuild,v 1.1 2006/12/07 09:12:39 tchiwam Exp $
+
+inherit webapp depend.php
+
+DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
+HOMEPAGE="http://www.mediawiki.org"
+SRC_URI="mirror://sourceforge/wikipedia/${P/.0_/}.tar.gz"
+RESTRICT="nomirror"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="imagemagick math mysql postgres"
+
+S="${WORKDIR}/${P/.0_/}"
+
+DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )"
+
+RDEPEND="
+ >=dev-lang/php-5.1.4-r6
+ mysql? ( >=virtual/mysql-4.0 )
+ postgres? ( >=dev-db/postgresql-8.1.5 )
+ math? (
+ virtual/tetex
+ virtual/ghostscript
+ media-gfx/imagemagick
+ )
+ imagemagick? (
+ media-gfx/imagemagick
+ )
+"
+
+need_php
+
+pkg_setup() {
+ webapp_pkg_setup
+ require_php_with_use pcre session
+ if use mysql ; then
+ require_php_with_use mysql
+ fi
+ if use postgres ; then
+ require_php_with_use postgres
+ fi
+ require_gd
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/jobindexlength-mysql4.patch
+ epatch ${FILESDIR}/jobindexlength-mysql5.patch
+}
+
+src_compile() {
+ if use math; then
+ einfo "Compiling math support"
+ cd math || die
+ emake || die
+ else
+ einfo "No math support enabled. Skipping."
+ fi
+
+ # TODO: think about includes/zhtable/ support
+}
+
+src_install() {
+ webapp_src_preinst
+
+ # copy the app's main files excluding math support, docs, and tests
+ local DIRS=(
+ "bin"
+ "config"
+ "extensions"
+ "images"
+ "includes"
+ "includes/cbt"
+ "includes/normal"
+ "includes/templates"
+ "includes/zhtable"
+ "languages"
+ "locale"
+ "maintenance"
+ "maintenance/archives"
+ "maintenance/dtrace"
+ "maintenance/mysql5"
+ "maintenance/storage"
+ "skins"
+ "skins/chick"
+ "skins/common"
+ "skins/common/images"
+ "skins/common/images/icons"
+ "skins/disabled"
+ "skins/htmldump"
+ "skins/monobook"
+ "skins/myskin"
+ "skins/simple"
+ )
+ insinto ${MY_HTDOCSDIR}
+ doins *.php *.inc *.phtml
+ for DIR in ${DIRS[*]}; do
+ dodir ${MY_HTDOCSDIR}/${DIR}
+ insinto ${MY_HTDOCSDIR}/${DIR}
+ doins ${DIR}/*
+ test -f ${DIR}/.htaccess && doins ${DIR}/.htaccess
+ done
+
+ # installing some docs
+ local DOCS=(
+ "AdminSettings.sample"
+ "COPYING"
+ "FAQ"
+ "HISTORY"
+ "INSTALL"
+ "README"
+ "RELEASE-NOTES"
+ "UPGRADE"
+ )
+ for DOC in ${DOCS[*]}; do
+ dodoc "${DOC}"
+ rm -f "${DOC}"
+ done
+ dodoc docs/*.txt
+ rm -f docs/*.txt
+
+ docinto php-memcached
+ dodoc docs/php-memcached/*
+
+ # If imagemagick is enabled then setup for image upload.
+ # We ensure the directory is prepared for writing. The post-
+ # install instructions guide the user to enable the feature.
+ if use imagemagick; then
+ webapp_serverowned ${MY_HTDOCSDIR}/images
+ fi
+
+ # 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"
+ dodir ${MY_HTDOCSDIR}/math
+ exeinto ${MY_HTDOCSDIR}/math
+ doexe math/texvc
+
+ # Docs
+ docinto math
+ dodoc math/README math/TODO
+
+ # 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
+
+ webapp_postinst_txt en ${FILESDIR}/postinstall-1.5-en.txt
+ webapp_src_install
+}