/[gentoo-x86]/www-apps/mythweb/mythweb-0.25.2.ebuild
Gentoo

Contents of /www-apps/mythweb/mythweb-0.25.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jul 17 00:30:14 2012 UTC (2 years, 3 months ago) by cardoe
Branch: MAIN
Version bump

(Portage version: 2.1.10.65/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/mythweb/mythweb-0.25.1_p20120715.ebuild,v 1.3 2012/07/16 22:02:57 cardoe Exp $
4
5 EAPI=4
6
7 inherit eutils webapp
8
9 #BACKPORTS="4f6ac2a60b"
10 # Release version
11 MY_PV="${PV%_p*}"
12 MY_P="mythplugins-${MY_PV}"
13
14 DESCRIPTION="PHP scripts intended to manage MythTV from a web browser."
15 HOMEPAGE="http://www.mythtv.org"
16 LICENSE="GPL-2"
17 SRC_URI="ftp://ftp.osuosl.org/pub/mythtv/${MY_P}.tar.bz2
18 ${BACKPORTS:+http://dev.gentoo.org/~cardoe/distfiles/${MY_P}-${BACKPORTS}.tar.xz}"
19 IUSE=""
20 KEYWORDS="~amd64 ~ppc ~x86"
21
22 RDEPEND="dev-lang/php:5.3[json,mysql,session,posix]
23 virtual/httpd-php:5.3
24 dev-perl/DBI
25 dev-perl/DBD-mysql
26 dev-perl/HTTP-Date
27 dev-perl/Net-UPnP"
28
29 DEPEND="${RDEPEND}"
30
31 need_httpd_cgi
32
33 S="${WORKDIR}/${MY_P}/${PN}"
34
35 src_prepare() {
36 cd "${S}"/../
37
38 [[ -n ${BACKPORTS} ]] && \
39 EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${S}/../patches" \
40 epatch
41
42 epatch_user
43 }
44
45 src_configure() {
46 :
47 }
48
49 src_compile() {
50 :
51 }
52
53 src_install() {
54 webapp_src_preinst
55
56 # Install docs
57 cd "${S}"
58 dodoc README INSTALL
59
60 # Install htdocs files
61 insinto "${MY_HTDOCSDIR}"
62 doins mythweb.php
63 doins -r classes
64 doins -r configuration
65 doins -r data
66 doins -r includes
67 doins -r js
68 doins -r modules
69 doins -r skins
70 doins -r tests
71 exeinto "${MY_HTDOCSDIR}"
72 doexe mythweb.pl
73
74 # Install our server config files
75 webapp_server_configfile apache mythweb.conf.apache mythweb.conf
76 webapp_server_configfile lighttpd mythweb.conf.lighttpd mythweb.conf
77 webapp_server_configfile nginx "${FILESDIR}"/mythweb.conf.nginx \
78 mythweb.include
79
80 # Data needs to be writable and modifiable by the web server
81 webapp_serverowned -R "${MY_HTDOCSDIR}"/data
82
83 # Message to display after install
84 webapp_postinst_txt en "${FILESDIR}"/0.25-postinstall-en.txt
85
86 # Script to set the correct defaults on install
87 webapp_hook_script "${FILESDIR}"/reconfig
88
89 webapp_src_install
90 }

  ViewVC Help
Powered by ViewVC 1.1.20