# Copyright 2009-2019 Pierre Lejeune # Distributed under the terms of the GNU General Public License v2 require freedesktop-desktop require option-renames [ renames=[ 'gnutls providers:gnutls' ] ] SUMMARY="GKrellM - GNU (or Gtk) Krell Monitors (or Meters)" DESCRIPTION=" GKrellM is a single process stack of system monitors which supports applying themes to match its appearance to your window manager, Gtk, or any other theme. " HOMEPAGE="http://${PN}.srcbox.net" DOWNLOADS="${HOMEPAGE}/releases/${PNV}.tar.bz2" LICENCES="GPL-2" SLOT="0" PLATFORMS="~amd64 ~x86" MYOPTIONS=" lm_sensors ( providers: gnutls libressl openssl ) [[ number-selected = exactly-one ]] " DEPENDENCIES=" build: sys-devel/gettext virtual/pkg-config build+run: dev-libs/glib:2 x11-libs/gtk+:2[>=2.4] lm_sensors? ( sys-apps/lm_sensors ) providers:gnutls? ( dev-libs/gnutls ) providers:libressl? ( dev-libs/libressl:= ) providers:openssl? ( dev-libs/openssl:= ) " REMOTE_IDS="freecode:${PN}" DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}/${PNV}-libressl.patch" ) DEFAULT_SRC_INSTALL_PARAMS=( "PKGCONFIGDIR=${IMAGE}/usr/$(exhost --target)/lib/pkgconfig" "PREFIX=/usr/$(exhost --target)" 'STRIP=' ) src_prepare() { edo sed -e "s/pkg-config/${PKG_CONFIG}/" -i {server,src}/configure default } src_compile() { emake PREFIX="/usr/$(exhost --target)" CC="${CC}" \ without-gnutls="$(optionq !providers:gnutls && echo yes || echo no)" \ without-ssl="$(optionq providers:gnutls && echo yes || echo no)" \ without-libsensors="$(optionq !lm_sensors && echo yes || echo no)" } src_install() { default edo mv "${IMAGE}"/usr/$(exhost --target)/share/* "${IMAGE}"/usr/share edo rmdir "${IMAGE}"/usr/$(exhost --target)/share insinto /usr/share/pixmaps newins src/icon.xpm ${PN}.xpm insinto /usr/share/applications hereins ${PN}.desktop <