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

Contents of /www-apps/mythweb/mythweb-0.24_p20110310.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jul 17 01:14:33 2012 UTC (11 months ago) by cardoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove older version

(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.24_p20110310.ebuild,v 1.2 2012/07/10 04:38:34 cardoe Exp $
4
5 EAPI=2
6
7 MYTHTV_VERSION=""
8 MYTHTV_BRANCH="fixes/0.24"
9 MYTHTV_REV="d0f3ba16ab2de06b5339f11f07d05f2cc21f74b0"
10 MYTHTV_SREV="d0f3ba1"
11
12 inherit webapp depend.php versionator
13
14 DESCRIPTION="PHP scripts intended to manage MythTV from a web browser."
15 IUSE=""
16 KEYWORDS="~amd64 ~ppc ~x86"
17
18 RDEPEND="dev-lang/php[json,mysql,session,posix]
19 || ( <dev-lang/php-5.3[spl,pcre] >=dev-lang/php-5.3 )
20 dev-perl/DBI
21 dev-perl/DBD-mysql
22 dev-perl/HTTP-Date
23 dev-perl/Net-UPnP"
24
25 DEPEND="${RDEPEND}
26 app-arch/unzip"
27
28 # Release version
29 MY_PV="${PV%_*}"
30
31 # what product do we want
32 case "${PN}" in
33 mythtv)
34 REPO="mythtv"
35 MY_PN="mythtv"
36 S="${WORKDIR}/MythTV-${REPO}-${MYTHTV_SREV}/${MY_PN}"
37 ;;
38 mythtv-bindings)
39 REPO="mythtv"
40 MY_PN="mythtv"
41 S="${WORKDIR}/MythTV-${REPO}-${MYTHTV_SREV}/${MY_PN}"
42 ;;
43 mythweb)
44 REPO="mythweb"
45 MY_PN="mythweb"
46 S="${WORKDIR}/MythTV-${REPO}-${MYTHTV_SREV}/"
47 ;;
48 nuvexport)
49 REPO="nuvexport"
50 MY_PN="nuvexport"
51 MYTHTV_REV="$NUVEXPORT_REV"
52 S="${WORKDIR}/MythTV-${REPO}-${NUVEXPORT_SREV}/"
53 ;;
54 *)
55 REPO="mythtv"
56 MY_PN="mythplugins"
57 S="${WORKDIR}/MythTV-${REPO}-${MYTHTV_SREV}/${MY_PN}"
58 ;;
59 esac
60
61 # _pre is from SVN trunk while _p and _beta are from SVN ${MY_PV}-fixes
62 # TODO: probably ought to do something smart if the regex doesn't match anything
63 [[ "${PV}" =~ (_alpha|_beta|_pre|_rc|_p)([0-9]+) ]] || {
64 # assume a tagged release
65 MYTHTV_REV="v${PV}"
66 }
67
68 HOMEPAGE="http://www.mythtv.org"
69 LICENSE="GPL-2"
70 SRC_URI="https://github.com/MythTV/${REPO}/tarball/${MYTHTV_REV} -> ${REPO}-${PV}.tar.gz"
71
72 need_httpd_cgi
73 need_php5_httpd
74
75 src_configure() {
76 :
77 }
78
79 src_compile() {
80 :
81 }
82
83 src_install() {
84 webapp_src_preinst
85
86 cd "${S}"
87 dodoc README INSTALL
88
89 dodir "${MY_HTDOCSDIR}"/data
90
91 insinto "${MY_HTDOCSDIR}"
92 doins -r [[:lower:]]*
93
94 webapp_configfile "${MY_HTDOCSDIR}"/mythweb.conf.{apache,lighttpd}
95
96 webapp_serverowned "${MY_HTDOCSDIR}"/data
97
98 webapp_postinst_txt en "${FILESDIR}"/0.24-postinstall-en.txt
99
100 webapp_src_install
101
102 fperms 755 /usr/share/webapps/mythweb/${PV}/htdocs/mythweb.pl
103 }

  ViewVC Help
Powered by ViewVC 1.1.20