# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp-apache MY_PV=${PV/_p/-pl} GAL_P=${P/-i18n/} GAL_PN=${PN/-i18n/} GAL_DEST=$GAL_PN/locale DESCRIPTION="Gallery i18n files" HOMEPAGE="http://gallery.sourceforge.net/" LICENSE="GPL-2" KEYWORDS="~x86" DEPEND="~app-misc/${GAL_P}" IUSE="" SLOT="0" LANGS="af_ZA bg_BG ca_ES cs_CZ.iso-8859-2 da_DK de_DE en_GB es_ES fi_FI fr_FR he_IL.utf8 hu_HU is_IS it_IT ja_JP ko_KR lt_LT nl_NL no_NO pl_PL pt_BR pt_PT ru_RU ru_RU.koi8r sl_SI sv_SE tr_TR uk_UA vi_VN zh_CN zh_TW zh_TW.utf8" BASEDIR="mirror://sourceforge/gallery/" # Define the LINGUAS environment variable to contain which langauge(s) you # would like for this ebuild to download and install for pkg in ${LANGS} do SRC_URI="${SRC_URI} linguas_${pkg}? ( ${BASEDIR}/${pkg}-${MY_PV}.tar.gz)" done pkg_setup() { webapp-detect || NO_WEBSERVER=1 einfo "Installing into ${ROOT}${HTTPD_ROOT}/gallery/locale." } src_install() { webapp-mkdirs local DocumentRoot=${HTTPD_ROOT} local destdir=${DocumentRoot}${GAL_DEST} local _S=${S} dodir $destdir for dir in `ls ${WORKDIR}`; do cp -r ${WORKDIR}/${dir} ${D}${destdir} done cd ${D}${destdir} chown -R ${HTTPD_USER}:${HTTPD_GROUP} ${dir} S=${_S} }