Latest version of mediawiki with postgres support
authorPhilippe Trottier <tchiwam@gentoo.org>
Thu, 7 Dec 2006 09:12:39 +0000 (09:12 +0000)
committerPhilippe Trottier <tchiwam@gentoo.org>
Thu, 7 Dec 2006 09:12:39 +0000 (09:12 +0000)
Package-Manager: portage-2.1.1-r2

www-apps/mediawiki/ChangeLog
www-apps/mediawiki/Manifest
www-apps/mediawiki/mediawiki-1.7.1.ebuild
www-apps/mediawiki/mediawiki-1.8.2.ebuild [new file with mode: 0644]

index 34e91f3639f31a21c74919db50eb16a6eaee2424..988952c06dc5f6ac700c572c0f35c3ebbff6d6a9 100644 (file)
@@ -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:
index 939d9e651eca14401b2d64fd6769695d0be3b50a..ed66a7478a594daa1728c70fb17a6edaea31fc86 100644 (file)
@@ -22,6 +22,7 @@ DIST mediawiki-1.4.15.tar.gz 1982704 RMD160 43b679b16a128ba5e40cf446a3ef47994e10
 DIST mediawiki-1.5.8.tar.gz 2287928 RMD160 ecb530a5aa16ac90d87667652fdefc6424a36e38 SHA1 02def0948d508fb00ffef90685b53fd4ed5c6ee9 SHA256 28dbfc2c1602b1039a7408457f7774615e92553ac1b276e7aa55c34458708b61
 DIST mediawiki-1.6.8.tar.gz 2728821 RMD160 a73c03f4e9cb9ca857dcba08eb4addc72d0b67f8 SHA1 b2ac945ceef2cac253a1e73b9de1da5f79aa7e77 SHA256 c2cc2e701007ea7a141567fb86e16a4680b17c03ef617e9d081a7af87aa95a39
 DIST mediawiki-1.7.1.tar.gz 3256428 RMD160 b1117b385971e6e02908e2cf4b610d082d75bad3 SHA1 bdd685d4fe5d7b0d8e0ef2cf9a843bbab60d20ac SHA256 c1b921faedddc14befe1c9593cba80cf6acfe86f21d9eca48617f7a95461bdd2
+DIST mediawiki-1.8.2.tar.gz 3491471 RMD160 85399c70d20d2a68a8e37944a84079655cc1b434 SHA1 d04c9d4c297c7707462626d88cf04d190bd9772b SHA256 1ff1ae27049e77db1af149d6bca193d13dd39a7586f3c14617e14abc46db129d
 EBUILD mediawiki-1.4.15.ebuild 2886 RMD160 d58935c6122fd9892fcb36d404583749d4612f1a SHA1 c6d3b90b0f0aca5de3245142d12588917804ce0c SHA256 4beac8ef3b1c6eae507889731cfd93287de29050d40292f612c7b604637c90d3
 MD5 f663ae99b3fb6aa042c0057e69a4f899 mediawiki-1.4.15.ebuild 2886
 RMD160 d58935c6122fd9892fcb36d404583749d4612f1a mediawiki-1.4.15.ebuild 2886
@@ -34,14 +35,18 @@ EBUILD mediawiki-1.6.8.ebuild 3140 RMD160 5848c9afd98908d907f3743f677585f38ff429
 MD5 d2aa1a1aab1197cb7059e67733f3c194 mediawiki-1.6.8.ebuild 3140
 RMD160 5848c9afd98908d907f3743f677585f38ff4298b mediawiki-1.6.8.ebuild 3140
 SHA256 c062f671252e4723bd105c4a1756c614d73f11867de5b05b1ff803b85e4d56e9 mediawiki-1.6.8.ebuild 3140
