diff options
author | Patrick Lauer <patrick@gentoo.org> | 2017-07-31 14:23:17 +0200 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2017-07-31 14:23:33 +0200 |
commit | 827be1a312b25af9baed8579dec1bd2a586aebb4 (patch) | |
tree | 5812117308b85b6f377076577221c027d4bf0ca1 /dev-util/amtterm/amtterm-1.6.ebuild | |
parent | dev-util/kdevplatform-5.1.1-r0: amd64 stable (diff) | |
download | gentoo-827be1a312b25af9baed8579dec1bd2a586aebb4.tar.gz gentoo-827be1a312b25af9baed8579dec1bd2a586aebb4.tar.bz2 gentoo-827be1a312b25af9baed8579dec1bd2a586aebb4.zip |
dev-util/amtterm: Bump
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'dev-util/amtterm/amtterm-1.6.ebuild')
-rw-r--r-- | dev-util/amtterm/amtterm-1.6.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-util/amtterm/amtterm-1.6.ebuild b/dev-util/amtterm/amtterm-1.6.ebuild new file mode 100644 index 000000000000..d9222f8bf2e6 --- /dev/null +++ b/dev-util/amtterm/amtterm-1.6.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +DESCRIPTION="A nice tool to manage amt-enabled machines" +HOMEPAGE="https://www.kraxel.org/blog/linux/amtterm/" +SRC_URI="https://www.kraxel.org/releases/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux" +IUSE="gtk" + +DEPEND="gtk? ( + x11-libs/gtk+:3 + x11-libs/vte:2.91 )" +RDEPEND="${DEPEND} + dev-perl/SOAP-Lite" + +src_prepare() { + sed -i -e 's|\(INSTALL_BINARY := \$(INSTALL)\) \$(STRIP)|\1|' mk/Variables.mk || die +} + +src_configure() { + echo "LIB := $(get_libdir)" > Make.config || die + + # enable gamt + echo "HAVE_GTK := $(usex gtk)" >> Make.config || die + echo "HAVE_VTE := $(usex gtk)" >> Make.config || die +} + +src_compile() { + prefix="/usr" emake || die +} + +src_install() { + prefix="/usr" emake DESTDIR=${ED} install || die + + if ! use gtk; then + rm -rf "${D}"/usr/share/applications || die + rm -rf "${D}"/usr/share/man/man1/gamt* || die + fi +} |