cyberjun Apprentice
Joined: 06 Nov 2005 Posts: 293
|
Posted: Thu Sep 20, 2018 1:17 pm Post subject: xfce4-hardware-monitor-plugin ebuild |
|
|
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 |
|