diff options
author | Stuart Shelton <stuart@shelton.me> | 2014-11-05 01:53:29 +0000 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2014-11-05 01:53:29 +0000 |
commit | a5685a09eb647de8e926b36e51057cb00f38db95 (patch) | |
tree | b6a89f2ede820fa678c9cd6202299c77417e16a8 /www-apps | |
parent | Update pydoc.init for dev-lang/python-2.7.5-r4, dev-lang/python-2.7.6-r1, dev... (diff) | |
download | srcshelton-a5685a09eb647de8e926b36e51057cb00f38db95.tar.gz srcshelton-a5685a09eb647de8e926b36e51057cb00f38db95.tar.bz2 srcshelton-a5685a09eb647de8e926b36e51057cb00f38db95.zip |
Add www-apps/nabaztaglives-0.7
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/nabaztaglives/Manifest | 2 | ||||
-rw-r--r-- | www-apps/nabaztaglives/nabaztaglives-0.7.ebuild | 119 |
2 files changed, 121 insertions, 0 deletions
diff --git a/www-apps/nabaztaglives/Manifest b/www-apps/nabaztaglives/Manifest index 3b837e30..c5ef646e 100644 --- a/www-apps/nabaztaglives/Manifest +++ b/www-apps/nabaztaglives/Manifest @@ -1,3 +1,5 @@ AUX postinstall-en-0.6.txt 300 SHA256 c54ee8192d3aed8a0f90dc5f9805e42e237e1d479ef3bce2679e6d3dff383af5 SHA512 ac3e056e697f6f29a2cb88e0d34aab33c4968c98f08099f71dc80700004883eab6f89dbf7dc168ea18bfcd89b8108b2474af591a40800f6cc5ad20783d713da2 WHIRLPOOL 828a8d8f4aae4ad2fcc9e13148ce73d0f163b35ec5363e090358957fbb1a9da2e53c87164b6aca55bb186905b8407f227804cf37040f764dbbc6aa94da3dca52 DIST nabaztaglives-code-5577e0e24dcf95179d078ddc04753a83b1e43b0a.zip 31649978 SHA256 72ae80194e5522fce4732302d41a580262947fdc55dcc52bcfa2d7f5b6de10a8 SHA512 9b3ba8bb8af32a48529af796fca25a70cb607413a32a877e33a157829dcb5540f8b9e47de4d8725f6bd4ad6af9661503aef8d45661cfe7b675d72999ce269f8b WHIRLPOOL 195c3de2dc7c55ea005bc03f5b66a1d258b69dbccb3911e27c3487128588e998e55d5dadfaac72fd8e0b2911c518aa23a65ffd387000b0c359a5706d12eb15f6 +DIST nabaztaglives-code-74cd772d67aaad1accbb58382e16cfaaa5ac6d87.zip 31650624 SHA256 08284563d747154b61036cd4a4172a4b3999ffffa6413b7a4e73628b70c3e07d SHA512 227a3544b3df4394da3d748355756fb4f27bdb140b80840e1b1ffd93da1c2d8d5e57ffaf50d7970a340fc2000377c90f8d207efffcc848319f09792621f66efc WHIRLPOOL e24b423b06b0dc302e596031714a5c210c1783898235664753a8272c8bcd3c8ee209927a7bb690627c56dcb353e4abd9387910573f552de99d607887cbc2c5b0 EBUILD nabaztaglives-0.6.ebuild 3035 SHA256 c5063073396648258fe71e16605404c323bcaf3e94d911527aedbcc5b657b8d5 SHA512 d1b508ff4294735be6ddd3f577528b3b72bd4f75508f29ff59c0cba351b45c86d32605665ed21b241478c742ad348226ca388892df09830379bc391a7b501861 WHIRLPOOL fca60b61f06a11a8f248b495d3785a303d7448fcfa9e83b5cc2bf07c0cf94e775cb7e964cec2a98ea65f58487bd5e8a7b7cfeb76a3a225579c98aeb7e0919162 +EBUILD nabaztaglives-0.7.ebuild 3033 SHA256 1dad7a92c551a6d4b69bc2ee2b6919861f5676e9586870b6eb3bd36df4542318 SHA512 aed4e46d422a45389b4ee66bd8e9142802bf44a18e2b784bd4e0263878e2b9ccd0d742a85283a40368e69756faedda693bfd13d1b3dee616dd387fcb871ee0b2 WHIRLPOOL 4bec8967bf2ce4bf752f80d4dde0a3e7e6a6c34653ff5a71b9dd354a1362a259164994dce6d715cf08c6ea8590c43f0547b10bc0f4f37de59043d22711d673c5 diff --git a/www-apps/nabaztaglives/nabaztaglives-0.7.ebuild b/www-apps/nabaztaglives/nabaztaglives-0.7.ebuild new file mode 100644 index 00000000..5b3d1158 --- /dev/null +++ b/www-apps/nabaztaglives/nabaztaglives-0.7.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils webapp + +LANGUAGES="linguas_de linguas_en linguas_es linguas_fr linguas_it linguas_us" + +COMMIT="74cd772d67aaad1accbb58382e16cfaaa5ac6d87" + +DESCRIPTION="Nabaztag/tag NabaztagLives! Server" +HOMEPAGE="http://nabaztaglives.com" +SRC_URI="http://sourceforge.net/code-snapshots/git/n/na/nabaztaglives/code.git/nabaztaglives-code-${COMMIT}.zip" +RESTRICT="nomirror" + +LICENSE="GPL-3" +KEYWORDS="~amd64 ~x86" +IUSE="doc ${LANGUAGES}" + +RDEPEND=" + virtual/httpd-php + dev-lang/php + media-sound/lame + media-sound/mp3wrap +" + +need_httpd_cgi + +S="${WORKDIR}/nabaztaglives-code-${COMMIT}" + +src_prepare() { + cd "${S}" + + sed -si \ + -e 's|<? |<?php |g' \ + www/*.php \ + || die "PHP patching failed: ${?}" + + sed -si \ + -e "s|'../etc/nabaztag_error.log'|'logs/error.log'|" \ + www/*.php www/subroutines/logError.php \ + || die "Log-location patching failed: ${?}" + sed -si \ + -e 's|../etc/nabaztag_error.log|logs/error.log|' \ + www/vl/p4.php www/vl/FR/p3.jsp \ + || die "Log-location patching failed: ${?}" + + sed -si \ + -e "s|../etc/api_calls.log|logs/apicalls.log|" \ + www/*.php \ + || die "API log-location patching failed: ${?}" + + sed -si \ + -e 's|../etc/nabaztag_db.php|config/db.php|' \ + www/*.php www/subroutines/*.php www/vl/p4.php www/vl/FR/p3.jsp \ + || die "Configuration patching failed: ${?}" + + sed -rsi \ + -e 's|<img src="?([^"> ]+).jpg"?|<img src="images/\1.jpg"|g' \ + www/*.php www/*.htm \ + || die "Image patching failed: ${?}" + sed -rsi \ + -e 's|<a href="?([^"> ]+).jpg"?|<a href="images/\1.jpg"|g' \ + www/*.php \ + || die "Image patching failed: ${?}" + + sed -rsi \ + -e 's|url\(([^)]+).jpg\)|url(images/\1.jpg)|g' \ + www/main.css \ + || die "CSS Image patching failed: ${?}" + + sed -si \ + -e "/'pi'/d" \ + db/rabbit_pi.sql \ + || die "MySQL script patching failed: ${?}" + + #use linguas_en || { einfo "Removing audio files for EN/US language" ; rm -r www/vl/broad_us ; } + for LNG in it es de us; do + eval "use linguas_${LNG} || { einfo 'Removing audio files for ${LNG} language' ; rm -r www/vl/broad_${LNG} ; }" + done + + mkdir www/images + + rm db/*.sh + rm docs/installation.htm + + mv www/*.jpg www/images/ + mv db/rabbit_pi.sql db/initial.sql +} + +src_install() { + webapp_src_preinst + + use doc && dohtml -r docs/* + + einfo "Installation of large numbers of files can be slow - please wait ..." + insinto "${MY_HTDOCSDIR}" + doins -r www/* + dodir "${MY_HTDOCSDIR}"/db + dodir "${MY_HTDOCSDIR}"/config + dodir "${MY_HTDOCSDIR}"/logs + insinto "${MY_HTDOCSDIR}"/db + doins -r db/* + insinto "${MY_HTDOCSDIR}"/config + newins etc/nabaztag_db.php db.php + insinto "${MY_HTDOCSDIR}"/logs + newins etc/nabaztag_error.log error.log + + webapp_serverowned "${MY_HTDOCSDIR}"/vl/hutch + webapp_serverowned "${MY_HTDOCSDIR}"/logs/error.log + webapp_configfile "${MY_HTDOCSDIR}"/config/db.php + webapp_configfile "${MY_HTDOCSDIR}"/locate.jsp + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en-0.6.txt + + webapp_src_install +} |