-EBUILD mediawiki-1.7.1.ebuild 3288 RMD160 04923266e78dfe7f56c3ed2fba5a94a3fd71deb3 SHA1 7973941eba8435264611ed5cdca34c86fe8aec83 SHA256 d7df8a6880f74ec923dcd8915acffff7c9ce110d940ad718d164fa5f808ebd1b
-MD5 095ef5b8d7059a6c2faa43ce94914363 mediawiki-1.7.1.ebuild 3288
-RMD160 04923266e78dfe7f56c3ed2fba5a94a3fd71deb3 mediawiki-1.7.1.ebuild 3288
-SHA256 d7df8a6880f74ec923dcd8915acffff7c9ce110d940ad718d164fa5f808ebd1b mediawiki-1.7.1.ebuild 3288
-MISC ChangeLog 11419 RMD160 7fb3e32040119e301e6db2dea5d44adae4629d85 SHA1 42b3a4e552cc618bc532559aa42ba0d87443d9e8 SHA256 92ff9964bfc14d44707fd021669652e8f898924171883aeb0a22b8d11805bd28
-MD5 73cff4fd3ac45775b091580eb9f91e83 ChangeLog 11419
-RMD160 7fb3e32040119e301e6db2dea5d44adae4629d85 ChangeLog 11419
-SHA256 92ff9964bfc14d44707fd021669652e8f898924171883aeb0a22b8d11805bd28 ChangeLog 11419
+EBUILD mediawiki-1.7.1.ebuild 3287 RMD160 dc4eefd7230173b4c090f0c776ae7cf86b8f6e68 SHA1 6314b8042c37c5e15e7a14c94e47d2e3d4dc62f5 SHA256 c9509e6cf7106b980e3a42497ceecafe853d061f07d0177995fd57c36cf28f1a
+MD5 2ebdbacaadaf1c268fcfd9f81ec5a517 mediawiki-1.7.1.ebuild 3287
+RMD160 dc4eefd7230173b4c090f0c776ae7cf86b8f6e68 mediawiki-1.7.1.ebuild 3287
+SHA256 c9509e6cf7106b980e3a42497ceecafe853d061f07d0177995fd57c36cf28f1a mediawiki-1.7.1.ebuild 3287
+EBUILD mediawiki-1.8.2.ebuild 3456 RMD160 603c526178c2ca8909ea46a81b551b046955fd82 SHA1 b56e6ad56fbc2b676613dbcfa42dcd1b776b1589 SHA256 563e760272db8bd91c08f4b873dac4ddccf7221305732fc0321ab937bd63d5c2
+MD5 291139e026d6bb33481edd0489c65b8f mediawiki-1.8.2.ebuild 3456
+RMD160 603c526178c2ca8909ea46a81b551b046955fd82 mediawiki-1.8.2.ebuild 3456
+SHA256 563e760272db8bd91c08f4b873dac4ddccf7221305732fc0321ab937bd63d5c2 mediawiki-1.8.2.ebuild 3456
+MISC ChangeLog 11608 RMD160 fb4ec337f56b21fd9165dc9c4ca180c200c1f20f SHA1 41cb2fa61df1133b3944d578fe889642f767bae7 SHA256 4e555f3554d9bb2b8854596ca358556071baba0c99d38ca37cf6f92aec20008f
+MD5 7c89a89b18689b4f3d50d7b94a68fe8f ChangeLog 11608
+RMD160 fb4ec337f56b21fd9165dc9c4ca180c200c1f20f ChangeLog 11608
+SHA256 4e555f3554d9bb2b8854596ca358556071baba0c99d38ca37cf6f92aec20008f ChangeLog 11608
 MISC metadata.xml 366 RMD160 8be6da5afadbc6c6e57d589097d8f702d951bde3 SHA1 4c3b825388a712b4452ba16912b38b9aba76b78e SHA256 dddc4891c17811953d2cae412c4b1a713dc00b3629cd38a5b530c15a0acebcc2
 MD5 6e1b02a80fc901d2eaadf52a50e0b905 metadata.xml 366
 RMD160 8be6da5afadbc6c6e57d589097d8f702d951bde3 metadata.xml 366
@@ -58,3 +63,6 @@ SHA256 ad429d46f83d05cc18445aec8a52afc546df7ad83ace6ce97027f3fea56987a4 files/di
 MD5 578226a99822c123f8b879fbb9b65dd4 files/digest-mediawiki-1.7.1 250
 RMD160 2883d419b27a9786b9b7d6b61a9f51de5c1e1fc5 files/digest-mediawiki-1.7.1 250
 SHA256 8b8c6f5fd02cfce4f54718cc9eb848692635875b5885d9ef705cc5abc486900f files/digest-mediawiki-1.7.1 250
+MD5 3609db13dffc4eca2c8d3c03065dce74 files/digest-mediawiki-1.8.2 250
+RMD160 fa2388c75160698613b7449d9d2a685ad4ff813b files/digest-mediawiki-1.8.2 250
+SHA256 4112a96ead6a4a7c8863887f48191ff8e4cc9c0725eb0378d9947fd05fba083d files/digest-mediawiki-1.8.2 250
index 0935135b42e5fa5a3ac8bc60638d2068114fa162..1f3343b35e522fb1030f78b3b081a8fb20803129 100644 (file)
@@ -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 (file)
index 0000000..80fd123
--- /dev/null
@@ -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
+}