From a0b0c4cc389c7e371dc04b76e57d63f38afccfc5 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 11 Feb 2017 20:21:54 +0100 Subject: net-misc/secpanel: Depend on virtual/imagemagick-tools Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3907 --- net-misc/secpanel/secpanel-0.6.1-r1.ebuild | 48 ++++++++++++++++++++++++++++++ net-misc/secpanel/secpanel-0.6.1.ebuild | 48 ------------------------------ 2 files changed, 48 insertions(+), 48 deletions(-) create mode 100644 net-misc/secpanel/secpanel-0.6.1-r1.ebuild delete mode 100644 net-misc/secpanel/secpanel-0.6.1.ebuild (limited to 'net-misc/secpanel') diff --git a/net-misc/secpanel/secpanel-0.6.1-r1.ebuild b/net-misc/secpanel/secpanel-0.6.1-r1.ebuild new file mode 100644 index 000000000000..16202ae67b96 --- /dev/null +++ b/net-misc/secpanel/secpanel-0.6.1-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +DESCRIPTION="Graphical frontend for managing and running SSH and SCP connections" +HOMEPAGE="http://themediahost.de/secpanel/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 sparc x86" +IUSE="gif" + +DEPEND="!gif? ( virtual/imagemagick-tools )" + +RDEPEND="virtual/ssh dev-lang/tk" + +S=${WORKDIR}/usr/local + +src_prepare() { + # install arch indep stuff in /usr/share instead of /usr/lib* + sed -i -e '/set libdir/s:../lib:../share:' bin/secpanel || die + + # fix the version + sed -i -e "/set spversion/s:0.6.0:${PV}:" bin/secpanel || die + + # optionally remove gifs... + if ! use gif; then + einfo "Setting secpanel to use PPM images" + sed -i -e 's/\.gif/\.ppm/g' bin/secpanel || die + + einfo "Converting all GIF images to PPM format..." + for i in $(find lib/secpanel/images -name "*.gif") ; do + einfo "convert ${i} => ${i//.gif/.ppm}" + convert "${i}" "ppm:${i//.gif/.ppm}" || die + rm -v "${i}" || die + done + fi +} + +src_install() { + dobin bin/secpanel || die + + insinto /usr/share/secpanel + doins -r lib/secpanel/{*.{tcl,config,profile,wait,txt,sh},images,spdistkey} || die +} diff --git a/net-misc/secpanel/secpanel-0.6.1.ebuild b/net-misc/secpanel/secpanel-0.6.1.ebuild deleted file mode 100644 index 1125bcb886ce..000000000000 --- a/net-misc/secpanel/secpanel-0.6.1.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=2 - -DESCRIPTION="Graphical frontend for managing and running SSH and SCP connections" -HOMEPAGE="http://themediahost.de/secpanel/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 sparc x86" -IUSE="gif" - -DEPEND="!gif? ( || ( media-gfx/imagemagick media-gfx/graphicsmagick[imagemagick] ) )" - -RDEPEND="virtual/ssh dev-lang/tk" - -S=${WORKDIR}/usr/local - -src_prepare() { - # install arch indep stuff in /usr/share instead of /usr/lib* - sed -i -e '/set libdir/s:../lib:../share:' bin/secpanel || die - - # fix the version - sed -i -e "/set spversion/s:0.6.0:${PV}:" bin/secpanel || die - - # optionally remove gifs... - if ! use gif; then - einfo "Setting secpanel to use PPM images" - sed -i -e 's/\.gif/\.ppm/g' bin/secpanel || die - - einfo "Converting all GIF images to PPM format..." - for i in $(find lib/secpanel/images -name "*.gif") ; do - einfo "convert ${i} => ${i//.gif/.ppm}" - convert "${i}" "ppm:${i//.gif/.ppm}" || die - rm -v "${i}" || die - done - fi -} - -src_install() { - dobin bin/secpanel || die - - insinto /usr/share/secpanel - doins -r lib/secpanel/{*.{tcl,config,profile,wait,txt,sh},images,spdistkey} || die -} -- cgit v1.2.3-65-gdbad