www-apps/mediawiki: bump
(Portage version: 2.2.0_alpha30-r1/svn/Linux x86_64, RepoMan options: --force) git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2898 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
parent
cd98434459
commit
f83863ab2e
@ -1,7 +1,16 @@
|
|||||||
# ChangeLog for www-apps/mediawiki
|
# ChangeLog for www-apps/mediawiki
|
||||||
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
# Copyright 1999-2011 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 $
|
# $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/ChangeLog,v 1.136 2010/04/15 20:25:15 maekke Exp $
|
||||||
|
|
||||||
|
*mediawiki-1.16.4 (23 Apr 2011)
|
||||||
|
*mediawiki-1.16.3 (23 Apr 2011)
|
||||||
|
*mediawiki-1.16.2 (23 Apr 2011)
|
||||||
|
*mediawiki-1.16.1 (23 Apr 2011)
|
||||||
|
|
||||||
|
23 Apr 2011; Mario Fetka <mario.fetka@gmail.com> +mediawiki-1.16.1.ebuild,
|
||||||
|
+mediawiki-1.16.2.ebuild, +mediawiki-1.16.3.ebuild, +mediawiki-1.16.4.ebuild:
|
||||||
|
bump
|
||||||
|
|
||||||
22 Oct 2010; Mario Fetka <mario.fetka@gmail.com> mediawiki-1.16.0.ebuild,
|
22 Oct 2010; Mario Fetka <mario.fetka@gmail.com> mediawiki-1.16.0.ebuild,
|
||||||
+files/mediawiki-1.16.0-restrict-0.8.4-1.patch,
|
+files/mediawiki-1.16.0-restrict-0.8.4-1.patch,
|
||||||
-files/mediawiki-1.16.0-restrict-0.8.4.patch:
|
-files/mediawiki-1.16.0-restrict-0.8.4.patch:
|
||||||
|
@ -4,7 +4,15 @@ AUX postinstall-1.13-en.txt 2751 RMD160 4f6c918bc1b897ed017ab8129a6d5387e982e07a
|
|||||||
AUX postupgrade-1.13-en.txt 1651 RMD160 aaae13a05a0984dfb327b9b5e2c6faa0d3c0c037 SHA1 a97fb9f33d964a795ec159df0628e1897b12e257 SHA256 be7ed53ebce19077a55ce3fbd7eafca7843fffc0c5e821549a4e2e1db9c560bf
|
AUX postupgrade-1.13-en.txt 1651 RMD160 aaae13a05a0984dfb327b9b5e2c6faa0d3c0c037 SHA1 a97fb9f33d964a795ec159df0628e1897b12e257 SHA256 be7ed53ebce19077a55ce3fbd7eafca7843fffc0c5e821549a4e2e1db9c560bf
|
||||||
DIST mediawiki-1.15.5.tar.gz 11595008 RMD160 5113beb1df46c56275a90d5a1cb85c2b01ca541f SHA1 b157fe37bb89c78e5ffa0f27b14beb886db3a5f4 SHA256 f838c94af81e018dcf11f77674d2a363e97b8832d0d66416294fd301db720ab5
|
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
|
DIST mediawiki-1.16.0.tar.gz 12647934 RMD160 dc65164fd92bdfbc22992652cd31789d08527936 SHA1 41d6dc0530eb00fd96f48690b8d7041d2b7fd7f3 SHA256 81abaf3393cfbffb464f9c2da8c091983b49bbbb09d156669b443042cd48ac92
|
||||||
|
DIST mediawiki-1.16.1.tar.gz 12651399 RMD160 4af3d31325682801062b898736eaecd77175d2f9 SHA1 9287498265f2d881e19731fba303bd59bad61fe9 SHA256 ac6b7f40d50aabd10b708f9119118cd404414b137f371192696cebdd32877abd
|
||||||
|
DIST mediawiki-1.16.2.tar.gz 13072216 RMD160 27173b5dbdca9733fa9e55b1c04c8d61071f68cd SHA1 cb8565fafc847d8a0d59f4fdb7a09183267c4d5c SHA256 c33be7df9f705df07ab8bdb53cf0ed2c993819b3feaffa96fbcd123b50c78454
|
||||||
|
DIST mediawiki-1.16.3.tar.gz 13192922 RMD160 5d24f4de5b94d981f279b9ca5f9fe32df6f78cc7 SHA1 e82d815f48fb56edc00aad36ff2a8cd6cfdfafdd SHA256 1b53e5ea79e560e75e12b0f9c454832ef9f600b3366a95e3539434e735e336b0
|
||||||
|
DIST mediawiki-1.16.4.tar.gz 13196153 RMD160 7a438be56ebf57e363769b567add173ac5edbb71 SHA1 a6917e906f3979806aacdd6bd186c74d7e248dd9 SHA256 59b39e9dabb8df297a9dcb4d66920294b3f86ad755739d0bd6dc40cf52a69c08
|
||||||
EBUILD mediawiki-1.15.5.ebuild 3686 RMD160 3b744c35d167e3a3532f87607c9f13e960bba595 SHA1 9c690b35fd2912309ff8410cf6f976e7ced074e1 SHA256 a93417a93d47d500c4eb5bb6f555dd13414e2fa506c39babbbb3f479bd18539c
|
EBUILD mediawiki-1.15.5.ebuild 3686 RMD160 3b744c35d167e3a3532f87607c9f13e960bba595 SHA1 9c690b35fd2912309ff8410cf6f976e7ced074e1 SHA256 a93417a93d47d500c4eb5bb6f555dd13414e2fa506c39babbbb3f479bd18539c
|
||||||
EBUILD mediawiki-1.16.0.ebuild 3697 RMD160 f063729d1e07bfd0b2154ad49fb1367b80b8ded4 SHA1 2fdea7d54a8b7d10b3a39537c33491b6cd3ffb91 SHA256 87efde0ada20de66e75b3a719f489ef82070cd6e6be4396322a71b74aeab94be
|
EBUILD mediawiki-1.16.0.ebuild 3697 RMD160 f063729d1e07bfd0b2154ad49fb1367b80b8ded4 SHA1 2fdea7d54a8b7d10b3a39537c33491b6cd3ffb91 SHA256 87efde0ada20de66e75b3a719f489ef82070cd6e6be4396322a71b74aeab94be
|
||||||
MISC ChangeLog 24236 RMD160 6b3bf36fd2aad0a25da3d3fdecf10a868c9a58f2 SHA1 e3a3814c02a20acb52778b9e58e325d3aa33800c SHA256 95401a36b2d1984b55b57dbdf05896dae304e78c5abe7016877cf829c6c2a9de
|
EBUILD mediawiki-1.16.1.ebuild 3697 RMD160 ad3153950972d9b64181ed8000b4507b800a571c SHA1 f9f610442d508771808009244b52d401f5574625 SHA256 69b53f05ff9cf3ad5864e25f7e6cd6f2bcbbbb824af9082d39c2b92aa912e155
|
||||||
|
EBUILD mediawiki-1.16.2.ebuild 3697 RMD160 ad3153950972d9b64181ed8000b4507b800a571c SHA1 f9f610442d508771808009244b52d401f5574625 SHA256 69b53f05ff9cf3ad5864e25f7e6cd6f2bcbbbb824af9082d39c2b92aa912e155
|
||||||
|
EBUILD mediawiki-1.16.3.ebuild 3697 RMD160 ad3153950972d9b64181ed8000b4507b800a571c SHA1 f9f610442d508771808009244b52d401f5574625 SHA256 69b53f05ff9cf3ad5864e25f7e6cd6f2bcbbbb824af9082d39c2b92aa912e155
|
||||||
|
EBUILD mediawiki-1.16.4.ebuild 3697 RMD160 ad3153950972d9b64181ed8000b4507b800a571c SHA1 f9f610442d508771808009244b52d401f5574625 SHA256 69b53f05ff9cf3ad5864e25f7e6cd6f2bcbbbb824af9082d39c2b92aa912e155
|
||||||
|
MISC ChangeLog 24530 RMD160 7bdbedca38c8ef6f8b16430216f5fe3e3db5396a SHA1 5c6d6e630a7dac4545f7af933f008aa56642499f SHA256 2ca4d792f40ec4ca56870dca4641d9dbcdf375811ca1cf9e8ea9d06508af8dec
|
||||||
MISC metadata.xml 418 RMD160 337019d783d66bbadf67162c84d6d3b8b3a8f0f4 SHA1 b49b71fd11a91a2e5f8953cf9a1643abee3c67b3 SHA256 68dd9b135528db0c39e306e60b4e910b402ee121fa1b0dc17107d1ba7c66d0eb
|
MISC metadata.xml 418 RMD160 337019d783d66bbadf67162c84d6d3b8b3a8f0f4 SHA1 b49b71fd11a91a2e5f8953cf9a1643abee3c67b3 SHA256 68dd9b135528db0c39e306e60b4e910b402ee121fa1b0dc17107d1ba7c66d0eb
|
||||||
|
132
www-apps/mediawiki/mediawiki-1.16.1.ebuild
Normal file
132
www-apps/mediawiki/mediawiki-1.16.1.ebuild
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
# Copyright 1999-2011 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 ~arm ppc sparc x86"
|
||||||
|
IUSE="imagemagick math mysql postgres +ocamlopt"
|
||||||
|
|
||||||
|
DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )
|
||||||
|
|| ( <dev-lang/php-5.3[pcre,spl] >=dev-lang/php-5.3 )
|
||||||
|
dev-lang/php[session,xml,mysql?,postgres?]
|
||||||
|
|| ( dev-lang/php[gd] dev-lang/php[gd-external] )
|
||||||
|
ocamlopt? ( math? ( dev-lang/ocaml[ocamlopt] ) )
|
||||||
|
"
|
||||||
|
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() {
|
||||||
|
webapp_src_prepare
|
||||||
|
epatch "${FILESDIR}"/mediawiki-1.16.0-restrict-0.8.4-1.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
132
www-apps/mediawiki/mediawiki-1.16.2.ebuild
Normal file
132
www-apps/mediawiki/mediawiki-1.16.2.ebuild
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
# Copyright 1999-2011 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 ~arm ppc sparc x86"
|
||||||
|
IUSE="imagemagick math mysql postgres +ocamlopt"
|
||||||
|
|
||||||
|
DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )
|
||||||
|
|| ( <dev-lang/php-5.3[pcre,spl] >=dev-lang/php-5.3 )
|
||||||
|
dev-lang/php[session,xml,mysql?,postgres?]
|
||||||
|
|| ( dev-lang/php[gd] dev-lang/php[gd-external] )
|
||||||
|
ocamlopt? ( math? ( dev-lang/ocaml[ocamlopt] ) )
|
||||||
|
"
|
||||||
|
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() {
|
||||||
|
webapp_src_prepare
|
||||||
|
epatch "${FILESDIR}"/mediawiki-1.16.0-restrict-0.8.4-1.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
132
www-apps/mediawiki/mediawiki-1.16.3.ebuild
Normal file
132
www-apps/mediawiki/mediawiki-1.16.3.ebuild
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
# Copyright 1999-2011 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 ~arm ppc sparc x86"
|
||||||
|
IUSE="imagemagick math mysql postgres +ocamlopt"
|
||||||
|
|
||||||
|
DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )
|
||||||
|
|| ( <dev-lang/php-5.3[pcre,spl] >=dev-lang/php-5.3 )
|
||||||
|
dev-lang/php[session,xml,mysql?,postgres?]
|
||||||
|
|| ( dev-lang/php[gd] dev-lang/php[gd-external] )
|
||||||
|
ocamlopt? ( math? ( dev-lang/ocaml[ocamlopt] ) )
|
||||||
|
"
|
||||||
|
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() {
|
||||||
|
webapp_src_prepare
|
||||||
|
epatch "${FILESDIR}"/mediawiki-1.16.0-restrict-0.8.4-1.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
132
www-apps/mediawiki/mediawiki-1.16.4.ebuild
Normal file
132
www-apps/mediawiki/mediawiki-1.16.4.ebuild
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
# Copyright 1999-2011 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 ~arm ppc sparc x86"
|
||||||
|
IUSE="imagemagick math mysql postgres +ocamlopt"
|
||||||
|
|
||||||
|
DEPEND="math? ( >=dev-lang/ocaml-3.0.6 )
|
||||||
|
|| ( <dev-lang/php-5.3[pcre,spl] >=dev-lang/php-5.3 )
|
||||||
|
dev-lang/php[session,xml,mysql?,postgres?]
|
||||||
|
|| ( dev-lang/php[gd] dev-lang/php[gd-external] )
|
||||||
|
ocamlopt? ( math? ( dev-lang/ocaml[ocamlopt] ) )
|
||||||
|
"
|
||||||
|
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() {
|
||||||
|
webapp_src_prepare
|
||||||
|
epatch "${FILESDIR}"/mediawiki-1.16.0-restrict-0.8.4-1.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user