diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-11-19 17:45:28 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-11-19 17:45:28 +0100 |
commit | e6636bd5d6280d92996bd70b744e8a29e54c7e18 (patch) | |
tree | 014989bddcbc22c7a8d4dafa7b78f3e55b184718 /gentoo/trinity-base/kde-i18n | |
parent | 4b7471734323c7cb5bdc129857c94041418c81b5 (diff) | |
download | tde-packaging-e6636bd5d6280d92996bd70b744e8a29e54c7e18.tar.gz tde-packaging-e6636bd5d6280d92996bd70b744e8a29e54c7e18.zip |
Gentoo: Initial import of an ebuilds tree
from Fat-Zer's (Alexander Golubev) repository.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'gentoo/trinity-base/kde-i18n')
-rw-r--r-- | gentoo/trinity-base/kde-i18n/Manifest | 1 | ||||
-rw-r--r-- | gentoo/trinity-base/kde-i18n/kde-i18n-3.5.13.1.ebuild | 109 | ||||
-rw-r--r-- | gentoo/trinity-base/kde-i18n/metadata.xml | 8 |
3 files changed, 118 insertions, 0 deletions
diff --git a/gentoo/trinity-base/kde-i18n/Manifest b/gentoo/trinity-base/kde-i18n/Manifest new file mode 100644 index 000000000..648109bc3 --- /dev/null +++ b/gentoo/trinity-base/kde-i18n/Manifest @@ -0,0 +1 @@ +DIST kde-i18n-3.5.13.1.tar.gz 378322677 SHA256 659ce86b7b86583c59ffd6118c563b69f185ce0125b58a6d1babcf1f020a1e0a SHA512 cbfdacd92b2e064ecc9fc00cbab3d362e6a8c015e15db7b63255209f9b20ecbea6e32c503720834c8a7882447eefd659cb2198ac5cc4ecfdd3baabc741e5ddc1 WHIRLPOOL b4478ad7fff628fd152e84c98f2e19a945a46aa579a79f97823ffff961763b83554ae21a4725bc1534e28fe2795b8dea746fb920a1def9da8c4dafa56ba448f9 diff --git a/gentoo/trinity-base/kde-i18n/kde-i18n-3.5.13.1.ebuild b/gentoo/trinity-base/kde-i18n/kde-i18n-3.5.13.1.ebuild new file mode 100644 index 000000000..00b9d15ea --- /dev/null +++ b/gentoo/trinity-base/kde-i18n/kde-i18n-3.5.13.1.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI="5" +TRINITY_MODULE_NAME="kde-i18n" + +inherit eutils trinity-base + +set-trinityver + +DESCRIPTION="Trinity internationalization package" +HOMEPAGE="http://www.trinitydesktop.org/" +LICENSE="GPL-2" + +SLOT="${TRINITY_VER}" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND=" + sys-devel/libtool + >=sys-devel/automake-1.10.1" +RDEPEND="" + +LANGS="af ar az be bg bn br bs ca cs csb cy da de el en_GB eo es et +eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms +nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta te +tg th tr uk uz uz@cyrillic vi wa zh_CN zh_TW" + +for X in ${LANGS} ; do + IUSE="${IUSE} linguas_${X}" +done + +src_unpack() { + local tarball tarfile tarparams f extractlist postfix + + case ${A} in + *.gz) + tarparams=" --gzip" + postfix="gz" + ;; + *.bz2) + tarparams=" --bzip2" + postfix="bz2" + ;; + esac + + tarfile="${DISTDIR}/${A}" + topdir="${A%.tar.*}" + + for X in ${LANGS} ; do + use "linguas_${X}" && extractlist+=" ${topdir}/tde-i18n-${X#linguas_}" + done + + if [[ -z ${LINGUAS} ]] || [[ -z "${extractlist}" && "${LINGUAS}" != "en" ]]; then + echo + ewarn "You either have the LINGUAS environment variable unset or it" + ewarn "contains languages not supported by trinity-base/kde-i18n." + ewarn "Because of that, kde-i18n will not add any kind of language" + ewarn "support." + ewarn + ewarn "If you didn't intend this to happen, the available language" + ewarn "codes are:" + ewarn "${LANGS}" + echo + fi + + extractlist+=" ${topdir}/admin" + + ebegin "Unpacking parts of ${tarball} to ${WORKDIR}" + tar -xpf "${tarfile}" ${tarparams} -C "${WORKDIR}" ${extractlist} 2> /dev/null \ + || echo "tar extract command failed at least partially - continuing anyway" +} + +src_prepare(){ + cp -Rp /usr/share/libtool/config/ltmain.sh "${S}/admin/ltmain.sh" + cp -Rp /usr/share/aclocal/libtool.m4 "${S}/admin/libtool.m4.in" + for dir in $(ls -d "${S}"/tde-i18n-*); do + einfo "Preparing $dir" + cd "$dir" && emake -f "admin/Makefile.common"; + done +} + +src_configure() { + PREFIX="${TDEDIR}" + for dir in $(ls -d "${S}"/tde-i18n-*); do + einfo "Configuring $dir" + cd "${dir}" && econf \ + --without-arts \ + --prefix="${PREFIX}" \ + --mandir="${PREFIX}/share/man"\ + --infodir="${PREFIX}/share/info" \ + --datadir="${PREFIX}/share" \ + --sysconfdir="${PREFIX}/etc" + done +} + +src_compile() { + for dir in $(ls -d "${S}"/tde-i18n-*); do + einfo "Compiling $dir" + cd "${dir}" && emake; + done +} + +src_install() { + for dir in $(ls -d "${S}"/tde-i18n-*); do + einfo "Installing $dir" + cd "${dir}" && emake install DESTDIR="${D}" + done +} diff --git a/gentoo/trinity-base/kde-i18n/metadata.xml b/gentoo/trinity-base/kde-i18n/metadata.xml new file mode 100644 index 000000000..6e9f5e4a1 --- /dev/null +++ b/gentoo/trinity-base/kde-i18n/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>fatzer2@gmail.com</email> + <name>Alexander Golubev</name> + </maintainer> +</pkgmetadata> |