diff options
author | Tim Harder <radhermit@gentoo.org> | 2010-10-24 19:27:20 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2010-10-24 19:27:20 +0000 |
commit | 877142cb55c8cad25f0345b4fd2b2bea3dc31101 (patch) | |
tree | 1c0f654e943d4d1cb408855fb0da63337795d1b9 /www-apps/mediawiki | |
parent | Remove old versions (diff) | |
download | historical-877142cb55c8cad25f0345b4fd2b2bea3dc31101.tar.gz historical-877142cb55c8cad25f0345b4fd2b2bea3dc31101.tar.bz2 historical-877142cb55c8cad25f0345b4fd2b2bea3dc31101.zip |
Remove old versions and patches.
Package-Manager: portage-2.2_rc98/cvs/Linux x86_64
Diffstat (limited to 'www-apps/mediawiki')
-rw-r--r-- | www-apps/mediawiki/ChangeLog | 8 | ||||
-rw-r--r-- | www-apps/mediawiki/Manifest | 24 | ||||
-rw-r--r-- | www-apps/mediawiki/files/access_restrict.patch | 21 | ||||
-rw-r--r-- | www-apps/mediawiki/files/access_restrict_1.12.0.patch | 21 | ||||
-rw-r--r-- | www-apps/mediawiki/files/jobindexlength-mysql.patch | 9 | ||||
-rw-r--r-- | www-apps/mediawiki/files/postinstall-1.11-en.txt | 72 | ||||
-rw-r--r-- | www-apps/mediawiki/mediawiki-1.14.1.ebuild | 141 | ||||
-rw-r--r-- | www-apps/mediawiki/mediawiki-1.15.2.ebuild | 141 |
8 files changed, 22 insertions, 415 deletions
diff --git a/www-apps/mediawiki/ChangeLog b/www-apps/mediawiki/ChangeLog index 565bae012b8d..0a3454714222 100644 --- a/www-apps/mediawiki/ChangeLog +++ b/www-apps/mediawiki/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-apps/mediawiki # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.143 2010/10/24 17:53:25 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.144 2010/10/24 19:27:20 radhermit Exp $ + + 24 Oct 2010; Tim Harder <radhermit@gentoo.org> + -files/postinstall-1.11-en.txt, -mediawiki-1.14.1.ebuild, + -mediawiki-1.15.2.ebuild, -files/access_restrict.patch, + -files/access_restrict_1.12.0.patch, -files/jobindexlength-mysql.patch: + Remove old versions and patches. 24 Oct 2010; Raúl Porcel <armin76@gentoo.org> mediawiki-1.15.5.ebuild: sparc stable wrt #324029 diff --git a/www-apps/mediawiki/Manifest b/www-apps/mediawiki/Manifest index 3cf177cf56fb..efc3eec88218 100644 --- a/www-apps/mediawiki/Manifest +++ b/www-apps/mediawiki/Manifest @@ -1,17 +1,23 @@ -AUX access_restrict.patch 1240 RMD160 29e27a84951daf447da1ecba3e929e94d02e0fb1 SHA1 1ec89557c26b682b2550ff95201a233eca471bec SHA256 22ca5d7e4cd6f3b03f2eb01a5e2ba0a1931998ff56ba3f1ebaa0a60cec436829 -AUX access_restrict_1.12.0.patch 1278 RMD160 f5c8559d7c527604395e7441e3fd2a5818171ac9 SHA1 d4c1265a1565ce1cfe9d6c15503a299bde7d8ddf SHA256 c4b5385d9ac0645285f3e1dc41ebd597f34ba98992d89119bebb2727e6503b1a -AUX jobindexlength-mysql.patch 392 RMD160 a6031a663b1a4af2d15d1cb2ba7b659fe813a175 SHA1 1442974131d16077edccc4f9539a37838b737e14 SHA256 19cf34e4864fd7352b917905480bf9ca5a984ec4d8914990902c907381b0b79b -AUX postinstall-1.11-en.txt 2502 RMD160 a72826f3b8e4b6461c50227d4db5ec5da79e710d SHA1 1dc394d76537ce7b24601bb63ec1ef7f2e49ad7f SHA256 d88c989eac3d99fec4c057eb89ec04a05aabfc57b6503b8da7843bfbc730daf4 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + 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 AUX postupgrade-1.16-en.txt 1512 RMD160 362daf6f25f8a1497209426751aedd4cf78796c7 SHA1 d86a1f9097b4809f3f295e3784d4c4baf79936b6 SHA256 d45dd49ecfd27f3dee9296925befbf334437035e311c985db78ac6132b990877 -DIST mediawiki-1.14.1.tar.gz 10359679 RMD160 d4506627c48b95341cb72823080c34fcd9b704bc SHA1 7248752cf937f4c14750bf12eb30736ba060cc17 SHA256 0c41845e069ce1f3a716892e6c8e529ee7a112a7f9e50ec2a9c9c6b34d0ba690 -DIST mediawiki-1.15.2.tar.gz 11469228 RMD160 46171059799d5a74b535523f562d3a5db7066f55 SHA1 c1e7e7243a052f3f9719f78573980c16f25da4b2 SHA256 6b1e5f6d385214853452f36331aa952523bd40fc2765761d9788b827cfc5b704 DIST mediawiki-1.15.5.tar.gz 11595008 RMD160 5113beb1df46c56275a90d5a1cb85c2b01ca541f SHA1 b157fe37bb89c78e5ffa0f27b14beb886db3a5f4 SHA256 f838c94af81e018dcf11f77674d2a363e97b8832d0d66416294fd301db720ab5 DIST mediawiki-1.16.0.tar.gz 12647934 RMD160 dc65164fd92bdfbc22992652cd31789d08527936 SHA1 41d6dc0530eb00fd96f48690b8d7041d2b7fd7f3 SHA256 81abaf3393cfbffb464f9c2da8c091983b49bbbb09d156669b443042cd48ac92 -EBUILD mediawiki-1.14.1.ebuild 4118 RMD160 d085d5a25fa72f69d90aafe74ede22c1b41216a2 SHA1 b5ed1ebbbac9922754a6f4ca8d2d58d72006254d SHA256 bae459188d79c3c5bd126e33be4a57753d8faf0847c3a8ccf9dc89796c680676 -EBUILD mediawiki-1.15.2.ebuild 4117 RMD160 17385de26d61fc83f93e371b3511222222bc22a6 SHA1 75de4dd65baa435b74bb36182a2ead48215f44ad SHA256 5544bdc1ff3ee84d55f3b31de182a69e6fde46b1ffe9a33116e0eaf8696ae8ef EBUILD mediawiki-1.15.5.ebuild 3694 RMD160 bcd09ac38442e6f0b15820f91d682e4b98724467 SHA1 73a88391ec68259bdb4d72551c675e22285bfe44 SHA256 ae4c71114568f053f7d45bdaf342c32e01d6417e119fcf1427e9508983eaf06d EBUILD mediawiki-1.16.0.ebuild 3615 RMD160 8629b5e8234f7c806b611aa7a6f41067cd1024af SHA1 c67a6c4c004e8a138fc4c8a785387ddfe6862cf3 SHA256 fc9d23adc94715a2122c7c4e17e2bd6230b33bc969453c37650865c8f9a88f05 -MISC ChangeLog 24841 RMD160 3f566e57f0e8f100ef170b9549e9671c7955d3c5 SHA1 a6b3f8febcf1786bd8dc9e21a148bf78dc6388a3 SHA256 5de95216760bd784705284e93f037c58b58875b4025583a872d214741a9f0961 +MISC ChangeLog 25120 RMD160 3b885b82717f61877e4e9a759ae57c7675b472fd SHA1 c62dead4b2f8cb93fd748a958faaca73294b6291 SHA256 b3af6ce0e9bee7c69bebfc7ba9f86532feb088425bade1af8c8817c65310b03a MISC metadata.xml 295 RMD160 0e99ed39b17f196d96fa661725f18447202c793a SHA1 3d63cc41895a26fde229f1394541cf6792fbc016 SHA256 ac52057208794d9f818ca0f56f292885eac738678c8fcdf56e099e98ce953593 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iQEcBAEBAgAGBQJMxIihAAoJEEqz6FtPBkyjZoAH/2FcspJRhH2UFvfH0inWpz8A +MYHilC2n21IkLDj+A61hnTuTFgJnzn00X8F5V8/6KUGDnYmo3rkV7wu5lNhmWTsV +e4pM5FqDK94gbblu3F3ApVtcQg+Bu5zWRd7efVQH60oPt1lePtGgmnerkppwEQ1+ +7M4IwNkt9h3Kq93kljhkE1Nya7c/EaW1gDcIyYOHKwZ28/jekTukDXaTzWJC6dZ3 +xsXkuFxHJfEtxbm4QRwTSb/N3lCAqB/4ZuOntYleMTB0yfUkgI6Bjm+P+geBDppw +dpwioNKREBut6Nw6y+EGM5+fzSI3WBWJM0urMWAVrMrH5ZS7Yw2w/2rCa/35C6Q= +=NNN+ +-----END PGP SIGNATURE----- diff --git a/www-apps/mediawiki/files/access_restrict.patch b/www-apps/mediawiki/files/access_restrict.patch deleted file mode 100644 index c4db4eec99a3..000000000000 --- a/www-apps/mediawiki/files/access_restrict.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- mediawiki-1.8.2/config/index.php.orig 2006-12-11 13:44:52.000000000 +0200 -+++ mediawiki-1.8.2/config/index.php 2006-12-11 13:45:22.000000000 +0200 -@@ -1451,6 +1451,18 @@ - # sure that cached pages are cleared. - \$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) ); - \$wgCacheEpoch = max( \$wgCacheEpoch, \$configdate ); -+ -+# Added by Gentoo Developer Philippe Trottier <tchiwam@gentoo.org> -+# This will make the access by default very restricted. This is not supported -+# by mediawiki themself. Here I make a very gross assumtion that everyone will install in english 1st. -+# Please read http://meta.wikimedia.org/wiki/Preventing_Access before filing bug reports -+# -+\$wgGroupPermissions['*']['createaccount'] = false; -+\$wgGroupPermissions['*']['edit'] = false; -+\$wgWhitelistRead = array( \"Main Page\", \"Special:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); -+# \$wgWhitelistRead = array( \"Hauptseite\", \"Spezial:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); -+# \$wgWhitelistRead = array( \"Pagina principale\", \"Speciale:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); -+\$wgGroupPermissions['*']['read'] = false; - "; ## End of setting the $localsettings string - - // Keep things in Unix line endings internally; diff --git a/www-apps/mediawiki/files/access_restrict_1.12.0.patch b/www-apps/mediawiki/files/access_restrict_1.12.0.patch deleted file mode 100644 index ccf68b636942..000000000000 --- a/www-apps/mediawiki/files/access_restrict_1.12.0.patch +++ /dev/null @@ -1,21 +0,0 @@ ---- mediawiki-1.12.0/config/index.php.orig 2008-03-20 23:08:49.000000000 +0100 -+++ mediawiki-1.12.0/config/index.php 2008-05-12 19:57:05.000000000 +0200 -@@ -1692,6 +1692,18 @@ - # When you make changes to this configuration file, this will make - # sure that cached pages are cleared. - \$wgCacheEpoch = max( \$wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) ); -+ -+# Added by Gentoo Developer Philippe Trottier <tchiwam@gentoo.org> -+# This will make the access by default very restricted. This is not supported -+# by mediawiki themself. Here I make a very gross assumtion that everyone will install in english 1st. -+# Please read http://meta.wikimedia.org/wiki/Preventing_Access before filing bug reports -+# -+\$wgGroupPermissions['*']['createaccount'] = false; -+\$wgGroupPermissions['*']['edit'] = false; -+\$wgWhitelistRead = array( \"Main Page\", \"Special:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); -+# \$wgWhitelistRead = array( \"Hauptseite\", \"Spezial:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); -+# \$wgWhitelistRead = array( \"Pagina principale\", \"Speciale:Userlogin\", \"-\", \"MediaWiki:Monobook.css\" ); -+\$wgGroupPermissions['*']['read'] = false; - "; ## End of setting the $localsettings string - - // Keep things in Unix line endings internally; diff --git a/www-apps/mediawiki/files/jobindexlength-mysql.patch b/www-apps/mediawiki/files/jobindexlength-mysql.patch deleted file mode 100644 index ad61803eee0e..000000000000 --- a/www-apps/mediawiki/files/jobindexlength-mysql.patch +++ /dev/null @@ -1,9 +0,0 @@ ---- mediawiki-1.7.1/maintenance/archives/patch-job.sql.orig 2006-12-11 12:41:04.000000000 +0200 -+++ mediawiki-1.7.1/maintenance/archives/patch-job.sql 2006-12-11 12:41:17.000000000 +0200 -@@ -16,5 +16,5 @@ - job_params blob NOT NULL default '', - - PRIMARY KEY job_id (job_id), -- KEY (job_cmd, job_namespace, job_title) -+ KEY (job_cmd(128), job_namespace, job_title(128)) - ) TYPE=InnoDB; diff --git a/www-apps/mediawiki/files/postinstall-1.11-en.txt b/www-apps/mediawiki/files/postinstall-1.11-en.txt deleted file mode 100644 index 375599e1ad99..000000000000 --- a/www-apps/mediawiki/files/postinstall-1.11-en.txt +++ /dev/null @@ -1,72 +0,0 @@ -1. Completing setup: - -To complete installation cd into the MediaWiki install location, but -make sure to start mysql first. - -$ /etc/init.d/mysql start -$ cd ${MY_INSTALLDIR} - -Then temporarily make the MediaWiki /config directory writable -to the user the web server is running as. The quickest way is -to make the directory world writable. For example: - -$ chmod a+w config - -Then access it via a web browser, for example: - -lynx http://${VHOST_HOSTNAME}${VHOST_APPDIR}/config/ - -2. After setup move the newly created LocalSettings.php from the config/ -directory to the main mediawiki directory, for example: - -$ mv config/LocalSettings.php . - -Remember to restore safe permissions to the MediaWiki config/ and -LocalSettings.php (which contains clear-text passwords). - -$ chmod a-w config -$ chmod ug=r,o= LocalSettings.php -$ chown root:apache LocalSettings.php - -After these steps MediaWiki should be accesable at -http://${VHOST_HOSTNAME}${VHOST_APPDIR}/ - -3. Enabling Optional Features: - -If you wish to enable image uploads then you must manually edit the -LocalSettings.php file to uncomment the \$wgEnableUploads line. -If MediaWiki was built with the imagemagick USE-flag the directory -permissions are correct, otherwise you must install ImageMagick and -also adjust permissions on the images directory to allow the server -to write. For example: - -$ chown apache:apache ${MY_INSTALLDIR}/images - -Math Support: - -If you wish to enable the math support then you must manually edit" -the LocalSettings.php file to uncomment the \$wgUseTeX line. -MediaWiki must have been built with the math USE-flag enabled or the -necessary support executable will not be present. -You may also have to execute - -$ texconfig dvips printcmd - - -if you have not configured tetex before. - - -4. Things you need to have on the server: - -- SQL database of your choice and support for that database compiled in PHP -We check for required PHP features for mysql and postgres use flags in the ebuild; -you are on your own if you are using a different kind of DB backend. -- dev-php/PEAR-Mail is needed for using external smtp server. - -These are not installed as dependencies since it is possible to run the database -and other services on other machines. - -It is very important that you follow all the major versions upgrade instructions -from the mediawiki.org web page - http://www.mediawiki.org/wiki/Manual:Upgrading - -Do not, I repeat, do not assume that we can upgrade from version to version just -like this. Make backups before upgrading. diff --git a/www-apps/mediawiki/mediawiki-1.14.1.ebuild b/www-apps/mediawiki/mediawiki-1.14.1.ebuild deleted file mode 100644 index 833054fcb33b..000000000000 --- a/www-apps/mediawiki/mediawiki-1.14.1.ebuild +++ /dev/null @@ -1,141 +0,0 @@ -# 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.14.1.ebuild,v 1.6 2010/03/14 19:20:51 armin76 Exp $ - -EAPI="1" -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 )" -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 - -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" - 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 -} diff --git a/www-apps/mediawiki/mediawiki-1.15.2.ebuild b/www-apps/mediawiki/mediawiki-1.15.2.ebuild deleted file mode 100644 index fe101ab5df7a..000000000000 --- a/www-apps/mediawiki/mediawiki-1.15.2.ebuild +++ /dev/null @@ -1,141 +0,0 @@ -# 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="1" -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 )" -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 - -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" - 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 -} |