Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xfce4-hardware-monitor-plugin ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
cyberjun
Apprentice
Apprentice


Joined: 06 Nov 2005
Posts: 293

PostPosted: Thu Sep 20, 2018 1:17 pm    Post subject: xfce4-hardware-monitor-plugin ebuild Reply with quote

Hi,
I have been looking around for an ebuild for xfce4-hardware-monitor-plugin for a couple of years. There is also a bug filed (https://bugs.gentoo.org/592460) but 'maintainer-wanted'. I cooked together a very crude ebuild to get it running on my amd64 system. Please note that I have never written an ebuild before and this is mostly copy-paste job (you have been warned).

Posting it here hoping someone will find it useful and maybe they will improve it.
Code:

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit gnome2-utils autotools

DESCRIPTION="XFCE4 Hardware Monitor plugin"
HOMEPAGE="https://goodies.xfce.org/projects/panel-plugins/xfce4-hardware-monitor-plugin"
SRC_URI="https://git.xfce.org/panel-plugins/xfce4-hardware-monitor-plugin/snapshot/xfce4-hardware-monitor-plugin-1.6.0.tar.gz"

LICENSE="BSD-2 GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=">=dev-cpp/libgnomecanvasmm-2.6
        >=gnome-base/libgtop-2.0
        "
RDEPEND="${DEPEND}"

src_prepare() {
einfo "Regenerating autotools files..."
WANT_AUTOCONF="2.5" aclocal -I "${S}/m4" || die "aclocal failed"
WANT_AUTOCONF="2.5" autoconf || die "autoconf failed"
default
eautoreconf
}

#src_configure() {
#       econf --with-posix-regex
#}

src_install() {
        emake DESTDIR="${D}" install

#       dodoc FAQ NEWS README
}

pkg_postinst() {
        gnome2_icon_cache_update
}

pkg_postrm() {
   gnome2_icon_cache_update
}


--Cyberjun
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum