/[gentoo-x86]/www-apps/moinmoin/moinmoin-1.9.5.ebuild
Gentoo

Contents of /www-apps/moinmoin/moinmoin-1.9.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Sep 27 06:51:37 2012 UTC (23 months, 2 weeks ago) by nativemad
Branch: MAIN
Changes since 1.3: +2 -2 lines
x86 stable, see bug 433898

(Portage version: 2.1.11.9/cvs/Linux i686)

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/moinmoin/moinmoin-1.9.5.ebuild,v 1.3 2012/09/25 11:18:43 blueness Exp $
4
5 EAPI="4"
6 PYTHON_DEPEND="2:2.5"
7 PYTHON_USE_WITH="xml"
8 PYTHON_MODNAME="MoinMoin"
9
10 inherit distutils webapp
11
12 MY_PN="moin"
13
14 DESCRIPTION="Python WikiClone"
15 HOMEPAGE="http://moinmo.in/"
16 SRC_URI="http://static.moinmo.in/files/${MY_PN}-${PV}.tar.gz"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="amd64 ~arm ppc x86"
21 IUSE=""
22
23 RDEPEND=">=dev-python/docutils-0.4
24 >=dev-python/flup-1.0.2
25 >=dev-python/pygments-1.1.1
26 >=dev-python/werkzeug-0.7.0"
27
28 need_httpd_cgi
29
30 S=${WORKDIR}/${MY_PN}-${PV}
31
32 WEBAPP_MANUAL_SLOT="yes"
33
34 pkg_setup() {
35 if has_version "<www-apps/moinmoin-1.9" ; then
36 ewarn
37 ewarn "You already have a version of moinmoin prior to 1.9 installed."
38 ewarn "moinmoin-1.9 has a very different configuration than 1.8 (among"
39 ewarn "other changes, static content is no longer installed under the"
40 ewarn "htdocs directory)."
41 ewarn
42 ewarn "Please read http://moinmo.in/MoinMoinRelease1.9 and"
43 ewarn "README.migration in /usr/share/doc/${PF}"
44 ewarn
45 fi
46
47 python_set_active_version 2
48 python_pkg_setup
49 webapp_pkg_setup
50 }
51
52 src_prepare() {
53 # remove bundled -- parsedatetime and xappy not packaged yet
54 rm -r MoinMoin/support/{pygments,werkzeug,flup} || die
55 sed -i "/\(flup\|pygments\|werkzeug\)/d" setup.py || die
56 }
57
58 src_install() {
59 webapp_src_preinst
60 distutils_src_install
61
62 dodoc README docs/CHANGES* docs/README.migration
63 dohtml docs/INSTALL.html
64 rm -rf README docs/
65
66 cd "${D}"/usr/share/moin
67
68 insinto "${MY_HTDOCSDIR}"
69 doins -r server/moin.cgi
70 fperms +x "${MY_HTDOCSDIR}/moin.cgi"
71
72 insinto "${MY_HOSTROOTDIR}"/${PF}
73 doins -r data underlay config/wikiconfig.py
74
75 insinto "${MY_HOSTROOTDIR}"/${PF}/altconfigs
76 doins -r config
77
78 insinto "${MY_HOSTROOTDIR}"/${PF}/altserver
79 doins -r server
80
81 # data needs to be server owned per moin devs
82 cd "${D}/${MY_HOSTROOTDIR}"/${PF}
83 for file in $(find data underlay); do
84 webapp_serverowned "${MY_HOSTROOTDIR}/${PF}/${file}"
85 done
86
87 webapp_configfile "${MY_HOSTROOTDIR}"/${PF}/wikiconfig.py
88 webapp_hook_script "${FILESDIR}"/reconfig-1.9.4
89 webapp_postinst_txt en "${FILESDIR}"/postinstall-en-1.9.4.txt
90
91 webapp_src_install
92 }
93
94 pkg_postinst() {
95 ewarn
96 ewarn "If you are upgrading from an older version, please read"
97 ewarn "README.migration in /usr/share/doc/${PF}"
98 ewarn
99
100 distutils_pkg_postinst
101 webapp_pkg_postinst
102 }

  ViewVC Help
Powered by ViewVC 1.1.20