summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-03-07 13:00:59 +0100
committerLars Wendler <polynomial-c@gentoo.org>2018-03-07 13:01:13 +0100
commitbbab7382d8d22c161dc7c2eb4933628bc0a9253a (patch)
tree012650e6003a2d5d57aa40df18e863069f412ad3 /net-misc/icaclient
parentsys-power/upower: remove 0.99.4 and 0.99.6 (diff)
downloadgentoo-bbab7382d8d22c161dc7c2eb4933628bc0a9253a.tar.gz
gentoo-bbab7382d8d22c161dc7c2eb4933628bc0a9253a.tar.bz2
gentoo-bbab7382d8d22c161dc7c2eb4933628bc0a9253a.zip
net-misc/icaclient: ebuild improvements.
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-misc/icaclient')
-rw-r--r--net-misc/icaclient/icaclient-13.8.0.10299729-r1.ebuild27
1 files changed, 13 insertions, 14 deletions
diff --git a/net-misc/icaclient/icaclient-13.8.0.10299729-r1.ebuild b/net-misc/icaclient/icaclient-13.8.0.10299729-r1.ebuild
index 32ceff38130..2099a68e420 100644
--- a/net-misc/icaclient/icaclient-13.8.0.10299729-r1.ebuild
+++ b/net-misc/icaclient/icaclient-13.8.0.10299729-r1.ebuild
@@ -64,9 +64,7 @@ pkg_nofetch() {
elog "and place it in ${DISTDIR:-/usr/portage/distfiles}."
}
-src_unpack() {
- default
-
+pkg_setup() {
case ${ARCH} in
amd64)
ICAARCH=linuxx64
@@ -117,7 +115,7 @@ src_install() {
for tmpl in {appsrv,wfclient}.template ; do
newins nls/en/${tmpl} ${tmpl/template/ini}
done
- touch "${ED}/${ICAROOT}"/config/.server || die
+ touch "${ED%/}/${ICAROOT}"/config/.server || die
insinto "${ICAROOT}"/gtk
doins gtk/*
@@ -133,14 +131,14 @@ src_install() {
insinto "${ICAROOT}"/config/usertemplate
doins config/usertemplate/*
- LANGCODES="en"
- use l10n_de && LANGCODES+=" de"
- use l10n_es && LANGCODES+=" es"
- use l10n_fr && LANGCODES+=" fr"
- use l10n_ja && LANGCODES+=" ja"
- use l10n_zh_CN && LANGCODES+=" zh_CN"
+ local lang LANGCODES=( en )
+ use l10n_de && LANGCODES+=( de )
+ use l10n_es && LANGCODES+=( es )
+ use l10n_fr && LANGCODES+=( fr )
+ use l10n_ja && LANGCODES+=( ja )
+ use l10n_zh_CN && LANGCODES+=( zh_CN )
- for lang in ${LANGCODES} ; do
+ for lang in ${LANGCODES[@]} ; do
insinto "${ICAROOT}"/nls/${lang}
doins nls/${lang}/*
@@ -154,8 +152,8 @@ src_install() {
dosym UTF-8 "${ICAROOT}"/nls/${lang}/utf8
for tmpl in {appsrv,wfclient}.template ; do
- cp "${ED}/${ICAROOT}"/nls/${lang}/${tmpl} \
- "${ED}/${ICAROOT}"/nls/${lang}/${tmpl/template/ini} \
+ cp "${ED%/}/${ICAROOT}"/nls/${lang}/${tmpl} \
+ "${ED%/}/${ICAROOT}"/nls/${lang}/${tmpl/template/ini} \
|| die
done
done
@@ -181,7 +179,8 @@ src_install() {
make_wrapper wfica "${ICAROOT}"/wfica . "${ICAROOT}"
dodir /etc/revdep-rebuild/
- echo "SEARCH_DIRS_MASK=\"${ICAROOT}\"" > "${D}"/etc/revdep-rebuild/70icaclient
+ echo "SEARCH_DIRS_MASK=\"${ICAROOT}\"" \
+ > "${ED%/}"/etc/revdep-rebuild/70icaclient
}
pkg_preinst() {