/[gentoo-x86]/www-apps/mediawiki/mediawiki-1.19.1.ebuild
Gentoo

Contents of /www-apps/mediawiki/mediawiki-1.19.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Oct 6 04:18:26 2012 UTC (8 months, 1 week ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha134/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/mediawiki/mediawiki-1.19.1.ebuild,v 1.4 2012/08/09 16:39:36 ranger Exp $
4
5 EAPI="4"
6 inherit webapp versionator
7
8 MY_BRANCH=$(get_version_component_range 1-2)
9 MY_P=${P/_/}
10
11 DESCRIPTION="The MediaWiki wiki web application (as used on wikipedia.org)"
12 HOMEPAGE="http://www.mediawiki.org"
13 SRC_URI="http://download.wikimedia.org/mediawiki/${MY_BRANCH}/${MY_P}.tar.gz"
14
15 LICENSE="GPL-2"
16 KEYWORDS="~alpha amd64 ppc x86"
17 IUSE="imagemagick mysql postgres sqlite"
18
19 RDEPEND=">=dev-lang/php-5.3[mysql?,postgres?,session,xml,xmlreader]
20 imagemagick? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) )
21 !imagemagick? ( dev-lang/php[gd] )
22 sqlite? (
23 dev-db/sqlite:3[fts3]
24 >=dev-lang/php-5.3[sqlite3,pdo]
25 )
26 virtual/httpd-php"
27
28 need_httpd_cgi
29
30 RESTRICT="test"
31
32 S=${WORKDIR}/${MY_P}
33
34 src_install() {
35 webapp_src_preinst
36
37 # First we install docs and then copy everything left into htdocs dir
38 # to avoid bugs like #236411.
39
40 # We ensure the directories are prepared for writing. The post-
41 # install instructions guide the user to enable the feature.
42 local DOCS="FAQ HISTORY INSTALL README RELEASE-NOTES-${PV:0:4} UPGRADE"
43 dodoc ${DOCS} docs/*.txt
44 docinto php-memcached
45 dodoc docs/php-memcached/*
46
47 # Clean everything not used at the site...
48 rm -rf ${DOCS} COPYING tests docs
49 find . -name Makefile -delete
50 # and install
51 insinto "${MY_HTDOCSDIR}"
52 doins -r .
53
54 # If imagemagick is enabled then setup for image upload.
55 # We ensure the directory is prepared for writing.
56 if use imagemagick ; then
57 webapp_serverowned "${MY_HTDOCSDIR}"/images
58 fi
59
60 webapp_postinst_txt en "${FILESDIR}/postinstall-1.18-en.txt"
61 webapp_postupgrade_txt en "${FILESDIR}/postupgrade-1.16-en.txt"
62 webapp_src_install
63 }
64
65 pkg_preinst() {
66 prev_install="false"
67 if has_version ${CATEGORY}/${PN} ; then
68 prev_install="true"
69 fi
70 }
71
72 pkg_postinst() {
73 webapp_pkg_postinst
74
75 if ${prev_install} ; then
76 einfo
77 elog "=== Consult the release notes ==="
78 elog "Before doing anything, stop and consult the release notes"
79 elog "/usr/share/doc/${PF}/RELEASE-NOTES.bz2"
80 elog
81 elog "These detail bug fixes, new features and functionality, and any"
82 elog "particular points that may need to be noted during the upgrade procedure."
83 einfo
84 ewarn "Back up existing files and the database before upgrade."
85 ewarn "http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki"
86 ewarn "provides an overview of the backup process."
87 einfo
88 fi
89 }

  ViewVC Help
Powered by ViewVC 1.1.20