From e3d1ea2a1a18294c75491d367aa3d71e345b16cd Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 11 Feb 2017 20:21:51 +0100 Subject: dev-embedded/ponyprog: Depend on virtual/imagemagick-tools Package-Manager: Portage-2.3.3, Repoman-2.3.1 Closes: https://github.com/gentoo/gentoo/pull/3907 --- dev-embedded/ponyprog/ponyprog-2.07c-r1.ebuild | 63 -------------------------- dev-embedded/ponyprog/ponyprog-2.07c-r2.ebuild | 63 ++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 63 deletions(-) delete mode 100644 dev-embedded/ponyprog/ponyprog-2.07c-r1.ebuild create mode 100644 dev-embedded/ponyprog/ponyprog-2.07c-r2.ebuild (limited to 'dev-embedded/ponyprog') diff --git a/dev-embedded/ponyprog/ponyprog-2.07c-r1.ebuild b/dev-embedded/ponyprog/ponyprog-2.07c-r1.ebuild deleted file mode 100644 index 1828857b3d8f..000000000000 --- a/dev-embedded/ponyprog/ponyprog-2.07c-r1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI="5" - -inherit eutils toolchain-funcs - -DESCRIPTION="Serial device programmer" -HOMEPAGE="http://www.lancos.com/ppwin95.html" -SRC_URI="mirror://sourceforge/${PN}/Pony_Prog2000-${PV}.tar.gz" - -LICENSE="LGPL-2" -SLOT="0" -KEYWORDS="amd64 x86" - -RDEPEND="x11-libs/libXaw - x11-libs/libXmu - x11-libs/libXt - x11-libs/libXext - x11-libs/libX11 - x11-misc/xdg-utils" -DEPEND="${RDEPEND} - || ( media-gfx/graphicsmagick[imagemagick] media-gfx/imagemagick )" - -S="${WORKDIR}/PonyProg2000-${PV}" - -src_prepare() { - sed -i -e '/CFLAGS/s:-O2::' v/Config.mk || die - sed -i -e '/include.*/s:asm:sys:' *.cpp || die - sed -i -e 's/netscape/xdg-open/' e2cmdw.cpp || die - - convert ponyprog.ico ponyprog.png - - epatch \ - "${FILESDIR}/${PN}-2.07a-gcc43.patch" \ - "${FILESDIR}/${PN}-2.07c-build.patch" - epatch_user -} - -src_compile() { - tc-export CC CXX - # most of build is C++, but it uses CFLAGS - CFLAGS="${CXXFLAGS}" emake HOMEV="${S}/v" -} - -src_install() { - dobin bin/ponyprog2000 - keepdir /var/lock/uucp - fowners uucp:uucp /var/lock/uucp - fperms 755 /var/lock/uucp - doicon ponyprog.png - make_desktop_entry ponyprog2000 PonyProg2000 ponyprog -} - -pkg_postinst() { - elog "To use the COM port in user mode (not as root), you need to" - elog "be in the 'uucp' group." - elog - elog "To use the LPT port in user mode (not as root) you need a kernel with" - elog "ppdev, parport and parport_pc compiled in or as modules. You need the" - elog "rights to write to /dev/parport? devices." -} diff --git a/dev-embedded/ponyprog/ponyprog-2.07c-r2.ebuild b/dev-embedded/ponyprog/ponyprog-2.07c-r2.ebuild new file mode 100644 index 000000000000..4e8e64cb4414 --- /dev/null +++ b/dev-embedded/ponyprog/ponyprog-2.07c-r2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs + +DESCRIPTION="Serial device programmer" +HOMEPAGE="http://www.lancos.com/ppwin95.html" +SRC_URI="mirror://sourceforge/${PN}/Pony_Prog2000-${PV}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND="x11-libs/libXaw + x11-libs/libXmu + x11-libs/libXt + x11-libs/libXext + x11-libs/libX11 + x11-misc/xdg-utils" +DEPEND="${RDEPEND} + virtual/imagemagick-tools" + +S="${WORKDIR}/PonyProg2000-${PV}" + +src_prepare() { + sed -i -e '/CFLAGS/s:-O2::' v/Config.mk || die + sed -i -e '/include.*/s:asm:sys:' *.cpp || die + sed -i -e 's/netscape/xdg-open/' e2cmdw.cpp || die + + convert ponyprog.ico ponyprog.png + + epatch \ + "${FILESDIR}/${PN}-2.07a-gcc43.patch" \ + "${FILESDIR}/${PN}-2.07c-build.patch" + epatch_user +} + +src_compile() { + tc-export CC CXX + # most of build is C++, but it uses CFLAGS + CFLAGS="${CXXFLAGS}" emake HOMEV="${S}/v" +} + +src_install() { + dobin bin/ponyprog2000 + keepdir /var/lock/uucp + fowners uucp:uucp /var/lock/uucp + fperms 755 /var/lock/uucp + doicon ponyprog.png + make_desktop_entry ponyprog2000 PonyProg2000 ponyprog +} + +pkg_postinst() { + elog "To use the COM port in user mode (not as root), you need to" + elog "be in the 'uucp' group." + elog + elog "To use the LPT port in user mode (not as root) you need a kernel with" + elog "ppdev, parport and parport_pc compiled in or as modules. You need the" + elog "rights to write to /dev/parport? devices." +} -- cgit v1.2.3-65-gdbad